/* ==========================================================================
   D2D Travels - sections
   One layout family per section, no family repeats on the home page:
     1 hero split           2 enquiry strip        3 package card grid
     4 destination bento    5 fleet scroll rail    6 bordered value grid
     7 process row          8 quote grid           9 full-width CTA band
   Plus archive, single, contact and utility page layouts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO, asymmetric split
   Never h-screen. Content stays inside the first viewport: headline is two
   lines at desktop, subtext is under 20 words, both CTAs visible.
   -------------------------------------------------------------------------- */

.d2d-hero {
  position: relative;
  isolation: isolate;
  background: var(--surface-ink);
  color: var(--on-dark);
  overflow: hidden;
}

.d2d-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.d2d-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim so headline and CTAs keep AA contrast over any photograph the
   client uploads, including bright daylight shots. */
.d2d-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15, 41, 66, 0.94) 0%, rgba(15, 41, 66, 0.80) 46%, rgba(15, 41, 66, 0.42) 100%),
    linear-gradient(to top, rgba(15, 41, 66, 0.72), transparent 55%);
}

.d2d-hero__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding-top: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
  .d2d-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: min(40rem, 82dvh);
    padding-top: clamp(2.5rem, 4vw, 3.75rem);
  }
}

.d2d-hero__copy { max-width: 34rem; }

.d2d-hero h1 {
  margin-bottom: 0.85rem;
  color: var(--on-dark);
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.08;
}

.d2d-hero h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.d2d-hero__sub {
  margin-bottom: 1.6rem;
  max-width: 32rem;
  color: var(--on-dark-soft);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}

.d2d-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Right side of the split: a stack of real photographs, not a fake UI. */
.d2d-hero__art {
  display: none;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) { .d2d-hero__art { display: grid; } }

.d2d-hero__shot {
  position: relative;
  border-radius: var(--r-feature);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.d2d-hero__shot img { width: 100%; height: 100%; object-fit: cover; }

.d2d-hero__shot--tall { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.d2d-hero__shot--wide { aspect-ratio: 4 / 3; }

/* Readability: white hero text over any photo. The scrim already handles the
   bulk of it; a soft shadow covers bright patches, and the eyebrow uses the
   accent so it reads on the dark scrim in both themes. */
.d2d-hero__copy { text-shadow: 0 1px 3px rgba(6, 15, 24, 0.45); }
.d2d-hero__copy .d2d-btn { text-shadow: none; }
.d2d-hero .d2d-eyebrow { color: var(--accent); text-shadow: none; }

/* --------------------------------------------------------------------------
   1a. HERO SLIDER
   Slides are stacked in one grid cell and cross-fade, so the banner height is
   stable regardless of how much copy each slide carries. The whole thing
   degrades to the first slide with no JavaScript.
   -------------------------------------------------------------------------- */

.d2d-hero--slider { position: relative; }

.d2d-hero__viewport { display: grid; }

.d2d-hero__slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease);
}

.d2d-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Before the script runs, only the first slide should be visible. */
.d2d-hero--slider:not(.is-ready) .d2d-hero__slide:first-child {
  opacity: 1;
  visibility: visible;
}

.d2d-hero__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding-inline: var(--gutter);
}

.d2d-hero__arrow {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}

.d2d-hero__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.d2d-hero__arrow:active { transform: scale(0.92); }
.d2d-hero__arrow svg { width: 1.2rem; height: 1.2rem; }

.d2d-hero__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.d2d-hero__dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5);
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.d2d-hero__dot:hover { background: rgba(255, 255, 255, 0.8); }

.d2d-hero__dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .d2d-hero__slide { transition: none; }
}

/* --------------------------------------------------------------------------
   9a. HOME ENQUIRY BLOCK
   Two columns: a short pitch on the left, the form on the right.
   -------------------------------------------------------------------------- */

.d2d-planbox {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .d2d-planbox { grid-template-columns: 1fr 1fr; }
  .d2d-planbox__intro { position: sticky; top: 6.5rem; }
}

.d2d-planbox__intro .d2d-heading { margin-bottom: 0; }
.d2d-planbox__form { min-width: 0; }

