/* ==================================================================
   Ceylogiri — custom styles layered on top of Tailwind (CDN)
   Palette: terracotta #A2482B · ochre #D49B35 · charcoal #1A1E24 · ivory #FBF8F2
   ================================================================== */

/* Brand colours come from Admin → Site Settings → Theme Colours
   (printed as --c-* RGB triplets by theme_style_tag() in functions.php). */
:root {
    --terracotta: rgb(var(--c-primary, 162 72 43));
    --terracotta-dark: rgb(var(--c-primary-dark, 138 61 37));
    --ochre: rgb(var(--c-accent, 212 155 53));
    --charcoal: rgb(var(--c-dark, 15 29 22));
    --ivory: rgb(var(--c-light, 251 248 242));
    --topbar-h: 2rem;
}

html { scroll-padding-top: 6rem; }
body { font-weight: 400; }
::selection { background: var(--ochre); color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header .logo-text { color: var(--charcoal); }
.site-header .nav-link { position: relative; color: var(--charcoal); padding: .25rem 0; transition: color .2s; }
.site-header .menu-btn { color: var(--charcoal); }
.site-header .nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: var(--ochre); transition: width .3s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.is-active::after { width: 100%; }
.site-header .nav-link:hover,
.site-header .nav-link.is-active { color: var(--terracotta); }

/* Transparent header floating over the hero */
.site-header.is-transparent { position: absolute; top: 0; }
@media (min-width: 768px) { .site-header.is-transparent { top: var(--topbar-h); } }
.site-header.is-transparent .logo-text,
.site-header.is-transparent .nav-link,
.site-header.is-transparent .menu-btn { color: var(--ivory); }
.site-header.is-transparent .nav-link:hover,
.site-header.is-transparent .nav-link.is-active { color: var(--ochre); }

/* After scrolling, the transparent header becomes a solid fixed bar */
.site-header.is-transparent.is-scrolled {
    position: fixed; top: 0;
    background: rgb(var(--c-light) / .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgb(var(--c-dark) / .08);
    animation: slideDown .35s ease;
}
.site-header.is-transparent.is-scrolled .logo-text,
.site-header.is-transparent.is-scrolled .nav-link,
.site-header.is-transparent.is-scrolled .menu-btn { color: var(--charcoal); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    background-size: cover;
    background-position: center 40%;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgb(var(--c-dark) / .55) 0%, rgb(var(--c-dark) / .15) 40%, rgb(var(--c-dark) / .75) 100%),
        linear-gradient(90deg, rgb(var(--c-dark) / .55) 0%, rgb(var(--c-dark) / 0) 60%);
}
.hero-kicker::before {
    content: ''; display: inline-block; width: 40px; height: 1px; background: var(--ochre);
    vertical-align: middle; margin-right: 12px;
}

/* ---------- Section headings ---------- */
.eyebrow { color: var(--terracotta); font-size: .75rem; letter-spacing: .35em; text-transform: uppercase; font-weight: 500; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--ochre); }
.ornament::before, .ornament::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Form fields ---------- */
.field-label {
    display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
    color: #6b6258; margin-bottom: .4rem; font-weight: 500;
}
.field-input {
    width: 100%; background: #fff; border: 1px solid #e3dccf; border-radius: .6rem;
    padding: .8rem 1rem; font-size: .95rem; color: var(--charcoal);
    transition: border-color .2s, box-shadow .2s;
}
.field-input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .12); }
.field-input.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Hero search widget fields on dark glass */
.search-widget .field-input { background: #fff; }

/* ---------- Cards ---------- */
.tour-card .tour-img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tour-card:hover .tour-img { transform: scale(1.07); }
.tour-card { transition: box-shadow .35s, transform .35s; }
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgb(var(--c-dark) / .25); }

.highlight-card img { transition: transform 1s ease; }
.highlight-card:hover img { transform: scale(1.06); }

