/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

p {
    font-family: 'Poppins', sans-serif !important;
}

:root {
    --primary-teal: #428585;
    /* Il verde petrolio del tuo brand */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333;

    /* Variabili About Page */
    --teal: #3d8c8c;
    --teal-dark: #2d6b6b;
    --teal-light: #5ab5b5;
    --black: #111111;
    --gray-bg: #f5f5f3;
    --gray-card: #efefec;
    --text-body: #444;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 16px;
    --nav-h: 64px;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

.top-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 8%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-teal);
    font-weight: 500;

}

.btn-login {
    border: 1px solid var(--primary-teal);
    background: transparent;
    padding: 8px 25px;
    border-radius: 5px;
    color: var(--primary-teal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-teal);
    border-color: #ffffff;
    color: #ffffff;
}

/* --- HERO SECTION --- */
.main-header {
    min-height: 95vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 120px 8% 90px;
    position: relative;
    box-sizing: border-box;
}

.header-content {
    max-width: 600px;
}

.tagline {
    color: var(--primary-teal);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.main-title {
    font-size: 3rem;
    color: var(--primary-teal);
    margin: 20px 0;
    line-height: 1.2;
}

/* Barre di ricerca flottante */
.search-bar-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: -50px;
    width: 90%;
    max-width: 1100px;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

.search-inputs-wrap {
    display: flex;
    background: white;
    border-radius: 8px;
    flex: 1;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* leggero shadow interno */
}

.search-input-box {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 12px 18px;
    gap: 12px;
}

.search-input-box:first-child {
    flex: 1.5;
    /* Dà più spazio al campo destinazione rispetto a data e viaggiatori */
}

.search-input-box .icon-main {
    width: 22px;
    height: 22px;
    color: #999;
}

.input-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-content label {
    font-size: 0.85rem;
    color: #2b3d51;
    font-weight: 700;
    margin-bottom: 2px;
}

.input-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-field input {
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2b3d51;
    outline: none;
    width: 100%;
    background: transparent;
}

.input-field input::placeholder {
    color: #8fa0b5;
    font-weight: 300;
}

.icon-chevron {
    width: 16px;
    height: 16px;
    color: #b0b0b0;
    cursor: pointer;
}

.search-inputs-wrap .divider {
    width: 1px;
    height: 35px;
    background-color: #ebebeb;
}

/* --- HEADER IMAGES SLIDER --- */
.header-images-slider {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 90%;
    pointer-events: none;
    z-index: 5;
}

.header-images-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* La slide scompare in dissolvenza quando esce */
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-images-slider .slide.active {
    opacity: 1;
    z-index: 10;
    /* Appare istantaneamente così vediamo l'animazione interna */
    transition: opacity 0.1s;
}

/* Animazione di scorrimento delle immagini interne */
.header-images-slider .slide .bg-img {
    transform: translateX(300px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.header-images-slider .slide .fg-img {
    transform: translateX(450px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Quando la slide diventa attiva, scorrono verso 0 */
.header-images-slider .slide.active .bg-img {
    transform: translateX(0);
    opacity: 1;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0s, opacity 1s ease 0s;
}

.header-images-slider .slide.active .fg-img {
    transform: translateX(0);
    opacity: 1;
    /* Il ritardo di 0.3s fa scorrere l'immagine in primo piano "leggermente dopo" */
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s, opacity 1.2s ease 0.3s;
}

.header-images-slider .bg-img {
    position: absolute;
    width: 70%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

.header-images-slider .fg-img {
    position: absolute;
    width: 60%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    right: -11.11%;
    /* Questo compensa esattamente il right: 5% del contenitore padre (5/45 = 11.11%) */
    bottom: 0px;
}

/* --- REGOLE SPECIFICHE PER FIRE_1 --- */
.header-images-slider .bg-img[src*="fire_1"] {
    /* Scrivi qui il CSS personalizzato per fire_1, se devi cambiarne proporzioni/posizione rispetto alle altre bg-img */
    width: 50%;
    height: auto;
}

/* --- REGOLE SPECIFICHE PER FIRE_1 --- */
.header-images-slider .fg-img[src*="earth_2"] {
    /* Scrivi qui il CSS personalizzato per fire_1, se devi cambiarne proporzioni/posizione rispetto alle altre bg-img */
    width: 100%;
    height: auto;
}

/* --- REGOLE SPECIFICHE PER FIRE_1 --- */
.header-images-slider .fg-img[src*="air_2"] {
    /* Scrivi qui il CSS personalizzato per fire_1, se devi cambiarne proporzioni/posizione rispetto alle altre bg-img */
    width: 30%;
    height: auto;
    right: 35%;
    /* Questo compensa esattamente il right: 5% del contenitore padre (5/45 = 11.11%) */
    bottom: 400px;
}

.btn-search {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(66, 133, 133, 0.3);
}

.section-explore-redesign {
    padding: 120px 8% 60px;
    position: relative;
}

.section-explore-redesign .container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.text-block-explore {
    max-width: 500px;
    margin-left: -40px;
}

.small-tag.explore-tag {
    background: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-teal);
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.main-explore-title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

.text-teal {
    color: var(--primary-teal);
}

.text-block-explore p {
    color: #9aa1a7;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 45px;
    font-weight: 400;
}

.btn-explore {
    padding: 16px 36px;
    border-radius: 40px;
    background-color: var(--primary-teal);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 20px 40px rgba(66, 133, 133, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(66, 133, 133, 0.5);
}

/* Gallery 4-Image Grid Layout */
.explore-gallery-grid {
    position: relative;
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    margin-right: 120px;
}

.explore-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.explore-col-left {
    margin-top: 60px;
}

.explore-col-right {
    margin-top: 0;
}

.explore-img {
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.explore-col-left .top-left {
    width: 240px;
    height: 310px;
}

.explore-col-left .bottom-left {
    width: 240px;
    height: 310px;
}

.explore-col-right .top-right {
    width: 240px;
    height: 150px;
}

.explore-col-right .bottom-right {
    width: 240px;
    height: 350px;
}

/* Decorators */
.dec-flight-1 {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 260px;
    z-index: -1;
}

.dec-flight-2 {
    position: absolute;
    top: 180px;
    right: -150px;
    width: 200px;
    z-index: -1;
}

.dec-icon-plane {
    position: absolute;
    top: 0px;
    left: -90px;
    z-index: 5;
}

.dec-icon-pin {
    position: absolute;
    bottom: -80px;
    left: -10px;
    z-index: 5;
}

.dec-sketch-top {
    position: absolute;
    top: 100px;
    right: 2%;
    width: 150px;
    z-index: -2;
}

.dec-sketch-bottom {
    position: absolute;
    bottom: -300px;
    right: 0;
    width: 146px;
    z-index: -2;
}


/* --- SECTION: EXPLORE CAROUSEL (Flip Cards) --- */
.section-explore {
    position: relative;
    z-index: 10;
    /* Assicura che le card stiano sopra gli elementi sbordanti dalla sezione stats successiva */
    padding-top: 80px;
}

.explore-dec-parasut {
    position: absolute;
    top: 20px;
    left: 10%;
    width: 120px;
    opacity: 0.8;
    z-index: -1;
}

.explore-dec-hill {
    position: absolute;
    top: 240px;
    left: 10%;
    width: 150px;
    opacity: 0.6;
    z-index: -1;
}

.explore-dec-shape1 {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 300px;
    opacity: 0.7;
    z-index: -1;
}

.explore-dec-map {
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 400px;
    opacity: 0.3;
    z-index: -1;
    transform: rotate(-10deg);
}

.explore-title-block {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.explore-title-block .main-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-size: 55px;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

.explore-title-block .main-desc {
    font-family: 'Poppins', Helvetica, sans-serif;
    color: #9aa1a7;
    max-width: 767px;
    margin: 0 auto 45px auto;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

.explore-tag-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.explore-carousel-wrapper {
    width: 100%;
    max-width: 1227px;
    margin: 0 auto;
    padding: 0 0 50px 0;
}

.carousel-track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Nasconde scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Nasconde scrollbar WebKit */
}

.carousel-slide {
    display: grid;
    grid-template-columns: repeat(3, 393px);
    grid-template-rows: repeat(2, 270px);
    gap: 24px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.flip-card {
    width: 100%;
    height: 100%;
    perspective: 1000px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.flip-card-front {
    z-index: 2;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.face-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.face-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 30px;
}

.colored-bg {
    background-color: var(--primary-teal, #428585);
    color: white;
}

.face-graphic .icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.face-graphic .icon-box img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.face-graphic .icon-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 22px;
}

.face-graphic .icon-box p {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #ffffff;
}

/* --- STATS BAR --- */
.section-stats {
    background: #ffffff;
    padding: 30px 5%;
    /* Ridotto da 80px a 30px per diminuire l'altezza */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* overflow: hidden; RIMOSSO in modo che la mappa possa sbordare in altezza */
    margin-top: 50px;
}

.stats-dec-map {
    position: absolute;
    top: 40%;
    left: -5%;
    transform: translateY(-50%);
    height: 400%;
    width: auto;
    opacity: 0.8;
    z-index: 0;
    /* Deve essere 0 o maggiore per non sparire dietro il background bianco di .section-stats */
}

.stat-items {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.stat-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Spazio tra icona e gruppo di testo */
}

.stat-icon-img {
    height: 85px;
    width: auto;
    position: relative;
    z-index: 2;
}

.stat-text-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    /* Spazio per allineare correttamente testo e numero */
}

.stat-bg-number {
    position: absolute;
    top: 50%;
    left: 70%;
    /* Centrato nel gruppo di testo */
    transform: translate(-50%, -50%);
    font-size: 110px;
    font-weight: 800;
    color: #f5f5f5;
    z-index: 0;
    font-family: 'Poppins', Helvetica, sans-serif;
    white-space: nowrap;
    letter-spacing: -2px;
}

.stat-text-group p {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #020615;
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

/* --- SECTION: PIANIFICA OGGI --- */
.section-plan {
    position: relative;
    padding: 100px 8% 60px;
    /* Ripristinato un po' di padding per staccare i contenuti dal footer */
    z-index: 1;
}

.section-plan .container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.plan-gallery-wrapper {
    position: relative;
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-gallery {
    position: relative;
    width: 500px;
    height: 500px;
    transform: scale(1.1) translateX(-30px);
    /* Ingrandisce tutto del 10% e lo sposta verso sinistra */
    transform-origin: center center;
}

.img-plan-back {
    position: absolute;
    bottom: 30px;
    left: -30px;
    width: 280px;
    height: 330px;
    object-fit: cover;
    border-radius: 15px;
    border: 10px solid #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: rotate(-6deg);
    z-index: 1;
}

.img-plan-front {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 340px;
    height: 520px;
    object-fit: cover;
    border-radius: 15px;
    border: 10px solid #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    transform: rotate(6deg);
    z-index: 2;
}

.plan-dec-badge {
    position: absolute;
    top: -20px;
    left: 60px;
    /* Spostato più a sinistra rispetto ai 120px di prima */
    width: 130px;
    /* Ingrandito leggermente rispetto a 100px */
    z-index: 3;
}

.plan-dec-statue {
    position: absolute;
    right: -160px;
    bottom: -180px;
    /* Spinto ancora più giù per coprire l'ultimo gap rimanente */
    width: 230px;
    z-index: 0;
    opacity: 0.3;
}

/* --- POPULAR LOCATIONS --- */
.popular-locations {
    margin-top: 40px;
    width: 100%;
}

.locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.locations-header h3 {
    color: var(--primary-teal);
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-arrow-right {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow-right svg {
    width: 100%;
    height: 100%;
}

.location-cards-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    /* Scrollbar minimal */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Snap for scrolling */
    scroll-snap-type: x mandatory;
}

.location-cards-wrapper::-webkit-scrollbar {
    display: none;
}

.location-cards {
    display: flex;
    gap: 20px;
    min-width: max-content;
}

.location-card {
    background: #f8fbfb;
    border-radius: 16px;
    padding: 12px;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    scroll-snap-align: start;
    border: 1px solid #eef2f2;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.location-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.card-info {
    padding: 15px 5px 5px;
}

.card-info h4 {
    color: #0b2b4d;
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.card-info p {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #426978;
    font-size: 0.85rem;
}

.card-info p svg {
    width: 16px;
    height: 16px;
}

/* --- FOOTER --- */
.main-footer {
    position: relative;
    background-color: var(--primary-teal);
    color: #020615;
    padding: 80px 8% 20px;
    /* Aumentato il padding-top da 80px a 120px per dare più agio */
    margin-top: 100px;
    /* Ripristinato lo spazio di respiro per la pagina */
    overflow: hidden;
    /* Taglia il testo gigante in basso */
    z-index: 1;
    height: 25rem;
}

.footer-bg-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(2, 6, 21, 0.5) 0%, rgba(2, 6, 21, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-contact p,
.footer-social p {
    font-size: 14px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(2, 6, 21, 0.05);
    color: #020615;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #020615;
    color: white;
    transform: translateY(-3px);
}

.font-bold {
    font-weight: 700;
}

.footer-cta {
    text-align: center;
}

.footer-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    font-family: 'Poppins', Helvetica, sans-serif;
    color: #020615;
}

.btn-footer-dark {
    background-color: #172836;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.footer-huge-text {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 160px;
    font-family: 'Anton SC', sans-serif;
    /* Applicato il font richiesto */
    font-weight: 400;
    /* Anton SC è tipicamente caricato a wght 400 */
    color: #020615;
    line-height: 1;
    white-space: nowrap;
    z-index: 0;
    text-transform: uppercase;
}

/* Autocomplete search bar */
.autocomplete-items {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a334d;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.autocomplete-item img {
    border-radius: 2px;
}

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

.autocomplete-item:hover {
    background-color: #f4f6f8;
}

.autocomplete-items {
    position: absolute;
    top: calc(100% + 15px);
    left: -20px;
    width: 380px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding-bottom: 10px;
}

.autocomplete-header {
    padding: 20px 20px 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a334d;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: background-color 0.2s;
}

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

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.autocomplete-text {
    display: flex;
    flex-direction: column;
}

.auto-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.auto-sub {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* Dropdown Durata */
.duration-dropdown-container {
    position: absolute;
    top: calc(100% + 15px);
    left: -20px;
    width: 330px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 24px;
}

.duration-counter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dur-label {
    font-weight: 700;
    color: #1a334d;
    font-size: 1rem;
    white-space: nowrap;
}

.dur-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-dur {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #dcdfe4;
    background: white;
    color: #1a334d;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding-bottom: 3px;
    /* visual center for +/- */
}

.btn-dur:hover {
    border-color: #1a334d;
    background: #f8f9fa;
}

#dur-value {
    font-weight: 700;
    font-size: 1.15rem;
    min-width: 25px;
    text-align: center;
    color: #111;
}

/* Dropdown Viaggiatori */
.travelers-dropdown-container {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 24px;
}

.traveler-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.traveler-row:last-child {
    margin-bottom: 0;
}

.trav-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111;
}

.trav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
    height: 44px;
    border: 1px solid #757575;
    border-radius: 6px;
    padding: 0 5px;
}

.btn-trav {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding-bottom: 3px;
    color: #006ce4;
}

.btn-trav:hover {
    background: rgba(0, 108, 228, 0.05);
    border-radius: 4px;
}

.trav-val {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111;
    min-width: 20px;
    text-align: center;
}

/* --- CITY PAGE STYLES --- */

/* City Hero */
.city-hero-wrapper {
    padding-top: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.city-hero {
    position: relative;
    width: 90%;
    max-width: 1300px;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    margin-bottom: 80px;
}

.city-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 40px;
}

.city-hero-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

/* City Main Layout */
.city-container {
    display: flex;
    padding: 0 8% 80px;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.city-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: #8fa0b5;
    font-weight: 400;
}

/* Map Box */
.sidebar-map-box {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.sidebar-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Range Chart */
.range-chart {
    position: relative;
}

.range-graph-svg {
    width: 100%;
    height: 60px;
    display: block;
}

.range-slider-track {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: -2px;
}

.range-slider-fill {
    position: absolute;
    left: 0;
    right: 20%;
    height: 100%;
    background: #de1e5a;
    border-radius: 2px;
}

.range-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #de1e5a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.thumb-min {
    left: 0%;
}

.thumb-max {
    left: 80%;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.range-val {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.text-right {
    text-align: right;
}

/* Unified Chip Filters */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-checkbox-label {
    cursor: pointer;
    display: inline-flex;
}

.chip-checkbox {
    display: none;
}

.chip-text {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #eee;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.2s;
}

.chip-checkbox:checked+.chip-text {
    border-color: var(--primary-teal);
    background: rgba(66, 133, 133, 0.05);
    color: var(--primary-teal);
    font-weight: 500;
}

.chip-text img {
    opacity: 0.6;
    transition: all 0.2s;
}

.chip-checkbox:checked+.chip-text img {
    filter: invert(36%) sepia(51%) saturate(545%) hue-rotate(130deg) brightness(95%) contrast(85%) !important;
    opacity: 1;
}

.chip-text .star-icon {
    color: #ccc;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.chip-checkbox:checked+.chip-text .star-icon {
    color: #f5b041;
}

.see-more-link {
    font-size: 0.85rem;
    color: #006ce4;
    text-decoration: none;
    font-weight: 500;
    margin-top: 5px;
    width: 100%;
}

/* Sidebar Actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.clear-all {
    color: var(--primary-teal);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-tours-found {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

/* Tours Grid */
.city-tours-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Tour Card */
.tour-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tour-img-box {
    position: relative;
    width: 100%;
    padding-top: 70%;
    /* Aspect ratio */
}

.tour-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #999;
    transition: all 0.3s ease;
}

.tour-heart-btn svg {
    transition: fill 0.3s ease, stroke 0.3s ease, transform 0.2s ease;
}

.tour-heart-btn:active svg {
    transform: scale(1.3);
}

.tour-heart-btn.active {
    color: var(--primary-teal);
}

.tour-heart-btn.active svg {
    fill: var(--primary-teal);
    stroke: var(--primary-teal);
}

.tour-rating-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.review-count {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    margin-left: 5px;
}

.tour-info {
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.tour-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tour-price {
    display: flex;
    flex-direction: column;
}

.price-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.price-unit {
    font-size: 0.75rem;
    color: #888;
}

.btn-book {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-book:hover {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .city-container {
        flex-direction: column;
    }

    .city-sidebar {
        width: 100%;
    }
}

/* ============================================================
   TripTailor About Us Page Styles
   ============================================================ */

body.about-page {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

/* ─── NAV ACTIVE STATE ────────────────────────────────────── */
.nav-links a.active {
    color: var(--primary-teal) !important;
    border-bottom: 2px solid var(--primary-teal);
    padding-bottom: 4px;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    padding: 120px 60px 40px;
    /* Spazio per la nav bar assoluta */
    gap: 40px;
    align-items: center;
    background: var(--white);
    position: relative;
}

.hero-tag {
    display: inline-block;
    border: 1.5px solid #ccc;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 500;
    padding: 6px 18px;
    margin-bottom: 24px;
    color: var(--text-body);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--teal);
}

.hero-body {
    font-size: .96rem;
    line-height: 1.75;
    color: var(--text-body);
    max-width: 420px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-visual img {
    width: 100%;
    max-width: 380px;
    object-fit: contain;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    position: absolute;
    bottom: 30px;
    left: 10px;
    z-index: 2;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(61, 140, 140, .35);
}

.hero-badge span {
    font-size: 1.5rem;
    font-weight: 900;
}

/* ─── PILLARS ─────────────────────────────────────────────── */
.pillars {
    padding: 80px 60px;
    background: var(--gray-bg);
}

.pillars-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
}

.section-title .highlight {
    color: var(--teal);
}

.pillars-intro {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--text-body);
    padding-top: 8px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pillar-card {
    background: var(--gray-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .25s, box-shadow .25s;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.pillar-card.teal-card {
    background: var(--teal);
    color: var(--white);
}

.pillar-card.teal-card .pillar-desc {
    color: rgba(255, 255, 255, .85);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.teal-card .pillar-icon {
    background: rgba(255, 255, 255, .15);
}

.default-card .pillar-icon {
    background: var(--teal);
    color: var(--white);
}

.pillar-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.pillar-desc {
    font-size: .875rem;
    line-height: 1.65;
    color: var(--text-body);
}

/* ─── TEAM ────────────────────────────────────────────────── */
.team-section {
    padding: 80px 60px;
    background: var(--white);
    text-align: center;
}

.team-tag {
    display: inline-block;
    border: 1.5px solid #ccc;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 500;
    padding: 6px 18px;
    margin-bottom: 20px;
    color: var(--text-body);
}

.team-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 56px;
}

.team-title .highlight {
    color: var(--teal);
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.team-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 4px;
}

.feature-name {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feature-desc {
    font-size: .82rem;
    color: var(--text-body);
    max-width: 180px;
}

.team-photo-wrap {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--gray-bg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .6) 100%);
    z-index: 1;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: url('../img/cta-bg.jpg') center / cover no-repeat;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--white);
    max-width: 600px;
    margin-bottom: 28px;
    line-height: 1.25;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, .45);
    color: var(--white);
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 13px 28px;
    border-radius: 99px;
    cursor: pointer;
    transition: background-color .25s, transform .2s;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: rgba(255, 255, 255, .28);
    transform: translateY(-2px);
}

.cta-watermark {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    color: rgba(255, 255, 255, .08);
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .pillars-header {
        grid-template-columns: 1fr;
    }

    .pillars {
        padding: 48px 20px;
    }

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

    .team-section {
        padding: 48px 20px;
    }

    .team-layout {
        grid-template-columns: 1fr;
    }

    .team-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-photo-wrap {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .hero-visual img {
        max-width: 260px;
    }
}

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

/* ============================================================
   ABOUT US — da aggiungere in fondo a style.css
   ============================================================ */


/* --- SECTION: ABOUT HERO --- */
.section-about-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 8% 60px;
}

.section-about-hero .container-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.about-hero-visual {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.about-hero-img {
    width: 100%;
    max-width: 440px;
    object-fit: contain;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

.about-hero-badge {
    position: absolute;
    bottom: 24px;
    left: -10px;
    z-index: 2;
    background: var(--primary-teal);
    color: #fff;
    border-radius: 50%;
    width: 105px;
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 28px rgba(66, 133, 133, 0.4);
}

.about-hero-badge .badge-number {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.about-hero-badge .badge-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 2px;
}


/* --- SECTION: PILLARS --- */
.section-pillars .main-title,
.section-team .main-title {
    color: #1a1a1a;
}

.section-pillars {
    position: relative;
    padding: 80px 8%;
    background: #f5f5f3;
    overflow: hidden;
}

.pillars-dec-map {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    opacity: 0.06;
    pointer-events: none;
}

.pillars-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
}

.pillars-intro {
    max-width: 460px;
    color: #111;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    padding-top: 10px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pillar-card {
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
}

.pillar-card--teal {
    background: var(--primary-teal);
    color: #fff;
}

.pillar-card--teal .pillar-desc {
    color: rgba(255, 255, 255, 0.82);
}

.pillar-card--teal .pillar-icon-box {
    background: rgba(255, 255, 255, 0.15);
}

.pillar-card--light {
    background: #efefec;
    color: #111;
    transform: translateY(30px);
}

.pillar-card--light:hover {
    transform: translateY(25px);
}

.pillar-card--light .pillar-name {
    color: var(--primary-teal);
}

.pillar-card--light .pillar-desc {
    color: #111;
}

.pillar-card--light .pillar-icon-box {
    background: var(--primary-teal);
}

.pillar-card--light .pillar-icon-box img {
    filter: brightness(0) invert(1);
}

.pillar-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.pillar-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
}

.pillar-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #555;
}


/* --- SECTION: TEAM --- */
.section-team {
    position: relative;
    padding: 80px 8% 0;
    background: #fff;
    text-align: center;
    overflow: visible;
    z-index: 6;
}

.section-team .text-block.centered {
    margin-bottom: 56px;
}

.section-team .small-tag.explore-tag {
    margin-bottom: 16px;
}

.team-layout {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 460px;
    margin: 0 auto;
}

.team-orbit-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#feat-0 {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 220px;
}

#feat-1 {
    position: absolute;
    bottom: 40px;
    left: 10px;
    width: 220px;
}

#feat-2 {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 220px;
}

#feat-3 {
    position: absolute;
    bottom: 40px;
    right: 10px;
    width: 220px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon-box {
    width: 54px;
    height: 54px;
    background: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.feature-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #111;
}

.feature-desc {
    font-size: 0.83rem;
    color: #9aa1a7;
    max-width: 180px;
    line-height: 1.55;
    text-align: center;
}

.team-photo-wrap {
    position: relative;
    width: 360px;
    height: 390px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    flex-shrink: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.team-photo-wrap::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: transparent;
    border: 32px solid var(--primary-teal);
    opacity: 0.25;
    z-index: 0;
    transition: transform 0.3s, border-color 0.3s;
}

.team-photo-wrap img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

.team-dec-badge {
    position: absolute;
    bottom: 24px;
    right: 8%;
    width: 90px;
    opacity: 0.85;
    pointer-events: none;
}


/* --- SECTION: CTA CARRIERE --- */
/* --- SECTION: CTA CARRIERE --- */
.section-cta-careers {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 100px 8% 180px;
    background: #fff url('../img/onda.png') no-repeat center 40%;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 580px;
    overflow: hidden;
    z-index: 5;
}

.section-cta-careers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.section-cta-careers .cta-content {
    position: relative;
    width: 100%;
    max-width: 90%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cta-careers-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    max-width: 950px;
    letter-spacing: -1px;
    text-align: center;
}

.cta-careers-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 13px 28px;
    border-radius: 99px;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, transform 0.2s;
    text-decoration: none;
    box-shadow: none;
}

.cta-careers-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    color: #ffffff;
}

.cta-watermark {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    font-family: 'Anton SC', sans-serif;
    font-size: clamp(2rem, 6.2vw, 150px);
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.dec-camera {
    position: absolute;
    top: 30px;
    right: -40px;
    width: 60px;
    z-index: 0;
    transform: rotate(18deg);
    opacity: 0.5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
    animation: floatCamera 5s ease-in-out infinite alternate;
}

.dec-cap {
    position: absolute;
    top: 90px;
    left: -50px;
    width: 60px;
    z-index: 0;
    transform: rotate(-20deg);
    opacity: 0.5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
    animation: floatCap 5s ease-in-out infinite alternate;
}

@keyframes floatCamera {
    0% {
        transform: rotate(18deg) translateY(0);
    }

    100% {
        transform: rotate(22deg) translateY(-6px);
    }
}

@keyframes floatCap {
    0% {
        transform: rotate(-20deg) translateY(0);
    }

    100% {
        transform: rotate(-16deg) translateY(-6px);
    }
}

/* --- TEAM CAROUSEL & ROTATION STYLES --- */
.team-photo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 360px;
    margin: 0;
    z-index: 2;
}

.team-info-box {
    text-align: center;
    min-height: 40px;
}

.team-member-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-teal);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.team-member-desc {
    font-size: 0.9rem;
    color: #9aa1a7;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 280px;
}

.team-nav-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.team-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #f5f5f3;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.team-thumb:hover {
    transform: scale(1.1);
}

.team-thumb.active {
    border-color: var(--primary-teal);
    box-shadow: 0 8px 20px rgba(66, 133, 133, 0.3);
    transform: scale(1.15);
}

/* Animations for Team Rotation Carousel */
.team-photo-wrap.fade-animation {
    animation: photoFadeOnly 0.8s ease;
}

.team-orbit-wrapper.fade-animation .feature-item {
    animation: mobileFeatureFade 0.8s ease;
}

@keyframes photoFadeOnly {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes infoFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    40% {
        opacity: 0;
        transform: translateY(10px);
    }

    60% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileFeatureFade {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0.2;
    }

    60% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}


/* --- RESPONSIVE ABOUT --- */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .section-about-hero,
    .section-pillars,
    .section-team {
        padding: 48px 5%;
    }

    .section-about-hero .container-flex {
        flex-direction: column;
        gap: 36px;
    }

    .about-hero-img {
        max-width: 320px;
    }

    .dec-camera {
        width: 45px;
        right: -20px;
        top: 20px;
        opacity: 0.5;
    }

    .dec-cap {
        width: 45px;
        left: -25px;
        top: 60px;
        opacity: 0.5;
    }

    .pillars-header {
        flex-direction: column;
        gap: 12px;
    }

    .team-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 30px;
    }

    .team-photo-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        order: -1;
        width: 100%;
    }

    .team-photo-wrap {
        width: 280px;
        height: 300px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .team-photo-wrap::before {
        width: 240px;
        height: 240px;
        bottom: 15px;
        border-width: 24px;
    }

    .team-orbit-wrapper {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
        width: 100%;
        max-width: 600px;
        height: auto;
        z-index: 1;
        animation: none !important;
    }

    .team-orbit-wrapper .feature-item {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin: 0 auto;
        animation: none !important;
    }

    .team-orbit-wrapper.spin-animation .feature-item {
        animation: mobileFeatureFade 0.8s ease !important;
    }

    .section-cta-careers {
        margin-top: 0;
        padding: 80px 5% 100px;
        min-height: auto;
        background-size: 100% 100%;
    }

    .section-cta-careers .cta-content {
        width: 100%;
        max-width: 100%;
        z-index: 2;
    }

    .cta-careers-title {
        font-size: 2rem;
    }
}

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

    .pillar-card--light {
        transform: none;
    }

    .pillar-card--light:hover {
        transform: translateY(-5px);
    }

    .team-orbit-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-watermark {
        display: none;
    }
}

/* --- CAREERS MODAL --- */
.careers-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.careers-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.careers-modal-container {
    background-color: var(--primary-teal);
    width: 90%;
    max-width: 1050px;
    border-radius: 24px;
    position: relative;
    padding: 85px 70px 60px 70px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.careers-modal-overlay.active .careers-modal-container {
    transform: translateY(0);
}

/* Close Button */
.careers-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.careers-modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0.15);
}

.careers-modal-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Left Column */
.careers-info-col {
    flex: 1;
    text-align: left;
}

.careers-modal-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    color: #fff;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.careers-modal-title .text-blue {
    color: #ffffff;
}

.careers-modal-desc {
    font-family: var(--font-body), sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
}

/* Right Column */
.careers-form-col {
    flex: 1.2;
    width: 100%;
}

.careers-form-col form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-group-half {
    flex: 1;
}

.form-group-full {
    width: 100%;
}

.careers-input,
.careers-textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    color: #1a202c;
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-body), sans-serif;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.careers-input:focus,
.careers-textarea:focus {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

/* File Upload Custom Style */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    color: #1a202c;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.25s, border-color 0.25s;
    font-family: var(--font-body), sans-serif;
}

.file-upload-wrapper:focus-within .file-upload-label {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.file-upload-btn {
    background-color: #f7fafc;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    margin-right: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    transition: background-color 0.2s;
}

.file-upload-label:hover .file-upload-btn {
    background-color: #edf2f7;
}

.file-upload-text {
    color: #718096;
}

.careers-file-input {
    display: none;
}

.consent-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.careers-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.careers-checkbox-label {
    font-size: 0.85rem;
    color: #cbd5e0;
    line-height: 1.45;
    cursor: pointer;
    font-family: var(--font-body), sans-serif;
}

.careers-checkbox-label a {
    color: #3b82f6;
    text-decoration: underline;
}

.form-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.careers-submit-btn {
    background-color: #ffffff;
    color: var(--primary-teal);
    padding: 16px 36px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body), sans-serif;
}

.careers-submit-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

/* --- RESPONSIVE CAREERS MODAL --- */
@media (max-width: 900px) {
    .careers-modal-content {
        flex-direction: column;
        gap: 30px;
    }

    .careers-modal-container {
        padding: 65px 30px 40px 30px;
        overflow-y: auto;
        max-height: 90%;
        border-radius: 16px;
    }

    .careers-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* --- BLOG PAGE DESIGN --- */
.blog-main-content {
    padding: 130px 4% 50px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 30px;
}

/* Title Element */
.blog-title-container {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align the title and description to the right of the cell */
    padding-top: 20px;
}

.blog-main-title {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 8vw, 6rem);
    /* Slightly larger font size for single-line title */
    color: #1a202c;
    margin: 0;
    line-height: 1.1;
    text-align: right;
    letter-spacing: -1.5px;
}

.blog-title-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-top: 15px;
    font-weight: 400;
    max-width: 280px;
    /* wrap nicely inside the column slot */
    text-align: right;
}

