/* ==========================================================================
   Dara Temple Tour — public site styles
   Tokens → base → layout → components → sections → pages → utilities
   ========================================================================== */

:root {
  --navy: #0F2438;
  --navy-2: #173352;
  --navy-3: #22446a;
  --gold: #E5A93C;
  --gold-2: #F0C06A;
  --gold-ink: #8A5A0B;          /* gold that passes contrast on white, for small text */
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --line: #E3E8EF;
  --ink: #0F2438;
  --muted: #56677A;
  --success: #1F7A55;
  --danger: #B42318;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-panel: 28px;
  --r-card: 18px;
  --r-input: 12px;
  --shadow-card: 0 1px 2px rgba(15, 36, 56, .06), 0 10px 30px -12px rgba(15, 36, 56, .18);
  --shadow-float: 0 24px 60px -20px rgba(15, 36, 56, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.lang-km { --font-body: "Noto Sans Khmer", "Plus Jakarta Sans", sans-serif; }
body.lang-km .hero-title, body.lang-km .section-title { font-family: "Noto Sans Khmer", var(--font-display); line-height: 1.4; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-2); color: var(--navy); }

.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
svg.icon { display: inline-block; vertical-align: middle; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: inherit;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn-outline { border: 1px solid var(--line); color: var(--navy); background: var(--white); }
.icon-btn-outline:hover { border-color: var(--navy); background: var(--white); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #EEF2F7; color: var(--navy); font-size: .78rem; font-weight: 600; }
.chip-dark { background: rgba(15, 36, 56, .82); color: var(--white); backdrop-filter: blur(4px); }
.chip-gold { background: #FCF1DC; color: var(--gold-ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; color: var(--white); transition: background-color .3s var(--ease), box-shadow .3s; }
.site-header.is-solid, .site-header.is-scrolled { background: var(--navy); box-shadow: 0 8px 24px -16px rgba(0,0,0,.5); }
.site-header.is-overlay { position: fixed; inset: 0 0 auto 0; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: .72rem; font-weight: 500; opacity: .8; margin-top: 4px; letter-spacing: .06em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .85; transition: opacity .2s, background-color .2s; }
.main-nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-mobile-extras { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }

.switcher { position: relative; }
.switcher summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: .82rem; font-weight: 600; list-style: none; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover { background: rgba(255,255,255,.1); }
.switcher-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 10px;
  background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-float);
  display: grid; gap: 2px;
}
.switcher-label { font-size: .72rem; color: var(--muted); padding: 8px 10px 2px; font-weight: 600; }
.switcher-panel a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.switcher-panel a:hover { background: var(--bg); }
.switcher-panel a.is-active { background: #FCF1DC; font-weight: 600; }

.search-overlay { position: fixed; inset: 0 0 auto 0; z-index: 60; background: var(--white); box-shadow: var(--shadow-float); }
.search-overlay-form { display: flex; align-items: center; gap: 12px; height: 88px; color: var(--navy); }
.search-overlay-form input { flex: 1; border: 0; font-size: 1.25rem; padding: 12px 0; background: transparent; outline: none; }
.search-overlay-form .icon-btn:hover { background: var(--bg); }

/* ---------- hero ---------- */
.hero { --overlap: 64px; position: relative; padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px)); color: var(--white); isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 var(--overlap) 0; z-index: -1; overflow: hidden; background: var(--navy); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,36,56,.88) 0%, rgba(15,36,56,.55) 45%, rgba(15,36,56,0) 75%),
    linear-gradient(180deg, rgba(15,36,56,.55) 0%, rgba(15,36,56,0) 30%);
}
.hero-content { padding-bottom: clamp(48px, 8vh, 96px); }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.06; letter-spacing: -.015em;
  max-width: 17ch; text-wrap: balance;
}
.hero-sub { margin-top: 20px; max-width: 46ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.86); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-size: .9rem; color: rgba(255,255,255,.9); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold); }

