/* Explorar - World Exploration Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a237e 0%, #283593 30%, #3949ab 60%, #1a237e 100%);
    color: #fff;
    overflow-x: hidden;
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-family: 'Fredoka One', cursive;
    color: #ffd700;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-chat {
    color: #90caf9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-chat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 2px 2px 0 #8b6914;
    margin-bottom: 15px;
}

.hero h1 i {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Titles */
section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #ffcc80;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

section h2 i {
    color: #ffd700;
}

/* Monuments Section */
.monuments-section {
    margin-bottom: 50px;
}

.monuments-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 220px);
    gap: 16px;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.monuments-grid::-webkit-scrollbar {
    height: 8px;
}

.monuments-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
}

.monument {
    appearance: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: inherit;
}

.monument:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.monument.active {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
}

.monument-icon {
    font-size: 2.5rem;
    margin-bottom: 2px;
    animation: float 3s ease-in-out infinite;
}

.monument:nth-child(2) .monument-icon {
    animation-delay: 0.2s;
}

.monument:nth-child(3) .monument-icon {
    animation-delay: 0.4s;
}

.monument:nth-child(4) .monument-icon {
    animation-delay: 0.6s;
}

.monument:nth-child(5) .monument-icon {
    animation-delay: 0.8s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.monument-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.monument-country {
    font-size: 0.8rem;
    color: #ffcc80;
    font-weight: 700;
}

.monument-flag {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.monument-info-box {
    background: rgba(255, 204, 128, 0.2);
    border: 2px solid rgba(255, 204, 128, 0.4);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.monument-info-box.active {
    background: rgba(255, 204, 128, 0.3);
    border-color: #ffd700;
}

.monument-info-box[hidden] {
    display: none;
}

.monument-info-box i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Flags Section */
.flags-section {
    margin-bottom: 50px;
}

.flags-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.flags-nav-btn {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.flags-nav-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
}

.flags-grid {
    display: grid;
    grid-template-rows: repeat(3, auto);
    gap: 12px;
}

.flags-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding: 4px 2px 10px;
    cursor: grab;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.flags-row.is-pressing,
.flags-row.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.flags-row::-webkit-scrollbar {
    height: 8px;
}

.flags-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
}

.flag-card {
    appearance: none;
    min-width: 116px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.flag-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.flag-card.active {
    border-color: #ffd700;
}

.flag-emoji {
    font-size: 2rem;
    line-height: 1;
}

.flag-name {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.flag-tooltip {
    margin-top: 14px;
    position: relative;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #ffd700;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.flag-tooltip strong {
    color: #ffd700;
    font-size: 1.1rem;
}

.flag-tooltip i {
    color: #90caf9;
    margin-right: 5px;
}

.flag-tooltip.active {
    border-color: #ffd700;
}

/* Trails Section */
.trails-section {
    margin-bottom: 30px;
}

.trails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.trail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trail-card:hover,
.trail-card.active {
    transform: translateY(-8px);
    border-color: #ffd700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.trail-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
}

.trail-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 152, 0, 0.1));
}

.trail-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.1));
}

.trail-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.3), rgba(3, 169, 244, 0.1));
}

.trail-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.trail-card:nth-child(1) .trail-icon {
    color: #81c784;
}

.trail-card:nth-child(2) .trail-icon {
    color: #ffb74d;
}

.trail-card:nth-child(3) .trail-icon {
    color: #ce93d8;
}

.trail-card:nth-child(4) .trail-icon {
    color: #4fc3f7;
}

.trail-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

.trail-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Trail Content Panels */
.trail-content {
    margin-bottom: 40px;
}

.trail-panel {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    animation: fadeIn 0.4s ease;
}

.trail-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trail-panel h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h4 {
    font-size: 1.1rem;
    color: #ffcc80;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h4 i {
    color: #ffd700;
}

.info-card ul,
.info-card ol {
    padding-left: 20px;
    line-height: 1.8;
}

.info-card li {
    margin-bottom: 5px;
}

.info-card strong {
    color: #90caf9;
}

.info-card .two-columns {
    columns: 2;
    column-gap: 30px;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #90caf9;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .monuments-grid {
        grid-auto-columns: minmax(160px, 190px);
    }

    .monument-icon {
        font-size: 2rem;
    }

    .flags-nav {
        justify-content: center;
    }

    .flag-card {
        min-width: 102px;
    }

    .trails-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-card .two-columns {
        columns: 1;
    }

    .top-nav {
        padding: 10px 15px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-chat span {
        display: none;
    }
}

