/* ==========================================================================
   GRANDTOUR (PVT) LTD — INTERNAL PAGE COMPONENTS
   Page hero · breadcrumb · fact bar · sticky subnav · route · itinerary ·
   hotels · inclusions · price tiers. Shared by tour and destination pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE HERO — compact, dark, with a photograph alongside
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: var(--header-h);
  background:
    radial-gradient(62% 58% at 88% 12%, rgba(224, 169, 76, 0.14), transparent 62%),
    linear-gradient(158deg, var(--ocean-dark), var(--ocean) 82%);
  overflow: hidden;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.page-hero--plain .page-hero__grid { grid-template-columns: 1fr; max-width: 52rem; }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--step--1); }
.crumbs li { display: flex; align-items: center; gap: var(--sp-2); color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; color: var(--on-dark-muted); opacity: 0.6; }
.crumbs a { color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--gold); }

/* The "2 nights / 3 days · Sigiriya, Kandy" line under the title */
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  color: var(--on-dark-soft);
  font-size: var(--step-0);
}
.page-hero__meta .dot { opacity: 0.5; }

/* From-price block */
.from-price { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.from-price__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.from-price__value { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; color: var(--gold); line-height: 1; }
.from-price__unit { font-size: var(--step--1); color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   2. FACT BAR
   -------------------------------------------------------------------------- */
.factbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  background: rgba(9, 31, 28, 0.55);
}
.factbar > div {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) clamp(1rem, 2.4vw, 2rem);
  border-right: 1px solid rgba(251, 246, 236, 0.1);
}
.factbar > div:last-child { border-right: 0; }
.factbar svg { width: 24px; height: 24px; flex: none; color: var(--gold); }
.factbar dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.factbar dd { margin: 2px 0 0; color: var(--cream); font-size: var(--step--1); font-weight: 600; }

/* --------------------------------------------------------------------------
   3. STICKY SUBNAV
   -------------------------------------------------------------------------- */
/* Tell the document how tall the sticky bar is, so scroll-padding-top can
   clear the header AND this bar when an anchor is followed. */
html:has(.subnav) { --subnav-h: 61px; }

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--sp-3);
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  white-space: nowrap;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.subnav a:hover { color: var(--cinnamon-dark); }
.subnav a.is-current { color: var(--ocean-dark); border-bottom-color: var(--gold); }

/* --------------------------------------------------------------------------
   4. HIGHLIGHTS
   -------------------------------------------------------------------------- */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-6); }
.highlights li { display: flex; gap: var(--sp-4); padding-block: var(--sp-3); }
.highlights li + li + li { border-top: 1px solid var(--line); }
.highlights li:nth-child(2) { border-top: 0; }

/* A long list goes to three columns, so forty-odd entries are a third of
   the scroll. The base rule draws a divider on everything past the first
   row, which at two columns means item 3 onwards; at three columns item 3
   is still in the first row, so it is the single exception to undo. Every
   breakpoint that changes the column count sets item 3 to match. */
.highlights--3 { grid-template-columns: repeat(3, 1fr); }
.highlights--3 li:nth-child(3) { border-top: 0; }
.highlights__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--sand);
  color: var(--cinnamon-dark);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
.highlights strong { display: block; font-family: var(--font-display); font-size: var(--step-0); color: var(--ocean-dark); }
.highlights span { display: block; font-size: var(--step--1); color: var(--ink-soft); margin-top: 2px; }

/* Forty-odd short titles in a third of the width: step down the type and
   the number badge so a full column fits a laptop viewport without the
   titles wrapping to three lines. */
.highlights--3 li { gap: var(--sp-3); padding-block: var(--sp-2); }
.highlights--3 strong { font-size: var(--step--1); line-height: 1.35; }
.highlights--3 span:not(.highlights__mark) { font-size: 0.75rem; }
.highlights--3 .highlights__mark { width: 24px; height: 24px; font-size: 0.72rem; }


/* --------------------------------------------------------------------------
   5. ROUTE AT A GLANCE
   -------------------------------------------------------------------------- */
.route { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.route li { display: flex; align-items: center; gap: var(--sp-3); }
.route li + li::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--sand-dark);
  flex: none;
}
.route span {
  display: inline-flex; align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--ocean-dark);
}

/* --------------------------------------------------------------------------
   6. ITINERARY — editorial, alternating
   -------------------------------------------------------------------------- */
.day { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.day + .day { margin-top: var(--sp-9); padding-top: var(--sp-9); border-top: 1px solid var(--line); }
.day:nth-child(even) .day__media { order: -1; }
.day__media { border-radius: var(--radius-md); overflow: hidden; background: var(--sand); }
.day__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.day__num {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cinnamon-dark);
  margin-bottom: var(--sp-3);
}
.day__num::after { content: ""; width: 28px; height: 1px; background: var(--sand-dark); }
.day h3 { margin-bottom: var(--sp-4); }