/* Page-load: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: dawn 2.4s var(--ease) both; }
  .hero-title, .hero-sub, .hero-trust, .booking-widget { animation: rise .9s var(--ease) both; }
  .hero-sub { animation-delay: .12s; }
  .hero-trust { animation-delay: .22s; }
  .booking-widget { animation-delay: .34s; }
}
@keyframes dawn { from { transform: scale(1.06); filter: brightness(.6) saturate(.8); } to { transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- booking widget ---------- */
.booking-widget {
  display: grid; grid-template-columns: 1.2fr 1.1fr 1fr .9fr auto; align-items: stretch;
  background: var(--white); color: var(--ink);
  border-radius: 22px; box-shadow: var(--shadow-float); padding: 10px;
}
.bw-field { display: grid; gap: 2px; padding: 10px 18px; border-right: 1px solid var(--line); min-width: 0; }
.bw-field:nth-last-child(2) { border-right: 0; }
.bw-field label, .bw-label { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.bw-field .icon { width: 15px; height: 15px; color: var(--gold-ink); }
.bw-field select, .bw-field input[type="date"] {
  width: 100%; border: 0; background: transparent; padding: 4px 0; font-weight: 600; font-size: .98rem; color: var(--navy);
  appearance: none; -webkit-appearance: none; cursor: pointer; min-height: 32px;
}
.bw-field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230F2438' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; padding-right: 18px; }
.bw-field select:focus, .bw-field input:focus { outline: none; }
.bw-field:focus-within { background: var(--bg); border-radius: 14px; }
.bw-submit { min-height: 64px; border-radius: 16px; padding: 0 28px; font-size: 1rem; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 50%; cursor: pointer; }
.stepper button:hover { border-color: var(--navy); }
.stepper button .icon { width: 14px; height: 14px; color: var(--navy); }
.stepper input { width: 36px; text-align: center; border: 0; font-weight: 700; font-size: 1rem; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--bg); }
.section-flush { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.section-sub { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--navy); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.link-more .icon { width: 16px; height: 16px; }

/* ---------- circuit cards ---------- */
.circuit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.circuit-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; color: var(--white); background: var(--navy); isolation: isolate; }
.circuit-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.circuit-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,36,56,0) 35%, rgba(15,36,56,.92) 100%); }
.circuit-card:hover img { transform: scale(1.05); }
.circuit-card-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; gap: 6px; }
.circuit-card h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
.circuit-card h3 a { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.circuit-card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.circuit-card a:focus-visible { outline: none; }
.rating-badge {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font-weight: 700; font-size: .8rem;
}
.rating-badge .icon { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.circuit-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.85); }
.circuit-meta .icon { width: 15px; height: 15px; }
.circuit-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.circuit-foot .price { font-weight: 700; font-size: 1.1rem; }
.circuit-foot .price span { font-weight: 500; font-size: .8rem; opacity: .8; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a {
  flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--navy); text-decoration: none; transition: all .2s var(--ease);
}
.tabs button:hover, .tabs a:hover { border-color: var(--navy); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- package cards ---------- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.package-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s; }
.package-card:hover { box-shadow: var(--shadow-card); border-color: transparent; }
.package-card[hidden] { display: none; }
.package-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.package-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.package-card:hover .package-media img { transform: scale(1.04); }
.package-media .chip { position: absolute; left: 14px; top: 14px; }
.package-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.package-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; color: var(--muted); }
.package-meta span { display: inline-flex; align-items: center; gap: 5px; }
.package-meta .icon { width: 15px; height: 15px; }
.rating-inline { color: var(--navy); font-weight: 700; }
.rating-inline .icon { color: var(--gold); fill: var(--gold); }
.rating-inline small { color: var(--muted); font-weight: 500; }
.package-body h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.25; }
.package-body h3 a { text-decoration: none; }
.package-body h3 a:hover { text-decoration: underline; }
.package-highlights { display: grid; gap: 6px; font-size: .9rem; color: #34475A; }
.package-highlights li { position: relative; padding-left: 18px; }
.package-highlights li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.includes { display: flex; flex-wrap: wrap; gap: 6px; }
.includes li { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: #34475A; }
.includes .icon { width: 13px; height: 13px; color: var(--gold-ink); }
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price s { color: var(--muted); font-size: .85rem; margin-right: 4px; }
.package-foot .price strong { font-size: 1.3rem; }
.package-foot .price span { color: var(--muted); font-size: .8rem; }
.empty-note { padding: 32px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-card); }

/* ---------- why ---------- */
.why {
  display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(32px, 5vw, 72px);
  background: var(--navy); color: var(--white); border-radius: var(--r-panel); padding: clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.why::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(229,169,60,.18); box-shadow: 0 0 0 40px rgba(229,169,60,.04), 0 0 0 80px rgba(229,169,60,.03);
}
.why-intro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: relative; }
.why-intro p { color: rgba(255,255,255,.78); max-width: 38ch; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; position: relative; }
.why-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(229,169,60,.55); color: var(--gold); margin-bottom: 16px; }
.why-icon .icon { width: 22px; height: 22px; }
.why-grid h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.why-grid p { color: rgba(255,255,255,.72); font-size: .92rem; }