/* General Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, opacity 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.07);
    opacity: 1;
    transform: scale(1);
}

.blog-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    display: none !important;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.09);
}

.blog-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.07);
}

.blog-card-body {
    background-color: #edf2f7;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    font-family: var(--font-body), sans-serif;
}

.blog-card-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a202c;
    line-height: 1.35;
    margin: 0 0 12px 0;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-teal);
}

.blog-card-excerpt {
    font-family: var(--font-body), sans-serif;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.blog-card-divider {
    border: none;
    height: 1px;
    background-color: #cbd5e0;
    margin: auto 0 16px 0;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #718096;
    font-family: var(--font-body), sans-serif;
}

.blog-card-footer svg {
    opacity: 0.7;
}

/* Card Types */

/* 1. Normal Vertical Card */
.blog-card-vertical {
    grid-column: span 1;
    flex-direction: column;
}

.blog-card-vertical .blog-card-img-wrapper {
    height: 240px;
    width: 100%;
}

/* 2. Tall Vertical Card */
.blog-card-tall {
    grid-column: span 1;
    flex-direction: column;
}

.blog-card-tall .blog-card-img-wrapper {
    height: 350px;
    width: 100%;
}

/* 3. Short Vertical Card */
.blog-card-short {
    grid-column: span 1;
    flex-direction: column;
}