.timeline { display: grid; gap: var(--sp-3); }
.timeline > div { display: grid; grid-template-columns: 116px 1fr; gap: var(--sp-4); align-items: baseline; }
.timeline dt {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--leaf);
}
.timeline dd { margin: 0; color: var(--ink-soft); }

.day__foot {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.day__foot b { font-weight: 600; color: var(--ocean-dark); }
.day__foot span { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   7. HOTELS
   -------------------------------------------------------------------------- */
.hotel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.hotel__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.hotel__media img { width: 100%; height: 100%; object-fit: cover; }
.hotel__body { padding: var(--sp-5); }
.hotel__body h3 { font-family: var(--font-display); font-size: var(--step-1); color: var(--ocean-dark); }
.hotel__stars { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); font-size: var(--step--1); color: var(--ink-muted); }
.hotel__stars b { color: var(--gold); letter-spacing: 1px; }

/* --------------------------------------------------------------------------
   8. PRICE TIERS
   -------------------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.tier {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.tier--featured { border-color: var(--gold); border-width: 2px; }
.tier__flag { position: absolute; top: calc(var(--sp-4) * -1); right: var(--sp-5); }
.tier__label { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.tier__price { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; color: var(--ocean-dark); line-height: 1; }
.tier__price span { font-family: var(--font-body); font-size: var(--step--1); font-weight: 400; color: var(--ink-muted); }
.tier__note { font-size: var(--step--1); color: var(--ink-muted); }
.tier .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   9. NOTE / CALLOUT
   -------------------------------------------------------------------------- */
.callout {
  padding: var(--sp-5);
  border-left: 3px solid var(--gold);
  background: var(--sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.callout p + p { margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   10. INDEX / LISTING PAGES
   -------------------------------------------------------------------------- */
.listing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6) var(--sp-5); }
.listing--2 { grid-template-columns: repeat(2, 1fr); }

.group-head {
  display: flex; align-items: baseline; gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.group-head h2 { font-family: var(--font-display); font-size: var(--step-2); color: var(--ocean-dark); }
.group-head p { margin: 0; color: var(--ink-muted); font-size: var(--step--1); }
.group + .group { margin-top: var(--sp-9); }

/* --------------------------------------------------------------------------
   11. INQUIRY LAYOUT — form beside a sticky reassurance panel
   -------------------------------------------------------------------------- */
.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.inquiry-aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.inquiry-aside__inner {
  padding: var(--sp-6);
  background: var(--sand);
  border-radius: var(--radius-md);
}
.inquiry-aside__contact { display: grid; gap: var(--sp-2); }

/* Numbered step marker on each fieldset legend */
.fieldset__legend {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--step-1); font-family: var(--font-display);
  /* All of the space beneath a step heading comes from the fieldset's
     padding-top (see below), so the legend itself adds none. */
  margin-bottom: 0;
}
.step-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--ocean-dark);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}
/* Step spacing, shared by every step including the first.

   A <legend> renders on the fieldset's block-start border edge, not inside
   its content box, so these two values land either side of the heading:
   margin-top is the air above it, padding-top the air below it. .fieldset
   also resets margin to 0, which beats the .stack flow rule, so the top
   value has to be set here rather than inherited. */
.fieldset { --step-space-above: 5rem; --step-space-below: 3.75rem; }
.fieldset + .fieldset,
.fieldset:first-of-type {
  margin-top: var(--step-space-above);
  padding-top: var(--step-space-below);
}
.fieldset + .fieldset { border-top: 1px solid var(--line); }

/* A collapsed panel for questions that help us but are not the guest's job
   to answer. Native <details>, so it opens without JavaScript, is keyboard
   operable and is announced as expandable on its own. */
.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.disclosure__summary {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  min-height: 56px;
  cursor: pointer;
  font-weight: 600; color: var(--ocean-dark);
  list-style: none;
}
/* Safari still paints its own triangle without this. */
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary:hover { color: var(--leaf); }
.disclosure__summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: -3px; border-radius: var(--radius-sm);
}
.disclosure__meta { margin-left: auto; font-size: var(--step--1); font-weight: 400; color: var(--ink-muted); }
.disclosure__chevron { width: 20px; height: 20px; flex: none; transition: transform var(--t-fast) var(--ease); }
.disclosure[open] .disclosure__chevron { transform: rotate(180deg); }
.disclosure[open] .disclosure__summary { border-bottom: 1px solid var(--line); }
.disclosure__body { padding: var(--sp-5); }

/* Names the tour a visitor arrived from. Stays hidden unless the query
   string actually identified one, so a direct visit sees nothing. */
.tour-ref {
  margin-bottom: 3.75rem; /* 60px */
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--sand);
}
.tour-ref__label {
  font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; color: var(--cinnamon-dark); margin: 0;
}
.tour-ref__name {
  font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ocean-dark); margin: var(--sp-2) 0 0;
}
.tour-ref__meta { font-size: var(--step--1); color: var(--ink-soft); margin: 2px 0 var(--sp-3); }
@media (prefers-reduced-motion: reduce) { .disclosure__chevron { transition: none; } }