.d2d-planbox__points {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.d2d-planbox__points li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--body);
  font-size: 0.9375rem;
}

.d2d-planbox__points svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: #15803D;
}

:root[data-theme="dark"] .d2d-planbox__points svg { color: #4ADE80; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .d2d-planbox__points svg { color: #4ADE80; }
}

/* --------------------------------------------------------------------------
   1b. FIGURES BAND
   Trust numbers live in their own band directly below the hero rather than
   inside it, so the hero stays a single focused moment.
   -------------------------------------------------------------------------- */

.d2d-figures {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .d2d-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
}

.d2d-stat {
  display: grid;
  gap: 0.15rem;
}

@media (min-width: 640px) {
  .d2d-stat {
    padding-inline: clamp(1rem, 3vw, 2rem);
    border-right: 1px solid var(--line);
  }

  .d2d-stat:first-child { padding-left: 0; }
  .d2d-stat:last-child { border-right: 0; }
}

.d2d-stat__num {
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.d2d-stat__label {
  color: var(--body);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   2. ENQUIRY STRIP, lifted over the hero seam
   -------------------------------------------------------------------------- */

.d2d-planner { position: relative; background: var(--paper-2); }

.d2d-planner__inner {
  padding-block: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 1024px) {
  .d2d-planner__inner {
    margin-top: -3.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-feature);
    box-shadow: var(--shadow-lg);
  }
}

.d2d-planner__form {
  display: grid;
  gap: 0.9rem;
  align-items: end;
}

@media (min-width: 768px) { .d2d-planner__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d2d-planner__form { grid-template-columns: 1.2fr 1fr 0.9fr 0.8fr auto; } }

.d2d-planner__title {
  margin-bottom: 0.9rem;
  font-size: 1.125rem;
}

@media (min-width: 1024px) { .d2d-planner__title { margin-bottom: 1.1rem; } }

/* --------------------------------------------------------------------------
   3. PACKAGE CARD GRID
   -------------------------------------------------------------------------- */

.d2d-packages__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .d2d-packages__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.d2d-packages__head .d2d-heading { margin-bottom: 0; }

/* Filter pills above the package archive */
.d2d-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding: 0;
  list-style: none;
}

.d2d-filters a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.d2d-filters a:hover { background: var(--paper-3); }

.d2d-filters a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   4. DESTINATION BENTO
   Cell count always matches item count, so there is never a blank tile.
   Modifier classes are chosen in PHP from the loop index.
   -------------------------------------------------------------------------- */

.d2d-bento { display: grid; gap: clamp(0.75rem, 1.8vw, 1.1rem); }

@media (min-width: 640px) { .d2d-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d2d-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.d2d-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 12rem;
  padding: 1.1rem;
  border-radius: var(--r-feature);
  background: var(--paper-3);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.d2d-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.d2d-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.d2d-tile:hover img { transform: scale(1.06); }

.d2d-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(15, 41, 66, 0.88) 0%, rgba(15, 41, 66, 0.34) 52%, rgba(15, 41, 66, 0.08) 100%);
}

.d2d-tile__text { display: block; }

.d2d-tile__name {
  display: block;
  margin: 0 0 0.15rem;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
}

.d2d-tile__meta {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8125rem;
}

/* Rhythm: the first tile is large, the rest vary. Applied at 1024px up. */
@media (min-width: 1024px) {
  .d2d-tile--hero { grid-column: span 2; grid-row: span 2; min-height: 26rem; }
  .d2d-tile--wide { grid-column: span 2; min-height: 12.5rem; }
  .d2d-tile--tall { grid-row: span 2; min-height: 26rem; }
}

/* --------------------------------------------------------------------------
   5. FLEET SCROLL RAIL
   Horizontal scroll-snap, which suits a short breadth-heavy list better than
   another card grid.
   -------------------------------------------------------------------------- */

.d2d-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 17rem);
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.d2d-rail > * { scroll-snap-align: start; }

.d2d-rail::-webkit-scrollbar { height: 6px; }
.d2d-rail::-webkit-scrollbar-track { background: var(--paper-3); border-radius: var(--r-pill); }
.d2d-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }

.d2d-vehicle__spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.d2d-vehicle__spec li { display: grid; gap: 0.05rem; }

.d2d-vehicle__spec dt,
.d2d-vehicle__spec .k {
  color: var(--body-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.d2d-vehicle__spec .v {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. BORDERED VALUE GRID
   No card containers here. Hairlines and space do the grouping.
   -------------------------------------------------------------------------- */

.d2d-values {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-feature);
  overflow: hidden;
  background: var(--paper);
}

@media (min-width: 640px) { .d2d-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d2d-values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.d2d-value {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.d2d-value:last-child { border-bottom: 0; }

@media (min-width: 640px) {
  .d2d-value { border-right: 1px solid var(--line); }
  .d2d-value:nth-child(2n) { border-right: 0; }
  .d2d-value:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (min-width: 1024px) {
  .d2d-value { border-bottom: 0; }
  .d2d-value:nth-child(2n) { border-right: 1px solid var(--line); }
  .d2d-value:last-child { border-right: 0; }
}

.d2d-value__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  border-radius: var(--r-card);
  color: var(--accent-ink);
}

.d2d-value__icon svg { width: 1.4rem; height: 1.4rem; }

.d2d-value h3 { margin-bottom: 0.4rem; font-size: 1.0625rem; }
.d2d-value p { margin: 0; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   7. PROCESS ROW
   Numbered because the order genuinely matters. The step content is the
   label, there is no "Stage 1 / Stage 2" prefix.
   -------------------------------------------------------------------------- */

.d2d-process {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  counter-reset: d2dstep;
}

@media (min-width: 768px) { .d2d-process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.d2d-step { position: relative; padding-top: 3.25rem; }

.d2d-step::before {
  counter-increment: d2dstep;
  content: counter(d2dstep, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  border-radius: var(--r-pill);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
}

/* Connector line between steps, drawn only where a next step exists. */
@media (min-width: 768px) {
  .d2d-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: 3rem;
    right: -1rem;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
  }
}

.d2d-step h3 { margin-bottom: 0.35rem; font-size: 1.0625rem; }
.d2d-step p { margin: 0; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   8. QUOTE GRID
   Quote bodies are capped at three lines of copy by the editor guidance and
   clamped here as a safeguard.
   -------------------------------------------------------------------------- */

.d2d-quotes { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }

@media (min-width: 768px) { .d2d-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d2d-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.d2d-quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.d2d-quote__stars { display: flex; gap: 0.1rem; color: var(--accent); }
.d2d-quote__stars svg { width: 1rem; height: 1rem; }

.d2d-quote__body {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.d2d-quote__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.d2d-quote__avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  background: var(--surface-ink);
  border-radius: var(--r-pill);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  overflow: hidden;
}

.d2d-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }

.d2d-quote__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.d2d-quote__role { color: var(--body-soft); font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   9. CTA BAND
   -------------------------------------------------------------------------- */

.d2d-cta {
  position: relative;
  isolation: isolate;
  background: var(--surface-ink);
  color: var(--on-dark);
  overflow: hidden;
}

.d2d-cta__bg { position: absolute; inset: 0; z-index: -2; }
.d2d-cta__bg img { width: 100%; height: 100%; object-fit: cover; }

.d2d-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(15, 41, 66, 0.95) 0%, rgba(15, 41, 66, 0.82) 55%, rgba(15, 41, 66, 0.60) 100%);
}

.d2d-cta__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

@media (min-width: 1024px) { .d2d-cta__inner { grid-template-columns: 1fr auto; } }

.d2d-cta h2 { margin-bottom: 0.5rem; color: var(--on-dark); }
.d2d-cta p { margin: 0; max-width: 44ch; color: var(--on-dark-soft); }

.d2d-cta__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* --------------------------------------------------------------------------
   10. PAGE HEADER for archives and inner pages
   -------------------------------------------------------------------------- */

.d2d-pagehead {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  background: var(--surface-ink);
  color: var(--on-dark);
  overflow: hidden;
}

.d2d-pagehead__bg { position: absolute; inset: 0; z-index: -2; }
.d2d-pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }

.d2d-pagehead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 41, 66, 0.93), rgba(15, 41, 66, 0.72));
}

.d2d-pagehead h1 { margin-bottom: 0.4rem; color: var(--on-dark); }
.d2d-pagehead p { margin: 0; max-width: 56ch; color: var(--on-dark-soft); }
.d2d-pagehead .d2d-crumbs { margin-bottom: 0.9rem; color: var(--on-dark-soft); }
.d2d-pagehead .d2d-crumbs a { color: var(--on-dark-soft); }
.d2d-pagehead .d2d-crumbs a:hover { color: var(--accent); }
.d2d-pagehead .d2d-crumbs [aria-current="page"] { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   11. SINGLE PACKAGE
   -------------------------------------------------------------------------- */

.d2d-pkg { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }

@media (min-width: 1024px) {
  .d2d-pkg { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; }
}

.d2d-pkg__gallery { display: grid; gap: 0.7rem; margin-bottom: 1.75rem; }

.d2d-pkg__gallery--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.d2d-pkg__gallery figure {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper-3);
}

.d2d-pkg__gallery figure:first-child { grid-column: 1 / -1; }
.d2d-pkg__gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.d2d-pkg__gallery figure:first-child img { aspect-ratio: 16 / 9; }

/* Key facts as tiles, not a hairline spec table */
.d2d-pkg__facts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) { .d2d-pkg__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d2d-pkg__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.d2d-fact {
  padding: 0.9rem 1rem;
  background: var(--paper-2);
  border-radius: var(--r-card);
}

.d2d-fact__k {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--body-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.d2d-fact__v {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

/* Itinerary as a disclosure list, one soft divider per day */
.d2d-itinerary { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; }

.d2d-day {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.d2d-day > summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.d2d-day > summary::-webkit-details-marker { display: none; }

.d2d-day__num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  color: var(--accent-ink);
  font-size: 0.8125rem;
}

.d2d-day__chev {
  margin-left: auto;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--body-soft);
  transition: transform var(--t) var(--ease);
}

.d2d-day[open] .d2d-day__chev { transform: rotate(180deg); }

.d2d-day__body {
  padding: 0 1.1rem 1.1rem 4.05rem;
  color: var(--body);
  font-size: 0.9375rem;
}

.d2d-day__body > *:last-child { margin-bottom: 0; }

/* Inclusions and exclusions, two grouped chunks rather than one long list */
.d2d-incl { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }

@media (min-width: 768px) { .d2d-incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.d2d-incl__col {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.d2d-incl__col h3 { margin-bottom: 0.75rem; font-size: 1rem; }

.d2d-incl__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }

.d2d-incl__col li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.9375rem;
}

.d2d-incl__col svg { width: 1.05rem; height: 1.05rem; margin-top: 0.24rem; }
.d2d-incl--yes svg { color: #15803D; }
.d2d-incl--no svg { color: var(--accent-ink); }

:root[data-theme="dark"] .d2d-incl--yes svg { color: #4ADE80; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .d2d-incl--yes svg { color: #4ADE80; }
}

/* Sticky booking rail */
.d2d-pkg__aside { display: grid; gap: 1rem; }

@media (min-width: 1024px) {
  .d2d-pkg__aside { position: sticky; top: 6.5rem; }
}

.d2d-bookcard {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-feature);
  box-shadow: var(--shadow-md);
}

.d2d-bookcard__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.d2d-bookcard__amount {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.d2d-bookcard__unit { color: var(--body-soft); font-size: 0.875rem; }

.d2d-bookcard__note {
  margin-bottom: 1.1rem;
  color: var(--body-soft);
  font-size: 0.8125rem;
}

.d2d-bookcard__actions { display: grid; gap: 0.55rem; }

/* --------------------------------------------------------------------------
   12. CONTACT
   -------------------------------------------------------------------------- */

.d2d-contact { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }

@media (min-width: 1024px) { .d2d-contact { grid-template-columns: 0.85fr 1.15fr; } }

.d2d-contact__list { display: grid; gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }

.d2d-contact__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.d2d-contact__ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-soft);
  border-radius: var(--r-card);
  color: var(--accent-ink);
}

.d2d-contact__ico svg { width: 1.25rem; height: 1.25rem; }

.d2d-contact__k {
  display: block;
  color: var(--body-soft);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.d2d-contact__v {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.d2d-contact__v:hover { color: var(--accent-ink); }

.d2d-map {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.d2d-map iframe { display: block; width: 100%; height: 20rem; border: 0; }

/* --------------------------------------------------------------------------
   13. EMPTY STATES, 404, SEARCH
   -------------------------------------------------------------------------- */

.d2d-empty {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.25rem) 1.25rem;
  text-align: center;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-feature);
}

.d2d-empty__ico {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--paper);
  border-radius: var(--r-pill);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.d2d-empty__ico svg { width: 1.6rem; height: 1.6rem; }
.d2d-empty h2 { margin: 0; font-size: 1.25rem; }
.d2d-empty p { margin: 0; }
.d2d-empty__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* Skeleton placeholders match the shape of a package card */
.d2d-skeleton { pointer-events: none; }

.d2d-skeleton__bar,
.d2d-skeleton .d2d-card__media {
  background: linear-gradient(90deg, var(--paper-3) 25%, var(--paper-2) 37%, var(--paper-3) 63%);
  background-size: 400% 100%;
  animation: d2d-shimmer 1.4s ease-in-out infinite;
}

.d2d-skeleton__bar { height: 0.8rem; border-radius: var(--r-pill); }
.d2d-skeleton__bar--title { height: 1.1rem; width: 78%; }
.d2d-skeleton__bar--short { width: 45%; }

@keyframes d2d-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .d2d-skeleton__bar,
  .d2d-skeleton .d2d-card__media { animation: none; }
}

/* --------------------------------------------------------------------------
   14. BLOG
   -------------------------------------------------------------------------- */

.d2d-postmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--body-soft);
  font-size: 0.875rem;
}