.blog-card-short .blog-card-img-wrapper {
    height: 160px;
    width: 100%;
}

.blog-card-short .blog-card-body {
    padding: 22px 20px;
}

/* 4. Landscape Card */
.blog-card-landscape {
    grid-column: span 2;
    flex-direction: row;
}

.blog-card-landscape .blog-card-img-wrapper {
    width: 50%;
    height: 100%;
    min-height: 280px;
}

.blog-card-landscape .blog-card-body {
    width: 50%;
}

/* Media Queries */
@media (max-width: 1150px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-title-container {
        grid-column: span 3;
        justify-content: center;
        text-align: center;
        padding-bottom: 15px;
    }

    .blog-card-landscape {
        grid-column: span 2;
    }
}

@media (max-width: 850px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-title-container {
        grid-column: span 2;
    }

    .blog-card-landscape {
        grid-column: span 2;
        flex-direction: column;
    }

    .blog-card-landscape .blog-card-img-wrapper,
    .blog-card-landscape .blog-card-body {
        width: 100%;
    }

    .blog-card-landscape .blog-card-img-wrapper {
        height: 240px;
    }
}

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

    .blog-title-container {
        grid-column: span 1;
    }

    .blog-card-landscape {
        grid-column: span 1;
    }

    .blog-card-vertical,
    .blog-card-tall,
    .blog-card-short {
        grid-column: span 1;
    }
}

