/* ==========================================================================
   KLAYOK — Design System
   Compass mark + earthy, editorial travel palette drawn from brand logo
   and destination photography (terracotta, sage, mustard, warm slate).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

/* Homepage-only typography (see .klayok-home and body[data-page="home"]
   .site-header further down) — Fraunces/Plus Jakarta Sans above remain the
   sitewide fonts for every other page; nothing here replaces them. */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Open+Sans:wght@600;700&family=Allerta&family=Gudea:wght@400;700&display=swap');

:root{
  /* ---- Brand color tokens (light) ---- */
  --color-terracotta:        #C1694A;
  --color-terracotta-dark:   #A2543A;
  --color-terracotta-light:  #E8A98D;
  --color-sage:              #7C8D7E;
  --color-sage-dark:         #5F6F60;
  --color-sage-light:        #C9D2C6;
  --color-mustard:           #E8AE5C;
  --color-mustard-dark:      #C98F3E;
  --color-slate:             #5C6B80;
  --color-slate-dark:        #3A4048;

  /* ---- Semantic tokens ---- */
  --bg:                #FAF6F0;
  --surface:            #FFFFFF;
  --surface-sunken:      #F1EBE0;
  --border:              #E7DFD1;
  --border-strong:       #D8CDB9;
  --text:                #2E2A24;
  --text-muted:          #726B5F;
  --text-inverse:        #FAF6F0;

  --brand:                var(--color-terracotta);
  --brand-hover:          var(--color-terracotta-dark);
  --brand-contrast:       #FFFFFF;
  --accent:               var(--color-mustard);
  --accent-contrast:      #3A2B12;
  --secondary:            var(--color-sage);
  --secondary-contrast:   #FFFFFF;

  --success:              #4C7A5C;
  --danger:               #B24534;
  --danger-bg:            #F7E4DE;

  --focus-ring:            #C1694A;

  /* ---- Header (original warm KLAYOK palette: cream bar, dark text, terracotta accent) ---- */
  --header-bg:             rgba(250,246,240,0.92);
  --header-border:         var(--border);
  --header-text:           var(--text);
  --header-text-muted:     rgba(46,42,36,0.72);
  --header-accent:         var(--brand);

  /* ---- Type scale ---- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;

  /* ---- Spacing scale (4/8) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* ---- Radius / shadow ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(46,42,36,0.06), 0 1px 1px rgba(46,42,36,0.04);
  --shadow-md: 0 8px 24px rgba(46,42,36,0.08), 0 2px 6px rgba(46,42,36,0.05);
  --shadow-lg: 0 20px 48px rgba(46,42,36,0.14), 0 4px 12px rgba(46,42,36,0.06);

  --container-max: 1280px;

  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  /* fallback: site is light-first; dark handled via .theme-dark class below for app shell sections */
}