/* --------------------------------------------------------------------------
   12. CONTACT DETAIL CARDS
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.contact-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--cinnamon-dark);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h2 { font-family: var(--font-display); font-size: var(--step-1); color: var(--ocean-dark); }
.contact-card address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }

/* --------------------------------------------------------------------------
   13. REVIEW PLATFORM BUTTONS
   -------------------------------------------------------------------------- */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.platform {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
}
.platform:hover { border-color: var(--gold); transform: translateY(-3px); }
.platform__logo { height: 28px; }
.platform h2 { font-family: var(--font-display); font-size: var(--step-1); color: var(--ocean-dark); }
.platform p { color: var(--ink-soft); font-size: var(--step--1); }
.platform .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   14. CONFIRMATION PAGE
   -------------------------------------------------------------------------- */
.confirm { display: grid; place-items: center; text-align: center; min-height: 60vh; padding-block: var(--sp-9); }
.confirm__mark {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  border-radius: 50%;
  background: rgba(224, 169, 76, 0.14);
  color: var(--gold);
}
.confirm__mark svg { width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   15. CERTIFICATE LAYOUT
   -------------------------------------------------------------------------- */
.cert-layout { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cert-figure { margin: 0; }
.cert-figure a {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.cert-figure a:hover { border-color: var(--gold); box-shadow: var(--shadow-raised); }
.cert-figure img { width: 100%; height: auto; }
.cert-figure figcaption { margin-top: var(--sp-3); text-align: center; }

/* A landscape document squeezes to about 220px in the two-column layout,
   which is far too small to read. --wide stacks it one breakpoint earlier
   so it gets the full container width instead. */
@media (max-width: 1024px) {
  .cert-layout--wide { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   16. BLOG
   -------------------------------------------------------------------------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); font-size: var(--step--1); color: var(--ink-muted); }
.post-meta .dot { opacity: .5; }

.article { max-width: 68ch; margin-inline: auto; }
.article h2 { font-family: var(--font-display); font-size: var(--step-3); color: var(--ocean-dark); margin-block: var(--sp-8) var(--sp-4); line-height: var(--lh-snug); }
.article h3 { font-family: var(--font-display); font-size: var(--step-1); color: var(--ocean-dark); margin-block: var(--sp-6) var(--sp-3); }
.article p { color: var(--ink-soft); margin-bottom: var(--sp-5); text-wrap: pretty; }
.article > p:first-of-type { font-size: var(--step-1); line-height: var(--lh-body); color: var(--ink-soft); }
.article ul { margin: 0 0 var(--sp-5); padding-left: var(--sp-5); }
.article li { color: var(--ink-soft); margin-bottom: var(--sp-2); }
.article figure { margin: var(--sp-7) 0; }
.article figure img { width: 100%; height: auto; border-radius: var(--radius-md); }
.article figcaption { margin-top: var(--sp-3); font-size: var(--step--1); color: var(--ink-muted); text-align: center; }
.article blockquote {
  margin: var(--sp-7) 0;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: var(--lh-snug);
  color: var(--ocean-dark);
}

/* Featured post on the blog index — image beside copy */
.feature-post { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.feature-post .card__media { aspect-ratio: auto; }
.feature-post .card__media img { height: 100%; }
.feature-post .card__body { padding: var(--sp-7); justify-content: center; }

/* --------------------------------------------------------------------------
   17. LEGAL PAGES
   -------------------------------------------------------------------------- */
.legal-toc {
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
  background: var(--sand);
  border-radius: var(--radius-md);
}
.legal-toc__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--sp-3);
}
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.legal-toc a {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
}
.legal-toc a:hover { color: var(--cinnamon-dark); }

.legal__section + .legal__section { margin-top: var(--sp-8); padding-top: var(--sp-7); border-top: 1px solid var(--line); }
.legal h2 {
  display: flex; align-items: baseline; gap: var(--sp-3);
  font-family: var(--font-display); font-size: var(--step-2); color: var(--ocean-dark);
  margin-bottom: var(--sp-4); line-height: var(--lh-snug);
}
.legal__num {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--ocean-dark); color: var(--gold);
  font-size: 0.8rem; font-weight: 600;
  transform: translateY(2px);
}
.legal h3 { font-family: var(--font-display); font-size: var(--step-1); color: var(--ocean-dark); margin-block: var(--sp-5) var(--sp-3); }
.legal p { color: var(--ink-soft); margin-bottom: var(--sp-4); max-width: 68ch; }
.legal ul { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); max-width: 68ch; }
.legal li { color: var(--ink-soft); margin-bottom: var(--sp-2); }
.legal .facts { margin-bottom: var(--sp-4); }

/* A clause the client still has to supply — visibly unfinished on purpose */
.callout--todo { border-left-color: var(--cinnamon); background: rgba(194, 86, 45, 0.07); }
.callout--todo p { margin: 0; color: var(--ink-soft); }