/* --- ARTICLE DETAIL PAGE --- */
.article-detail-content {
    padding: 130px 4% 100px;
    max-width: 1300px;
    margin: 0 auto;
    background-color: #ffffff;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-teal);
    text-decoration: none;
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: transform 0.25s ease, color 0.2s;
}

.article-back-link:hover {
    transform: translateX(-4px);
    color: #316565;
}

.article-meta-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
    font-family: var(--font-body), sans-serif;
}

.article-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #1a202c;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -1.2px;
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 35px;
    font-family: var(--font-body), sans-serif;
}

.article-author-meta .divider {
    width: 1px;
    height: 14px;
    background-color: #cbd5e0;
}

.article-cover-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 45px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    aspect-ratio: 16 / 9;
}

.article-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-family: var(--font-body), sans-serif;
    font-size: 1.18rem;
    line-height: 1.9;
    color: #2d3748;
    max-width: 850px;
    margin: 0 auto 50px;
}

.article-body p {
    margin-bottom: 25px;
}

.article-blockquote {
    border-left: 4px solid var(--primary-teal);
    padding: 20px 25px;
    background-color: #edf2f7;
    border-radius: 0 16px 16px 0;
    margin: 35px 0;
    font-style: italic;
    color: #4a5568;
    font-size: 1.08rem;
    font-family: var(--font-body), sans-serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.article-blockquote-author {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    font-style: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-teal);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary-teal);
}