.theme-dark{
  --bg:              #211E1A;
  --surface:          #2A2621;
  --surface-sunken:   #221F1B;
  --border:           #3A352C;
  --border-strong:    #48412F;
  --text:             #F3EDE2;
  --text-muted:       #B7AE9E;
  --text-inverse:     #211E1A;
  --brand-contrast:   #FFFFFF;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html.nav-scroll-lock, body.nav-scroll-lock{ overflow: hidden; height: 100%; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
input, select, textarea{ font-family: inherit; font-size: inherit; }

h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

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

.container{ max-width: var(--container-max); margin-inline: auto; padding-inline: var(--sp-5); }
@media (max-width: 640px){ .container{ padding-inline: var(--sp-4); } }

.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.skip-link{
  position:absolute; left: var(--sp-4); top:-60px; background: var(--brand); color:#fff;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); z-index: 200; transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus{ top: var(--sp-4); }

/* ---------------------------------- Type helpers ---------------------------------- */
.eyebrow{
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.eyebrow::before{ content:''; width: 20px; height: 1.5px; background: var(--brand); display:inline-block; }
.section-heading{ font-size: clamp(1.75rem, 1.3rem + 1.8vw, var(--fs-3xl)); line-height: 1.12; margin-top: var(--sp-3); max-width: 20ch; }
.section-lede{ color: var(--text-muted); font-size: var(--fs-md); max-width: 56ch; margin-top: var(--sp-4); line-height: 1.65; }
.section-head{ margin-bottom: var(--sp-7); }
.section-head.center{ text-align:center; margin-inline:auto; }
.section-head.center .section-lede{ margin-inline:auto; }
.section-head.split{ display:flex; align-items:flex-end; justify-content:space-between; gap: var(--sp-6); flex-wrap:wrap; }

section{ padding-block: var(--sp-9); }
@media (max-width: 780px){ section{ padding-block: var(--sp-7); } }

/* ---------------------------------- Buttons ---------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: var(--sp-2);
  font-weight: 700; font-size: var(--fs-sm); padding: 13px 24px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
  min-height: 44px; white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background: var(--brand); color: var(--brand-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--brand-hover); }
.btn-secondary{ background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover{ border-color: var(--brand); color: var(--brand); }
.btn-dark{ background: var(--color-slate-dark); color: #fff; }
.btn-dark:hover{ background: #262b31; }
.btn-ghost{ background: transparent; color: var(--text-muted); padding-inline: var(--sp-3); }
.btn-ghost:hover{ color: var(--text); }
.btn-sm{ padding: 9px 16px; font-size: var(--fs-xs); min-height: 36px; }
.btn-lg{ padding: 16px 30px; font-size: var(--fs-base); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity: 0.45; cursor: not-allowed; }
.btn-icon{ width:44px; height:44px; padding:0; border-radius:50%; }

/* ---------------------------------- Icons ---------------------------------- */
.icon{ width:1em; height:1em; stroke: currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.icon-fill{ fill: currentColor; stroke:none; }

/* ---------------------------------- Header / Nav ---------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}
.site-header .container{ display:flex; align-items:center; gap: var(--sp-6); padding-block: 20px; }
.brand{ display:flex; align-items:center; gap: var(--sp-2); font-family: var(--font-display); font-weight:700; font-size: 1.3rem; color: var(--header-text); flex-shrink:0; transition: color var(--dur-slow) var(--ease-out); }
.brand img{ width:32px; height:32px; }
.brand .brand-mark{ width:32px; height:32px; color: var(--header-accent); transition: color var(--dur-slow) var(--ease-out); }

.main-nav{ display:flex; align-items:flex-start; flex:1; gap: var(--sp-6); min-width:0; }
.nav-item{
  display:flex; flex-direction:column; gap:5px; flex:1 1 0; min-width:0;
  text-align:left; position:relative; padding-block: 4px 10px;
}
.nav-item-title{
  font-family: var(--font-body); font-weight:500; font-size:0.9rem; line-height:1.25;
  color: var(--text-muted); letter-spacing:.04em; text-transform:uppercase; transition: color var(--dur-base) var(--ease-out);
  white-space: nowrap; overflow:hidden; text-overflow:ellipsis;
}
.nav-item-sub{
  font-size:0.78rem; font-weight:400; line-height:1.3; color: rgba(114,107,95,0.7);
  transition: color var(--dur-base) var(--ease-out); white-space: nowrap; overflow:hidden; text-overflow:ellipsis;
}
.nav-item::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--header-accent);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-item:hover .nav-item-title{ color: var(--header-accent); }
.nav-item:hover .nav-item-sub{ color: var(--header-text); }
.nav-item:hover::after{ width:22px; }
.nav-item[aria-current="page"] .nav-item-title{ color: var(--header-accent); }
.nav-item[aria-current="page"]::after{ width:22px; }

.header-actions{ display:flex; align-items:center; gap: var(--sp-3); flex-shrink:0; }
.nav-toggle{ display:none; background:none; border:none; width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; color:var(--header-text); }

/* ---- Destinations mega-menu ---- */
.mega-menu-group{ position:relative; flex:1 1 0; min-width:0; }
.nav-item-mega{ display:flex; align-items:flex-start; gap:2px; }
.nav-item-mega .nav-item{ flex:none; min-width:0; }
.mega-toggle{
  background:none; border:none; padding:4px; margin-top:3px; cursor:pointer; color: var(--text-muted);
  display:flex; align-items:center; justify-content:center; border-radius:4px; flex-shrink:0;
}
.mega-toggle:hover{ color: var(--header-accent); }
.mega-toggle .icon{ width:13px; height:13px; transition: transform var(--dur-base) var(--ease-out); stroke-width:2.2; }
.mega-menu-group.mega-open .mega-toggle .icon{ transform: rotate(180deg); }
.mega-menu-group.mega-open .mega-toggle{ color: var(--header-accent); }

/* ---- About Us hover dropdown (Contact) — a small anchored popover, not
   the full-width .mega-menu shell used by Destinations/Activities, since
   it only ever holds one link. Pure CSS :hover/:focus-within, no JS,
   opened via the .about-nav-group wrapper (reuses .mega-menu-group above
   purely for its flex-sizing, not any of its JS-driven behavior). ---- */
.about-dropdown{
  position:absolute; top:100%; left:50%; margin-top:6px; min-width:150px; text-align:center;
  background: var(--bg); border:1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: var(--sp-2) var(--sp-3); z-index:90;
  opacity:0; transform: translate(-50%, -4px); pointer-events:none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.about-nav-group:hover .about-dropdown, .about-nav-group:focus-within .about-dropdown{
  opacity:1; transform: translate(-50%, 0); pointer-events:auto;
}
.about-dropdown-link{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:0.85rem; color: var(--brand); white-space:nowrap; }
.about-dropdown-link .icon{ width:13px; height:13px; }
.about-dropdown-link:hover{ color: var(--brand-hover); }

.mega-menu{
  position: fixed; top: var(--mega-menu-top, 90px); left:0; right:0; width:100%;
  background: var(--bg); border-top:1px solid var(--border); box-shadow: var(--shadow-md);
  opacity:0; transform: translateY(-8px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  pointer-events:none; z-index:90; max-height: calc(100vh - var(--mega-menu-top, 90px)); overflow-y:auto;
}
.mega-menu.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }

.mega-menu-inner{ display:flex; gap: var(--sp-8); padding-block: var(--sp-7); }
.mega-categories{ flex:0 0 17%; display:flex; flex-direction:column; gap:2px; }
.mega-cat{
  text-align:left; background:none; border:none; padding:10px 4px; font-family:var(--font-body);
  font-weight:500; font-size:0.8rem; letter-spacing:.04em; text-transform:uppercase; color: var(--text-muted);
  cursor:pointer; position:relative; transition: color var(--dur-base) var(--ease-out); min-height:44px;
}
.mega-cat::after{ content:''; position:absolute; left:4px; bottom:6px; height:1.5px; width:0; background:var(--header-accent); transition:width var(--dur-base) var(--ease-out); }
.mega-cat:hover{ color:var(--text); }
.mega-cat[aria-current="true"]{ color: var(--header-accent); }
.mega-cat[aria-current="true"]::after{ width:18px; }

.mega-cards-wrap{ flex:1; min-width:0; }
.mega-cards{ display:grid; grid-template-columns:repeat(4, 1fr); gap: var(--sp-7); justify-items:start; transition: opacity 150ms var(--ease-out); }
.mega-cards.is-switching{ opacity:0; }
.mega-card{
  display:flex; flex-direction:column; width:100%; max-width:200px; aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-lg); overflow:hidden; background: var(--bg);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.mega-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mega-card-body{
  display:flex; flex-direction:column; gap:5px; flex:0 0 auto; padding: var(--sp-4) var(--sp-4) var(--sp-3);
  background: var(--bg);
}
.mega-card-media{ display:block; flex:1; min-height:0; overflow:hidden; background:var(--surface-sunken); }
.mega-card-media img{ width:100%; height:100%; object-fit:cover; transition: transform var(--dur-slow) var(--ease-out); }
.mega-card:hover .mega-card-media img{ transform: scale(1.02); }
.mega-card-city{ font-family: var(--font-display); font-weight:600; font-size:1.02rem; line-height:1.2; color:var(--text); transition: color var(--dur-base) var(--ease-out); }
.mega-card:hover .mega-card-city{ color: var(--header-accent); }
.mega-card-country{ font-size:0.68rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); }
.mega-card-desc{
  font-size:0.78rem; line-height:1.35; color: var(--text-muted);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.mega-view-all{
  display:inline-flex; align-items:center; gap:6px; margin-top: var(--sp-6); font-weight:600; font-size:0.85rem;
  color: var(--header-accent); letter-spacing:.02em;
}
.mega-view-all .icon{ width:14px; height:14px; transition: transform var(--dur-base) var(--ease-out); }
.mega-view-all:hover .icon{ transform: translateX(3px); }
.mega-empty-note{ font-size:0.82rem; color:var(--text-muted); grid-column:1/-1; }

@media (max-width: 980px){
  /* ==========================================================================
     Mobile header + navigation — deliberately separate from the desktop rules
     above. Nothing here reuses desktop mega-menu photo/grid styling; the
     Destinations accordion on mobile is text-only by design (see .mega-cards-wrap).
     ========================================================================== */

  .site-header .container{ min-height: 84px; padding-block: 14px; }

  /* .main-nav becomes position:fixed below (removed from flex flow), so
     .header-actions needs its own push-right now that it's the only other
     flex participant left beside .brand. */
  .header-actions{ margin-left:auto; }
  .nav-toggle{ display:inline-flex; }

  .main-nav{
    /* NOTE: .site-header has backdrop-filter, which makes it the containing
       block for fixed-position descendants — so `bottom:0` here would resolve
       against the header's own short box, not the viewport. Using a height
       in viewport units sidesteps that entirely (vh always resolves against
       the real viewport, regardless of containing-block quirks). */
    position: fixed; top: 85px; left:0; right:0; height: calc(100vh - 85px); z-index: 150;
    background: var(--bg); display:flex; flex-direction:column; align-items:stretch;
    padding: 10px 30px 32px; gap:0; margin:0;
    overflow-y:auto; overflow-x:hidden; max-width:100%;
    transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-in-out);
  }
  .main-nav.open{ transform: translateX(0); }

  /* Plain nav items (Activities, Trip Planner, Custom Trips, About Us, My Account) */
  .nav-item{
    flex:none; width:100%; padding: 12px 0; margin:0; border-bottom:1px solid var(--border);
    gap:4px;
  }
  .nav-item::after{ display:none; }
  .nav-item-title{
    font-size: 0.95rem; white-space:normal; overflow:visible; text-overflow:clip;
  }
  .nav-item-sub{ font-size: 0.8rem; white-space:normal; overflow:visible; text-overflow:clip; }

  /* Destinations row (label + chevron) */
  .mega-menu-group{ flex:none; width:100%; }
  .nav-item-mega{
    width:100%; align-items:center; justify-content:space-between;
    padding: 12px 0; border-bottom:1px solid var(--border);
  }
  .nav-item-mega .nav-item{ padding:0; margin:0; border-bottom:none; flex:1; min-width:0; }
  .mega-toggle{ width:40px; height:40px; margin-top:0; margin-left:4px; flex-shrink:0; }

  /* About Us + Contact — no hover on touch, so just show the Contact link
     as a permanent second line under About Us instead of a popover. */
  .about-nav-group{ border-bottom:1px solid var(--border); padding-bottom:6px; }
  .about-nav-group .nav-item{ border-bottom:none; }
  .about-dropdown{
    position:static; opacity:1; pointer-events:auto; transform:none; text-align:left; min-width:auto;
    background:none; border:none; box-shadow:none; padding:0 0 0 2px; margin-top:0;
  }
  .about-dropdown-link{ font-size:0.82rem; color: var(--text-muted); min-height:40px; display:inline-flex; align-items:center; }
  .about-dropdown-link:hover{ color: var(--text); }

  /* Destinations accordion — collapses/expands smoothly via a JS-measured
     max-height transition (see mega-menu.js), text-only content. */
  .mega-menu{
    position:static; width:100%; max-width:100%; overflow:hidden; background:transparent;
    border-top:none; box-shadow:none; pointer-events:auto;
    max-height:0; opacity:1; transform:none;
    transition: max-height 260ms var(--ease-out);
  }
  .mega-menu-inner{
    display:flex; flex-direction:column; gap:0; padding:0; margin:0; max-width:none;
  }
  .mega-categories{
    flex: none; width:100%; flex-direction:column; overflow:visible; gap:0; padding: 4px 0 10px 16px;
  }
  .mega-cat{
    white-space:normal; text-align:left; padding:10px 2px; min-height:40px; font-size:0.82rem;
  }
  .mega-cat::after{ display:none; }

  /* Mobile Destinations accordion is text-only for now — no photo cards. */
  .mega-cards-wrap{ display:none; }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero{ position:relative; padding-top: var(--sp-8); padding-bottom: var(--sp-9); overflow:hidden; }
.hero .container{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items:center; }
.hero-copy h1{ font-size: clamp(2.5rem, 1.9rem + 3vw, var(--fs-4xl)); line-height: 1.04; margin-top: var(--sp-4); }
.hero-copy h1 em{ font-style: italic; color: var(--brand); }
.hero-copy p{ color: var(--text-muted); font-size: var(--fs-md); max-width: 46ch; margin-top: var(--sp-5); line-height:1.65; }
.hero-actions{ display:flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap:wrap; }
.hero-stats{ display:flex; gap: var(--sp-6); margin-top: var(--sp-7); flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family: var(--font-display); font-size: var(--fs-xl); color: var(--text); }
.hero-stats div span{ color: var(--text-muted); font-size: var(--fs-xs); }

.hero-visual{ position:relative; }
.hero-collage{ position:relative; aspect-ratio: 1/1.02; }
.hero-collage img{ position:absolute; object-fit:cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hc-1{ width:64%; height:70%; top:0; right:0; }
.hc-2{ width:46%; height:48%; left:0; bottom:0; border: 6px solid var(--bg); }
.hero-badge{
  position:absolute; left:-8px; bottom:14%; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: var(--sp-3) var(--sp-4); display:flex; align-items:center; gap:10px; font-weight:700; font-size: var(--fs-sm);
}
.hero-badge .icon{ color: var(--brand); width:20px; height:20px; }

@media (max-width: 980px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; max-width: 420px; margin-inline:auto; width:100%; }
}

/* ---------------------------------- Search / quick-find bar ---------------------------------- */
.finder-bar{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: var(--sp-3); display:grid; grid-template-columns: repeat(4, 1fr) auto; gap: var(--sp-2); margin-top: var(--sp-7);
}
.finder-field{ padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); position:relative; }
.finder-field:hover{ background: var(--surface-sunken); }
.finder-field label{ display:block; font-size: 11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); margin-bottom:2px; }
.finder-field select, .finder-field input{ border:none; background:transparent; width:100%; font-weight:600; padding:0; }
.finder-bar .btn-primary{ align-self:center; }
@media (max-width: 900px){ .finder-bar{ grid-template-columns: 1fr 1fr; } .finder-bar .btn-primary{ grid-column: 1/-1; } }

/* ---- Custom dropdown (progressively replaces the native <select> inside
   .finder-field via js/dropdown.js — the <select> stays in the DOM with
   its original name/options for form submission, just hidden; this is
   purely a visual/interaction layer, so destinations.js's URL-param
   filtering logic is completely untouched). ---- */
.kdropdown{ position:relative; }
.kdropdown-native{ display:none; }
.kdropdown-trigger{
  display:flex; align-items:center; justify-content:space-between; gap: var(--sp-2); width:100%;
  background:none; border:none; padding:0; margin:0; cursor:pointer; text-align:left;
  font-family:inherit; font-size: var(--fs-sm); font-weight:600; color: var(--text);
}
.kdropdown-value{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kdropdown-chevron{ width:13px; height:13px; color: var(--text-muted); flex-shrink:0; transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.kdropdown.is-open .kdropdown-chevron{ transform: rotate(180deg); color: var(--brand); }
.kdropdown-trigger:focus-visible{ outline: 2.5px solid var(--focus-ring); outline-offset:3px; border-radius: var(--radius-sm); }

.kdropdown-panel{
  position:absolute; top: calc(100% + 12px); left: calc(-1 * var(--sp-4)); z-index:20; min-width: calc(100% + var(--sp-8));
  display:flex; flex-direction:column; gap:2px; list-style:none; margin:0; padding: var(--sp-2);
  background: var(--bg); border:1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-height:280px; overflow-y:auto;
  opacity:0; transform: translateY(-6px) scale(.98); transform-origin: top left; pointer-events:none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.kdropdown-panel.is-open{ opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
.kdropdown-option{
  padding: 13px 16px; border-radius: var(--radius-md); font-size: var(--fs-sm); font-weight:600; color: var(--text);
  cursor:pointer; min-height:44px; display:flex; align-items:center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.kdropdown-option:hover, .kdropdown-option.is-active{ background: var(--surface-sunken); }
.kdropdown-option[aria-selected="true"]{ color: var(--brand-hover); font-weight:700; background: rgba(193,105,74,0.1); }

@media (max-width: 900px){
  .kdropdown-panel{ left:0; min-width:100%; max-height:240px; }
}

/* ---------------------------------- Cards / Destination grid ---------------------------------- */
.tag-row{ display:flex; flex-wrap:wrap; gap: var(--sp-2); }
.chip{
  display:inline-flex; align-items:center; gap:6px; padding: 8px 16px; border-radius: var(--radius-pill);
  border:1.5px solid var(--border-strong); background: var(--surface); font-size: var(--fs-xs); font-weight:700; color: var(--text-muted);
  cursor:pointer; transition: all var(--dur-base) var(--ease-out); min-height:40px;
}
.chip:hover{ border-color: var(--brand); color: var(--text); }
.chip[aria-pressed="true"]{ background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count{ opacity:.6; font-weight:600; }

.destination-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-6); }
@media (max-width: 1024px){ .destination-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .destination-grid{ grid-template-columns: 1fr; } }

.dest-card{
  position:relative; border-radius: var(--radius-lg); overflow:hidden; background: var(--surface-sunken);
  box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  display:flex; flex-direction:column; height:100%;
}
.dest-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-media{ position:relative; aspect-ratio: 4/3; overflow:hidden; }
.dest-media img{ width:100%; height:100%; object-fit:cover; transition: transform var(--dur-slow) var(--ease-out); }
.dest-card:hover .dest-media img{ transform: scale(1.06); }
.dest-media::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(20,16,10,.55) 100%); }
.dest-match{
  position:absolute; top: var(--sp-3); left: var(--sp-3); background: rgba(250,246,240,.94); backdrop-filter: blur(6px);
  color: var(--text); font-weight:800; font-size: var(--fs-xs); padding: 6px 12px; border-radius: var(--radius-pill); z-index:2;
}
.dest-loc{ position:absolute; left: var(--sp-4); bottom: var(--sp-3); color:#fff; font-weight:700; z-index:2; font-family: var(--font-display); font-size: var(--fs-lg); }
.dest-loc span{ display:block; font-family: var(--font-body); font-weight:600; font-size: var(--fs-xs); opacity:.85; text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }

.fav-btn{
  position:absolute; top: var(--sp-3); right: var(--sp-3); z-index:3; width:40px; height:40px; border-radius:50%;
  background: rgba(250,246,240,.92); backdrop-filter: blur(6px); border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color: var(--color-slate-dark); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-base);
}
.fav-btn:hover{ transform: scale(1.08); }
.fav-btn .icon{ width:19px; height:19px; }
.fav-btn[aria-pressed="true"]{ color: var(--brand); }
.fav-btn[aria-pressed="true"] .icon{ fill: var(--brand); stroke: var(--brand); }

.dest-body{ padding: var(--sp-4) var(--sp-4) var(--sp-5); display:flex; flex-direction:column; gap: var(--sp-3); flex:1; }
.dest-body p{ color: var(--text-muted); font-size: var(--fs-sm); line-height:1.6; flex:1; }
.dest-foot{ display:flex; align-items:center; justify-content:space-between; }
.budget-dots{ display:inline-flex; gap:3px; }
.budget-dots span{ width:6px; height:6px; border-radius:50%; background: var(--border-strong); }
.budget-dots span.on{ background: var(--brand); }

/* ---------------------------------- Explore [City] ---------------------------------- */
.explore-tabs{ display:flex; flex-wrap:wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.explore-tab{
  display:inline-flex; align-items:center; gap: var(--sp-2); padding: 9px 18px; border-radius: var(--radius-pill);
  border:1.5px solid var(--border-strong); background: var(--surface); font-size: var(--fs-xs); font-weight:700;
  color: var(--text-muted); cursor:pointer; transition: all var(--dur-base) var(--ease-out); font-family: inherit;
}
.explore-tab:hover{ border-color: var(--brand); color: var(--text); }
.explore-tab.active{ background: var(--brand); border-color: var(--brand); color:#fff; }
.explore-tab-count{
  font-size:10px; font-weight:700; background: rgba(0,0,0,.12); color:inherit; border-radius: var(--radius-pill);
  padding:2px 7px; line-height:1.4;
}
.explore-tab.active .explore-tab-count{ background: rgba(255,255,255,.28); }

.explore-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-7); }
@media (max-width: 1024px){ .explore-grid{ grid-template-columns: repeat(2,1fr); gap: var(--sp-5); } }
@media (max-width: 640px){ .explore-grid{ grid-template-columns: 1fr; } }

.place-card{
  border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  overflow:hidden; display:flex; flex-direction:column;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.place-card:hover{ box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.place-card-media{ position:relative; aspect-ratio: 4/3; overflow:hidden; background: var(--surface-sunken); }
.place-card-media img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform var(--dur-slow) var(--ease-out); }
.place-card:hover .place-card-media img{ transform: scale(1.05); }
.place-card-media-empty{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(155deg, var(--surface-sunken), #EAE1D2 75%);
}
.place-card-media-empty .icon{ width:26px; height:26px; color: var(--border-strong); stroke-width:1.4; }

.place-card .fav-btn{
  position:absolute; top: var(--sp-3); right: var(--sp-3); width:36px; height:36px; flex-shrink:0;
  background: rgba(250,246,240,.9); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); z-index:2;
}
.place-card .fav-btn .icon{ width:16px; height:16px; }

.place-card-body{ padding: var(--sp-5); display:flex; flex-direction:column; gap: var(--sp-3); flex:1; }
.place-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap: var(--sp-3); }
.place-card-head h3{ font-family: var(--font-display); font-size: var(--fs-md); font-weight:600; margin:0; line-height:1.3; }
.place-card p{ color: var(--text-muted); font-size: var(--fs-sm); line-height:1.6; margin:0; flex:1; }

.place-card-area .place-card-media{ background: color-mix(in srgb, var(--color-terracotta-light) 24%, var(--surface-sunken)); }
.place-card-area .place-card-media-empty{ background: linear-gradient(155deg, color-mix(in srgb, var(--color-terracotta-light) 20%, var(--surface-sunken)), color-mix(in srgb, var(--color-terracotta-light) 32%, var(--surface-sunken))); }
.place-card-area .place-card-body{ background: color-mix(in srgb, var(--color-terracotta-light) 8%, var(--surface)); }

.place-badges{ display:flex; flex-wrap:wrap; gap: var(--sp-2); }
.place-badge{
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:3px 9px;
  border-radius: var(--radius-pill); white-space:nowrap;
}
.place-badge-area{ background: var(--color-terracotta-light); color: var(--color-terracotta-dark); }
.place-badge-dynamic{
  background: rgba(193,105,74,0.1); color: var(--brand-hover); text-transform:none; letter-spacing:0;
  font-weight:600; max-width:100%; white-space:normal;
}

.place-card-actions{ display:flex; gap: var(--sp-2); flex-wrap:wrap; margin-top:auto; padding-top: var(--sp-2); }
.place-card-actions .btn{ flex:1; justify-content:center; white-space:nowrap; }

/* ---------------------------------- Destination page — label style (no decorative dash) ----------------------------------
   .eyebrow::before draws the small horizontal line used on every other page
   (About, Activities, Contact, Destinations listing, etc.) — that shared
   rule is untouched. This scopes the removal to singular destination pages
   only, via WordPress's own body_class() output, so no other page changes. */
body.single-klayok_destination .eyebrow::before{ display:none; }

/* ---------------------------------- Destination page — back link strip ---------------------------------- */
.dback-strip{ padding-block: var(--sp-5) 0; }
.dback-link{
  display:inline-flex; align-items:center; gap: var(--sp-2); color: var(--text-muted);
  font-size: var(--fs-xs); font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  transition: color var(--dur-base) var(--ease-out);
}
.dback-link:hover{ color: var(--text); }
.dback-link .icon{ width:15px; height:15px; }

/* ---------------------------------- Destination page — full-width editorial hero ---------------------------------- */
.dhero{
  position:relative; padding-block:0; margin-top: var(--sp-5); height:min(74vh, 640px); min-height:440px; overflow:hidden;
}
.dhero-media{ position:absolute; inset:0; }
.dhero-media img{ width:100%; height:100%; object-fit:cover; object-position:center 42%; }
.dhero-scrim{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,12,.16) 0%, rgba(20,16,12,.04) 32%, rgba(20,16,12,.04) 68%, rgba(20,16,12,.22) 100%);
}
.dhero-inner{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding-inline: var(--sp-5); z-index:2;
}
.dhero-country{
  color:#fff; font-family: var(--font-body); font-weight:700; font-size: var(--fs-sm);
  letter-spacing:.3em; text-transform:uppercase; text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.dhero-title{
  font-family: var(--font-display); text-transform:uppercase; font-weight:600;
  font-size: clamp(3rem, 2rem + 5vw, 6.5rem); line-height:1; letter-spacing:.02em; color:#fff;
  margin-top: var(--sp-3); text-shadow: 0 4px 32px rgba(0,0,0,.28);
}
@media (max-width: 780px){
  .dhero{ height:min(56vh, 440px); min-height:340px; }
  .dhero-title{ font-size: clamp(2.25rem, 1.6rem + 6vw, 3.5rem); }
}

/* ---------------------------------- Destination page — light editorial intro ---------------------------------- */
.dintro-section{ padding-block: var(--sp-8); }
.dintro-grid{ display:grid; grid-template-columns: 1fr 0.85fr; gap: var(--sp-8); align-items:center; }
.dintro-text .eyebrow{ margin-bottom: var(--sp-3); }
.dintro-tagline{
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight:500;
  color: var(--text); line-height:1.35; margin-top: var(--sp-2);
}
.dintro-blurb{ color: var(--text-muted); font-size: var(--fs-md); line-height:1.75; margin-top: var(--sp-4); max-width:52ch; }
.dintro-media img{
  width:100%; aspect-ratio: 4/3; object-fit:cover; border-radius: var(--radius-sm); display:block;
}
.dintro-tags{ margin-top: var(--sp-7); }
@media (max-width: 860px){
  .dintro-grid{ grid-template-columns:1fr; gap: var(--sp-5); }
  .dintro-media{ order:-1; }
}

/* ---------------------------------- Destination page — quick facts (flat editorial strip) ---------------------------------- */
.dfacts-section{ padding-block: 0 var(--sp-8); }
.dfacts-panel{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding-block: var(--sp-6); display:grid; grid-template-columns: repeat(3, 1fr); align-items:center;
}
.dfacts-item{ text-align:center; padding-inline: var(--sp-4); }
.dfacts-divider{ width:1px; align-self:stretch; background: transparent; justify-self:center; }
.dfacts-label{ display:block; font-size: var(--fs-xs); font-weight:700; text-transform:uppercase; letter-spacing:.1em; color: var(--text-muted); }
.dfacts-value{ display:block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight:600; margin-top: var(--sp-2); }
@media (max-width: 780px){
  .dfacts-panel{ grid-template-columns:1fr; gap: var(--sp-5); }
  .dfacts-divider{ width:100%; height:1px; }
  .dfacts-item{ padding-inline:0; }
}

/* ---------------------------------- Destination page — map panel ---------------------------------- */
.dmap-panel{
  display:grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); align-items:stretch;
  background: var(--surface-sunken); border-radius: var(--radius-lg); padding: var(--sp-6);
}
.dmap-media, .dmap-media .map-wrap{ height:100%; }
.dmap-canvas{ width:100%; height:100%; min-height:360px; }
.dmap-info{ display:flex; flex-direction:column; justify-content:center; }
.dmap-info-label{ font-size: var(--fs-xs); font-weight:700; text-transform:uppercase; letter-spacing:.1em; color: var(--text-muted); }
.dmap-info-value{ font-family: var(--font-display); font-size: var(--fs-2xl); margin-top: var(--sp-2); }
@media (max-width: 900px){
  .dmap-panel{ grid-template-columns:1fr; }
  .dmap-canvas{ min-height:300px; }
}

/* ---------------------------------- Riga carousel redesign (visual only — scoped to this destination) ---------------------------------- */

/* -- Hero -- */
.rg-hero{ position:relative; height:min(72vh, 640px); min-height:420px; overflow:hidden; }
.rg-hero-media{ position:absolute; inset:0; }
.rg-hero-img{ width:100%; height:100%; object-fit:cover; object-position: center 30%; display:block; }
.rg-hero-scrim{ position:absolute; inset:0; background: rgba(20,16,12,.16); }
.rg-hero-icons{ position:absolute; top: var(--sp-5); right: var(--sp-5); z-index:3; display:flex; flex-direction:column; gap: var(--sp-3); }
.rg-icon-btn{
  width:44px; height:44px; border-radius:50%; background: rgba(255,255,255,.22); backdrop-filter: blur(8px);
  border:1.5px solid #D6CCBC; display:flex; align-items:center; justify-content:center; cursor:pointer;
  color:#D6CCBC; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.rg-icon-btn:hover{ transform: scale(1.06); background: rgba(255,255,255,.34); }
.rg-icon-btn .icon{ width:19px; height:19px; stroke:#D6CCBC; }
.rg-icon-btn[aria-pressed="true"]{ background: var(--color-terracotta); border-color: var(--color-terracotta); }
.rg-icon-btn[aria-pressed="true"] .icon{ fill:#fff; }
.rg-hero-content{
  position:relative; z-index:2; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap: var(--sp-2); padding: var(--sp-6);
}
.rg-hero-eyebrow{
  color:#fff; font-size: var(--fs-xs); font-weight:700; letter-spacing:.2em; text-transform:uppercase; opacity:.95;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.rg-hero-title{
  font-family: var(--font-body); font-weight:800; color:#fff; margin:0; line-height:.92; letter-spacing:-0.01em;
  text-transform:uppercase; font-size: clamp(5.5rem, 16vw, 12rem); text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

/* -- Quick facts: rounded beige bubbles -- */
.rg-facts{ background: var(--surface); padding-block: var(--sp-6); }
.rg-facts-row{ display:flex; flex-wrap:wrap; gap: var(--sp-4); justify-content:center; }
.rg-fact-bubble{
  background: #B8AA94; border-radius: var(--radius-pill); padding: var(--sp-3) var(--sp-6);
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:2px; min-width:150px;
}
.rg-fact-label{ font-size: var(--fs-md); font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:#fff; }
.rg-fact-value{ font-size: var(--fs-sm); font-weight:600; color:#fff; }

/* -- Category nav pills -- */
.rg-explore{ padding-block: var(--sp-7); }
/*
 * justify-content:center deliberately NOT used here: on a flex row whose
 * content overflows its container, "center" aligns the overflow evenly on
 * both sides — which starts the scroll position in the MIDDLE of the pill
 * list instead of at "Must see". flex-start (the default) always starts
 * scrolled to the first pill; the row still visually centers itself via
 * max-width:fit-content + margin:auto on any viewport wide enough that it
 * doesn't overflow at all.
 */
.rg-nav{
  display:flex; gap:10px; flex-wrap:nowrap; overflow-x:auto; background:#fff;
  border-radius: var(--radius-pill); padding:12px; max-width:fit-content; margin:0 auto var(--sp-7); box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.rg-nav::-webkit-scrollbar{ display:none; }
.rg-nav-pill{
  flex-shrink:0; border:none; background:transparent; padding:12px 22px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight:600; color: var(--text); cursor:pointer; white-space:nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.rg-nav-pill:hover{ color: var(--brand); }
.rg-nav-pill.active{ background: #D6CCBC; color: var(--text); font-weight:700; box-shadow: var(--shadow-sm); }

/* -- Category carousel --
   Every available category gets its own card in this strip — it is a real
   horizontally-scrollable row (all cards always in the DOM and visible),
   not a 3-card window. The active card grows larger and is scrolled to the
   center; neighbours stay fully visible at normal size on either side. */
.rg-carousel-wrap{ position:relative; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch; scroll-snap-type: x proximity; cursor:grab; }
.rg-carousel-wrap::-webkit-scrollbar{ display:none; }
.rg-carousel-wrap.rg-carousel-dragging{ cursor:grabbing; user-select:none; scroll-snap-type:none; }
.rg-carousel{ display:flex; align-items:center; gap: var(--sp-6); padding-block: var(--sp-6); }
.rg-card{
  position:relative; flex:0 0 auto; scroll-snap-align:center; width:220px; height:310px;
  border-radius: var(--radius-lg); overflow:hidden; background-size:cover; background-position:center; background-color: var(--surface-sunken);
  box-shadow: var(--shadow-sm); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding-bottom: var(--sp-4);
  transition: width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
  filter: grayscale(0.2) brightness(0.9);
}
.rg-card.rg-card-active{ width:320px; height:440px; cursor:default; box-shadow: var(--shadow-lg); filter:none; }
.rg-card-scrim{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,12,0) 0%, rgba(20,16,12,.08) 40%, rgba(20,16,12,.62) 100%);
}
.rg-card-badge{
  position:absolute; z-index:2; top: var(--sp-3); left: var(--sp-3);
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#fff;
  background: rgba(255,255,255,.22); backdrop-filter: blur(4px); padding:4px 10px; border-radius: var(--radius-pill);
}
.rg-card-cta{
  position:relative; z-index:2; background:#fff; color: var(--text); border:none; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight:700; padding:10px 20px; cursor:pointer; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out);
}
.rg-card-cta:hover{ transform: scale(1.04); }

@media (max-width: 640px){
  .rg-card{ width:135px; height:210px; }
  .rg-card.rg-card-active{ width:210px; height:290px; }
}

/* -- Reveal panel: real places for the active category -- */
.rg-reveal{ margin-top: var(--sp-8); }
.rg-reveal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: var(--sp-5); }
.rg-reveal-head h3{ font-family: var(--font-display); font-size: var(--fs-xl); font-weight:600; margin:0; }
.rg-reveal-close{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border-strong); background: var(--surface);
  font-size:1.2rem; line-height:1; color: var(--text-muted); cursor:pointer;
}
.rg-reveal-close:hover{ color: var(--text); border-color: var(--brand); }
.rg-reveal-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 1100px){ .rg-reveal-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px){ .rg-reveal-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .rg-reveal-grid{ grid-template-columns: 1fr; } }

/* -- Good to know --
   The bulbs, "GOOD TO KNOW" title, and 3 category bubbles are all real
   supplied image assets (see assets/img/riga-goodtoknow-*.png) — not
   CSS-drawn shapes/text. Only layout (size/spacing/position) is CSS. */
.rg-goodtoknow{ background: var(--surface); padding-block: var(--sp-9); }
.rg-goodtoknow-head{ display:flex; align-items:center; justify-content:flex-start; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.rg-goodtoknow-head .rg-bulb-img{ width:120px; height:auto; display:block; flex-shrink:0; }
.rg-goodtoknow-head .section-heading{ margin:0; }
.rg-title-img{ display:block; height:34px; width:auto; }

/* Wrapper hugs the 3-bubble row's own content width (not the full section
   width) and is itself centered in the container — so both the row and the
   detail panel below (sized as a % of THIS wrapper) end up centered as one
   unit on the page, not left-aligned. max-width:100% + flex-wrap keep it
   from overflowing on narrow viewports. */
.rg-blobs-wrap{ width: fit-content; max-width:100%; margin-inline:auto; }
.rg-blobs{ display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start; gap: var(--sp-7); overflow:visible; }
.rg-blob-img-btn{
  border:none; padding:0; margin:0; background:none; cursor:pointer; line-height:0;
  transition: transform var(--dur-base) var(--ease-out);
}
.rg-blob-img-btn img{ display:block; width:260px; height:auto; }
.rg-blob-img-btn:hover{ transform: scale(1.02); }
.rg-blob-img-btn.active{ transform: scale(1.02); }

/* -- Good to know: detail panel (opens beneath the bubbles, centered under
   the bubble group, colored with the exact fill sampled from each PNG) -- */
.rg-blob-panel{
  margin: var(--sp-7) auto 0; width:56%; min-width:320px; border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-7);
  box-shadow: var(--shadow-md); animation: rgBlobPanelIn .22s var(--ease-out);
}
@keyframes rgBlobPanelIn{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }
.rg-blob-panel.rg-blob-slate{ background:#5D6C87; }
.rg-blob-panel.rg-blob-terracotta{ background:#9D7156; }
.rg-blob-panel.rg-blob-beige{ background:#D6CABA; }
.rg-blob-panel-title{ font-family: var(--font-display); font-size: var(--fs-xl); font-weight:600; margin:0 0 var(--sp-3); color:#fff; }
.rg-blob-panel-list{ margin:0; padding-left:1.1em; display:flex; flex-direction:column; gap:6px; font-size: var(--fs-sm); line-height:1.5; color:#fff; }

@media (max-width: 640px){
  .rg-goodtoknow-head{ gap: var(--sp-3); margin-bottom: var(--sp-6); }
  .rg-goodtoknow-head .rg-bulb-img{ width:80px; }
  .rg-title-img{ height:24px; }
  .rg-blob-img-btn img{ width:170px; }
  .rg-blob-panel{ width:100%; }
}

/* -- Bottom CTA: real supplied image assets (organic-frame photo, heading,
   button) — not CSS-clipped/drawn. Only layout is CSS. -- */
.rg-bottom-cta{ padding-block: var(--sp-9) var(--sp-8); }
.rg-bottom-cta-inner{ display:grid; grid-template-columns: 76% 1fr; align-items:start; gap:16px; }
@media (max-width: 860px){ .rg-bottom-cta-inner{ grid-template-columns:1fr; text-align:center; } }
.rg-bottom-cta-photo{ order:1; }
.rg-bottom-cta-photo img{ display:block; width:100%; height:auto; }
.rg-bottom-cta-copy{ order:2; display:flex; flex-direction:column; align-items:flex-end; gap:10px; padding-top: var(--sp-6); }
@media (max-width: 860px){ .rg-bottom-cta-copy{ align-items:center; } }
.rg-bottom-cta-heading-img{ display:block; width:100%; height:auto; }
.rg-bottom-cta-btn-link{ display:inline-block; line-height:0; transition: transform var(--dur-fast) var(--ease-out); }
.rg-bottom-cta-btn-link:hover{ transform: scale(1.03); }
.rg-bottom-cta-btn-link img{ display:block; width:100%; height:auto; }

.place-card-e{
  position:relative; aspect-ratio: 3 / 4.1; border-radius: var(--radius-lg); overflow:hidden; background-size:cover;
  background-color: var(--surface-sunken); box-shadow: var(--shadow-sm); display:flex; flex-direction:column; justify-content:flex-end;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.place-card-e:hover, .place-card-e:focus-within{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.place-card-e-scrim{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,12,0) 0%, rgba(20,16,12,.06) 35%, rgba(20,16,12,.55) 75%, rgba(20,16,12,.86) 100%);
}
.place-card-e-area::before{
  content:""; position:absolute; inset:0; border:2px dashed rgba(255,255,255,.55); border-radius: var(--radius-lg); z-index:2; pointer-events:none;
}
.fav-btn-e{
  position:absolute; top: var(--sp-3); right: var(--sp-3); z-index:3; width:36px; height:36px; border-radius:50%;
  background: rgba(20,16,12,.32); backdrop-filter: blur(6px); border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#fff; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base);
}
.fav-btn-e:hover{ transform: scale(1.08); background: rgba(20,16,12,.5); }
.fav-btn-e .icon{ width:16px; height:16px; }
.fav-btn-e[aria-pressed="true"]{ color: var(--color-terracotta-light); }
.fav-btn-e[aria-pressed="true"] .icon{ fill: var(--color-terracotta-light); stroke: var(--color-terracotta-light); }
.place-card-e-content{ position:relative; z-index:2; padding: var(--sp-4); display:flex; flex-direction:column; gap:6px; }
.place-card-e-content h3{
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight:600; color:#fff; margin:0; line-height:1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.place-card-e-content p{
  color: rgba(255,255,255,.88); font-size: var(--fs-xs); line-height:1.45; margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.place-badges-e{ display:flex; flex-wrap:wrap; gap:5px; margin-bottom:2px; }
.place-badge-e{
  font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:3px 8px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.22); color:#fff; backdrop-filter: blur(4px);
}
.place-badge-e-dynamic{ text-transform:none; letter-spacing:0; font-weight:500; font-size:10px; }
.tag-row-e{ display:flex; flex-wrap:wrap; gap:5px; margin-top:2px; }
.tag-e{
  font-size:10px; font-weight:600; padding:3px 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.16); color:#fff; backdrop-filter: blur(4px);
}
.place-card-e-actions{ display:flex; gap: var(--sp-3); margin-top:4px; }
.place-action-e{
  display:inline-flex; align-items:center; gap:5px; color:#fff; font-size:11px; font-weight:700; text-decoration:none;
  opacity:.92; transition: opacity var(--dur-base) var(--ease-out);
}
.place-action-e:hover{ opacity:1; text-decoration:underline; }
.place-action-e .icon{ width:13px; height:13px; stroke:#fff; }

/* -- Editorial highlight section -- */
.riga-editorial{ background: var(--surface); }
.riga-editorial-inner{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items:center; }
@media (max-width: 860px){ .riga-editorial-inner{ grid-template-columns:1fr; gap: var(--sp-6); } }
.riga-editorial-media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); }
.riga-editorial-media img{ width:100%; height:100%; object-fit:cover; display:block; aspect-ratio: 4/3; }
.riga-editorial-title{
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight:600; line-height:1.2;
  margin: var(--sp-3) 0 var(--sp-4); color: var(--text);
}
.riga-editorial-copy p{ color: var(--text-muted); line-height:1.75; font-size: var(--fs-md); }

/* -- Practical / trip-planning section -- */
.riga-practical{ background: var(--surface-sunken); }
.riga-practical-inner{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-7); align-items:center; }
@media (max-width: 860px){ .riga-practical-inner{ grid-template-columns:1fr; gap: var(--sp-5); } }
.riga-practical-copy .section-lede{ margin-top: var(--sp-3); }

/* ---------------------------------- Steps / How it works ---------------------------------- */
.steps-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-7); counter-reset: step; }
@media (max-width: 980px){ .steps-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .steps-grid{ grid-template-columns: 1fr; } }
.step-card{ position:relative; padding-top: var(--sp-3); }
.step-num{ font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--color-sage-light); font-weight:700; line-height:1; }
.step-card h3{ font-size: var(--fs-md); margin-top: var(--sp-3); }
.step-card p{ color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); line-height:1.6; }

/* ---------------------------------- How It Works — interactive step flow
   (page-how-it-works.php only; deliberately its own scoped component
   rather than reusing .steps-grid/.step-card above, since those are shared
   as-is by the homepage preview and About "what we believe" sections). ---- */
.hiw-steps{ position:relative; display:grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-7); }
.hiw-steps::before{ content:''; position:absolute; top:26px; left:12.5%; right:12.5%; height:2px; background: var(--border); z-index:0; }
.hiw-step{
  position:relative; z-index:1; cursor:pointer; border-radius: var(--radius-lg); padding: var(--sp-4);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.hiw-step-top{ display:flex; align-items:center; gap: var(--sp-3); }
.hiw-step-icon{
  width:52px; height:52px; border-radius:50%; background: var(--bg); border:1.5px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.hiw-step-icon .icon{ width:22px; height:22px; color: var(--text-muted); transition: color var(--dur-base) var(--ease-out); }
.hiw-step-num{ font-family: var(--font-display); font-size: var(--fs-xl); font-weight:700; color: var(--border-strong); }
.hiw-step h3{ font-size: var(--fs-md); margin-top: var(--sp-4); }
.hiw-step p{ color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); line-height:1.6; }

.hiw-step-detail{
  max-height:0; opacity:0; overflow:hidden; margin-top:0 !important; font-weight:600; color: var(--brand-hover) !important;
  transition: max-height var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), margin-top var(--dur-base) var(--ease-out);
}
.hiw-step[aria-expanded="true"] .hiw-step-detail{ max-height:60px; opacity:1; margin-top: var(--sp-2) !important; }

.hiw-step:hover, .hiw-step:focus-visible, .hiw-step[aria-expanded="true"]{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hiw-step:hover .hiw-step-icon, .hiw-step:focus-visible .hiw-step-icon, .hiw-step[aria-expanded="true"] .hiw-step-icon{
  border-color: var(--brand); background: rgba(193,105,74,0.08);
}
.hiw-step:hover .hiw-step-icon .icon, .hiw-step:focus-visible .hiw-step-icon .icon, .hiw-step[aria-expanded="true"] .hiw-step-icon .icon{ color: var(--brand); }
.hiw-step:focus-visible{ outline: 2.5px solid var(--focus-ring); outline-offset:3px; }

@media (max-width: 900px){
  .hiw-steps{ grid-template-columns: 1fr; gap: var(--sp-4); }
  .hiw-steps::before{ display:none; }
}

/* ---------------------------------- Feature split ---------------------------------- */
.feature-split{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items:center; }
.feature-split.reverse .feature-media{ order:2; }
@media (max-width: 900px){ .feature-split{ grid-template-columns:1fr; } .feature-split.reverse .feature-media{ order:0; } }
.feature-media{ position:relative; }
.feature-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width:100%; aspect-ratio: 5/4; object-fit:cover; }
.feature-check-list{ display:flex; flex-direction:column; gap: var(--sp-3); margin-top: var(--sp-5); }
.feature-check-list li{ display:flex; gap: var(--sp-3); align-items:flex-start; font-size: var(--fs-sm); color: var(--text); }
.feature-check-list .icon{ color: var(--success); width:20px; height:20px; margin-top:2px; flex-shrink:0; }

/* ---------------------------------- Quiz ---------------------------------- */
.quiz-shell{ max-width: 760px; margin-inline:auto; }
.quiz-progress{ height:6px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow:hidden; margin-bottom: var(--sp-6); }
.quiz-progress-bar{ height:100%; background: var(--brand); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); }
.quiz-step-label{ display:flex; justify-content:space-between; font-size: var(--fs-xs); font-weight:700; color: var(--text-muted); margin-bottom: var(--sp-3); text-transform:uppercase; letter-spacing:.06em; }
.quiz-card{ background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--sp-7); }
@media (max-width: 640px){ .quiz-card{ padding: var(--sp-5); } }
.quiz-card h2{ font-size: var(--fs-2xl); }
.quiz-card .quiz-subtitle{ color: var(--text-muted); margin-top: var(--sp-2); }
.quiz-options{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
.quiz-options.single-col{ grid-template-columns: 1fr; }
@media (max-width: 640px){ .quiz-options{ grid-template-columns: repeat(2,1fr); } }

.quiz-opt{
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: var(--sp-4); cursor:pointer;
  display:flex; flex-direction:column; gap: var(--sp-2); background: var(--surface); transition: all var(--dur-base) var(--ease-out); text-align:left;
  min-height:44px; position:relative;
}
.quiz-opt:hover{ border-color: var(--brand); }
.quiz-opt .icon{ width:22px; height:22px; color: var(--brand); }
.quiz-opt .opt-label{ font-weight:700; font-size: var(--fs-sm); }
.quiz-opt .opt-hint{ font-size: var(--fs-xs); color: var(--text-muted); }
.quiz-opt[aria-pressed="true"]{ border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.quiz-opt.row{ flex-direction:row; align-items:center; }

.quiz-nav{ display:flex; justify-content:space-between; align-items:center; margin-top: var(--sp-7); }
.quiz-select-count{ font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-4); }

.quiz-results-head{ text-align:center; max-width:560px; margin-inline:auto; }
.match-reason{ display:flex; flex-wrap:wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.match-reason .chip{ cursor:default; pointer-events:none; background: var(--surface-sunken); border-color:transparent; }

/* ---------------------------------- FAQ ---------------------------------- */
.faq-list{ max-width: 780px; margin: var(--sp-6) auto 0; border-top:1px solid var(--border); }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap: var(--sp-4); background:none; border:none;
  padding: var(--sp-5) var(--sp-2); text-align:left; font-family: var(--font-display); font-size: var(--fs-md); font-weight:600; cursor:pointer; color: var(--text);
}
.faq-q .icon{ color: var(--brand); flex-shrink:0; transition: transform var(--dur-base) var(--ease-out); width:22px; height:22px; }
.faq-item[data-open="true"] .faq-q .icon{ transform: rotate(45deg); }
.faq-a{ overflow:hidden; max-height:0; transition: max-height var(--dur-slow) var(--ease-in-out); }
.faq-item[data-open="true"] .faq-a{ max-height: 400px; }
.faq-a p{ padding: 0 var(--sp-2) var(--sp-5); color: var(--text-muted); line-height:1.7; max-width:64ch; }

/* ---------------------------------- Newsletter ---------------------------------- */
.newsletter{ background: var(--color-slate-dark); color:#fff; border-radius: var(--radius-lg); padding: var(--sp-8); display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-7); align-items:center; }
@media (max-width: 780px){ .newsletter{ grid-template-columns:1fr; padding: var(--sp-6); } }
.newsletter h2{ color:#fff; font-size: var(--fs-2xl); }
.newsletter p{ color: rgba(255,255,255,.72); margin-top: var(--sp-3); max-width:44ch; }
.newsletter-form{ display:flex; gap: var(--sp-2); }
.newsletter-form input{ flex:1; padding: 14px 18px; border-radius: var(--radius-pill); border:1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color:#fff; min-height:44px; }
.newsletter-form input::placeholder{ color: rgba(255,255,255,.5); }
.newsletter-form input:focus-visible{ outline-color:#fff; }
@media (max-width: 480px){ .newsletter-form{ flex-direction:column; } }
.form-note{ font-size: var(--fs-xs); color: rgba(255,255,255,.55); margin-top: var(--sp-3); }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer{ background: var(--surface-sunken); border-top:1px solid var(--border); padding-top: var(--sp-8); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ font-size: var(--fs-xs); text-transform:uppercase; letter-spacing:.08em; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-grid ul{ display:flex; flex-direction:column; gap: var(--sp-3); }
.footer-grid a{ color: var(--text); font-size: var(--fs-sm); }
.footer-grid a:hover{ color: var(--brand); }
.footer-brand p{ color: var(--text-muted); font-size: var(--fs-sm); max-width: 32ch; margin-top: var(--sp-3); }
.social-row{ display:flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social-row a{ width:38px; height:38px; border-radius:50%; border:1.5px solid var(--border-strong); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ border-color: var(--brand); color: var(--brand); }
.footer-bottom{ border-top:1px solid var(--border); padding-block: var(--sp-5); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }
.footer-bottom ul{ display:flex; gap: var(--sp-5); }

/* ---------------------------------- Auth / account ---------------------------------- */
.auth-shell{ max-width: 440px; margin: var(--sp-8) auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--sp-7); }
.auth-shell h1{ font-size: var(--fs-2xl); }
.auth-shell p.section-lede{ font-size: var(--fs-sm); margin-top: var(--sp-2); }
.field{ margin-top: var(--sp-5); }
.field label{ display:block; font-weight:700; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.field input, .field textarea{ width:100%; padding: 13px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--surface); min-height:44px; }
.field input:focus-visible, .field textarea:focus-visible{ border-color: var(--brand); }
.field textarea{ resize:vertical; line-height:1.5; }
.field-hint{ font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-2); }
.auth-switch{ text-align:center; margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--text-muted); }
.auth-switch a{ color: var(--brand); font-weight:700; }

/* ---------------------------------- Contact section (About page) ---------------------------------- */
/* Deliberately overlaps the tail end of .page-hero above (which carries
   extra padding-bottom via an inline style on that page only, giving this
   negative margin empty space to pull into — never real hero text) — an
   intentional "card breaks the section" effect rather than the card
   awkwardly meeting a section boundary edge-on. */
.contact-shell{
  position:relative; z-index:1; max-width: 560px; margin: calc(-1 * var(--sp-8)) auto 0;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--sp-7);
}
.contact-shell .section-head{ margin-bottom:0; }
.contact-connect{ text-align:center; margin-top: var(--sp-7); padding-top: var(--sp-6); border-top:1px solid var(--border); }
.contact-connect p{ font-weight:700; font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 640px){ .contact-shell{ padding: var(--sp-5); } }
.auth-divider{ display:flex; align-items:center; gap: var(--sp-3); margin: var(--sp-6) 0; color: var(--text-muted); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after{ content:''; flex:1; height:1px; background: var(--border); }

/* ---------------------------------- Legal pages (Privacy / Terms) ---------------------------------- */
.legal-content{ max-width: 760px; margin-inline:auto; color: var(--text); line-height:1.75; }
.legal-content .legal-updated{ color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.legal-content h2{ font-family: var(--font-display); font-size: var(--fs-xl); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.legal-content h2:first-of-type{ margin-top:0; }
.legal-content h3{ font-size: var(--fs-md); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal-content p{ margin-top: var(--sp-3); color: var(--text-muted); }
.legal-content ul, .legal-content ol{ margin-top: var(--sp-3); padding-left: 1.3em; color: var(--text-muted); }
.legal-content li{ margin-top: var(--sp-2); }
.legal-content li::marker{ color: var(--brand); }
.legal-content a{ color: var(--brand); text-decoration:underline; text-underline-offset:3px; }
.legal-content a:hover{ color: var(--brand-hover); }
.legal-content strong{ color: var(--text); }
.legal-content table{ width:100%; border-collapse:collapse; margin-top: var(--sp-4); font-size: var(--fs-sm); }
.legal-content th, .legal-content td{ text-align:left; padding: var(--sp-2) var(--sp-3); border-bottom:1px solid var(--border); vertical-align:top; }
.legal-content th{ color: var(--text-muted); font-weight:700; text-transform:uppercase; font-size:11px; letter-spacing:.04em; }
.legal-content td{ color: var(--text-muted); }
.legal-placeholder{ background: rgba(193,105,74,0.1); color: var(--brand-hover); padding:1px 6px; border-radius:4px; font-weight:700; white-space:nowrap; }
.legal-required-notice{
  background: rgba(193,105,74,0.08); border:1.5px solid var(--brand); border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); color: var(--text); font-size: var(--fs-sm); line-height:1.65;
}
.legal-required-notice strong{ color: var(--brand-hover); text-transform:uppercase; font-size: var(--fs-xs); letter-spacing:.04em; display:block; margin-bottom: var(--sp-2); }
@media (max-width: 640px){ .legal-content table{ display:block; overflow-x:auto; } }

.account-shell{ display:grid; grid-template-columns: 240px 1fr; gap: var(--sp-7); align-items:start; }
@media (max-width: 860px){ .account-shell{ grid-template-columns: 1fr; } }
.account-nav{ display:flex; flex-direction:column; gap: 2px; background: var(--surface); border-radius: var(--radius-lg); padding: var(--sp-3); box-shadow: var(--shadow-sm); position:sticky; top: 100px; }
.account-nav button{ display:flex; align-items:center; gap: var(--sp-3); text-align:left; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); background:none; border:none; cursor:pointer; font-weight:600; color: var(--text-muted); min-height:44px; }
.account-nav button:hover{ background: var(--surface-sunken); color: var(--text); }
.account-nav button[aria-current="true"]{ background: var(--brand); color:#fff; }
.account-nav .icon{ width:19px; height:19px; }
.account-panel{ background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--sp-6); min-height: 420px; }
.account-panel[hidden]{ display:none; }
.account-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom: var(--sp-6); flex-wrap:wrap; gap: var(--sp-3); }
.stat-row{ display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
@media (max-width: 560px){ .stat-row{ grid-template-columns: 1fr; } }
.stat-tile{ background: var(--surface-sunken); border-radius: var(--radius-md); padding: var(--sp-4); }
.stat-tile strong{ display:block; font-family: var(--font-display); font-size: var(--fs-xl); }
.stat-tile span{ color: var(--text-muted); font-size: var(--fs-xs); }

/* map */
.map-wrap{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); border:1px solid var(--border); }
#saved-map, #route-map{ width:100%; height: 420px; background: var(--surface-sunken); }
.leaflet-popup-content-wrapper{ border-radius: var(--radius-md) !important; font-family: var(--font-body) !important; }
.map-pin-fav{ background: var(--brand); }

.empty-state{ text-align:center; padding: var(--sp-8) var(--sp-5); color: var(--text-muted); }
.empty-state .icon{ width:40px; height:40px; color: var(--border-strong); margin-bottom: var(--sp-3); }
.empty-state h3{ color: var(--text); font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

.fav-mini-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
@media (max-width: 700px){ .fav-mini-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .fav-mini-grid{ grid-template-columns: 1fr; } }

/* Route builder */
.route-layout{ display:grid; grid-template-columns: 380px 1fr; gap: var(--sp-6); align-items:start; }
@media (max-width: 900px){ .route-layout{ grid-template-columns: 1fr; } }
.route-list{ display:flex; flex-direction:column; gap: var(--sp-3); }
.route-stop{
  display:flex; align-items:center; gap: var(--sp-3); background: var(--surface); border:1.5px solid var(--border); border-radius: var(--radius-md);
  padding: var(--sp-3); cursor:grab;
}
.route-stop.dragging{ opacity:.4; }
.route-stop .drag-handle{ color: var(--text-muted); width:18px; height:18px; flex-shrink:0; }
.route-stop img{ width:52px; height:52px; border-radius: var(--radius-sm); object-fit:cover; flex-shrink:0; }
.route-stop .stop-index{ width:26px; height:26px; border-radius:50%; background: var(--brand); color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.route-stop .stop-info{ flex:1; min-width:0; }
.route-stop .stop-info strong{ display:block; font-size: var(--fs-sm); }
.route-stop .stop-info span{ font-size:12px; color: var(--text-muted); }
.route-stop .remove-stop{ background:none; border:none; color: var(--text-muted); cursor:pointer; width:32px; height:32px; }
.route-stop .remove-stop:hover{ color: var(--danger); }

.add-stop-select{ width:100%; padding: 12px 14px; border-radius: var(--radius-md); border:1.5px solid var(--border-strong); margin-top: var(--sp-4); min-height:44px; }

/* toast */
.toast{
  position: fixed; bottom: var(--sp-5); left:50%; transform: translateX(-50%) translateY(8px); background: var(--color-slate-dark); color:#fff;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight:600;
  display:flex; align-items:center; gap: var(--sp-2); z-index: 300; opacity:0; pointer-events:none; transition: all var(--dur-base) var(--ease-out);
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }
.toast .icon{ color: var(--color-sage-light); width:18px; height:18px; }

/* page hero (inner pages) */
.page-hero{ padding-top: var(--sp-8); padding-bottom: var(--sp-6); text-align:center; }
.page-hero .section-heading{ max-width: 34ch; margin-inline:auto; }

.band{ background: var(--surface-sunken); }
.band-slate{ background: var(--color-slate-dark); color: #fff; }
.band-slate .section-heading, .band-slate h2, .band-slate h3{ color:#fff; }
.band-slate .section-lede{ color: rgba(255,255,255,.68); }

.badge-soft{ display:inline-flex; align-items:center; gap:6px; background: var(--color-sage-light); color: var(--color-sage-dark); font-weight:700; font-size:12px; padding:6px 12px; border-radius: var(--radius-pill); }

::selection{ background: var(--brand); color:#fff; }

.skeleton{ background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--border) 37%, var(--surface-sunken) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes shimmer{ 0%{background-position:100% 0} 100%{background-position:0 0} }

/* ==========================================================================
   Activities — reuses the Destinations page's own component language
   instead of a separate visual system: .page-hero for the page heading
   (identical markup/classes to Destinations), and the same tag-row/chip
   tokens (colors, spacing, radius, selected/hover treatment) applied to
   the .activity-grid/.activity-item markup so the filter pills read as
   the same product UI as the Destinations vibe filters — just with a
   small icon added. Shared by both consumers of that markup: the
   Activities page filter row below, and the header's Activities nav
   hover panel (.activities-panel-* further down).
   ========================================================================== */

.activities-filter-section{ padding-top:0; }

.activity-grid{ display:flex; flex-wrap:wrap; gap: var(--sp-2); }
.activity-item{
  display:inline-flex; align-items:center; gap:6px; padding: 6px 16px 6px 10px; border-radius: var(--radius-pill);
  border:1.5px solid var(--border-strong); background: var(--surface); font-size: var(--fs-xs); font-weight:700; color: var(--text-muted);
  cursor:pointer; text-align:left; transition: all var(--dur-base) var(--ease-out); min-height:40px;
}
.activity-item:hover{ border-color: var(--brand); color: var(--text); }
.activity-icon-circle{ flex-shrink:0; width:16px; height:16px; display:flex; align-items:center; justify-content:center; }
.activity-icon-circle .icon{ width:15px; height:15px; color: currentColor; stroke-width:1.8; }
.activity-label{ color: inherit; font-size: inherit; font-weight: inherit; white-space:nowrap; }

.activity-item[aria-pressed="true"]{ background: var(--text); border-color: var(--text); color: var(--bg); }
.activity-item:focus-visible{ outline: 2.5px solid var(--focus-ring); outline-offset:2px; border-radius: var(--radius-pill); }

.activities-more-toggle{
  display:flex; align-items:center; gap:6px; margin: var(--sp-4) auto 0; background:none; border:none; cursor:pointer;
  color: var(--text-muted); font-size:0.8rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; min-height:44px;
}
.activities-more-toggle:hover{ color: var(--text); }
.activities-more-toggle .icon{ width:14px; height:14px; transition: transform var(--dur-base) var(--ease-out); }
.activities-more-toggle[aria-expanded="true"] .icon{ transform: rotate(180deg); }
.activity-grid-more{
  max-height:0; overflow:hidden; transition: max-height 280ms var(--ease-out); width:100%;
}
.activity-grid-more.is-open{ max-height:260px; }
.activity-grid-more .activity-grid{ padding-top: var(--sp-4); }

.activities-select-actions{ display:flex; flex-direction:column; align-items:flex-start; gap: var(--sp-3); margin-top: var(--sp-5); }
.activities-selected-count{ margin:0; color: var(--text-muted); font-size:0.85rem; min-height:1.2em; }
.activities-no-match-hint{ margin:0; max-width:34ch; color: var(--text-muted); font-size:0.85rem; line-height:1.5; }
.activities-no-match-hint strong{ color: var(--text); }

/* ---- Results ---- */
.activities-results{ padding-block: var(--sp-8) var(--sp-9); scroll-margin-top: 100px; }
.activities-results-head{ display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.activities-results-controls{ display:flex; align-items:center; gap: var(--sp-4); font-size:0.85rem; color: var(--text-muted); }
.activities-clear-all{ background:none; border:none; cursor:pointer; color: var(--brand); font-weight:600; font-size:0.85rem; text-decoration:underline; text-underline-offset:3px; padding:6px 0; }
.activities-clear-all:disabled{ opacity:.4; cursor:not-allowed; text-decoration:none; }
.activities-count{ font-weight:600; color:var(--text); }

.dest-match-label{
  position:absolute; top:var(--sp-3); right:var(--sp-3); z-index:2; background: rgba(250,246,240,.94); backdrop-filter: blur(6px);
  color: var(--brand); font-weight:800; font-size:11px; text-transform:uppercase; letter-spacing:.04em; padding: 5px 10px; border-radius: var(--radius-pill);
}
.activities-empty-hint{ text-align:center; color:var(--text-muted); padding: var(--sp-7) 0; }
.activities-empty-hint .icon{ width:32px; height:32px; color: var(--border-strong); margin-bottom: var(--sp-3); }

@media (max-width: 900px){
  .activities-results-head{ flex-direction:column; align-items:flex-start; }
}

/* ---- Activities nav hover panel (desktop only — reuses the same light
   .mega-menu shell as the Destinations mega-menu, and the same chip-style
   .activity-grid/.activity-item styling as the Activities page above.
   .activities-panel-content gets the same max-width/centering values as
   the site's .container (var(--container-max) / var(--sp-5)) so the grid
   is centered inside a balanced column instead of hugging the left edge
   of the full-width dropdown — applied directly here rather than via the
   .container class itself, because this markup lives inside <header>, and
   .site-header .container is a *different*, flex-row rule (for the logo/
   nav bar) that would otherwise hijack this element's layout too. ---- */
.activities-panel-inner{ padding-block: var(--sp-6); }
.activities-panel-content{ max-width: var(--container-max); margin-inline:auto; padding-inline: var(--sp-5); }
.activities-panel-content .activity-grid{ justify-content:center; gap: var(--sp-3) var(--sp-2); }
.activities-panel-footer{ display:flex; align-items:center; justify-content:center; gap: var(--sp-6); margin-top: var(--sp-6); }
.activities-panel-footer .activities-clear-all{ color: var(--brand); }
.activities-panel-footer .mega-view-all{ color: var(--header-accent); }

@media (max-width: 980px){
  /* Activities keeps its plain-link tap-to-navigate behavior on mobile —
     the hover panel is desktop-only, so its markup stays permanently
     collapsed (same 0-height accordion rule already used for Destinations)
     and is never opened by JS on mobile. */
  #mega-menu-activities{ display:none; }
}

/* ==========================================================================
   KLAYOK HOMEPAGE — EDITORIAL REDESIGN
   Scoped entirely under .klayok-home. The one approved exception is the
   existing global header, re-themed on the front page only via
   body[data-page="home"] .site-header — no header.php markup changes, just
   its own --header-* custom properties overridden (see inc/header uses of
   var(--header-bg)/var(--header-text)/var(--header-accent) etc. above).
   ========================================================================== */

body[data-page="home"] .site-header{
  position: fixed; top:0; left:0; right:0; width:100%;
  --header-bg: linear-gradient(180deg, rgba(20,14,16,.32) 0%, rgba(20,14,16,.14) 65%, rgba(20,14,16,0) 100%);
  --header-border: transparent;
  background: var(--header-bg);
  backdrop-filter: none;
  box-shadow: none;
  transition: background var(--dur-slow) var(--ease-out), backdrop-filter var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
body[data-page="home"] .site-header.kh-scrolled{
  --header-bg: rgba(250,246,240,0.96);
  --header-border: var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

/* Nav labels/logo/icons don't read var(--header-*) tokens in the base
   rules (.nav-item-title uses --text-muted, .nav-item-sub is a hardcoded
   rgba, .brand/.nav-toggle use --header-text) — set explicitly here per
   state instead of relying on tokens the base rules don't consume. */
body[data-page="home"] .site-header,
body[data-page="home"] .site-header .nav-item-mega,
body[data-page="home"] .site-header .header-actions{
  font-family: 'Gudea', var(--font-body);
}
/* .brand and .nav-item-title/.nav-item-sub each set their own explicit
   font-family in the base rules (Fraunces / Plus Jakarta Sans respectively),
   so the ancestor .site-header font-family above never reaches them via
   inheritance — set it directly here instead. */
body[data-page="home"] .site-header .brand,
body[data-page="home"] .site-header .nav-item-title,
body[data-page="home"] .site-header .nav-item-sub{
  font-family: 'Gudea', var(--font-body);
}
body[data-page="home"] .site-header .brand,
body[data-page="home"] .site-header .brand .brand-mark,
body[data-page="home"] .site-header .nav-toggle,
body[data-page="home"] .site-header .nav-item-title,
body[data-page="home"] .site-header .mega-toggle{
  color: rgba(252,234,222,.96); transition: color var(--dur-slow) var(--ease-out);
}
body[data-page="home"] .site-header .nav-item-sub{
  color: rgba(252,234,222,.78); transition: color var(--dur-slow) var(--ease-out);
}
body[data-page="home"] .site-header .nav-item::after,
body[data-page="home"] .site-header .mega-cat::after{ background: #FF715B; }
body[data-page="home"] .site-header .nav-item:hover .nav-item-title,
body[data-page="home"] .site-header .nav-item[aria-current="page"] .nav-item-title,
body[data-page="home"] .site-header .mega-toggle:hover,
body[data-page="home"] .site-header .mega-menu-group.mega-open .mega-toggle{
  color: #FF715B;
}
body[data-page="home"] .site-header .nav-item:hover .nav-item-sub{ color: rgba(252,234,222,.9); }
body[data-page="home"] .site-header :focus-visible{ outline-color: #FCEADE; }

body[data-page="home"] .site-header.kh-scrolled .brand,
body[data-page="home"] .site-header.kh-scrolled .brand .brand-mark,
body[data-page="home"] .site-header.kh-scrolled .nav-toggle,
body[data-page="home"] .site-header.kh-scrolled .nav-item-title,
body[data-page="home"] .site-header.kh-scrolled .mega-toggle{
  color: #703D57;
}
body[data-page="home"] .site-header.kh-scrolled .nav-item-sub{ color: rgba(112,61,87,.68); }
body[data-page="home"] .site-header.kh-scrolled .nav-item:hover .nav-item-title,
body[data-page="home"] .site-header.kh-scrolled .nav-item[aria-current="page"] .nav-item-title,
body[data-page="home"] .site-header.kh-scrolled .mega-toggle:hover,
body[data-page="home"] .site-header.kh-scrolled .mega-menu-group.mega-open .mega-toggle{
  color: #FF715B;
}
body[data-page="home"] .site-header.kh-scrolled .nav-item:hover .nav-item-sub{ color: rgba(112,61,87,.9); }
body[data-page="home"] .site-header.kh-scrolled :focus-visible{ outline-color: var(--focus-ring); }

/* Typography/spacing — desktop only (min-width guard keeps the existing,
   untouched @media (max-width: 980px) mobile nav rules fully in control
   below that breakpoint; without the guard these would otherwise win there
   too, since this selector is more specific than the plain .nav-item-title
   the mobile block uses). Applies in both header states (unscrolled and
   .kh-scrolled) — sizing/spacing doesn't change on scroll, only color does. */
@media (min-width: 981px){
  body[data-page="home"] .site-header .container{ max-width:1440px; padding-block:14px; }
  body[data-page="home"] .site-header .brand{ font-size:1.35rem; }
  body[data-page="home"] .site-header .main-nav{ gap:38px; }
  body[data-page="home"] .site-header .nav-item-title{ font-size:17px; font-weight:600; }
  body[data-page="home"] .site-header .nav-item-sub{ font-size:13.5px; font-weight:400; }
}
@media (min-width: 981px) and (max-width: 1300px){
  body[data-page="home"] .site-header .main-nav{ gap:26px; }
  body[data-page="home"] .site-header .nav-item-title{ font-size:16px; }
}

.klayok-home{
  overflow-x:hidden;
  /* New approved KLAYOK brand palette, scoped to the homepage only —
     cascades to every .klayok-home descendant via custom properties.
     :root's existing tokens (--brand, --text, --font-display, etc.) are
     untouched, so every other page keeps its current identity. */
  --kh-coral: #FF715B;
  --kh-coral-deep: #E85A44;
  --kh-aqua: #B1EDE8;
  --kh-gold: #FFD166;
  --kh-mauve: #703D57;
  --kh-petal: #FFD6E0;
  --kh-text: var(--kh-mauve);
  --kh-text-muted: rgba(112,61,87,.72);
  --kh-font-hero: 'DM Serif Display', Georgia, serif;
  --kh-font-heading: 'Allerta', var(--font-body);
  --kh-font-body: 'Gudea', var(--font-body);
  font-family: var(--kh-font-body);
  color: var(--kh-text);
}
.klayok-home *, .klayok-home *::before, .klayok-home *::after{ box-sizing:border-box; }
.klayok-home img{ max-width:100%; display:block; }
.klayok-home section{ padding-block: var(--sp-9); }
.klayok-home .kh-container{ max-width:1440px; margin-inline:auto; padding-inline: var(--sp-6); }
@media (max-width: 640px){ .klayok-home .kh-container{ padding-inline: var(--sp-4); } }

.klayok-home .kh-eyebrow{
  display:inline-block; font-weight:700; font-size: var(--fs-xs);
  letter-spacing:.16em; text-transform:uppercase; color: var(--kh-coral); margin-bottom: var(--sp-4);
}
.klayok-home .kh-section-head{ margin-bottom: var(--sp-7); display:flex; align-items:flex-start; gap:28px; }
.klayok-home .kh-section-num{
  font-family: 'Gudea', sans-serif; font-size:28px; font-weight:600; line-height:1;
  letter-spacing:.02em; color: #FF715B; padding-top:6px; flex-shrink:0;
}
@media (min-width: 1600px){
  .klayok-home .kh-section-num{ font-size:30px; }
}
@media (max-width: 900px){
  .klayok-home .kh-section-num{ font-size:22px; }
}
@media (max-width: 640px){
  .klayok-home .kh-section-num{ font-size:18px; padding-top:4px; }
}
.klayok-home .kh-section-heading{
  font-family: var(--kh-font-hero); font-weight:400; line-height:1.08; color: var(--kh-text);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.75rem); max-width:22ch;
}

.klayok-home .kh-text-link{
  display:inline-flex; align-items:center; gap: var(--sp-2); font-weight:600; font-size: var(--fs-sm);
  color: var(--kh-text); border-bottom:1.5px solid var(--border-strong); padding-bottom:4px;
  transition: border-color var(--dur-base) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.klayok-home .kh-text-link:hover{ border-color: var(--kh-coral); gap: var(--sp-3); }
.klayok-home .kh-text-link .icon{ width:16px; height:16px; }

.klayok-home .kh-btn{
  display:inline-flex; align-items:center; justify-content:center; font-weight:600; font-size: var(--fs-sm);
  padding: 15px 28px; border-radius: var(--radius-sm); min-height:48px; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.klayok-home .kh-btn:active{ transform: scale(0.97); }
.klayok-home .kh-btn--primary{ background: var(--kh-coral); color:#fff; }
.klayok-home .kh-btn--primary:hover{ background: var(--kh-coral-deep); }
.klayok-home .kh-btn--ghost{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.55); }
.klayok-home .kh-btn--ghost:hover{ border-color:#fff; background: rgba(255,214,224,.18); }

/* ---------------------------------- Hero ---------------------------------- */
.klayok-home .kh-hero{
  position:relative; padding-block:0; height:100vh; min-height:640px; max-height:1000px; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
.klayok-home .kh-hero__media{ position:absolute; inset:0; }
.klayok-home .kh-hero__media img{ width:100%; height:100%; object-fit:cover; object-position:center 55%; }
.klayok-home .kh-hero__scrim{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,12,.36) 0%, rgba(20,16,12,.12) 30%, rgba(20,16,12,.1) 60%, rgba(20,16,12,.5) 100%);
}
.klayok-home .kh-hero__content{ position:relative; z-index:2; padding-inline: var(--sp-5); max-width:1100px; }
.klayok-home .kh-hero__title{
  font-family: var(--kh-font-hero); text-transform:uppercase; font-weight:400; color:#fff;
  font-size: clamp(64px, 7vw, 112px); line-height:0.95; letter-spacing:.01em;
  text-shadow: 0 6px 40px rgba(0,0,0,.25);
}
.klayok-home .kh-hero__sub{
  color: rgba(255,255,255,.92); font-size: clamp(1rem, .9rem + .5vw, 1.25rem); margin-top: var(--sp-6);
  max-width:52ch; margin-inline:auto; line-height:1.6;
}
.klayok-home .kh-hero__scroll{ position:absolute; left:50%; bottom: var(--sp-6); transform:translateX(-50%); z-index:2; }
.klayok-home .kh-hero__scroll span{
  display:block; width:1px; height:44px; background: rgba(255,255,255,.6);
  animation: kh-scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes kh-scroll-pulse{ 0%,100%{ opacity:.3; transform:scaleY(.6); transform-origin:top; } 50%{ opacity:1; transform:scaleY(1); transform-origin:top; } }

@media (max-width: 780px){
  .klayok-home .kh-hero{ height:92vh; min-height:520px; }
}

/* ---------------------------------- Floating discovery bar ---------------------------------- */
.klayok-home .kh-discovery-section{ padding-block:0; position:relative; z-index:5; }
.klayok-home .kh-discovery{
  position:relative; margin-top:-40px; background:#fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display:flex; align-items:stretch; padding: var(--sp-2); gap: 0;
}
.klayok-home .kh-discovery__field{ position:relative; flex:1; min-width:0; }
.klayok-home .kh-discovery__trigger{
  width:100%; text-align:left; background:none; border:none; border-radius: var(--radius-sm); cursor:pointer;
  padding: var(--sp-4) var(--sp-5); display:flex; flex-direction:column; gap:4px; transition: background var(--dur-base) var(--ease-out);
}
.klayok-home .kh-discovery__trigger:hover, .klayok-home .kh-discovery__field.is-open .kh-discovery__trigger{ background: var(--kh-petal); }
.klayok-home .kh-discovery__label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color: var(--kh-text-muted); }
.klayok-home .kh-discovery__value{ font-weight:700; font-size: var(--fs-md); color: var(--kh-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.klayok-home .kh-discovery__div{ width:1px; background: var(--border); margin-block: var(--sp-3); flex-shrink:0; }
.klayok-home .kh-discovery__cta{
  flex-shrink:0; background: var(--kh-coral); color:#fff; border:none; border-radius: var(--radius-sm); font-weight:600;
  font-size: var(--fs-sm); padding-inline: var(--sp-7); margin: var(--sp-1); cursor:pointer;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.klayok-home .kh-discovery__cta:hover{ background: var(--kh-coral-deep); }
.klayok-home .kh-discovery__cta:active{ transform: scale(0.97); }

.klayok-home .kh-discovery__pop{
  position:absolute; top:calc(100% + 10px); left:0; min-width:260px; max-width:340px; background:#fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: var(--sp-4); z-index:20;
  animation: kh-pop-in .18s var(--ease-out);
}
@keyframes kh-pop-in{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:translateY(0); } }
.klayok-home .kh-discovery__pop[role="listbox"] ul{ list-style:none; margin:0; padding:0; max-height:280px; overflow-y:auto; }
.klayok-home .kh-discovery__pop[role="listbox"] li button{
  width:100%; text-align:left; background:none; border:none; padding:10px 12px; border-radius: var(--radius-sm);
  cursor:pointer; font-size: var(--fs-sm); color: var(--kh-text); min-height:44px;
}
.klayok-home .kh-discovery__pop[role="listbox"] li button:hover{ background: var(--kh-petal); }
.klayok-home .kh-discovery__chips{ display:flex; flex-wrap:wrap; gap: var(--sp-2); }
.klayok-home .kh-chip{
  border:1.5px solid var(--border-strong); background:#fff; border-radius: var(--radius-sm); padding:9px 14px;
  font-size: var(--fs-xs); font-weight:600; color: var(--kh-text); cursor:pointer; min-height:38px;
  transition: all var(--dur-base) var(--ease-out);
}
.klayok-home .kh-chip:hover{ border-color: var(--kh-coral); }
.klayok-home .kh-chip.is-selected{ background: var(--kh-coral); border-color: var(--kh-coral); color:#fff; }

@media (max-width: 900px){
  .klayok-home .kh-discovery{ flex-direction:column; padding: var(--sp-3); gap: var(--sp-1); border-radius: var(--radius-md); }
  .klayok-home .kh-discovery__div{ display:none; }
  .klayok-home .kh-discovery__field{ border-bottom:1px solid var(--border); }
  .klayok-home .kh-discovery__field:last-of-type{ border-bottom:none; }
  .klayok-home .kh-discovery__cta{ margin: var(--sp-2) 0 0; padding-block:16px; }
  .klayok-home .kh-discovery__pop{ position:fixed; left: var(--sp-4); right: var(--sp-4); top:auto; bottom: var(--sp-4); max-width:none; }
}

/* ---------------------------------- Intro ---------------------------------- */
.klayok-home .kh-intro{ padding-block: var(--sp-9); }
.klayok-home .kh-intro__grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-9); align-items:center; }
.klayok-home .kh-statement{
  font-family: var(--kh-font-hero); font-weight:400; color: var(--kh-text); line-height:1.22;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); max-width:16ch;
}
.klayok-home .kh-intro__body{ color: var(--kh-text-muted); font-size: var(--fs-md); line-height:1.75; max-width:52ch; margin-top: var(--sp-5); }
.klayok-home .kh-intro__media img{ width:100%; aspect-ratio: 3/4; object-fit:cover; border-radius: var(--radius-sm); }
@media (max-width: 900px){
  .klayok-home .kh-intro__grid{ grid-template-columns:1fr; gap: var(--sp-6); }
  .klayok-home .kh-intro__media{ order:-1; }
  .klayok-home .kh-intro__media img{ aspect-ratio: 16/9; }
}

/* ---------------------------------- Filter tabs (shared by carousels) ---------------------------------- */
.klayok-home .kh-filter-tabs{ display:flex; flex-wrap:wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.klayok-home .kh-filter-tab{
  background:none; border:1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding:9px 18px;
  font-size: var(--fs-xs); font-weight:700; color: var(--kh-text-muted); cursor:pointer; min-height:38px;
  transition: all var(--dur-base) var(--ease-out);
}
.klayok-home .kh-filter-tab:hover{ color: var(--kh-text); border-color: var(--kh-text); }
.klayok-home .kh-filter-tab.is-active{ background: var(--kh-coral); border-color: var(--kh-coral); color:#fff; }

/* ---------------------------------- Horizontal carousels ---------------------------------- */
.klayok-home .kh-carousel-wrap{ position:relative; }
.klayok-home .kh-carousel-track{
  display:flex; gap: var(--sp-5); overflow-x:auto; scroll-snap-type:x proximity; scroll-behavior:smooth;
  padding-inline: var(--sp-6); padding-bottom: var(--sp-2); scrollbar-width:none; cursor:grab;
}
.klayok-home .kh-carousel-track::-webkit-scrollbar{ display:none; }
.klayok-home .kh-carousel-track.is-dragging{ cursor:grabbing; scroll-snap-type:none; user-select:none; }
.klayok-home .kh-carousel-arrow{
  display:flex; align-items:center; justify-content:center; position:absolute; top:40%; width:48px; height:48px;
  border-radius:50%; background:#fff; box-shadow: var(--shadow-md); border:none; cursor:pointer; z-index:5;
  color: var(--kh-text); transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.klayok-home .kh-carousel-arrow:hover{ background: var(--kh-petal); }
.klayok-home .kh-carousel-arrow:active{ transform: scale(0.94); }
.klayok-home .kh-carousel-arrow--prev{ left: var(--sp-4); }
.klayok-home .kh-carousel-arrow--next{ right: var(--sp-4); }
@media (max-width: 900px){ .klayok-home .kh-carousel-arrow{ display:none; } }

/* Destination cards (built client-side in home.js) */
.klayok-home .kh-dest-card{
  flex: 0 0 auto; width:300px; scroll-snap-align:start; text-decoration:none; display:block;
}
.klayok-home .kh-dest-card__media{ position:relative; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow:hidden; background: var(--surface-sunken); }
.klayok-home .kh-dest-card__media img{ width:100%; height:100%; object-fit:cover; transition: transform var(--dur-slow) var(--ease-out); }
.klayok-home .kh-dest-card:hover .kh-dest-card__media img{ transform: scale(1.07); }
.klayok-home .kh-dest-card__media::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(15,12,9,.62) 100%); }
.klayok-home .kh-dest-card__overlay{ position:absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index:2; }
.klayok-home .kh-dest-card__city{ font-family: var(--kh-font-heading); color:#fff; font-size: var(--fs-lg); }
.klayok-home .kh-dest-card__country{ display:block; color: rgba(255,255,255,.82); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; margin-top:2px; }
.klayok-home .kh-dest-card__mood{ color: var(--kh-text-muted); font-size: var(--fs-sm); margin-top: var(--sp-3); line-height:1.5; }
.klayok-home .kh-dest-card__tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top: var(--sp-3); }
.klayok-home .kh-dest-card__tags span{
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color: var(--kh-text-muted);
  background: rgba(177,237,232,.4); border-radius: var(--radius-pill); padding:4px 10px;
}
@media (max-width: 640px){ .klayok-home .kh-dest-card{ width:240px; } }

/* ---------------------------------- Experience section ---------------------------------- */
.klayok-home .kh-experience-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--sp-5);
}
.klayok-home .kh-exp-card{
  position:relative; border-radius: var(--radius-sm); overflow:hidden; display:flex; align-items:flex-end; text-decoration:none;
}
.klayok-home .kh-exp-card--lg{ grid-column: span 2; grid-row: span 2; }
.klayok-home .kh-exp-card--sm{ grid-column: span 2; grid-row: span 1; }
.klayok-home .kh-exp-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform var(--dur-slow) var(--ease-out); }
.klayok-home .kh-exp-card:hover img{ transform: scale(1.08); }
.klayok-home .kh-exp-card__scrim{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(15,12,9,.6) 100%); }
.klayok-home .kh-exp-card__title{
  position:relative; z-index:2; color:#fff; font-family: var(--kh-font-heading); font-weight:400;
  font-size: var(--fs-xl); padding: var(--sp-5); display:flex; align-items:center; gap: var(--sp-3);
}
.klayok-home .kh-exp-card__arrow{ width:20px; height:20px; opacity:0; transform:translateX(-6px); transition: all var(--dur-base) var(--ease-out); }
.klayok-home .kh-exp-card:hover .kh-exp-card__arrow{ opacity:1; transform:translateX(0); }
@media (max-width: 900px){
  .klayok-home .kh-experience-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:160px; }
  .klayok-home .kh-exp-card--lg{ grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px){
  .klayok-home .kh-experience-grid{ grid-template-columns: 1fr; grid-auto-rows:180px; }
  .klayok-home .kh-exp-card--lg, .klayok-home .kh-exp-card--sm{ grid-column: span 1; }
}

/* ---------------------------------- Featured city ---------------------------------- */
.klayok-home .kh-featured__grid{ display:grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-9); align-items:center; }
.klayok-home .kh-featured__media{ position:relative; }
.klayok-home .kh-featured__media img{ width:100%; aspect-ratio: 4/3; object-fit:cover; border-radius: var(--radius-sm); }
.klayok-home .kh-featured__stats{
  position:absolute; left: var(--sp-6); bottom: var(--sp-6); background:#fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: var(--sp-5) var(--sp-6); display:flex; gap: var(--sp-6);
}
.klayok-home .kh-featured__stats strong{ display:block; font-family: var(--kh-font-hero); font-weight:400; font-size: var(--fs-xl); color: var(--kh-text); }
.klayok-home .kh-featured__stats span{ display:block; font-size:11px; color: var(--kh-text-muted); text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }
.klayok-home .kh-featured__title{ font-family: var(--kh-font-hero); font-weight:400; font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); line-height:1; margin-top: var(--sp-2); color: var(--kh-text); }
.klayok-home .kh-featured__lede{ font-family: var(--kh-font-heading); font-weight:400; font-style:normal; font-size: var(--fs-lg); color: var(--kh-text-muted); line-height:1.5; margin-top: var(--sp-5); max-width:32ch; }
@media (max-width: 900px){
  .klayok-home .kh-featured__grid{ grid-template-columns:1fr; gap: var(--sp-6); }
  .klayok-home .kh-featured__stats{ position:static; margin-top: var(--sp-4); display:grid; grid-template-columns: repeat(3,1fr); }
}

/* ---------------------------------- Place cards (curated carousel) ---------------------------------- */
.klayok-home .kh-place-card{ flex: 0 0 auto; width:260px; scroll-snap-align:start; }
.klayok-home .kh-place-card__media{
  position:relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.klayok-home .kh-place-card__media--empty{ background: linear-gradient(155deg, var(--surface-sunken), rgba(255,214,224,.45) 100%); }
.klayok-home .kh-place-card__media--empty .icon{ width:26px; height:26px; color: var(--border-strong); stroke-width:1.4; }
.klayok-home .kh-place-card__save{
  position:absolute; top: var(--sp-3); right: var(--sp-3); width:36px; height:36px; border-radius:50%;
  background: rgba(250,246,240,.9); backdrop-filter: blur(6px); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; color: var(--kh-text);
}
.klayok-home .kh-place-card__save .icon{ width:16px; height:16px; }
.klayok-home .kh-place-card__save[aria-pressed="true"]{ color: var(--kh-coral); }
.klayok-home .kh-place-card__body{ padding-top: var(--sp-4); }
.klayok-home .kh-place-card__cat{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color: var(--kh-coral); }
.klayok-home .kh-place-card__body h3{ font-family: var(--kh-font-heading); font-size: var(--fs-md); font-weight:400; margin-top: var(--sp-2); color: var(--kh-text); }
.klayok-home .kh-place-card__city{ color: var(--kh-text-muted); font-size: var(--fs-sm); margin-top:2px; }

/* ---------------------------------- How it works ---------------------------------- */
.klayok-home .kh-how__heading{ text-align:center; margin-inline:auto; margin-bottom: var(--sp-8); }
.klayok-home .kh-how__steps{ display:grid; grid-template-columns: repeat(3, 1fr); }
.klayok-home .kh-how__step{
  text-align:center; padding-inline: var(--sp-6); border-left:1px solid var(--border);
}
.klayok-home .kh-how__step:first-child{ border-left:none; }
.klayok-home .kh-how__num{ display:block; font-weight:700; font-size: var(--fs-2xl); color: var(--kh-gold); }
.klayok-home .kh-how__step h3{ font-family: var(--kh-font-heading); font-weight:400; font-size: var(--fs-xl); margin-top: var(--sp-3); color: var(--kh-text); }
@media (max-width: 780px){
  .klayok-home .kh-how__steps{ grid-template-columns:1fr; gap: var(--sp-6); }
  .klayok-home .kh-how__step{ border-left:none; border-top:1px solid var(--border); padding-top: var(--sp-6); }
  .klayok-home .kh-how__step:first-child{ border-top:none; padding-top:0; }
}

/* ---------------------------------- Final CTA ---------------------------------- */
.klayok-home .kh-cta{ position:relative; padding-block: var(--sp-9); overflow:hidden; }
.klayok-home .kh-cta__media{ position:absolute; inset:0; }
.klayok-home .kh-cta__media img{ width:100%; height:100%; object-fit:cover; }
.klayok-home .kh-cta__scrim{ position:absolute; inset:0; background: rgba(20,16,12,.5); }
.klayok-home .kh-cta__content{ position:relative; z-index:2; text-align:center; }
.klayok-home .kh-cta__title{
  font-family: var(--kh-font-hero); font-weight:400; color:#fff; text-transform:uppercase;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); line-height:1.05;
}
.klayok-home .kh-cta__actions{ display:flex; gap: var(--sp-4); justify-content:center; margin-top: var(--sp-7); flex-wrap:wrap; }

/* ---------------------------------- Scroll-entry reveal ---------------------------------- */
.klayok-home [data-reveal]{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.klayok-home [data-reveal].is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .klayok-home [data-reveal]{ opacity:1; transform:none; transition:none; }
  .klayok-home .kh-hero__scroll span{ animation:none; }
  .klayok-home .kh-carousel-track{ scroll-behavior:auto; }
}

/* ---------------------------------- Mobile: sections + typography ---------------------------------- */
@media (max-width: 640px){
  .klayok-home section{ padding-block: var(--sp-7); }
  .klayok-home .kh-section-head{ flex-direction:column; gap: var(--sp-2); }
}
