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

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;
}

.navbar .container {
    position: relative;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

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

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

/* Login gomb */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25BFA6;
    /* bundle kártya mély zöld */
    color: #ffffff;
    /* fehér felirat */
    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: #129499;
    /* világosabb zöld hoverre */
    /* hover sötétebb narancs */
    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);
}

/* 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;
}

/* Home gomb */
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25BFA6;
    /* bundle kártya mély zöld */
    color: #ffffff;
    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-home:hover {
    background: #129499;
    /* világosabb zöld hoverre */
    /* hover sötétebb zöld */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

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


/* Reszponzív */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        position: static;
    }

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

/* ===== How It Works (desktop) ===== */
.how-it-works {
    padding: 2.5rem 0 3.5rem;
}

.hiw-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #003b3b;
    margin-bottom: 1.6rem;
}

.hiw-steps {
    display: flex;
    gap: 1.25rem;
    /* vizuális levegő a kártyák között */
    justify-content: center;
    /* középre igazítás széles desktopon */
    align-items: stretch;
}

.step-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 1.4rem 1.3rem;
    width: 320px;
    /* desktop fix szélesség */
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 181, 160, 0.12);
    /* a brand zöld halvány változata */
}

.step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #003b3b;
}

.step-text {
    color: #355b5b;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ===== How It Works – MOBILE: vízszintes kártyasor ===== */
@media (max-width: 768px) {
    .hiw-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .hiw-steps {
        /* marad vízszintes, nem törjük oszlopba */
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.9rem;

        /* kényelmes swipe */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 0.5rem 0.25rem;
    }

    .step-card {
        /* fix, mobilbarát szélesség: mindhárom vízszintesen, görgethető */
        flex: 0 0 auto;
        width: 260px;
        min-width: 240px;
        scroll-snap-align: start;

        /* kicsit kompaktabb belső tér */
        padding: 1rem 1rem;
        gap: 0.5rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .step-title {
        font-size: 1.0rem;
        line-height: 1.25;
    }

    .step-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Extra szűk mobilokon még kompaktabb */
@media (max-width: 380px) {
    .step-card {
        width: 230px;
        min-width: 220px;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .step-text {
        font-size: 0.86rem;
    }
}

/* ===== Country hero szövegek (cím + alcím) ===== */
.autocomplete-wrapper {
    text-align: center;
    padding: 1.2rem 0 0.6rem;
}

.section-title {
    display: block;
    font-weight: 900;
    line-height: 1.1;
    font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem);
    background: linear-gradient(90deg, #005a5a, #00b5a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* finom, modern gradientes cím */
    letter-spacing: 0.2px;
    margin-bottom: 0.4rem;
}

.section-title::after {
    content: "";
    display: block;
    width: clamp(120px, 20vw, 220px);
    height: 4px;
    margin: 0.6rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a00, #00a58a);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.subheading {
    font-size: clamp(0.98rem, 1vw + 0.5rem, 1.15rem);
    color: #355b5b;
    opacity: 0.95;
    margin-top: 0.6rem;
}

/* kis ritmus az input előtt, hogy lélegezzen a blokk */
#country-search {
    margin-top: 1rem;
}

/* mobil finomhangolás */
@media (max-width: 480px) {
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-title::after {
        width: 140px;
        height: 3px;
    }

    .subheading {
        font-size: 1rem;
    }
}

/* ===== HAMBURGER – landing style ===== */

/* a konténer legyen pozícionált, hogy a lebegő menüdoboz jól elhelyezhető legyen */
.navbar .container {
    position: relative;
}

/* Alap: hamburger rejtve desktopon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #003b3b;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
}

/* Mobil nézet logika */
/* ===== Mobil nézet ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* alapból rejtett menü */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 15px;
        flex-direction: column;
        /* <<< itt változtattam row → column */
        gap: 12px;
        background: #efeadf;
        /* drapp háttér */
        color: #5b4635;
        /* barna szöveg */
        border: 1px solid #e3d9cb;
        /* világos bézs keret */
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

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

    /* mobilon a link színe legyen fehér */
    .nav-links a {
        color: #fff;
    }

    .nav-links .logged-in {
        color: #fff;
    }

    .nav-links .logged-in strong {
        color: #fff;
    }
}

/* ===== Desktop override ===== */
/* === NAVBAR: desktop igazítás a régi (countryregi.css) logikával === */
@media (min-width: 769px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        /* logo balra, nav-links jobbra */
        align-items: center;
    }

    /* Ha korábban rátettük a margin-left:auto-t, most vedd le,
       mert a space-between nélküle is jobbra húzza */
    .nav-links {
        display: flex;
        /* biztos ami biztos */
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 1.5rem;
        margin-left: 0;
        /* ne torzítson, a space-between intézi */
    }

    .hamburger {
        display: none;
    }

    /* desktopon rejtve */
}



@media (max-width: 768px) {
    .hamburger {
        margin-left: auto;
        /* teljesen a jobb szélére tolja */
    }

    /* biztosítjuk, hogy a navbar konténere vízszintesen igazítsa az elemeket */
    .navbar .container {
        display: flex;
        align-items: center;
    }
}

.search-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
}

.suggestions .selected {
    background: rgba(0, 165, 138, 0.12);
}

/* Mobilon a Home és Login gomb kisebb legyen a hamburger menüben */


#checkout-button {
    display: none !important;
}

/* Currency chooser gomb stílus */
/* Currency chooser – narancs stílus */
.btn-currency {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #e65100;
    /* <<< narancs háttér */
    color: #fff;
    /* fehér szöveg */
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;

    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    /* hely a nyílnak */
}

/* Hover állapot */
.btn-currency:hover {
    background: #ff6d1a;
    /* világosabb narancs */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Active állapot */
.btn-currency:active {
    background: #cc4c00;
    /* sötétebb narancs */
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Mobilon a Home, Login és Currency gomb kisebb legyen a hamburger menüben */
@media (max-width: 768px) {

    .nav-links .btn-home,
    .nav-links .btn-login,
    .nav-links .btn-currency {
        font-size: 15px;
        /* <<< nagyobb betűméret */
        padding: 10px 16px;
        /* <<< arányosan nagyobb belső méret */
        border-radius: 24px;
        /* <<< lekerekítés kicsit növelve, hogy arányos maradjon */
    }
}

#cart-icon,
#checkout-button {
    display: none !important;
}

/* Új: ha mobil, a label legyen a lap tetején */
@media (max-width: 768px) {
    .top-label {
        display: block;
        margin: 1rem auto 0.5rem;
        /* kis felső margó csak */
        text-align: center;
    }

    .autocomplete-wrapper {
        margin: 0 auto 2rem !important;
        /* ne tolja le a labelt */
        padding-top: 0;
        /* ne duplázzon */
    }
}