/* Related Posts Section */
.related-posts-section {
    border-top: 1px solid #edf2f7;
    padding-top: 50px;
    margin-top: 50px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.related-posts-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #1a202c;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 850px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- AUTH MODAL (LOGIN & SIGN UP) --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-container {
    background-color: var(--primary-teal);
    width: 90%;
    max-width: 560px;
    border-radius: 24px;
    position: relative;
    padding: 40px 40px 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 95vh;
    overflow-y: auto;
}

.auth-modal-overlay.active .auth-modal-container {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.auth-modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Auth Switcher */
.auth-switcher {
    display: flex;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    margin: 0 auto 20px;
    max-width: 320px;
}

.auth-switcher-btn {
    flex: 1;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 26px;
    padding: 12px;
    font-weight: 500;
    font-family: var(--font-body), sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-switcher-btn.active {
    background-color: #ffffff;
    color: var(--primary-teal);
    font-weight: 600;
}

/* Auth Content Tabs */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.auth-modal-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Social Buttons */
.social-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    color: #1a202c;
    border: none;
    border-radius: 30px;
    padding: 12px;
    font-weight: 600;
    font-family: var(--font-body), sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.social-login-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-login-btn svg {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-divider:not(:empty)::before {
    margin-right: 15px;
}

.auth-divider:not(:empty)::after {
    margin-left: 15px;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
    font-family: var(--font-body), sans-serif;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 550px) {
    .auth-modal-container {
        padding: 50px 25px 40px;
        width: 95%;
    }
}

/* --- MAP MODAL & INTERACTIVE MAPS --- */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.map-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.map-modal-container {
    background-color: #ffffff;
    width: 90%;
    max-width: 1100px;
    height: 80vh;
    border-radius: 24px;
    position: relative;
    padding: 35px 30px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-modal-overlay.active .map-modal-container {
    transform: translateY(0);
}

.sidebar-map-box {
    cursor: pointer;
    position: relative;
    height: 150px !important;
    /* Make sidebar map preview a bit taller and clearer */
}

.sidebar-map-box:hover .map-overlay-trigger {
    background: rgba(0, 0, 0, 0.25) !important;
}

.sidebar-map-box:hover .map-overlay-trigger span {
    transform: scale(1.04);
}

/* Custom styles for Leaflet popups inside modal to match premium UI */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.leaflet-popup-content {
    margin: 10px 12px !important;
    line-height: 1.5 !important;
}

/* Custom Leaflet Marker Styling */
.custom-leaflet-marker {
    background: transparent !important;
    border: none !important;
}

.custom-map-pin {
    width: 40px;
    height: 40px;
    background-color: var(--primary-teal);
    /* primary brand color */
    border-radius: 50% 50% 50% 0;
    /* teardrop shape */
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.3);
    /* shadow points straight down in page space */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect on marker pin */
.custom-map-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: -3px 5px 12px rgba(0, 0, 0, 0.35);
}

.pin-inner {
    width: 26px;
    height: 26px;
    background-color: #f0f7f7;
    /* light tint of primary color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    /* rotate back to keep the icon upright */
}

/* Mask technique to color SVG icons with CSS */
.pin-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--primary-teal);
    /* color of the icon inside */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* --- POI DETAIL PAGE --- */
.poi-detail-content {
    padding: 130px 4% 100px;
    max-width: 1000px;
    /* slightly narrower to look compact and premium like in the mockup */
    margin: 0 auto;
    background-color: #ffffff;
}

.poi-cover-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    aspect-ratio: 21 / 9;
    /* wider aspect ratio like in the user's mockup */
}

.poi-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poi-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-body), sans-serif;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 15px;
}