@media (max-width: 480px) {
    .monuments-grid {
        grid-auto-columns: minmax(148px, 170px);
    }

    .trails-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PAÍSES DO MUNDO ========== */

/* Trilha 5 - Países */
.trail-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.3), rgba(52, 152, 219, 0.1));
}

.trail-card:nth-child(5) .trail-icon {
    color: #1abc9c;
}

/* Filtros */
.countries-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.85rem;
    color: #90caf9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: #ffd700;
}

.filter-group select,
.filter-group input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.filter-group select option {
    background: #1a237e;
    color: #fff;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-group i {
    color: #ffd700;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-group:focus-within {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.search-group input {
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    cursor: text;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    width: 100%;
}

.search-group input::placeholder {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Stats Bar */
.countries-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(255, 204, 128, 0.15);
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.countries-stats i {
    color: #ffd700;
}

.countries-stats strong {
    color: #ffcc80;
    font-size: 1.1rem;
}

.stats-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Countries Grid */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Country Card */
.country-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--continent-color, #666);
    border-radius: 15px 15px 0 0;
}

.country-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--continent-color, #ffd700);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(var(--continent-color), 0.2);
}

.country-flag {
    font-size: 3.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.country-card:hover .country-flag {
    transform: scale(1.15) rotate(3deg);
}

.country-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.country-capital {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.country-capital i {
    color: #90caf9;
    margin-right: 5px;
}

.country-continent {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--continent-color, #666);
    border-radius: 20px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.country-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.country-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.75rem;
}

.country-stats .stat i {
    color: #90caf9;
    font-size: 0.85rem;
}

.country-stats .stat span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* IDH Colors */
.stat.hdi-very-high {
    background: rgba(46, 204, 113, 0.2);
}

.stat.hdi-very-high span {
    color: #2ecc71;
}

.stat.hdi-high {
    background: rgba(241, 196, 15, 0.2);
}

.stat.hdi-high span {
    color: #f1c40f;
}

.stat.hdi-medium {
    background: rgba(230, 126, 34, 0.2);
}

.stat.hdi-medium span {
    color: #e67e22;
}

.stat.hdi-low {
    background: rgba(231, 76, 60, 0.2);
}

.stat.hdi-low span {
    color: #e74c3c;
}

/* Responsive Countries */
@media (max-width: 768px) {
    .countries-filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .search-group {
        min-width: 100%;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .country-flag {
        font-size: 2.5rem;
    }

    .country-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: 1fr;
    }
}

/* --- GASTRONOMY SECTION STYLES --- */

/* Ticker de Curiosidades */
.food-ticker-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.food-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.food-ticker {
    display: inline-block;
    animation: ticker 60s linear infinite;
    /* Aumentei para 60s para ler melhor */
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 1.1em;
    color: white;
}

.ticker-item i {
    color: var(--accent-color);
    margin-right: 8px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Carrossel de Pratos Famosos */
.food-section {
    margin-bottom: 30px;
}

.food-section h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.dishes-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.dishes-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2em;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--accent-color);
}

.dish-card {
    flex: 0 0 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s;
}

.dish-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.dish-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.dish-card h5 {
    margin: 5px 0;
    color: var(--accent-color);
    font-size: 1.1em;
}

.dish-country {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: bold;
}

.dish-card p {
    font-size: 0.85em;
    line-height: 1.4;
    color: #ddd;
}


/* Buscador de Pratos por País */
.highlight-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.dish-finder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.finder-controls select {
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1em;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    min-width: 250px;
}

.finder-controls select:focus {
    border-color: var(--accent-color);
}

.finder-controls select option {
    background: #2c3e50;
    color: white;
}

.dish-result {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dish-result.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.dish-result-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dish-result .dish-icon {
    font-size: 3.5em;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.dish-result .dish-text {
    text-align: left;
}

.dish-result h5 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.dish-result p {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Continents Food Grid */
.continents-food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.continent-food-card {
    background: rgba(255, 255, 255, 0.08);
    /* Mais claro que o fundo */
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.continent-food-card .cont-icon {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.continent-food-card h5 {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.continent-food-card p {
    font-size: 0.85em;
    margin-bottom: 5px;
    color: #ddd;
}

.cont-dishes {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cont-dishes span {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .dish-result-content {
        flex-direction: column;
        text-align: center;
    }

    .dish-result .dish-text {
        text-align: center;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
}

/* --- NEW GASTRONOMY GRID STYLES --- */

/* Header com Actions */
.panel-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.panel-header-actions h3 {
    margin: 0;
}

.header-filter select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    min-width: 200px;
}

/* Grid de Pratos */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-height: 500px;
    /* Scroll interno se ficar muito grande */
    overflow-y: auto;
    padding-right: 5px;
}

.dishes-grid::-webkit-scrollbar {
    width: 6px;
}

.dishes-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.dish-grid-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.dish-grid-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dish-grid-card.highlighted {
    border-color: var(--accent-color);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-flag {
    font-size: 1.5em;
}

.dish-icon-overlay {
    font-size: 1.2em;
}

.dish-content h5 {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}

.dish-name {
    font-size: 1em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.dish-desc {
    font-size: 0.75em;
    color: #bbb;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .panel-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-filter select {
        width: 100%;
    }

    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== INTERACTIVE CLIMATE MAP STYLES ========== */

/* Search Container */
.climate-search-container {
    position: relative;
    margin-bottom: 20px;
}

.climate-search-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.climate-search-input:focus-within {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.climate-search-input i {
    color: #ffd700;
    margin-right: 12px;
    font-size: 1rem;
}

.climate-search-input input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
}

.climate-search-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Search Results Dropdown */
.climate-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.98);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 215, 0, 0.15);
}

.search-result-flag {
    font-size: 1.8rem;
    margin-right: 12px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.search-result-climate {
    font-size: 0.8rem;
    color: #90caf9;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Map Wrapper */
.climate-map-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    min-height: 300px;
    overflow: hidden;
}

.climate-map-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.climate-map-container svg {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.climate-map-container svg path {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 0.5;
}

.climate-map-container svg path:hover {
    stroke: #ffd700 !important;
    stroke-width: 2 !important;
    filter: brightness(1.2);
}

.climate-map-container svg path.country-highlighted {
    stroke: #ffd700 !important;
    stroke-width: 3 !important;
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: pulse-highlight 1s ease-in-out infinite;
}

@keyframes pulse-highlight {

    0%,
    100% {
        filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

/* Map Loading State */
.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    gap: 15px;
}

.map-loading i {
    font-size: 2.5rem;
    color: #ffd700;
}

.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #ff6b6b;
    gap: 10px;
}

/* Climate Info Card (Hover Tooltip) */
.climate-info-card {
    position: fixed;
    display: none;
    background: linear-gradient(145deg, rgba(26, 35, 126, 0.98), rgba(57, 73, 171, 0.96));
    border-radius: 16px;
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    border: 2px solid #ffd700;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.15);
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
}

.climate-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.climate-card-flag {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.climate-card-title h4 {
    margin: 0;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: #fff;
}

.climate-card-continent {
    font-size: 0.8rem;
    color: #90caf9;
    display: block;
    margin-top: 2px;
}

.climate-card-body {
    padding: 14px 16px;
}

.climate-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.climate-stat:last-child {
    margin-bottom: 0;
}

.climate-stat i {
    color: #ffd700;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.climate-stat div {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.3;
}

.climate-stat-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.climate-stat-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
}

.climate-stat-mini i {
    color: #90caf9;
    font-size: 0.85rem;
}

.climate-stat-mini span {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.climate-card-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.climate-card-footer span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.climate-card-footer i {
    color: #90caf9;
    margin-right: 6px;
}

/* Climate Legend */
.climate-legend {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.climate-legend h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #ffcc80;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.climate-legend h4 i {
    color: #ffd700;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Climate Map */
@media (max-width: 768px) {
    .climate-map-wrapper {
        padding: 15px;
        padding-bottom: 280px;
        /* Space for card at bottom */
    }

    .climate-info-card {
        min-width: auto;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        border-radius: 12px;
    }

    .climate-card-flag {
        font-size: 2rem;
    }

    .climate-card-title h4 {
        font-size: 1rem;
    }

    .climate-card-body {
        padding: 10px 14px;
    }

    .climate-stat {
        margin-bottom: 8px;
    }

    .legend-items {
        gap: 8px;
    }

    .legend-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .climate-map-wrapper {
        padding-bottom: 300px;
    }

    .climate-map-container svg {
        max-height: 280px;
    }

    .climate-stat-row {
        flex-direction: column;
        gap: 8px;
    }

    .legend-items {
        flex-direction: column;
    }

    .climate-card-header {
        padding: 12px;
    }

    .climate-card-flag {
        font-size: 1.8rem;
    }

    .climate-card-title h4 {
        font-size: 0.95rem;
    }
}
