/* =========================
   General Reset & Base
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ha nincs globálisan definiálva, adunk alap színt a Login gombhoz */
    --egs-primary: #25bfa6;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #a2ede0, #72d5c6);
    color: #003b3b;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
    background: linear-gradient(to right, #a2ede0, #72d5c6);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    /* összevonva a későbbi duplikált szabállyal */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #006666;
}

/* --- Desktop nav --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #003b3b;
    font-weight: 500;
}

.nav-links a:hover {
    color: #007777;
}

/* --- Logout gomb --- */
.btn-logout {
    border: 1px solid #e11d48;
    color: #e11d48;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
}

.btn-logout:hover {
    background: #e11d48;
    color: #fff;
}

/* --- Login gomb: a chatbot Home gomb stílusával --- */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--egs-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-login:hover {
    background: #25a690;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* --- Hamburger ikon (desktopon rejtett) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #003b3b;
    border-radius: 2px;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
    background: linear-gradient(to right, #a2ede0, #72d5c6);
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1 1 50%;
    min-width: 280px;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 52ch;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff5e3a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color .2s ease-in-out, transform .2s ease-in-out, box-shadow .2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.btn-primary:hover {
    background-color: #e34c2d;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.hero-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 80%;
    height: auto;
}

/* =========================
   FEATURES SECTION
   ========================= */
.features {
    background: linear-gradient(to right, #a2ede0, #72d5c6);
    padding: 3rem 0;
}

.features-grid {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 280px;
    flex: 1 1 30%;
}

.feature-box img {
    width: 50px;
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
    color: #003b3b;
}

.feature-box p {
    font-size: 0.95rem;
    color: #555;
}

/* =========================
   RESPONSIVE (<= 768px)
   ========================= */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    /* Hamburger mobilon látszik */
    .hamburger {
        display: flex;
    }

    /* Mobilon alapból rejtjük a menüt,
       hamburgerre .mobile-show lesz belőle */
    .nav-links {
        display: none;
        position: absolute;
        z-index: 999;
        top: 60px;
        right: 15px;
        flex-direction: row;
        /* ← Eddigi column helyett */
        background: transparent;
        /* Ha nem kell a fehér háttér */
        padding: 0;
        /* nincs extra padding */
        gap: 0.75rem;
        /* távolság a gombok között */
        min-width: auto;
    }

    .nav-links.mobile-show {
        display: flex;
    }

    .nav-links li {
        margin: 0.25rem 0;
    }

    .nav-links a {
        color: #003b3b;
    }

    /* Hero mobil finomhangolás */
    .hero {
        padding: 3rem 0 2rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        max-width: 58%;
    }

    /* Feature kártyák távolság
       kicsit nagyobb „lélegzés” mobilon */
    .features {
        padding: 2.5rem 0;
    }

    .feature-box {
        max-width: 320px;
        flex: 1 1 100%;
    }
}

/* =========================
   LARGE DESKTOP (>= 1200px)
   ========================= */
@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-image img {
        max-width: 91%;
    }
}

/* --- DESKTOP OVERRIDE (>=769px): a menü mindig látszódjon --- */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hamburger {
        display: none !important;
    }
}

/* Alap stílus minden nav gombra */
.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-nav:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-nav:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Színvariációk */
.btn-help {
    background: var(--egs-primary);
}

.btn-help:hover {
    background: #25a690;
}

.btn-faq {
    background: var(--egs-primary);
}

.btn-faq:hover {
    background: #25a690;
}

/* a .btn-login fent már definiálva — itt nem ismételjük */

/* === Motion tweaks on top of existing palette === */

/* HERO – finom dinamikus háttér */
.hero--with-motion {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.motion-bubbles {
    position: absolute;
    inset: -20% -10% auto -10%;
    pointer-events: none;
    z-index: -1;
    filter: blur(8px) saturate(1.05);
}

.motion-bubbles span {
    position: absolute;
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(#a2ede0, rgba(39, 191, 166, .35));
    opacity: .5;
    animation: floatY 12s ease-in-out infinite;
}

.motion-bubbles .b1 {
    left: 10%;
    top: 10%;
    animation-delay: 0s;
}

.motion-bubbles .b2 {
    left: 45%;
    top: 0%;
    animation-delay: 2s;
    width: 240px;
    height: 240px;
}

.motion-bubbles .b3 {
    right: 8%;
    top: 16%;
    animation-delay: 4s;
    width: 160px;
    height: 160px;
}

@keyframes floatY {

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

    50% {
        transform: translateY(18px)
    }
}

/* TRAVEL REEL – folyamatos horizontális mozgás (seamless loop) */
.travel-reel {
    --gap: 18px;
    background: linear-gradient(to right, #a2ede0, #72d5c6);
    border-top: 1px solid rgba(0, 0, 0, .06);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    overflow: hidden;
    padding: 14px min(5vw, 40px);
    /* padding a KONTÉNEREN */
}

.travel-reel .reel-inner {
    display: flex;
    gap: var(--gap);
    padding: 0;
    /* NINCS padding a pályán */
    width: max-content;
    animation: reelMove 66s linear infinite;
    will-change: transform;
}

/* (opcionális) hover-re megállíthatod a sávot */
/*
.travel-reel:hover .reel-inner {
    animation-play-state: paused;
}
*/

.travel-reel figure {
    flex: 0 0 auto;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateZ(0);
}

.travel-reel img {
    display: block;
    height: clamp(120px, 18vh, 220px);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* KULCS: fél gap korrekció a pontos varratnál */
@keyframes reelMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% + var(--gap) / 2));
    }
}


