/* =================================================================
   Dream and Destinations — Design System
   Type: Fraunces (display/serif) + Work Sans (body/UI)
   Motif: passport stamps, dotted flight paths, compass marks
   ================================================================= */

:root{
    --navy: #0B2A55;
    --teal: #087F8C;
    --gold: #D4A63A;
    --ivory: #FAF9F6;
    --card: #FFFFFF;
    --slate: #667085;
    --midnight: #071B36;

    --navy-10: rgba(11,42,85,0.08);
    --navy-20: rgba(11,42,85,0.16);
    --gold-15: rgba(212,166,58,0.15);
    --teal-15: rgba(8,127,140,0.15);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius-s: 6px;
    --radius-m: 14px;
    --radius-l: 28px;

    --shadow-card: 0 1px 2px rgba(7,27,54,0.04), 0 10px 30px -12px rgba(7,27,54,0.16);
    --shadow-lift: 0 20px 40px -16px rgba(7,27,54,0.28);

    --container: 1180px;
    --nav-h: 84px;

    /* Page hero background images — edit these paths any time you want
       to swap a photo. Path is relative to THIS css file's location.
       To add a new page's hero photo: add a variable here, then add a
       matching .bg-<name> rule next to .bg-destinations/.bg-blog below,
       then add class="page-hero has-bg-image bg-<name>" on that page. */
    --hero-img-destinations: url('../images/destinationbg.jpg');
    --hero-img-blog: url('../images/blog.jpg');
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body{
    margin:0;
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--navy);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3,h4{
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.14;
    margin: 0 0 0.5em;
    color: var(--navy);
    letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

.skip-link{
    position:absolute; left:-999px; top:0; background:var(--navy); color:#fff;
    padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

.container{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }

section{ padding: 96px 0; }
@media (max-width: 720px){ section{ padding: 64px 0; } }

/* -----------------------------------------------------------------
   Buttons
----------------------------------------------------------------- */
.btn{
    display:inline-flex; align-items:center; gap:8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
    white-space: nowrap;
}
.btn-gold{ background: var(--gold); color: var(--midnight); }
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(212,166,58,0.55); }

.btn-outline{ background: transparent; border-color: rgba(250,249,246,0.4); color: inherit; }
.btn-outline:hover{ background: rgba(250,249,246,0.1); transform: translateY(-2px); }

.btn-navy{ background: var(--navy); color: #fff; }
.btn-navy:hover{ background: var(--midnight); transform: translateY(-2px); }

/* -----------------------------------------------------------------
   Header / Nav
----------------------------------------------------------------- */
.site-header{
    position: sticky; top:0; z-index: 500;
    background: rgba(250,249,246,0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--navy-10);
}
.header-inner{
    max-width: var(--container); margin:0 auto; padding: 0 28px;
    height: var(--nav-h);
    display:flex; align-items:center; justify-content:space-between; gap: 24px;
    overflow: hidden;
}
.brand{ display:flex; align-items:center; gap:10px; color: var(--navy); flex-shrink:0; }
.brand-logo{
    height: 56px;
    max-height: 56px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.main-nav{ display:flex; gap: 8px; }
.main-nav a{
    padding: 10px 16px; border-radius: 999px; font-weight:500; font-size: 0.96rem;
    color: var(--navy); position: relative; transition: background .2s ease, color .2s ease;
}
.main-nav a:hover{ background: var(--navy-10); }
.main-nav a.is-active{ background: var(--navy); color: #fff; }

.header-actions{ display:flex; align-items:center; gap: 14px; }
.header-cta{ padding: 10px 22px; font-size: 0.9rem; }

.nav-toggle{
    display:none; flex-direction:column; gap:5px; background:none; border:none; padding: 8px;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
    .main-nav{
        position: fixed; inset: var(--nav-h) 0 auto 0;
        background: var(--ivory);
        flex-direction: column; gap: 2px;
        padding: 18px 28px 26px;
        border-bottom: 1px solid var(--navy-10);
        transform: translateY(-8px);
        opacity: 0; visibility: hidden;
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .main-nav.is-open{ opacity:1; transform: translateY(0); visibility: visible; }
    .main-nav a{ padding: 12px 14px; }
    .nav-toggle{ display:flex; }
    .header-cta{ display:none; }
}

/* -----------------------------------------------------------------
   Hero (index) — full-bleed video, slide carousel, floating search
----------------------------------------------------------------- */
.hero-video-section{
    position: relative;
    min-height: 92vh;
    display:flex; flex-direction:column; justify-content:center;
    overflow: visible;
    padding: 140px 0 150px;
    color: #fff;
}

.hero-media{ position:absolute; inset:0; overflow:hidden; z-index:0; }
.hero-video-el{
    width:100%; height:100%; object-fit:cover; display:block;
    background: var(--midnight);
}
.hero-overlay{
    position:absolute; inset:0;
    background:
        linear-gradient(180deg, rgba(7,27,54,0.55) 0%, rgba(7,27,54,0.4) 40%, rgba(7,27,54,0.75) 100%),
        linear-gradient(90deg, rgba(7,27,54,0.55) 0%, rgba(7,27,54,0.1) 55%);
}

.hero-stats-rail{
    position:absolute; right: 44px; top: 130px; z-index:2;
    display:flex; flex-direction:column; gap: 30px; text-align:right;
}
.hero-stats-rail div{ display:flex; flex-direction:column; }
.hero-stats-rail strong{ font-family: var(--font-display); font-size: 1.7rem; font-weight:500; color: var(--gold); }
.hero-stats-rail span{ font-size: 0.72rem; letter-spacing:.03em; color: rgba(250,249,246,0.7); }
@media (max-width: 900px){ .hero-stats-rail{ display:none; } }

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

.hero-slides{ position: relative; min-height: 300px; }
.hero-slide{
    position:absolute; inset:0 auto auto 0; width:100%;
    opacity:0; visibility:hidden; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.hero-slide.is-active{ position:relative; opacity:1; visibility:visible; transform:none; }

.hero-eyebrow-word{
    display:inline-block; font-size: 0.82rem; font-weight:600; letter-spacing: .14em;
    color: var(--gold); margin-bottom: 18px;
}
.hero-slide h1{
    color:#fff; font-size: clamp(2.6rem, 5vw, 4.2rem); max-width: 12ch; margin-bottom: 18px;
}
.hero-slide h1 .accent{ color: var(--gold); font-style: italic; font-weight: 500; }
.hero-slide .hero-sub{ color: rgba(250,249,246,0.82); font-size: 1.08rem; max-width: 46ch; margin-bottom: 34px; }

.hero-ctas{ display:flex; gap: 16px; flex-wrap:wrap; }
.hero-watch-btn{ border-color: rgba(250,249,246,0.4); color:#fff; display:inline-flex; align-items:center; gap:9px; }
.hero-watch-btn:hover{ background: rgba(250,249,246,0.12); }

.hero-dots{ display:flex; gap: 9px; margin-top: 48px; }
.hero-dots button{
    width: 26px; height: 4px; border-radius: 3px; border:none; background: rgba(250,249,246,0.3);
    padding:0; transition: background .25s ease, width .25s ease;
}
.hero-dots button.is-active{ background: var(--gold); width: 40px; }

/* Floating search card */
.hero-search-wrap{
    position: relative; z-index: 3; margin-top: 56px;
}
.hero-search-card{
    background: var(--navy);
    border-radius: var(--radius-l);
    padding: 34px 38px;
    box-shadow: 0 30px 60px -20px rgba(7,27,54,0.55);
    border: 1px solid rgba(250,249,246,0.08);
}
.search-card-head{ display:flex; align-items:center; gap: 14px; margin-bottom: 22px; }
.search-icon{
    width: 44px; height:44px; border-radius:50%; background: var(--gold-15); color: var(--gold);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.search-card-head h3{ color:#fff; font-size: 1.15rem; margin:0 0 3px; }
.search-card-head p{ color: rgba(250,249,246,0.62); font-size: 0.85rem; margin:0; }

.search-tabs{ display:inline-flex; background: rgba(250,249,246,0.08); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.search-tabs button{
    border:none; background:none; padding: 9px 20px; border-radius: 999px; font-weight:600;
    font-size: 0.85rem; color: rgba(250,249,246,0.75); transition: background .2s ease, color .2s ease;
}
.search-tabs button.is-active{ background: var(--gold); color: var(--midnight); }

.search-form{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items:end; }
.search-field label{
    color: rgba(250,249,246,0.6); font-size: 0.72rem; font-weight:600; letter-spacing:.04em;
    margin-bottom: 8px;
}
.search-form input, .search-form select{
    background: rgba(250,249,246,0.06); border: 1px solid rgba(250,249,246,0.16); color:#fff;
    padding: 12px 14px; font-size: 0.88rem;
}
.search-form input::placeholder{ color: rgba(250,249,246,0.4); }
.search-form select option{ color: var(--navy); }
.search-form input:focus, .search-form select:focus{
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,166,58,0.2);
}

.search-tier-row{ grid-column: 1 / -1; display:flex; gap: 10px; flex-wrap:wrap; }
.tier-btn{
    border: 1px solid rgba(250,249,246,0.18); background: none; color: rgba(250,249,246,0.75);
    padding: 9px 18px; border-radius: 999px; font-size: 0.82rem; font-weight:600;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tier-btn.is-active{ background: var(--gold); color: var(--midnight); border-color: var(--gold); }

.search-submit{
    grid-column: 1 / -1; justify-content:center; display:flex; align-items:center; gap: 10px;
    padding: 15px 28px; font-size: 0.95rem;
}

@media (max-width: 980px){
    .search-form{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
    .hero-video-section{ padding: 120px 0 130px; min-height: unset; }
    .search-form{ grid-template-columns: 1fr; }
    .hero-search-card{ padding: 26px 22px; }
}

.section-after-hero{ padding-top: 64px; }

/* -----------------------------------------------------------------
   Section headers
----------------------------------------------------------------- */
.section-head{
    display:flex; justify-content:space-between; align-items:flex-end; gap: 24px;
    margin-bottom: 44px; flex-wrap:wrap;
}
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 14ch; margin:0; }
.section-head p{ margin:0; }
.section-tag{
    display:inline-flex; align-items:center; gap:8px; color: var(--teal); font-weight:600;
    font-size: 0.9rem; margin-bottom: 12px;
}
.section-tag::before{ content:""; width: 22px; height: 1px; background: var(--teal); }

/* Section head with a right-side image (homepage "Where to next" intro only —
   plain .section-head elsewhere is untouched since this is a modifier class) */
.section-head.section-head-media{ align-items: stretch; gap: 44px; }
.section-head.section-head-media > div:first-child{ flex: 1 1 420px; }
.section-head.section-head-media > div:first-child p{ margin-top: 18px; }
.section-head-image{
    flex: 1 1 420px; max-width: 480px; border-radius: var(--radius-l);
    overflow: hidden; box-shadow: var(--shadow-card);
}
.section-head-image img{
    width: 100%; height: 100%; min-height: 280px; object-fit: cover; display:block;
}
@media (max-width: 900px){
    .section-head.section-head-media{ flex-direction: column; }
    .section-head-image{ max-width: none; width: 100%; }
    .section-head-image img{ min-height: 220px; }
}

/* -----------------------------------------------------------------
   Region tabs (used on index preview + destinations page)
----------------------------------------------------------------- */
.region-tabs{ display:inline-flex; background: var(--navy-10); padding: 5px; border-radius: 999px; margin-bottom: 40px; }
.region-tabs button, .region-tabs a{
    border:none; background:none; padding: 10px 22px; border-radius: 999px; font-weight:600;
    color: var(--navy); font-size: 0.92rem; transition: background .2s ease, color .2s ease; display:inline-block;
}
.region-tabs button.is-active, .region-tabs a.is-active{ background: var(--navy); color: #fff; }

.region-jump{ margin-bottom: 8px; }
.region-count{ color: var(--slate); font-size: 0.85rem; margin: -28px 0 40px; }

/* -----------------------------------------------------------------
   Destination cards — passport-stamp motif
----------------------------------------------------------------- */
.dest-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 980px){ .dest-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .dest-grid{ grid-template-columns: 1fr; } }

.dest-card{
    background: var(--card);
    border-radius: var(--radius-m);
    border: 1px solid var(--navy-10);
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    display:flex; flex-direction:column;
}
.dest-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }

.dest-card-body{
    padding: 30px;
    display:flex; flex-direction:column; flex:1;
    position: relative;
    z-index: 2;
}

/* Photo variant — background image fills the whole card, text sits over a
   bottom gradient. Cards with no matching entry in $dest_images keep the
   plain white-card look above untouched. */
.dest-card.has-photo{
    background-size: cover;
    background-position: center;
    background-color: var(--navy-10);
    min-height: 440px;
    border-color: transparent;
}
.dest-card.has-photo::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,27,54,0.05) 0%, rgba(7,27,54,0.18) 32%, rgba(7,27,54,0.95) 100%);
    z-index: 1;
}
.dest-card.has-photo .dest-card-body{
    justify-content: flex-end;
    color: #fff;
}
.dest-card.has-photo .dest-card-top{
    position: absolute;
    top: 26px; left: 26px; right: 26px;
    z-index: 3;
    margin-bottom: 0;
}
.dest-card.has-photo h3{ color:#fff; }
.dest-card.has-photo .dest-tagline{ color: rgba(255,255,255,0.9); }
.dest-card.has-photo p.blurb{ color: rgba(255,255,255,0.78); }
.dest-card.has-photo .dest-meta{ color: rgba(255,255,255,0.7); }
.dest-card.has-photo .dest-meta strong{ color:#fff; }
.dest-card.has-photo .dest-tags span{ background: rgba(255,255,255,0.18); color:#fff; }
.dest-card.has-photo .dest-link{ color:#fff; border-top-color: rgba(255,255,255,0.28); }
.dest-card.has-photo .dest-link svg{ stroke: #fff; }
.dest-card.has-photo .dest-region-pill{ background: rgba(255,255,255,0.92); color: var(--navy); }

.dest-card-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom: 22px; }
.dest-region-pill{
    font-size: 0.72rem; font-weight:600; color: var(--slate); background: var(--navy-10);
    padding: 5px 11px; border-radius: 999px;
}

.dest-card h3{ font-size: 1.4rem; margin-bottom: 4px; }
.dest-tagline{ color: var(--teal); font-weight:500; font-size: 0.95rem; margin-bottom: 14px; font-style: italic; }
.dest-card p.blurb{ font-size: 0.94rem; flex-grow:1; }

.dest-meta{ display:flex; gap: 18px; margin: 14px 0; font-size: 0.82rem; color: var(--slate); }
.dest-meta strong{ color: var(--navy); display:block; font-size: 0.82rem; font-weight:600; }

.dest-tags{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 20px; }
.dest-tags span{ font-size: 0.76rem; color: var(--navy); background: var(--teal-15); padding: 5px 10px; border-radius: 999px; }

.dest-link{
    font-weight:600; color: var(--navy); font-size: 0.92rem; display:inline-flex; align-items:center; gap:6px;
    padding-top: 14px; border-top: 1px solid var(--navy-10); margin-top:auto;
}
.dest-link svg{ transition: transform .25s ease; }
.dest-card:hover .dest-link svg{ transform: translateX(4px); }

/* -----------------------------------------------------------------
   Dark / midnight sections
----------------------------------------------------------------- */
.section-dark{ background: var(--midnight); color: var(--ivory); }
.section-dark h2, .section-dark h3{ color: #fff; }
.section-dark p{ color: rgba(250,249,246,0.72); }
.section-dark .section-tag{ color: var(--gold); }
.section-dark .section-tag::before{ background: var(--gold); }

/* -----------------------------------------------------------------
   Why-us / features
----------------------------------------------------------------- */
.feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }

.feature-card{ padding: 8px 4px; }
.feature-icon{
    width: 52px; height:52px; border-radius: 14px; background: rgba(212,166,58,0.14);
    display:flex; align-items:center; justify-content:center; margin-bottom: 20px; color: var(--gold);
}
.feature-card h3{ font-size: 1.15rem; color:#fff; }
.feature-card p{ font-size: 0.92rem; }

/* -----------------------------------------------------------------
   Process / timeline (about page)
----------------------------------------------------------------- */
.timeline{ position:relative; padding-left: 34px; }
.timeline::before{ content:""; position:absolute; left: 7px; top:6px; bottom:6px; width:1px; background: var(--navy-20); }
.timeline-item{ position:relative; padding-bottom: 42px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
    content:""; position:absolute; left: -34px; top: 4px; width: 15px; height:15px; border-radius:50%;
    background: var(--ivory); border: 2px solid var(--gold);
}
.timeline-item h3{ font-size: 1.2rem; margin-bottom: 6px; }
.timeline-year{ color: var(--teal); font-weight:600; font-size: 0.85rem; margin-bottom: 6px; display:block; }

/* -----------------------------------------------------------------
   Team (about page)
----------------------------------------------------------------- */
.team-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px){ .team-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{ text-align:left; }
.team-photo{
    width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-m); margin-bottom: 16px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    background-size: cover; background-position: center;
    display:flex; align-items:center; justify-content:center;
    font-family: var(--font-display); font-size: 2.4rem; color: rgba(250,249,246,0.9);
}
.team-card h3{ font-size: 1.05rem; margin-bottom: 2px; }
.team-role{ color: var(--teal); font-size: 0.85rem; font-weight:600; }

/* -----------------------------------------------------------------
   Stats band
----------------------------------------------------------------- */
.stats-band{
    background: var(--navy); border-radius: var(--radius-l); padding: 52px 44px;
    display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; color:#fff;
}
@media (max-width: 780px){ .stats-band{ grid-template-columns: repeat(2,1fr); padding: 36px 26px; } }
.stats-band div strong{ font-family: var(--font-display); font-size: 2.4rem; display:block; font-weight:500; color: var(--gold); }
.stats-band div span{ font-size: 0.88rem; color: rgba(250,249,246,0.75); }

/* -----------------------------------------------------------------
   Testimonials
----------------------------------------------------------------- */
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px){ .testi-grid{ grid-template-columns: 1fr; } }
.testi-card{
    background: var(--card); border-radius: var(--radius-m); padding: 28px; border: 1px solid var(--navy-10);
}
.testi-quote{ font-family: var(--font-display); font-size: 1.05rem; font-style: italic; color: var(--navy); margin-bottom: 18px; }
.testi-person{ display:flex; align-items:center; gap: 12px; }
.testi-avatar{
    width: 40px; height:40px; border-radius:50%; background: var(--teal-15); color: var(--teal);
    display:flex; align-items:center; justify-content:center; font-weight:700; font-family: var(--font-display);
}
.testi-name{ font-weight:600; font-size: 0.9rem; color: var(--navy); }
.testi-trip{ font-size: 0.8rem; color: var(--slate); }

/* -----------------------------------------------------------------
   CTA band
----------------------------------------------------------------- */
.cta-band{
    background: linear-gradient(120deg, var(--navy), var(--midnight));
    border-radius: var(--radius-l);
    padding: 64px 48px;
    display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap:wrap;
    color:#fff;
    position: relative; overflow:hidden;
}
.cta-band::after{
    content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
    border: 1.5px dashed rgba(212,166,58,0.4);
}
.cta-band h2{ color:#fff; margin-bottom: 8px; max-width: 16ch; }
.cta-band p{ color: rgba(250,249,246,0.75); margin-bottom:0; }
.cta-text{ max-width: 480px; }

/* -----------------------------------------------------------------
   Blog
----------------------------------------------------------------- */
.blog-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 980px){ .blog-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .blog-grid{ grid-template-columns: 1fr; } }

.blog-card{
    background: var(--card); border-radius: var(--radius-m); border: 1px solid var(--navy-10);
    overflow:hidden; transition: transform .3s ease, box-shadow .3s ease;
    display:flex; flex-direction:column;
}
.blog-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-card); }
.blog-thumb{
    aspect-ratio: 16/10; background: linear-gradient(135deg, var(--teal), var(--navy));
    display:flex; align-items:center; justify-content:center; position:relative;
}
.blog-thumb span{
    font-family: var(--font-display); color: rgba(250,249,246,0.9); font-size: 1.1rem; font-style: italic;
}
/* Photo variant — used when a post has a matching entry in $blog_images.
   Background photo set inline via style="background-image:url(...)" in
   blog.php; this class supplies sizing plus a bottom-readable overlay. */
.blog-thumb.has-photo{
    background-size: cover;
    background-position: center;
    background-color: var(--navy-10);
}
.blog-thumb.has-photo::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,27,54,0.05) 0%, rgba(7,27,54,0.4) 100%);
}
.blog-cat{
    position:absolute; top:14px; left:14px; background: var(--gold); color: var(--midnight);
    font-size: 0.72rem; font-weight:700; padding: 5px 11px; border-radius: 999px;
    z-index: 2;
}
.blog-body{ padding: 24px; display:flex; flex-direction:column; flex-grow:1; }
.blog-date{ font-size: 0.78rem; color: var(--slate); margin-bottom: 10px; }
.blog-body h3{ font-size: 1.16rem; margin-bottom: 10px; }
.blog-body p{ font-size: 0.92rem; flex-grow:1; }
.blog-read{
    font-weight:600; font-size: 0.86rem; color: var(--teal); margin-top: 12px;
    border:none; background:none; padding:0; text-align:left; transition: color .2s ease;
}
.blog-read:hover{ color: var(--navy); }

.blog-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 40px; }
.blog-filters button{
    border: 1px solid var(--navy-20); background:none; padding: 9px 18px; border-radius: 999px;
    font-size: 0.86rem; font-weight:600; color: var(--navy); transition: background .2s ease, color .2s ease;
}
.blog-filters button.is-active{ background: var(--navy); color:#fff; border-color: var(--navy); }

/* -----------------------------------------------------------------
   Blog post popup (read-post modal)
----------------------------------------------------------------- */
.blog-modal{
    position: fixed; inset: 0; z-index: 1000;
    display:flex; align-items:center; justify-content:center; padding: 24px;
    visibility: hidden; opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}
.blog-modal.is-open{ visibility: visible; opacity: 1; }
.blog-modal-backdrop{
    position:absolute; inset:0; background: rgba(7,27,54,0.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.blog-modal-panel{
    position:relative; background: var(--card); border-radius: var(--radius-l);
    max-width: 720px; width:100%; max-height: 86vh; overflow-y:auto;
    padding: 52px 46px; box-shadow: var(--shadow-lift);
    transform: translateY(14px); transition: transform .25s ease;
}
.blog-modal.is-open .blog-modal-panel{ transform: translateY(0); }
.blog-modal-close{
    position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%;
    border:1px solid var(--navy-20); background: var(--ivory); font-size:1.3rem; line-height:1;
    color: var(--navy); display:flex; align-items:center; justify-content:center;
    transition: background .2s ease;
}
.blog-modal-close:hover{ background: var(--navy-10); }

.blog-full-cat{
    display:inline-block; background: var(--gold-15); color: var(--gold);
    font-size:0.72rem; font-weight:700; padding:5px 11px; border-radius:999px; margin-bottom:16px;
}
.blog-modal-body h2{ font-size: 1.6rem; margin-bottom: 6px; max-width: none; }
.blog-full-meta{ display:block; color: var(--slate); font-size:0.85rem; margin-bottom: 24px; }
.blog-modal-body p{ max-width: none; }

@media (max-width: 640px){
    .blog-modal-panel{ padding: 40px 24px 32px; }
}

/* -----------------------------------------------------------------
   Contact page
----------------------------------------------------------------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:flex-start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-info-card{ background: var(--navy); color:#fff; border-radius: var(--radius-l); padding: 40px; }
.contact-info-card h3{ color:#fff; }
.contact-info-card p{ color: rgba(250,249,246,0.75); }
.contact-row{ display:flex; gap:14px; padding: 16px 0; border-top: 1px solid rgba(250,249,246,0.14); }
.contact-row:first-of-type{ border-top:none; }
.contact-row-icon{ color: var(--gold); flex-shrink:0; }
.contact-row strong{ display:block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-row span, .contact-row a{ font-size: 0.88rem; color: rgba(250,249,246,0.75); }

.form-group{ margin-bottom: 20px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form-row{ grid-template-columns:1fr; } }
label{ display:block; font-size: 0.86rem; font-weight:600; color: var(--navy); margin-bottom: 7px; }
input, select, textarea{
    width:100%; padding: 13px 16px; border-radius: var(--radius-s); border: 1px solid var(--navy-20);
    background: var(--card); font-family: var(--font-body); font-size: 0.95rem; color: var(--navy);
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus{
    outline:none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-15);
}
textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-size: 0.82rem; color: var(--slate); margin-top: 4px; }
.form-success{
    display:none; background: var(--teal-15); border: 1px solid var(--teal); color: var(--navy);
    padding: 16px 20px; border-radius: var(--radius-s); font-size: 0.92rem; margin-bottom: 20px;
}
.form-success.is-visible{ display:block; }
.form-success.form-error{
    background: rgba(196,60,60,0.1); border-color: #C43C3C; color: #7a1f1f;
}

/* -----------------------------------------------------------------
   Contact form submission popup (success / failure)
----------------------------------------------------------------- */
.form-modal{
    position: fixed; inset: 0; z-index: 1000;
    display:flex; align-items:center; justify-content:center; padding: 24px;
    visibility: hidden; opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}
.form-modal.is-open{ visibility: visible; opacity: 1; }
.form-modal-backdrop{
    position:absolute; inset:0; background: rgba(7,27,54,0.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.form-modal-panel{
    position:relative; background: var(--card); border-radius: var(--radius-l);
    max-width: 420px; width:100%; padding: 44px 36px 36px; text-align:center;
    box-shadow: var(--shadow-lift);
    transform: translateY(14px) scale(.98); transition: transform .25s ease;
}
.form-modal.is-open .form-modal-panel{ transform: translateY(0) scale(1); }
.form-modal-close{
    position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
    border:1px solid var(--navy-20); background: var(--ivory); font-size:1.2rem; line-height:1;
    color: var(--navy); display:flex; align-items:center; justify-content:center;
    transition: background .2s ease;
}
.form-modal-close:hover{ background: var(--navy-10); }
.form-modal-icon{
    width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    margin: 0 auto 18px;
}
.form-modal.is-success .form-modal-icon{ background: var(--teal-15); color: var(--teal); }
.form-modal.is-error .form-modal-icon{ background: rgba(196,60,60,0.12); color: #C43C3C; }
.form-modal-panel h3{ font-size: 1.3rem; margin-bottom: 10px; }
.form-modal-panel p{ max-width: none; margin: 0 auto 24px; }
.form-modal-ok{ width: 100%; justify-content: center; }

/* -----------------------------------------------------------------
   Page hero (interior pages)
----------------------------------------------------------------- */
.page-hero{ padding: 64px 0 20px; }
.page-hero .section-tag{ margin-bottom: 16px; }
.page-hero h1{ font-size: clamp(2.2rem, 4vw, 3.2rem); max-width: 18ch; }
.page-hero p{ font-size: 1.05rem; max-width: 56ch; }

/* Page hero with a right-side image (about.php) — reuses .section-head-image
   for the photo itself so both places share one image style. */
.page-hero-media{ display:flex; align-items: stretch; gap: 44px; flex-wrap: wrap; }
.page-hero-media > .page-hero-text{ flex: 1 1 420px; }
@media (max-width: 900px){
    .page-hero-media{ flex-direction: column; }
}

/* Page hero with a full background photo — shared look (overlay, padding,
   text colors). Add a .bg-<page> modifier to pick which --hero-img-*
   variable supplies the photo. To swap a photo later, just edit that
   variable in :root above — these rules never need to change.
   To add a new page: add --hero-img-<name> in :root, add a .bg-<name>
   rule below following the same pattern, then use
   class="page-hero has-bg-image bg-<name>" on that page. */
.page-hero.has-bg-image{
    position: relative;
    padding: 120px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    /* Default photo so a page using only .has-bg-image (no .bg-<name>
       modifier) never renders blank. Modifiers below override this. */
    background-image:
        linear-gradient(180deg, rgba(7,27,54,0.8) 0%, rgba(7,27,54,0.62) 55%, rgba(7,27,54,0.85) 100%),
        var(--hero-img-destinations);
}
.page-hero.has-bg-image.bg-destinations{
    background-image:
        linear-gradient(180deg, rgba(7,27,54,0.8) 0%, rgba(7,27,54,0.62) 55%, rgba(7,27,54,0.85) 100%),
        var(--hero-img-destinations);
}
.page-hero.has-bg-image.bg-blog{
    background-image:
        linear-gradient(180deg, rgba(7,27,54,0.8) 0%, rgba(7,27,54,0.62) 55%, rgba(7,27,54,0.85) 100%),
        var(--hero-img-blog);
}
.page-hero.has-bg-image .section-tag{ color: var(--gold); }
.page-hero.has-bg-image .section-tag::before{ background: var(--gold); }
.page-hero.has-bg-image h1{ color: #fff; }
.page-hero.has-bg-image p{ color: rgba(250,249,246,0.82); }
.page-hero.has-bg-image .region-tabs{ background: rgba(250,249,246,0.14); }
.page-hero.has-bg-image .region-tabs a{ color: #fff; }
.page-hero.has-bg-image .region-tabs a.is-active{ background: var(--gold); color: var(--midnight); }
@media (max-width: 640px){
    .page-hero.has-bg-image{ padding: 90px 0 70px; }
}

/* -----------------------------------------------------------------
   Footer
----------------------------------------------------------------- */
.site-footer{ background: var(--midnight); color: rgba(250,249,246,0.8); padding: 72px 0 0; }
.footer-inner{ max-width: var(--container); margin:0 auto; padding: 0 28px; }
.footer-top{
    display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 32px;
    padding-bottom: 52px; border-bottom: 1px solid rgba(250,249,246,0.12);
}
@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

.footer-brand .brand-word{ color:#fff; font-size: 1.2rem; }

/* Footer logo — sizing hook for the <img class="brand-logo footer-logo">
   in footer.php. Adjust height/max-width here any time you want the
   footer logo a different size than the header's .brand-logo. */
.footer-logo{
    height: 80px;
    max-height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}

.footer-brand p{ color: rgba(250,249,246,0.65); font-size: 0.9rem; margin: 14px 0 18px; }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{
    width:36px; height:36px; border-radius:50%; border: 1px solid rgba(250,249,246,0.25);
    display:flex; align-items:center; justify-content:center; font-size: 0.72rem; font-weight:700;
    transition: background .2s ease, border-color .2s ease;
}
.footer-socials a:hover{ background: var(--gold); border-color: var(--gold); color: var(--midnight); }

.footer-col h3{ color:#fff; font-size: 0.92rem; margin-bottom: 16px; font-weight:600; }
.footer-col a, .footer-col p{ display:block; color: rgba(250,249,246,0.65); font-size: 0.9rem; margin-bottom: 11px; }
.footer-col a:hover{ color: var(--gold); }
.footer-address{ margin:0; }

.footer-bottom{
    display:flex; justify-content:space-between; align-items:center; padding: 24px 0; flex-wrap:wrap; gap: 12px;
    font-size: 0.82rem; color: rgba(250,249,246,0.55);
}
.footer-legal{ display:flex; gap: 20px; }
.footer-legal a:hover{ color: var(--gold); }

/* -----------------------------------------------------------------
   Floating WhatsApp button — fixed bottom-right, on every page
----------------------------------------------------------------- */
.whatsapp-float{
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 800;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 24px -6px rgba(37,211,102,0.55), var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float img{
    width: 100%; height: 100%; object-fit: contain; display: block;
}
.whatsapp-float:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px -6px rgba(37,211,102,0.65), var(--shadow-card);
}
@media (max-width: 640px){
    .whatsapp-float{ right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* -----------------------------------------------------------------
   Destination detail pages — sticky section nav, photo gallery +
   lightbox, photo-based highlight cards, itinerary day photos.
   Used by kerala.php and the other individual destination pages.
----------------------------------------------------------------- */

/* Sticky in-page nav — jumps between Overview / Gallery / Things to
   do / Itinerary. Sits just under the sticky site header. */
.dest-subnav{
    position: sticky; top: var(--nav-h); z-index: 100;
    background: rgba(250,249,246,0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--navy-10);
}
.dest-subnav .container{ display:flex; gap: 4px; padding: 14px 28px; overflow-x: auto; }
.dest-subnav a{
    padding: 8px 18px; border-radius: 999px; font-weight:600; font-size: 0.86rem;
    color: var(--navy); white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.dest-subnav a:hover{ background: var(--navy-10); }
.dest-subnav a.is-active{ background: var(--navy); color: #fff; }

/* Extra scroll offset for destination-page sections, so the sticky
   sub-nav (on top of the sticky header) doesn't cover the heading when
   a sub-nav link is clicked. */
#overview, #gallery, #highlights, #itinerary{ scroll-margin-top: calc(var(--nav-h) + 60px); }

/* Photo gallery — four equal square tiles, framed like photo prints.
   Click any tile to open the lightbox. */
.gallery-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery-grid a{
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 3px solid var(--card);
    box-shadow: var(--shadow-card);
}
.gallery-grid img{
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.gallery-grid a:hover img{ transform: scale(1.05); }
@media (max-width: 900px){
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Lightbox — opens on a gallery tile click, arrow keys / on-screen
   arrows move between photos, Escape or backdrop click closes it. */
.lightbox{
    position: fixed; inset: 0; z-index: 900;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    visibility: hidden; opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open{ visibility: visible; opacity: 1; }
.lightbox-backdrop{ position: absolute; inset: 0; background: rgba(7,27,54,0.92); }
.lightbox-img-wrap{ position: relative; max-width: 1000px; max-height: 82vh; z-index: 1; }
.lightbox img{ max-width: 100%; max-height: 82vh; border-radius: var(--radius-s); display: block; }
.lightbox-caption{ color: rgba(250,249,246,0.75); font-size: 0.85rem; text-align:center; margin: 14px 0 0; }
.lightbox-close{
    position: absolute; top: -46px; right: 0; background: none; border: none; color: #fff;
    font-size: 2rem; line-height: 1; cursor: pointer; padding: 6px;
}
.lightbox-nav{
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(250,249,246,0.14); border: none; color: #fff;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s ease;
}
.lightbox-nav:hover{ background: rgba(250,249,246,0.28); }
.lightbox-prev{ left: -60px; }
.lightbox-next{ right: -60px; }
@media (max-width: 900px){
    .lightbox-prev{ left: 8px; }
    .lightbox-next{ right: 8px; }
}

/* Highlight cards — full-bleed photo cards for "Things to do", text
   overlaid on a gradient at the bottom (same treatment as .dest-card
   .has-photo). Replaces a plain icon+text grid so each highlight gets
   an actual photo that fills the whole card. */
.highlight-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px){ .highlight-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .highlight-grid{ grid-template-columns: 1fr; } }
.highlight-card{
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-m);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-10);
    transition: transform .3s ease, box-shadow .3s ease;
}
.highlight-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.highlight-card::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,27,54,0.05) 0%, rgba(7,27,54,0.18) 38%, rgba(7,27,54,0.95) 100%);
}
.highlight-body{
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 20px;
}
.highlight-body h3{ color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.highlight-body p{ color: rgba(255,255,255,0.82); font-size: 0.86rem; margin-bottom: 0; }

/* Itinerary day photo — optional thumbnail under a timeline entry's
   text. Omit the <img> in the PHP and this simply isn't rendered. */
.timeline-photo{
    width: 100%; max-width: 340px; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: var(--radius-s); margin-top: 12px; box-shadow: var(--shadow-card);
    display: block;
}

/* -----------------------------------------------------------------
   Reveal-on-scroll (used once per section entry, not per-card)
----------------------------------------------------------------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
}