.poi-meta-city {
    display: flex;
    flex-direction: column;
}

.poi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #a0aec0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.poi-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.poi-meta-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poi-stars {
    color: #f5b041;
    font-size: 1.2rem;
}

.poi-rating-number {
    font-size: 0.9rem;
    color: #4a5568;
}

.poi-header {
    margin-bottom: 20px;
}

.poi-detail-title {
    font-family: 'Poppins', Helvetica, sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #1a202c;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1.5px;
}

.poi-info-grid {
    margin-bottom: 25px;
}

.poi-info-details {
    display: flex;
    gap: 10px;
}

.poi-info-tag {
    font-family: var(--font-body), sans-serif;
    font-size: 0.8rem;
    background: #eef6f6;
    color: var(--primary-teal);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poi-info-tag.pricing {
    background: #edf2f7;
    color: #4a5568;
}

.poi-body {
    font-family: var(--font-body), sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.poi-desc-text {
    margin-bottom: 35px;
    color: #4a5568;
}

.poi-map-section {
    margin: 40px 0;
}

.poi-section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.poi-single-map-box {
    width: 100%;
    max-width: 550px;
    height: 280px;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
}

.btn-add-itinerary {
    background-color: var(--primary-teal);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 133, 0.25);
    font-family: var(--font-body), sans-serif;
    display: inline-block;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-add-itinerary:hover {
    background-color: #316565;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 133, 0.35);
}

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

/* Toast Notification styling */
.poi-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #2d3748;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-body), sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0;
}

.poi-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.poi-toast svg {
    color: #48bb78;
    /* green check icon */
}

@media (max-width: 768px) {
    .poi-cover-wrapper {
        aspect-ratio: 16 / 9;
    }

    .poi-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- FLOATING ITINERARY BOTTOM BAR --- */
.itinerary-bar-overlay {
    position: fixed;
    bottom: -160px;
    /* Hidden initially */
    left: 0;
    right: 0;
    height: 110px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.itinerary-bar-overlay.show {
    bottom: 0;
}

.itinerary-bar-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.itinerary-bar-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.itinerary-bar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: rgba(66, 133, 133, 0.1);
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(66, 133, 133, 0.05);
}

.itinerary-bar-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
    margin: 0 0 2px 0;
}

.itinerary-bar-text p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

/* POI List Scroll Area */
.itinerary-bar-pois-wrapper {
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.itinerary-pois-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    padding: 10px 0;
    width: 100%;
    align-items: center;
}

.itinerary-pois-list::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* POI item inside the bar */
.itinerary-poi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 6px 12px 6px 6px;
    min-width: 180px;
    max-width: 240px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: slideInPoi 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.itinerary-poi-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

@keyframes slideInPoi {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(20px);
    }

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

.itinerary-poi-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.itinerary-poi-details {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.itinerary-poi-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.itinerary-poi-city {
    font-size: 0.72rem;
    color: #a0aec0;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Remove button on POI item */
.itinerary-poi-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e53e3e;
    color: #ffffff;
    border: none;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.4);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.itinerary-poi-item:hover .itinerary-poi-remove {
    opacity: 1;
    transform: scale(1);
}

.itinerary-poi-remove:hover {
    background: #c53030;
}

/* Plan Itinerary Button */
.btn-plan-itinerary {
    background-color: var(--primary-teal);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 133, 0.25);
    font-family: var(--font-body), sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-plan-itinerary:hover {
    background-color: #316565;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 133, 0.35);
}

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

/* --- ITINERARY PAGE (itinerary.php) --- */
.itinerary-page-content {
    padding: 130px 4% 80px;
    max-width: 1300px;
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.itinerary-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.itinerary-title-block h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #1a202c;
    letter-spacing: -1px;
    margin: 0 0 6px 0;
}

.itinerary-title-block p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.itinerary-actions-top {
    display: flex;
    gap: 12px;
}

.btn-secondary-outline {
    background: #ffffff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-outline:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.itinerary-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

/* Steps List */
.itinerary-steps-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.itinerary-step-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    padding: 24px;
    display: flex;
    gap: 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.itinerary-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* Step controls: drag/reorder */
.itinerary-step-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-control-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #edf2f7;
    background: #ffffff;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-control-arrow:hover {
    background: var(--primary-teal);
    color: #ffffff;
    border-color: var(--primary-teal);
}

.itinerary-step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-teal);
    background: rgba(66, 133, 133, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

/* Step contents */
.itinerary-step-content {
    flex: 1;
}

.itinerary-step-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.itinerary-step-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.itinerary-step-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.itinerary-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.2;
}

.itinerary-step-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.itinerary-step-title a:hover {
    color: var(--primary-teal);
}

.itinerary-step-city {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 600;
}

.btn-step-delete {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s, transform 0.2s;
    border-radius: 50%;
}

.btn-step-delete:hover {
    color: #e53e3e;
    transform: scale(1.1);
    background: #fff5f5;
}

.itinerary-step-body {
    display: flex;
    gap: 20px;
    align-items: start;
}

.itinerary-step-img {
    width: 130px;
    height: 85px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.itinerary-step-info {
    flex: 1;
}

.itinerary-step-desc {
    font-size: 0.88rem;
    color: #718096;
    line-height: 1.5;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Notes Field */
.itinerary-step-notes {
    width: 100%;
}

.textarea-notes {
    width: 100%;
    height: 65px;
    border: 1px dashed #cbd5e0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #4a5568;
    resize: none;
    background: #fcfcfc;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--font-body), sans-serif;
}

.textarea-notes:focus {
    outline: none;
    border-color: var(--primary-teal);
    border-style: solid;
    background: #ffffff;
}

/* Map Column */
.itinerary-map-column {
    position: sticky;
    top: 130px;
}

.itinerary-map-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 15px;
}

.itinerary-map-box {
    width: 100%;
    height: calc(100vh - 280px);
    min-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

/* Empty State */
.itinerary-empty-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    margin: 40px auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.itinerary-empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(66, 133, 133, 0.08);
    color: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.itinerary-empty-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.itinerary-empty-card p {
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary-teal {
    background-color: var(--primary-teal);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 133, 0.25);
    font-family: var(--font-body), sans-serif;
    text-transform: uppercase;
}

.btn-primary-teal:hover {
    background-color: #316565;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 133, 0.35);
}

/* Responsive Grid */
@media (max-width: 991px) {
    .itinerary-bar-overlay {
        height: 160px;
        bottom: -200px;
    }

    .itinerary-bar-container {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 15px;
        padding: 15px 4%;
    }

    .itinerary-bar-pois-wrapper {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .itinerary-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .itinerary-map-column {
        position: static;
        order: -1;
        /* map on top for mobile/tablets */
    }

    .itinerary-map-box {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 550px) {
    .itinerary-bar-overlay {
        height: 190px;
        bottom: -230px;
    }

    .itinerary-bar-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 12px 4%;
    }

    .itinerary-bar-pois-wrapper {
        grid-column: 1;
        grid-row: 2;
    }

    .itinerary-bar-action {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-plan-itinerary {
        width: 100%;
        justify-content: center;
    }

    .itinerary-step-card {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .itinerary-step-controls {
        flex-direction: row;
        justify-content: flex-start;
        border-bottom: 1px solid #edf2f7;
        padding-bottom: 12px;
        width: 100%;
    }

    .itinerary-step-number {
        margin-top: 0;
        margin-left: auto;
    }

    .itinerary-step-body {
        flex-direction: column;
        gap: 15px;
    }

    .itinerary-step-img {
        width: 100%;
        height: 150px;
    }
}

/* --- CUSTOM MODAL BUTTONS --- */
.btn-modal-confirm {
    background-color: #e53e3e;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    font-family: var(--font-body), sans-serif;
    text-transform: uppercase;
}

.btn-modal-confirm:hover {
    background-color: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 62, 62, 0.4);
}

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

.btn-modal-cancel {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body), sans-serif;
    text-transform: uppercase;
}

.btn-modal-cancel:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

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

/* ==========================================
   INTERACTIVE MAP (PLANISFERO) EXPLORATION STYLE
   ========================================== */

.explore-world-main {
    padding: 120px 8% 60px;
    background-color: #fafdff;
    min-height: 100vh;
}

.explore-header-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.explore-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #111111;
    margin: 15px 0;
    letter-spacing: -1px;
}

.explore-main-desc {
    color: #667085;
    font-size: 1.1rem;
    line-height: 1.6;
}

.explore-content-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .explore-content-container {
        grid-template-columns: 1fr;
    }
}

/* Map Card Panel */
.map-card-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f5;
}

.panel-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a334d;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.panel-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary-teal);
    border-radius: 2px;
}