/* ---------- Gallery slider ---------- */
.gallery-track { display: flex; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery-slide { flex: 0 0 100%; }
.gallery-thumb { opacity: .55; transition: opacity .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 2px; }
.gallery-thumb.is-active, .gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { outline-color: var(--ochre); }

/* ---------- Lightbox ---------- */
.lightbox { background: rgba(10, 12, 15, .95); }

/* ---------- Itinerary accordion ---------- */
.itinerary-item .itinerary-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.itinerary-item .itinerary-body > div { overflow: hidden; }
.itinerary-item.is-open .itinerary-body { grid-template-rows: 1fr; }
.itinerary-item .chevron { transition: transform .3s; }
.itinerary-item.is-open .chevron { transform: rotate(180deg); }
.itinerary-item.is-open .day-dot { background: var(--terracotta); color: var(--ivory); border-color: var(--terracotta); }
.itinerary-line::before {
    content: ''; position: absolute; left: 1.45rem; top: 3rem; bottom: 1rem; width: 1px;
    background: repeating-linear-gradient(to bottom, var(--ochre) 0 6px, transparent 6px 12px);
}

/* ---------- Modal ---------- */
#bookingModal.is-open { display: block; }
#bookingModal .modal-panel { animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .gallery-track, .tour-card, .tour-card .tour-img { transition: none; }
}

/* ---------- Misc ---------- */
.prose-ceylon p { margin-bottom: 1rem; line-height: 1.85; }
.pattern-bg {
    background-color: var(--ivory);
    background-image: radial-gradient(rgb(var(--c-primary) / .08) 1px, transparent 1px);
    background-size: 22px 22px;
}
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Toast */
.toast { animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==================================================================
   v2 — motion system, full-screen slider, island map, categories
   ================================================================== */

/* ---------- Scroll-triggered animations: data-animate="fade-up|fade-left|fade-right|zoom-in" ---------- */
[data-animate] {
    opacity: 0;
    transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="fade-left"]  { transform: translateX(50px); }
[data-animate="fade-right"] { transform: translateX(-50px); }
[data-animate="zoom-in"]    { transform: scale(.88); }
[data-animate].is-in { opacity: 1; transform: none; }

/* ---------- Page preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 100; background: var(--charcoal);
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.25rem;
    transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-mark { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgb(var(--c-accent) / .25); border-top-color: var(--ochre); animation: spin 1s linear infinite; display: flex; align-items: center; justify-content: center; }
.preloader-mark i { color: var(--ochre); font-size: 1.6rem; animation: spin 1s linear infinite reverse; }
.preloader-text { color: var(--ivory); font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; letter-spacing: .3em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--terracotta), var(--ochre)); }
.back-to-top {
    position: fixed; right: 1.6rem; bottom: 6rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
    background: var(--charcoal); color: var(--ivory); display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s ease; box-shadow: 0 10px 30px rgb(var(--c-dark) / .3);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--terracotta); }

/* ---------- Button shine sweep ---------- */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg);
}
.btn-shine:hover::after { animation: shine .8s ease; }
@keyframes shine { to { left: 130%; } }

/* ---------- Full-screen hero slider ---------- */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center; transform: scale(1.12); display: block;
}
.hero-slide.is-active .hero-slide-img { animation: kenburns var(--slide-ms, 7000ms) ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.18) translate3d(1%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgb(var(--c-dark) / .65) 0%, rgb(var(--c-dark) / .1) 35%, rgb(var(--c-dark) / .8) 100%),
        linear-gradient(90deg, rgb(var(--c-dark) / .75) 0%, rgb(var(--c-dark) / 0) 65%);
}
.hero-slide .anim { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.hero-slide.is-active .anim { opacity: 1; transform: none; }
.hero-slide.is-active .anim-1 { transition-delay: .35s; }
.hero-slide.is-active .anim-2 { transition-delay: .55s; }
.hero-slide.is-active .anim-3 { transition-delay: .75s; }
.hero-slide.is-active .anim-4 { transition-delay: .95s; }

.slider-dot { width: 46px; height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; overflow: hidden; position: relative; }
.slider-dot span { position: absolute; inset: 0; background: var(--ochre); transform-origin: 0 50%; transform: scaleX(0); }
.slider-dot.is-active span { animation: dotfill var(--slide-ms, 6000ms) linear forwards; }
.slider-dot.is-done span { transform: scaleX(1); }
.hero-slider.is-paused .slider-dot.is-active span { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.slider-arrow {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; transition: all .3s ease; backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--ochre); border-color: var(--ochre); color: var(--charcoal); transform: scale(1.06); }
.scroll-line { width: 1px; height: 64px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ochre); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* ---------- Category tiles & tabs ---------- */
.cat-tile { transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s; }
.cat-tile::before {
    content: ''; position: absolute; inset: auto 0 0 0; height: 0; background: var(--charcoal); transition: height .45s cubic-bezier(.2,.8,.2,1); z-index: 0;
}
.cat-tile > * { position: relative; z-index: 1; transition: color .35s; }
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgb(var(--c-dark) / .45); border-color: transparent; }
.cat-tile:hover::before { height: 100%; }
.cat-tile:hover > span { color: var(--ivory); }
.cat-tile:hover .cat-icon { background: var(--ochre); color: var(--charcoal); transform: rotateY(360deg); }
.cat-icon { transition: transform .8s ease, background .35s, color .35s; }

