/* ---------------------------------------------------------------
   Page styles for the rebuilt pages (home, gallery, reviews, policy,
   404). Header/footer styles live in chrome.css.
   Layout: full-width bands with a 1200px inner column.
---------------------------------------------------------------- */

:root {
  --ink: #17202c;
  --ink-2: #3c4655;
  --muted: #5f6b7a;
  --line: #eadfd3;
  --sand: #fbf6f0;
  --sand-2: #f4e9dc;
  --white: #ffffff;
  --sun: #e8590c;
  --sun-dark: #c2410c;
  --wa: #128c4b;
  --night: #121a24;
  --ok: #15803d;
  --radius: 16px;
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 88%;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 92%; }
p { margin: 0; }

.band { padding-block: clamp(48px, 7vw, 88px); }
.band-sand { background: var(--sand); }
.band-night { background: var(--night); color: #d9dee6; }
.band-night h2, .band-night h3 { color: #fff; }
.stack { display: grid; gap: 16px; }
.section-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font: 700 13px/1.3 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-dark);
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sx-btn-lg { min-height: 52px; padding: 14px 24px; font-size: 17px; border-radius: 12px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sand) 0%, var(--white) 100%); padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-prices { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-prices span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-prices b { color: var(--sun-dark); }
.trust-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.trust-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.trust-list .sx-i { color: var(--ok); }
.hero-media { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; position: relative; min-width: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-media .main { grid-row: span 2; aspect-ratio: 4 / 5; object-position: center top; }
.hero-media .side { aspect-ratio: 1 / 1; }
.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 22px;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(23, 32, 44, 0.16);
  display: grid;
  gap: 2px;
}
.hero-badge small { color: var(--muted); font-size: 13px; }
.hero-badge b { font-family: var(--font-display); font-size: 1.5rem; color: var(--sun-dark); line-height: 1.1; }

/* Feature row */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-2); color: var(--sun-dark); }
.feature .icon .sx-i { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: #ff9a5c; }
.steps p { color: #b8c1cd; font-size: 15px; }

/* Tour cards */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 15px/1.2 var(--font-body);
  cursor: pointer;
  min-height: 42px;
}
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
tr[hidden] { display: none; }
.tab:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.tab small { opacity: 0.7; font-weight: 500; margin-left: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 16px 36px rgba(23, 32, 44, 0.12); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 5 / 4; background: var(--sand-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.price-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(23, 32, 44, 0.18);
}
.price-pill b { color: var(--sun-dark); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--sun-dark); }
.card-meta { color: var(--muted); font-size: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.more { font-size: 14px; }
.more summary { cursor: pointer; color: var(--sun-dark); font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " −"; }
.more .ticks { margin-top: 8px; }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; }
.card-actions .sx-btn { padding: 10px 8px; min-height: 46px; font-size: 15px; }
.card-actions .sx-btn-wa { padding: 0; }
.card[hidden] { display: none; }

/* Compare table + price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }
td.price { font-weight: 700; color: var(--sun-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search {
  flex: 1 1 260px;
  max-width: 420px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font: 16px var(--font-body);
  background: var(--white);
  color: var(--ink);
}
.search:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.15); }

/* Photo strip / gallery */
.photo-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.photo-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden; background: var(--sand-2); }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(18, 26, 36, 0.78));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.gallery figure[hidden] { display: none; }
.lightbox { border: none; padding: 0; background: transparent; max-width: min(1000px, 94vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 14, 20, 0.88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; }
.lightbox-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Reviews call-out */
.review-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); }
.review-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

/* Guide (long-form SEO copy) */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.guide article { display: grid; gap: 10px; align-content: start; }
.guide h3 { font-size: 1.3rem; }
.guide p, .guide li { color: var(--ink-2); }
.guide ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; color: var(--sun-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #c2410c 0%, #e8590c 55%, #f08c3a 100%); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff3ea; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .sx-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .sx-btn-ghost:hover { border-color: #fff; }

/* Simple page hero + prose (gallery, reviews, policy, 404) */
.page-hero { background: var(--sand); padding-block: clamp(36px, 6vw, 72px); }
.page-hero .section-head { margin-bottom: 0; }
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose li, .prose p { color: var(--ink-2); }
.note-box { background: var(--sand); border-radius: 14px; padding: 18px 20px; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .review-panel, .cta-band, .guide { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; bottom: 12px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .cards.cards-4, .features { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .hero-media { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-media .main { grid-row: auto; aspect-ratio: 16 / 10; }
  .hero-media .side { display: none; }
  .hero-copy { gap: 14px; }
  .btn-row .sx-btn-lg { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