.map-wrapper {
    width: 100%;
    overflow: hidden;
}

#world-planisfero {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.02));
}

/* Continent Paths & Labels */
.continent-group {
    cursor: pointer;
}

.continent-path {
    fill: #e2e8f0;
    /* Grigio chiaro per planisfero grafico */
    stroke: #ffffff;
    stroke-width: 2;
    transition: fill 0.3s ease, filter 0.3s ease;
}

.continent-group:hover .continent-path {
    fill: #a0aec0;
    /* Grigio più scuro all'hover */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.continent-path.selected {
    fill: var(--primary-teal) !important;
    /* Colore teal quando selezionato */
}

.continent-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #4a5568;
    text-anchor: middle;
    pointer-events: none;
    /* Evita che il testo interferisca con il click */
    transition: fill 0.3s ease;
    opacity: 0.9;
}

.continent-group:hover .continent-label {
    fill: #1a202c;
    font-weight: 700;
}

.continent-group .continent-path.selected+.continent-label,
.continent-group:has(.selected) .continent-label {
    fill: #ffffff !important;
}

/* Drill-down Card Panel */
.drilldown-card-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f5;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Breadcrumb styling */
.drilldown-navigation-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a0aec0;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb-item {
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.breadcrumb-item.active {
    color: var(--primary-teal);
    background: rgba(66, 133, 133, 0.08);
}

.breadcrumb-arrow {
    color: #cbd5e0;
}

/* Dynamic content */
.drilldown-dynamic-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.step-container {
    animation: fadeIn 0.4s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    flex-grow: 1;
}

.empty-state h3 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 1.25rem;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 300px;
}