/* DESTINATION CARDS – modern rács + felúszás */
.destinations {
    background: linear-gradient(to right, #a2ede0, #72d5c6);
    padding: clamp(2.4rem, 4vw, 3.4rem) 0;
}

.destinations .cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(12px, 2vw, 20px);
}

.card {
    grid-column: span 12;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(16px);
    opacity: 0;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}

.card.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

.card-media {
    position: relative;
    overflow: hidden;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.card-media img {
    width: 100%;
    height: clamp(160px, 28vh, 300px);
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform .6s ease;
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.card-body {
    padding: 16px 18px 18px;
}

.card-body h3 {
    color: #003b3b;
    margin-bottom: 6px;
}

.card-body p {
    color: #375;
    line-height: 1.45;
}

/* nagyobb kijelzőn 3 oszlop */
@media (min-width: 880px) {
    .card {
        grid-column: span 4;
    }
}

/* CTA blokk alul */
.destinations-cta {
    text-align: center;
    margin-top: clamp(16px, 3vw, 26px);
}

/* Mobil landscape optimalizálás */
@media (max-width: 912px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero-image img {
        max-width: 48%;
    }

    .travel-reel img {
        height: 130px;
    }
}

/* Akadálymentesség – ha a user csökkentett animációt kér */
@media (prefers-reduced-motion: reduce) {

    .motion-bubbles span,
    .travel-reel .reel-inner {
        animation: none !important;
    }
}

a.btn-primary[data-loading-hard] {
    touch-action: manipulation;
}

/* ===== i18n: Language switcher (landing) ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #ffffff;
    color: #003b3b;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.lang-select:focus {
    outline: 2px solid rgba(37, 191, 166, .35);
    outline-offset: 2px;
}

/* Mobilon a lang switcher a hamburger előtt maradjon szépen */
@media (max-width: 768px) {
    .navbar .container {
        gap: 10px;
    }

    .lang-switch {
        order: 2;
    }

    .hamburger {
        order: 3;
    }
}

/* --- GEO-LANG banner --- */
.geo-lang-banner {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #0b1f1f;
    color: #e7fffb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.geo-lang-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.geo-lang-banner__actions {
    display: flex;
    gap: 8px;
}

.geo-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    font-weight: 600;
}

.geo-btn--primary {
    background: var(--egs-primary);
    color: #032726;
    border-color: transparent;
}

.geo-btn--primary:hover {
    filter: brightness(1.05);
}

.geo-btn--ghost {
    background: transparent;
    color: #e7fffb;
}

/* === Language Switcher (emoji + dropdown) === */
/* === Language Switcher (dropdown + modal) === */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #003b3b;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    cursor: pointer;
    user-select: none;
    transition: transform .12s ease, box-shadow .12s ease;
}

.lang-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-btn .flag {
    font-size: 16px;
    line-height: 1;
}

.lang-btn .label {
    letter-spacing: .3px;
}

.lang-btn .caret {
    font-size: 12px;
    opacity: .6;
    margin-left: 2px;
}

/* Dropdown */
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    padding: 6px;
    list-style: none;
    z-index: 1200;
}

.lang-menu[hidden] {
    display: none;
}

.lang-menu .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #003b3b;
}

.lang-menu .lang-item .flag {
    width: 20px;
    text-align: center;
}

.lang-menu .lang-item .name {
    opacity: .85;
    font-weight: 600;
}

.lang-menu .lang-item .code {
    margin-left: auto;
    opacity: .5;
    font-size: 12px;
    font-weight: 700;
}

.lang-menu .lang-item:hover,
.lang-menu .lang-item[aria-selected="true"] {
    background: rgba(37, 191, 166, .12);
}

/* === Modal === */
.lang-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    /* scroll miatt felülről induljon */
    justify-content: center;
    overflow-y: auto;
    padding: 6vh 0;
}

.lang-modal[hidden] {
    display: none;
}

.lang-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

@supports (backdrop-filter: blur(6px)) {
    .lang-modal-backdrop {
        backdrop-filter: blur(6px);
    }
}

.lang-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    z-index: 2100;
    max-width: 680px;
    width: 92%;
    max-height: 88vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(6px);
    opacity: .98;
    transition: transform .18s ease, opacity .18s ease;
}

.lang-modal:not([hidden]) .lang-modal-content {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 640px) {
    .lang-modal-content {
        width: 94%;
    }
}

.lang-modal-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--egs-primary);
}

/* === Modal list (pill grid) === */
.lang-modal-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-items: center;
}

@media (max-width: 1024px) {
    .lang-modal-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .lang-modal-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lang-modal-list .lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    cursor: pointer;
    font-weight: 700;
    min-height: 42px;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lang-modal-list .lang-item .flag {
    width: 18px;
    text-align: center;
}

.lang-modal-list .lang-item .name {
    font-weight: 700;
    line-height: 1;
}

.lang-modal-list .lang-item .code {
    font-size: 12px;
    opacity: .7;
    line-height: 1;
}

.lang-modal-list .lang-item:hover,
.lang-modal-list .lang-item[aria-selected="true"] {
    background: var(--egs-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.lang-modal-list .lang-item:hover .code,
.lang-modal-list .lang-item[aria-selected="true"] .code {
    opacity: 1;
}