/* ---------- promo ---------- */
.promo { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-panel); overflow: hidden; background: var(--navy-2); color: var(--white); min-height: 340px; }
.promo-copy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; align-items: flex-start; }
.promo-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .9rem; }
.promo h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 16ch; }
.promo-copy > p:not(.promo-tag) { color: rgba(255,255,255,.78); max-width: 42ch; }
.promo-art { position: relative; min-height: 260px; }
.promo-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-badge {
  position: absolute; left: 28px; bottom: 28px; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: var(--gold); color: var(--navy); font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 8px rgba(229,169,60,.25);
}
.promo-badge strong { font-family: var(--font-display); font-size: 2.1rem; display: block; margin-bottom: 4px; }

/* ---------- reviews carousel ---------- */
.carousel-nav { display: flex; gap: 8px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption strong { display: block; font-size: .95rem; }
.review figcaption small { color: var(--muted); font-size: .82rem; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #FCF1DC; color: var(--gold-ink); font-weight: 700; font-size: .9rem; object-fit: cover; }

/* ---------- posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.post-body h3 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.post-body h3 a { text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; }
.post-body > p:not(.post-meta):not(.post-foot) { color: #34475A; font-size: .94rem; }
.post-foot { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.post-foot .icon { width: 15px; height: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding-top: 72px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 32ch; }
.footer-title { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; width: 16px; height: 16px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); transition: all .2s; }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-news p { margin-bottom: 14px; }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type="email"] { flex: 1 1 180px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.form-note { flex-basis: 100%; font-size: .85rem; min-height: 1.2em; }
.form-note.is-ok { color: #8FE0B8; }
.form-note.is-err { color: #FFB4A8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.footer-bottom a { margin-left: 16px; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

.whatsapp-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
}
.whatsapp-fab .icon { width: 26px; height: 26px; }

/* ---------- toast ---------- */
.toast { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 70; padding: 12px 20px; border-radius: 12px; background: var(--navy); color: var(--white); box-shadow: var(--shadow-float); font-weight: 500; max-width: calc(100% - 32px); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { background: var(--navy); color: var(--white); padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(229,169,60,.2); box-shadow: 0 0 0 36px rgba(229,169,60,.04); pointer-events: none; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; max-width: 22ch; }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.78); max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.7); margin: 0 0 16px; padding: 0; list-style: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

/* listing layout */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 18px; }
.filters h2 { font-size: 1rem; font-weight: 700; }
.listing-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.listing-bar p { color: var(--muted); }
.listing .package-grid { grid-template-columns: repeat(2, 1fr); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: #34475A; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #CDD5DF; border-radius: var(--r-input); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(229,169,60,.35); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: .92rem; }
.alert-error { background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }
.alert-success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }

/* tour detail */
.tour-hero { position: relative; color: var(--white); background: var(--navy); min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; }
.tour-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tour-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,36,56,.35) 0%, rgba(15,36,56,.2) 40%, rgba(15,36,56,.92) 100%); }
.tour-hero .container { padding-block: 48px; }
.tour-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.tour-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-size: .92rem; }
.tour-facts li { display: inline-flex; align-items: center; gap: 7px; }
.tour-facts .icon { color: var(--gold); }
.tour-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; color: #2A3D50; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 1.6em 0 .6em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.1em; }
.tour-block { padding-block: 28px; border-bottom: 1px solid var(--line); }
.tour-block:first-child { padding-top: 0; }
.tour-block h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success); margin-top: 3px; }
.check-list .is-no .icon { color: #9AA8B6; }
.check-list .is-no { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }

.book-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: 22px; box-shadow: var(--shadow-float); border: 1px solid var(--line); padding: 26px; display: grid; gap: 16px; }
.book-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.book-card-price strong { font-size: 1.9rem; font-family: var(--font-display); }
.book-card-price span { color: var(--muted); font-size: .9rem; }
.book-total { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.book-total strong { font-size: 1.15rem; }
.book-card .fine { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.book-card .fine .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--success); }

/* confirmation */
.confirm-card { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 48px); text-align: center; box-shadow: var(--shadow-card); }
.confirm-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #ECFDF3; color: var(--success); display: grid; place-items: center; }
.confirm-icon .icon { width: 34px; height: 34px; }
.confirm-card h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 10px; }
.confirm-ref { display: inline-block; margin: 18px 0; padding: 10px 20px; border-radius: 12px; background: #FCF1DC; color: var(--navy); font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; }
.summary { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 24px 0; padding: 20px; border-radius: 14px; background: var(--bg); font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* guides */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guide-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--white); }
.guide-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--navy); display: grid; place-items: center; color: var(--gold); font-family: var(--font-display); font-size: 2.2rem; }
.guide-card h3 { font-family: var(--font-display); font-size: 1.35rem; }
.guide-role { color: var(--gold-ink); font-weight: 600; font-size: .9rem; margin: 4px 0 10px; }
.guide-card p { color: #34475A; font-size: .94rem; }
.guide-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* about / contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { padding: 18px; border-radius: 14px; background: var(--bg); }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.stats span { color: var(--muted); font-size: .88rem; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.contact-card:hover { border-color: var(--navy); }
.contact-card .why-icon { margin: 0; color: var(--gold-ink); border-color: #F1D9A8; flex: none; }
.contact-card strong { display: block; }
.contact-card span { color: var(--muted); font-size: .92rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--r-card); margin-top: 24px; }

.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 40px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article .prose { font-size: 1.06rem; max-width: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; padding: 0 12px; }
.pagination [aria-current] { background: var(--navy); color: var(--white); border-color: var(--navy); }

.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--white); }
.empty-state h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .booking-widget { grid-template-columns: 1fr 1fr; gap: 4px; }
  .bw-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .bw-submit { grid-column: 1 / -1; min-height: 54px; margin-top: 6px; }
  .circuit-grid { grid-template-columns: repeat(2, 1fr); }
  .circuit-card { aspect-ratio: 4 / 3.6; }
  .package-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tour-layout { grid-template-columns: 1fr 360px; gap: 32px; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: repeat(3, 1fr); align-items: end; }
  .filters h2 { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy); padding: 12px var(--gutter) 24px;
    border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 40px -20px rgba(0,0,0,.5);
    display: none; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.02rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .nav-mobile-extras { display: block; margin-top: 20px; }
}

@media (max-width: 860px) {
  .tour-layout { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .promo { grid-template-columns: 1fr; }
  .promo-art { min-height: 220px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.25rem; }
  .switcher summary span { display: none; }
  .hero { --overlap: 40px; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .booking-widget { grid-template-columns: 1fr; border-radius: 18px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .circuit-grid, .package-grid, .post-grid, .listing .package-grid { grid-template-columns: 1fr; }
  .circuit-card { aspect-ratio: 4 / 3.4; }
  .carousel { grid-auto-columns: 88%; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid, .two-col, .stats, .filters { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-photo { width: 88px; height: 88px; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
  .footer-bottom a { margin: 0 16px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