.cat-tab {
    display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .7rem 1.2rem; border-radius: 999px;
    background: #fff; border: 1px solid rgb(var(--c-light-dark)); font-size: .85rem; transition: all .25s;
}
.cat-tab i { color: var(--terracotta); }
.cat-tab:hover { border-color: var(--terracotta); }
.cat-tab.is-active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.cat-tab.is-active i { color: var(--ochre); }

.filter-btn {
    padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgb(var(--c-dark) / .15); font-size: .75rem;
    text-transform: uppercase; letter-spacing: .15em; transition: all .25s;
}
.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-btn.is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.filter-item { transition: opacity .4s ease, transform .4s ease; }
.filter-item.is-hiding { opacity: 0; transform: scale(.95); }
.filter-item.is-hidden { display: none; }

/* Tour card extras */
.tour-view { opacity: 0; transform: translateX(-10px) rotate(-45deg); transition: all .4s ease; }
.tour-card:hover .tour-view { opacity: 1; transform: none; }

/* ---------- Destination marquee ---------- */
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Floating / parallax / glow ---------- */
.float-y { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.glow-orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .25; pointer-events: none; }
.glow-orb-1 { background: var(--terracotta); top: -120px; left: -120px; animation: orb 14s ease-in-out infinite; }
.glow-orb-2 { background: var(--ochre); bottom: -160px; right: -100px; animation: orb 18s ease-in-out infinite reverse; }
@keyframes orb { 50% { transform: translate(80px, 60px) scale(1.15); } }
.cta-parallax { background: linear-gradient(120deg, rgb(var(--c-primary) / .92), rgb(var(--c-dark) / .94)), var(--cta-bg) center / cover fixed; }
@media (hover: none) { .cta-parallax { background-attachment: scroll; } }
.reason-card { transition: transform .4s, box-shadow .4s, border-color .4s; }
.reason-card:hover { transform: translateY(-6px); border-color: var(--ochre); box-shadow: 0 20px 40px -20px rgb(var(--c-dark) / .3); }
.reason-card:hover .reason-icon { background: var(--terracotta); color: #fff; transform: rotate(-8deg) scale(1.1); }
.reason-icon { transition: all .4s; }
.testimonial-card { transition: transform .4s, box-shadow .4s; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgb(var(--c-dark) / .35); }

/* ---------- Island map section (experiences + pins) ---------- */
.island-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .island-grid { grid-template-columns: 1fr minmax(320px, 460px) 1fr; gap: 1.5rem; } }
.exp-col { display: grid; gap: 1.25rem; }
@media (min-width: 640px) and (max-width: 1023px) { .exp-col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .exp-col { gap: 3.5rem; } .exp-col-left { order: 0; } }
@media (max-width: 1023px) { .island-map-wrap { order: -1; } }

