/* ==========================================================================
   HotSafar premium layer (v1.3) — navy & gold theme, photo heroes,
   destination mosaic, ratings strip, CTA band, WhatsApp button, reveals.
   Loaded after app.css and site.css.
   ========================================================================== */

:root {
    --gold: #F5A503;
    --gold-2: #FFC233;
    --gold-3: #E08A00;
    --gold-ink: #1B1A2E;
    --navy: #0E1B33;
    --navy-2: #172B4D;
    --grad-gold: linear-gradient(120deg, #F5A503 0%, #FFC233 50%, #F5A503 100%);
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Navy & gold accent (default, matches the logo) ---------- */
[data-accent="gold"] {
    --brand-1: #0E1B33; --brand-2: #1A3263; --brand-3: #22427E; --accent-light: #FFC94D;
    --brand-shadow: rgba(14, 27, 51, .28);
    --brand-shadow-2: rgba(245, 165, 3, .35);
}
[data-theme="light"][data-accent="gold"] {
    --accent: #1A3A82;
    --accent-soft: #EEF2FA;
    --bg: #F7F5F0;
    --bg-2: #EFEBE2;
    --surface-2: #FBFAF7;
    --line: #E8E3D8;
    --line-2: #D9D2C3;
    --shadow: 0 2px 6px rgba(14, 27, 51, .05), 0 12px 28px rgba(14, 27, 51, .07);
    --shadow-lg: 0 24px 60px rgba(14, 27, 51, .18);
    --ring: 0 0 0 3px rgba(245, 165, 3, .4);
}
[data-theme="dark"][data-accent="gold"] {
    --bg: #08101F;
    --bg-2: #0D1729;
    --surface: #111D33;
    --surface-2: #16243F;
    --line: #22324F;
    --line-2: #2F4266;
    --accent-soft: rgba(255, 201, 77, .12);
}
.swatch--gold { background: linear-gradient(135deg, #0E1B33 0 50%, #F5A503 50% 100%); }

/* Primary buttons: gold with navy text (8.9:1) */
[data-accent="gold"] .btn-gradient,
[data-accent="gold"] .btn-primary {
    --bs-btn-color: var(--gold-ink); --bs-btn-bg: var(--gold); --bs-btn-hover-color: var(--gold-ink); --bs-btn-hover-bg: var(--gold-2);
    --bs-btn-active-color: var(--gold-ink); --bs-btn-active-bg: var(--gold-3); --bs-btn-disabled-color: var(--gold-ink); --bs-btn-disabled-bg: var(--gold);
    color: var(--gold-ink); background-image: var(--grad-gold); background-size: 200% 100%;
    box-shadow: 0 8px 22px rgba(245, 165, 3, .32); font-weight: 700;
}
[data-accent="gold"] .btn-gradient:hover:not(:disabled),
[data-accent="gold"] .btn-primary:hover:not(:disabled) { color: var(--gold-ink); box-shadow: 0 12px 30px rgba(245, 165, 3, .42); }
[data-accent="gold"] .btn-gradient .icon, [data-accent="gold"] .btn-primary .icon { color: currentColor; }

/* Header: clean white bar with a hairline of gold */
[data-accent="gold"] .topbar { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(14, 27, 51, .05); }
[data-accent="gold"] .topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); opacity: .55; pointer-events: none; }

/* ---------- Display type ---------- */
.hero__title,
.section__title, .section__title-center, .section__intro h2, .section__head h2,
.seo-block h2, .member-banner h2, .cta-band h2, .prose h1, .prose h2 {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
}
.hero__title { line-height: 1.12; }
.section__intro h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.section__head h2, .section__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.section__title-center { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 26px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
[data-theme="dark"] .kicker { color: var(--gold-2); }
.kicker--light { color: var(--gold-2); }
.section__intro .kicker { justify-content: center; }
.section__head { align-items: flex-end; }

/* ---------- Photo heroes ---------- */
.hero--photo { --h1: #0B1630; --h2: #142A55; --h3: #1E3A8A; --h4: #F5A503; }
.hero__photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--navy); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; animation: hero-zoom 22s ease-out both; }
.hero__photo::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 15, 32, .55) 0%, rgba(8, 15, 32, .35) 38%, rgba(8, 15, 32, .78) 100%),
        linear-gradient(90deg, rgba(8, 15, 32, .55) 0%, transparent 60%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero--photo .hero__mesh { animation: none; }
.hero--photo .hero__mesh::after { display: none; }
.hero--photo .hero__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero--photo .hero__eyebrow { background: rgba(8, 15, 32, .45); border-color: rgba(255, 194, 51, .45); color: #FFE3A3; }
.hero--photo .hero__eyebrow .icon { color: var(--gold-2); }
.hero--home.hero--photo { padding-top: 46px; padding-bottom: 40px; }
.hero--home.hero--photo .hero__bg { overflow: hidden; }
.hero--compact.hero--photo { padding: 54px 0 58px; }
.hero--compact.hero--photo .hero__sub { color: rgba(255, 255, 255, .92); }
.hero--photo .trust-row li { background: rgba(8, 15, 32, .42); }
.hero--photo .crumbs, .hero--photo .crumbs a { color: rgba(255, 255, 255, .85); }

/* Search card: lift it off the photo */
.hero--photo .search-card { box-shadow: 0 30px 70px rgba(4, 10, 24, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
[data-accent="gold"] .product-tab.is-active::after { background: var(--gold); }

/* ---------- Ratings / proof strip ---------- */
.proof { position: relative; z-index: 2; margin-top: -22px; }
.proof__bar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.proof__item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; min-width: 0; }
.proof__item + .proof__item { border-inline-start: 1px solid var(--line); }
a.proof__item:hover { background: var(--surface-2); color: var(--ink); }
.proof__score { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 8px 10px; border-radius: 12px; background: var(--navy); color: #FFFFFF; font-weight: 800; font-size: 1.05rem; }
.proof__star { fill: var(--gold); color: var(--gold); }
.proof__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold-3); }
[data-theme="dark"] .proof__icon { color: var(--gold-2); }
[data-theme="dark"] .proof__score { background: #0A1428; box-shadow: inset 0 0 0 1px var(--line-2); }
.proof__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.proof__text strong { font-size: .9rem; }
.proof__text small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899.98px) {
    .proof { margin-top: 18px; }
    .proof__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proof__item:nth-child(3) { border-inline-start: 0; }
    .proof__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
    .proof__item { padding: 12px; gap: 8px; }
    .proof__score { padding: 6px 8px; font-size: .95rem; }
    .proof__icon { width: 36px; height: 36px; }
    .proof__text strong { font-size: .8rem; }
    .proof__text small { white-space: normal; }
}

/* ---------- Photo cards (holiday packages) ---------- */
.photo--img { background: var(--navy); }
.photo--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 15, 32, .45)); pointer-events: none; }
.photo--img .photo-badge { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; background: rgba(8, 15, 32, .72); color: #FFFFFF; border: 1px solid rgba(255, 194, 51, .5); }
[data-theme="dark"] .photo--img.photo--tone { filter: none; }
.package-card:hover .photo--img > img { transform: scale(1.06); }
.package-card { box-shadow: var(--shadow); }
.package-card .price strong { color: var(--ink); }
.package-card--grid .photo { height: 200px; }
.package-card--grid { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.package-card--grid:target { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }

/* ---------- Trending destinations mosaic ---------- */
.dest-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; }
.dest-tile { position: relative; overflow: hidden; border-radius: 22px; display: flex; align-items: flex-end; color: #FFFFFF; text-decoration: none; background: var(--navy); isolation: isolate; box-shadow: var(--shadow); }
.dest-tile:first-child { grid-column: span 2; grid-row: span 2; }
.dest-tile:nth-child(4) { grid-column: span 2; }
.dest-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.dest-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 15, 32, 0) 35%, rgba(8, 15, 32, .82) 100%); }
.dest-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 18px; width: 100%; }
.dest-tile__body small { font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.dest-tile__body strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.15; }
.dest-tile:first-child .dest-tile__body strong { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.dest-tile__price { align-self: flex-start; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: .78rem; }
.dest-tile:hover .dest-tile__img { transform: scale(1.06); }
.dest-tile:hover, .dest-tile:focus-visible { color: #FFFFFF; }
@media (max-width: 899.98px) {
    .dest-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
    .dest-tile:first-child { grid-column: span 2; grid-row: span 1; }
    .dest-tile:nth-child(4) { grid-column: span 1; }
    .dest-tile:last-child:nth-child(even) { grid-column: span 2; }
    .dest-tile { border-radius: 18px; }
    .dest-tile__body { padding: 14px; }
    .dest-tile__body strong { font-size: 1.15rem; }
    .dest-tile:first-child { min-height: 220px; }
    .dest-tile:first-child .dest-tile__body strong { font-size: 1.7rem; }
}

/* ---------- How booking works ---------- */
.how3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: how; position: relative; }
.how3 li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 22px; box-shadow: var(--shadow); }
.how3 h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.how3 p { margin: 0; color: var(--muted); font-size: .92rem; }
.how3__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--navy); color: var(--gold-2); box-shadow: 0 10px 24px rgba(14, 27, 51, .25); }
.how3__num { position: absolute; top: 14px; inset-inline-end: 18px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--gold) 38%, transparent); }
@media (min-width: 900px) {
    .how3 li:not(:last-child)::after { content: ""; position: absolute; top: 52px; inset-inline-end: -18px; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px); }
}
@media (max-width: 899.98px) { .how3 { grid-template-columns: 1fr; gap: 12px; } .how3 li { padding: 18px 18px 18px 86px; min-height: 92px; } .how3__icon { position: absolute; top: 18px; inset-inline-start: 18px; } .how3 h3 { margin-top: 0; } }