/* Step Headers */
.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-back {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #edf2f7;
    color: #1a202c;
    transform: translateX(-2px);
}

.step-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
}

/* Grid Lists for Countries and States */
.list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.list-item-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-item-card:hover {
    background: #ffffff;
    border-color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 133, 0.06);
}

.item-icon {
    font-size: 1.5rem;
}

.item-info-wrap h4 {
    color: #1a202c;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-info-wrap p {
    font-size: 0.85rem;
    color: #718096;
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.explore-city-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.3s ease;
}

.explore-city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-teal);
}

.city-card-img-wrap {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #e2e8f0;
}

.city-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.explore-city-card:hover .city-card-img-wrap img {
    transform: scale(1.08);
}

.city-card-details {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-card-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
}

.btn-view-city {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(66, 133, 133, 0.08);
    color: var(--primary-teal);
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-city:hover {
    background: var(--primary-teal);
    color: #ffffff;
}

/* Spinner Loader */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    flex-grow: 1;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid #edf2f7;
    border-top: 3.5px solid var(--primary-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.error-msg {
    color: #e53e3e;
    text-align: center;
    font-size: 0.95rem;
    padding: 20px;
}

/* ==========================================
   MONDO.SVG SPECIFIC INTERACTIVE STYLES
   ========================================== */

#world-planisfero {
    width: 100%;
    height: auto;
    background: #f4f8f9;
    border-radius: 20px;
}

/* Override st0 (original world paths in mondo.svg) to be neutral grey */
#world-planisfero .st0 {
    fill: #dcdbe2 !important;
    transition: fill 0.3s ease;
}

/* Interactive overlay polygons */
.continent-polygon {
    fill: rgba(66, 133, 133, 0);
    /* fully transparent */
    stroke: rgba(66, 133, 133, 0.1);
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.continent-group:hover .continent-polygon {
    fill: rgba(66, 133, 133, 0.12);
    /* hover overlay */
    stroke: var(--primary-teal);
    stroke-width: 3;
}

.continent-polygon.selected {
    fill: rgba(66, 133, 133, 0.22) !important;
    stroke: var(--primary-teal) !important;
    stroke-width: 3 !important;
}

/* Continent labels text */
.continent-label-text {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    fill: #2d3748;
    text-anchor: middle;
    pointer-events: none;
    transition: fill 0.3s ease, font-size 0.3s ease;
    opacity: 0.9;
}

.continent-group:hover .continent-label-text {
    fill: #1a202c;
    font-size: 28px;
    opacity: 1;
}

.continent-group:has(.selected) .continent-label-text {
    fill: var(--primary-teal) !important;
}

/* ==========================================
   CAROUSEL MANUAL NAVIGATION ARROWS
   ========================================== */

.explore-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1347px;
    /* Aumentato per contenere 60px di padding laterale su entrambi i lati */
    margin: 0 auto;
    padding: 0 60px 50px 60px;
    /* Padding laterale di 60px per alloggiare le frecce senza coprire le card */
}

.carousel-arrow {
    position: absolute;
    top: calc(50% - 25px);
    /* Centra verticalmente tenendo conto del padding bottom del wrapper */
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #edf2f7;
    color: var(--primary-teal);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-arrow:hover {
    background: var(--primary-teal);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(66, 133, 133, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: 5px;
    /* Posizionata all'interno del padding di sinistra */
}

.carousel-arrow-right {
    right: 5px;
    /* Posizionata all'interno del padding di destra */
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .explore-carousel-wrapper {
        padding: 0 40px 40px 40px;
        /* Ridotto per schermi piccoli */
    }

    .carousel-arrow-left {
        left: 2px;
    }

    .carousel-arrow-right {
        right: 2px;
    }
}