.exp-tile { display: flex; align-items: center; position: relative; color: var(--charcoal); }
.exp-circle {
    position: relative; z-index: 2; flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%; padding: 8px; background: #fff;
}
.exp-circle::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--terracotta); transition: transform .9s ease;
}
.exp-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.exp-pill {
    flex: 1; min-height: 104px; display: flex; flex-direction: column; justify-content: center; background: #f2f1ef;
    transition: background .4s ease, color .4s ease, box-shadow .4s;
}
.exp-left .exp-pill  { margin-left: -46px; padding: 1rem 1.5rem 1rem 66px; border-radius: 0 2.6rem 2.6rem 0; }
.exp-right .exp-pill { margin-right: -46px; padding: 1rem 66px 1rem 1.5rem; border-radius: 2.6rem 0 0 2.6rem; text-align: left; }
.exp-name { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 600; line-height: 1.15; }
.exp-desc { font-size: .8rem; color: #6b6258; max-height: 0; opacity: 0; overflow: hidden; transition: all .45s ease; }
.exp-tile:hover .exp-pill, .exp-tile.is-active .exp-pill { background: var(--charcoal); color: var(--ivory); box-shadow: 0 18px 35px -18px rgb(var(--c-dark) / .6); }
.exp-tile:hover .exp-desc, .exp-tile.is-active .exp-desc { max-height: 3rem; opacity: 1; margin-top: .25rem; color: rgb(var(--c-light) / .7); }
.exp-tile:hover .exp-circle::before, .exp-tile.is-active .exp-circle::before { transform: rotate(180deg); border-color: var(--ochre); }
.exp-tile:hover .exp-circle img { transform: scale(1.12); }
@media (max-width: 639px) { .exp-circle { width: 104px; height: 104px; } .exp-name { font-size: 1.3rem; } }

.island-map-wrap { position: relative; }
.island-map { position: relative; max-width: 460px; margin: 0 auto; }
.island-map img { transition: filter .5s ease; }
.map-pin {
    position: absolute; transform: translate(-50%, -50%); z-index: 3; display: block; width: 18px; height: 18px;
    opacity: 0; scale: .4; transition: opacity .5s ease, scale .5s cubic-bezier(.3,1.6,.5,1);
    transition-delay: var(--pin-delay, 0ms);
}
.island-map-wrap.is-in .map-pin { opacity: 1; scale: 1; }
.pin-dot {
    position: absolute; inset: 2px; border-radius: 50%; background: var(--terracotta); border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgb(var(--c-dark) / .35); transition: transform .3s, background .3s;
}
.pin-dot::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--terracotta); opacity: 0;
    animation: pinpulse 2.4s ease-out infinite; animation-delay: var(--pin-delay, 0ms);
}
@keyframes pinpulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.pin-label {
    position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .72rem; letter-spacing: .02em;
    background: #fff; color: var(--charcoal); padding: .2rem .7rem; border-radius: 4px; box-shadow: 0 4px 14px rgb(var(--c-dark) / .15);
    transition: opacity .3s, background .3s, color .3s; pointer-events: none;
}
.map-pin.label-right .pin-label { left: calc(100% + 6px); }
.map-pin.label-left .pin-label  { right: calc(100% + 6px); }
.map-pin:not(.is-major) .pin-label { opacity: 0; }
.map-pin:hover { z-index: 6; }
.map-pin:hover .pin-label { opacity: 1; background: var(--charcoal); color: var(--ivory); }
.map-pin:hover .pin-dot { transform: scale(1.3); background: var(--ochre); }

/* Experience hover → light up matching pins, dim the rest */
.island-grid.is-filtering .map-pin { opacity: .25; }
.island-grid.is-filtering .map-pin.is-lit { opacity: 1; z-index: 5; }
.island-grid.is-filtering .map-pin.is-lit .pin-dot { background: var(--ochre); transform: scale(1.35); }
.island-grid.is-filtering .map-pin.is-lit .pin-label { opacity: 1; background: var(--terracotta); color: #fff; }
.island-grid.is-filtering .island-map img { filter: saturate(.75); }

/* ---------- Page hero image slow zoom ---------- */
.page-hero-img { animation: kenburns 18s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1 !important; transform: none !important; transition: none; }
    .hero-slide-img, .page-hero-img, .marquee-track, .float-y, .glow-orb, .pin-dot::after { animation: none !important; }
    .map-pin { opacity: 1; scale: 1; }
}