/* ---------- Why choose: navy icons with gold ---------- */
[data-accent="gold"] .feature { --c: var(--navy); box-shadow: var(--shadow); }
[data-accent="gold"] .feature__icon { color: var(--gold-2); background: linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: 0 10px 22px rgba(14, 27, 51, .25); }
[data-theme="dark"][data-accent="gold"] .feature__icon { background: linear-gradient(135deg, #1A3263, #22427E); }

/* ---------- Member banner ---------- */
[data-accent="gold"] .member-banner { background: linear-gradient(120deg, var(--navy) 0%, #1A3263 100%); color: #FFFFFF; box-shadow: var(--shadow-lg); }
[data-accent="gold"] .member-banner__icon { background: var(--gold); color: var(--gold-ink); }
[data-accent="gold"] .member-banner .btn-light { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }

/* ---------- Photo CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; min-height: 340px; display: flex; align-items: center; color: #FFFFFF; background: var(--navy); box-shadow: var(--shadow-lg); }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 15, 32, .92) 0%, rgba(8, 15, 32, .7) 50%, rgba(8, 15, 32, .25) 100%); }
.cta-band__body { padding: clamp(26px, 5vw, 56px); max-width: 640px; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; color: #FFFFFF; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-bottom: 20px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band__actions .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; }
.btn-wa { background: #128C4B; border: 0; color: #FFFFFF; font-weight: 700; }
.btn-wa:hover, .btn-wa:focus-visible { background: #0E7A40; color: #FFFFFF; }
@media (max-width: 640px) {
    .cta-band { border-radius: 22px; min-height: 0; }
    .cta-band::before { background: linear-gradient(180deg, rgba(8, 15, 32, .6) 0%, rgba(8, 15, 32, .92) 70%); }
    .cta-band__body { padding: 120px 20px 22px; }
    .cta-band__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Footer: navy with gold details ---------- */
[data-accent="gold"] .sfooter a:hover { color: var(--gold-2); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
    position: fixed; z-index: 60; inset-inline-end: 18px; bottom: calc(18px + var(--safe-bottom));
    display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px 0 14px; border-radius: 999px;
    background: #128C4B; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: .9rem;
    box-shadow: 0 12px 28px rgba(18, 140, 75, .4), 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover, .wa-float:focus-visible { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 140, 75, .5); }
.wa-float .icon { flex: none; }
@media (max-width: 999.98px) {
    .wa-float { bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 14px); inset-inline-end: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
    .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body:has(.sticky-cta) .wa-float { display: none; }
}
html.is-locked .wa-float, body:has(.auth-layer:not([hidden])) .wa-float { opacity: 0; pointer-events: none; }
@media print { .wa-float { display: none; } }

/* ---------- Scroll reveal (only elements below the fold, only with motion on) ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-motion="reduce"] .reveal.is-pending { opacity: 1; transform: none; }

/* ---------- Touch devices: keep it light while scrolling ---------- */
@media (max-width: 999.98px), (hover: none), (pointer: coarse) {
    .hero__photo img { animation: none; }
    .dest-tile:hover .dest-tile__img, .package-card:hover .photo--img > img { transform: none; }
    .reveal.is-in { transition-duration: .5s; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__photo img { animation: none; }
    .reveal.is-pending { opacity: 1; transform: none; }
}

/* v1.3 layout fixes */
.proof { z-index: 4; }
.hero--home.hero--photo { padding-bottom: 52px; }
@media (min-width: 900px) { .dest-mosaic .dest-tile:nth-child(5), .dest-mosaic .dest-tile:nth-child(6) { grid-column: span 2; } }
[data-accent="gold"] .route-card__icon { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold-2); }
@media (max-width: 640px) {
    .proof__text small { white-space: normal; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .feature { padding: 16px; }
    .feature__icon { width: 44px; height: 44px; border-radius: 13px; }
    .feature h3 { font-size: .95rem; }
    .feature p { font-size: .82rem; margin: 0; }
}
[data-accent="gold"] .sfooter { background: radial-gradient(120% 80% at 0% 0%, #13264D 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(245, 165, 3, .14) 0%, transparent 60%), #0A1428; }
[data-accent="gold"] .sfooter__help-icon { background: var(--grad-gold); color: var(--gold-ink); }
[data-accent="gold"] .sfooter::before { background: linear-gradient(90deg, transparent, #F5A503 25%, #FFC233 50%, #F5A503 75%, transparent); animation: none; }
[data-accent="gold"] .sfooter__glow--1 { background: #1A3263; }
[data-accent="gold"] .sfooter__glow--2 { background: #F5A503; opacity: .12; }
.theme-preview--light i:nth-child(2), .theme-preview--dark i:nth-child(2) { background: var(--grad-brand); }
[data-accent="gold"] .theme-preview--light i:nth-child(2), [data-accent="gold"] .theme-preview--dark i:nth-child(2) { background: var(--grad-gold); }
.dest-tile__body small, .dest-tile__body strong { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.dest-tile::before { background: linear-gradient(180deg, rgba(8, 15, 32, 0) 30%, rgba(8, 15, 32, .88) 100%); }