.d2d-postmeta a { color: var(--body-soft); }

.d2d-featured {
  margin-bottom: 1.75rem;
  border-radius: var(--r-feature);
  overflow: hidden;
}

.d2d-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --------------------------------------------------------------------------
   15. SEARCH FORM, POST NAVIGATION, PACKAGE MAIN COLUMN
   -------------------------------------------------------------------------- */

.d2d-searchform {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  width: 100%;
}

.d2d-postnav {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .d2d-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d2d-postnav > span:last-child { text-align: right; }
}

.d2d-postnav a {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

/* The package main column needs min-width 0 so long words and wide tables do
   not blow out the grid track. */
.d2d-pkg__main { min-width: 0; }

.d2d-pkg__main > h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.d2d-pkg__main > h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   16. COMMENTS
   -------------------------------------------------------------------------- */

.d2d-comments { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }

.d2d-comments__title { margin-bottom: 1.5rem; font-size: 1.25rem; }

.d2d-comments ol { margin: 0 0 2rem; padding: 0; list-style: none; }

.d2d-comments .children { margin-left: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--line); }

.d2d-comments li.comment { margin-bottom: 1.25rem; }

.d2d-comments article {
  padding: 1rem 1.15rem;
  background: var(--paper-2);
  border-radius: var(--r-card);
}

.d2d-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.d2d-comments .comment-author img { border-radius: var(--r-pill); }

.d2d-comments .comment-metadata { margin-bottom: 0.6rem; color: var(--body-soft); font-size: 0.8125rem; }

.d2d-comments .comment-respond { margin-top: 1.5rem; }

.d2d-comments .comment-form { display: grid; gap: 1rem; }

.d2d-comments .comment-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.d2d-comments .comment-form input[type="text"],
.d2d-comments .comment-form input[type="email"],
.d2d-comments .comment-form input[type="url"],
.d2d-comments .comment-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  color: var(--ink);
  font-size: 0.9375rem;
}

.d2d-comments .comment-form textarea { min-height: 8rem; resize: vertical; }

.d2d-comments .form-submit input[type="submit"] {
  display: inline-flex;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.d2d-comments .form-submit input[type="submit"]:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