/* Safety net: hide the preloader even if JavaScript fails to load */
.preloader { animation: preloaderOut .01s 4s forwards; }
@keyframes preloaderOut { to { opacity: 0; visibility: hidden; } }

/* Small screens: keep map labels inside the viewport */
@media (max-width: 639px) {
    .island-map { max-width: 76%; }
    .pin-label { font-size: .62rem; padding: .12rem .45rem; }
    .map-pin { width: 14px; height: 14px; }
}

/* ---------- Popular destinations mosaic ---------- */
.dest-grid { grid-auto-rows: 200px; }
@media (min-width: 1024px) { .dest-grid { grid-auto-rows: 250px; } }
.dest-card img { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.dest-card:hover img { transform: scale(1.1); }
.dest-card .dest-desc { max-height: 0; opacity: 0; overflow: hidden; transition: all .45s ease; }
.dest-card:hover .dest-desc { max-height: 4rem; opacity: 1; }
.dest-arrow { opacity: 0; transform: translate(-8px, 8px) rotate(-45deg); transition: all .4s ease; }
.dest-card:hover .dest-arrow { opacity: 1; transform: none; }
.dest-card::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,0); border-radius: 12px; transition: border-color .5s, inset .5s; pointer-events: none; }
.dest-card:hover::after { inset: 10px; border-color: rgba(255,255,255,.45); }

/* ---------- How it works ---------- */
@media (min-width: 768px) {
    .steps::before { content: ''; position: absolute; top: 48px; left: 16%; right: 16%; border-top: 2px dashed rgb(var(--c-accent) / .55); }
}
.step-icon { transition: transform .5s cubic-bezier(.3,1.6,.5,1), background .3s, color .3s; }
.step:hover .step-icon { transform: translateY(-6px) scale(1.06); background: var(--terracotta); color: #fff; }

/* ==================================================================
   v4 — calmer hero, unobtrusive controls, responsive typography
   ================================================================== */

/* Hero: let the photograph lead. Darken only where text sits. */
.hero-slider .hero-overlay {
    background:
        linear-gradient(180deg, rgb(var(--c-dark) / .45) 0%, rgb(var(--c-dark) / 0) 22%),
        linear-gradient(0deg, rgb(var(--c-dark) / .78) 0%, rgb(var(--c-dark) / .35) 32%, rgb(var(--c-dark) / 0) 62%);
}
@media (min-width: 1024px) {
    .hero-slider .hero-overlay {
        background:
            linear-gradient(180deg, rgb(var(--c-dark) / .45) 0%, rgb(var(--c-dark) / 0) 20%),
            linear-gradient(0deg, rgb(var(--c-dark) / .7) 0%, rgb(var(--c-dark) / 0) 55%),
            linear-gradient(90deg, rgb(var(--c-dark) / .45) 0%, rgb(var(--c-dark) / 0) 50%);
    }
}
.hero-title {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.01em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgb(0 0 0 / .25);
}
.hero-sub { text-wrap: pretty; }
@media (max-width: 479px) { .hero-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.hero-link { border-bottom: 1px solid rgb(255 255 255 / .35); padding-bottom: 3px; }
.hero-link:hover { border-color: var(--ochre); }
/* Gentler Ken Burns */
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero-slide-img { transform: scale(1.09); }

/* Arrows: hidden until the visitor hovers the slider (desktop only) */
.slider-arrow {
    position: absolute; top: 50%; z-index: 20; width: 44px; height: 44px; margin-top: -22px;
    border-radius: 50%; border: 1px solid rgb(255 255 255 / .28); background: rgb(0 0 0 / .18); color: #fff;
    display: none; align-items: center; justify-content: center; font-size: .85rem;
    backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease, background .3s ease, transform .3s ease;
}
.slider-arrow-prev { left: 1.25rem; }
.slider-arrow-next { right: 1.25rem; }
@media (hover: hover) and (min-width: 768px) {
    .slider-arrow { display: inline-flex; }
    .hero-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: .85; }
}
.slider-arrow:hover { opacity: 1; background: rgb(0 0 0 / .4); transform: scale(1.05); color: #fff; border-color: rgb(255 255 255 / .5); }

/* Slim indicators, bottom centre */
.slider-dots { position: absolute; z-index: 20; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; gap: .5rem; }
@media (min-width: 640px) { .slider-dots { bottom: 1.75rem; } }
.slider-dot { width: 22px; height: 2px; padding: 8px 0; background: transparent; position: relative; border-radius: 0; }
.slider-dot::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgb(255 255 255 / .35); border-radius: 2px; }
.slider-dot span { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; inset-inline: 0; bottom: auto; background: #fff; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(0); }
.slider-dot.is-active span { animation: dotfill var(--slide-ms, 6000ms) linear forwards; }
.slider-dot.is-done span { transform: scaleX(0); }
.slider-dot:hover::before { background: rgb(255 255 255 / .7); }

/* Search bar below the slider */
.search-widget .field-label { font-size: .65rem; letter-spacing: .12em; margin-bottom: .3rem; }
.search-widget .field-input { padding: .65rem .8rem; font-size: .9rem; }
@media (min-width: 640px) { .search-widget .field-input { padding: .75rem .9rem; } }

/* ---------- Consistent section headings ---------- */
.section-head { margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .section-head { margin-bottom: 3.5rem; } }
.section-kicker {
    display: inline-flex; align-items: center; gap: .75rem; color: var(--terracotta);
    font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: .85rem;
}
.section-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head.is-center .section-kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head.is-dark .section-kicker { color: var(--ochre); }
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.1; letter-spacing: -.005em;
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); text-wrap: balance;
}
.section-intro { margin-top: .9rem; font-size: 1rem; line-height: 1.7; color: #5f5a52; text-wrap: pretty; }
@media (min-width: 640px) { .section-intro { font-size: 1.075rem; } }
.section-head.is-dark .section-intro { color: rgb(var(--c-light) / .65); }
.section-head.is-center { text-align: center; margin-left: auto; margin-right: auto; max-width: 44rem; }
.section-head.is-split { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .section-head.is-split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; } }
.section-link { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--terracotta); transition: gap .3s; }
.section-link:hover { gap: .85rem; }
.section-head.is-dark .section-link { color: var(--ochre); }

/* Comfortable vertical rhythm on small screens */
.sec { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .sec { padding-top: 6rem; padding-bottom: 6rem; } }

/* Mobile: horizontal, swipeable rows instead of very long stacks */
@media (max-width: 767px) {
    .snap-row { display: flex !important; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
                margin-left: -1.25rem; margin-right: -1.25rem; padding: .25rem 1.25rem 1rem; scrollbar-width: none; }
    .snap-row::-webkit-scrollbar { display: none; }
    .snap-row > * { flex: 0 0 84%; scroll-snap-align: start; }
    .chip-row { flex-wrap: nowrap !important; overflow-x: auto; margin-left: -1.25rem; margin-right: -1.25rem; padding: 0 1.25rem .25rem; scrollbar-width: none; }
    .chip-row::-webkit-scrollbar { display: none; }
    .chip-row > * { flex-shrink: 0; }
}

/* Smaller tracking for uppercase labels on phones so they don't wrap awkwardly */
@media (max-width: 639px) {
    .eyebrow, .ornament { letter-spacing: .2em !important; }
    .ornament::before, .ornament::after { width: 24px; }
    .counter-card p.text-xs, .stat-label { letter-spacing: .12em !important; }
    .filter-btn { padding: .5rem .9rem; letter-spacing: .1em; }
    .tour-card .p-6 { padding: 1.25rem; }
}
/* Keep the pre-calculated parallax subtle */
.parallax-frame { overflow: hidden; }
@media (max-width: 639px) {
    .wa-float { width: 48px !important; height: 48px !important; font-size: 1.5rem !important; right: 1rem !important; bottom: 1rem !important; }
    .back-to-top { right: 1.15rem; bottom: 4.6rem; width: 40px; height: 40px; }
}
/* Detail page: room for the mobile booking bar; floating buttons move out of its way */
@media (max-width: 1023px) {
    body:has(.book-bar) { padding-bottom: 72px; }
    .wa-float[data-hide-mobile] { display: none !important; }
    body:has(.book-bar) .back-to-top { bottom: 5.5rem; }
}
