/* =========================================================
   WildRoute - Product Detail Page (product-front.css)
   Location: assets/css/css-front/product-front.css

   Same visual language as index-front.css / destinations-front.css.
   Every rule is scoped under "#main.pd" (the mobile bar sits
   outside <main>, so it is scoped on its own) so nothing in
   style.css or the header can override it.

   01 Tokens                 10 Content blocks
   02 Base                   11 Itinerary
   03 Layout                 12 Inclusions + info
   04 Buttons                13 Reviews
   05 Breadcrumb             14 Sidebar
   06 Hero                   15 Mobile book bar
   07 Gallery                16 Empty state
   08 Summary card           17 Responsive
   09 Key facts              18 Motion / print / a11y
   ========================================================= */

/* =========================================================
   01. TOKENS
   ========================================================= */
:root {
  --pd-bg:          #f7f7f9;
  --pd-card:        #ffffff;
  --pd-ink:         #14161a;
  --pd-ink-2:       #565a63;
  --pd-ink-3:       #8b8f98;
  --pd-line:        #e8e9ed;
  --pd-line-2:      #d6d8de;
  --pd-soft:        #f2f3f6;

  --pd-accent:      #d94460;
  --pd-accent-dark: #b8324b;
  --pd-accent-soft: #fdeef1;
  --pd-star:        #f2a800;
  --pd-star-off:    #dcdde2;

  --pd-success:      #178a52;
  --pd-success-soft: #e9f7f0;
  --pd-danger:       #cc4358;
  --pd-danger-soft:  #fdeef1;

  --pd-r-sm: 10px;
  --pd-r-md: 14px;
  --pd-r-lg: 20px;
  --pd-r-xl: 26px;

  --pd-shadow-sm: 0 1px 2px rgba(20, 22, 26, .05);
  --pd-shadow:    0 4px 16px -8px rgba(20, 22, 26, .14);
  --pd-shadow-lg: 0 20px 50px -24px rgba(20, 22, 26, .3);
  --pd-btn-shadow: 0 1px 2px rgba(20, 22, 26, .08), 0 6px 16px -8px rgba(20, 22, 26, .22);

  --pd-gap: clamp(14px, 2vw, 22px);
  --pd-sticky-top: 92px;
  --pd-ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   02. BASE
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.page-product,
body:has(#main.pd) {
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#main.pd *,
#main.pd *::before,
#main.pd *::after { box-sizing: border-box; }

#main.pd {
  padding-block: clamp(14px, 2vw, 24px) clamp(72px, 9vw, 112px);
  overflow-x: clip;
  color: var(--pd-ink);
  line-height: 1.55;
}

#main.pd .pd-wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--pd-gap);
}

#main.pd a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#main.pd img { display: block; max-width: 100%; }
#main.pd h1,
#main.pd h2,
#main.pd h3,
#main.pd p { margin: 0; }
#main.pd ol,
#main.pd ul { margin: 0; padding: 0; list-style: none; }
#main.pd dl,
#main.pd dt,
#main.pd dd { margin: 0; }
#main.pd button { font: inherit; }
#main.pd ::selection { background: var(--pd-accent); color: #fff; }

#main.pd :focus { outline: none; }
#main.pd :focus-visible {
  outline: 3px solid var(--pd-ink);
  outline-offset: 3px;
  border-radius: 12px;
}

#main.pd .pd-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#main.pd .pd-ico--xl { width: 44px; height: 44px; stroke-width: 1.4; }

/* =========================================================
   03. LAYOUT
   ========================================================= */
#main.pd .pd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--pd-gap);
  align-items: start;
}

#main.pd .pd-content { margin-top: 2px; }
#main.pd .pd-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: var(--pd-gap);
  align-items: start;
}
#main.pd .pd-main { display: flex; flex-direction: column; gap: var(--pd-gap); min-width: 0; }

/* =========================================================
   04. BUTTONS
       White buttons carry a visible border + shadow.
       Primary buttons are the accent colour. No black buttons.
   ========================================================= */
#main.pd .pd-btn,
.pd-mobile-bar .pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s var(--pd-ease);
}
#main.pd .pd-btn:active,
.pd-mobile-bar .pd-btn:active { transform: scale(.98); }
#main.pd .pd-btn .pd-ico,
.pd-mobile-bar .pd-btn .pd-ico { width: 17px; height: 17px; transition: transform .18s var(--pd-ease); }
@media (hover: hover) {
  #main.pd .pd-btn:hover .pd-ico,
.pd-mobile-bar .pd-btn:hover .pd-ico { transform: translateX(3px); }
}

/* Primary */
#main.pd .pd-btn-accent,
.pd-mobile-bar .pd-btn-accent,
#main.pd .pd-btn-dark {
  background: var(--pd-accent);
  border-color: var(--pd-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(184, 50, 75, .25), 0 10px 22px -10px rgba(217, 68, 96, .65);
}
#main.pd .pd-btn-accent:hover,
.pd-mobile-bar .pd-btn-accent:hover,
#main.pd .pd-btn-dark:hover {
  background: var(--pd-accent-dark);
  border-color: var(--pd-accent-dark);
}

/* Secondary: crisp white */
#main.pd .pd-btn-light {
  background: #fff;
  border-color: var(--pd-line-2);
  color: var(--pd-ink);
  box-shadow: var(--pd-btn-shadow);
}
#main.pd .pd-btn-light:hover { border-color: var(--pd-ink); background: #fff; }

#main.pd .pd-btn-block { width: 100%; }

/* =========================================================
   05. BREADCRUMB
   ========================================================= */
#main.pd .pd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--pd-ink-3);
}
#main.pd .pd-crumbs li { min-width: 0; }
#main.pd .pd-crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: #c4c6cc;
}
#main.pd .pd-crumbs a { color: var(--pd-ink-2); transition: color .18s ease; }
#main.pd .pd-crumbs a:hover { color: var(--pd-ink); }
#main.pd .pd-crumbs [aria-current] {
  color: var(--pd-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* =========================================================
   06. HERO
   ========================================================= */
#main.pd .pd-hero { position: relative; }

/* =========================================================
   07. GALLERY
   ========================================================= */
#main.pd .pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

#main.pd .pd-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--pd-r-xl);
  background: var(--pd-soft);
  box-shadow: var(--pd-shadow);
  isolation: isolate;
}
/* soft shade so the white controls always read */
#main.pd .pd-gallery-main::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0), rgba(12, 12, 16, .35));
  pointer-events: none;
}

#main.pd .pd-gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Arrows: solid white, always visible, with a shadow */
#main.pd .pd-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--pd-ink);
  box-shadow: 0 2px 4px rgba(20, 22, 26, .12), 0 10px 24px -8px rgba(20, 22, 26, .45);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, transform .18s var(--pd-ease), box-shadow .18s ease;
}
#main.pd .pd-gallery-nav .pd-ico { width: 20px; height: 20px; stroke-width: 2.4; }
#main.pd .pd-gallery-prev { left: 14px; }
#main.pd .pd-gallery-next { right: 14px; }
@media (hover: hover) {
  #main.pd .pd-gallery-nav:hover { background: var(--pd-accent); color: #fff; transform: translateY(-50%) scale(1.06); }
}
#main.pd .pd-gallery-nav:active { transform: translateY(-50%) scale(.95); }
#main.pd .pd-gallery-nav:focus-visible { outline-color: #fff; outline-offset: 2px; }

#main.pd .pd-gallery-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--pd-btn-shadow);
  color: var(--pd-ink);
  font-size: .76rem;
  font-weight: 700;
}

#main.pd .pd-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 2px 2px 6px;
  margin: -2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
#main.pd .pd-gallery-thumbs::-webkit-scrollbar { display: none; }

#main.pd .pd-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pd-soft);
  cursor: pointer;
  scroll-snap-align: start;
  opacity: .78;
  box-shadow: 0 0 0 1px var(--pd-line);
  transition: opacity .18s ease, box-shadow .18s ease, transform .18s var(--pd-ease);
}
#main.pd .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  #main.pd .pd-thumb:hover { opacity: 1; transform: translateY(-2px); }
}
#main.pd .pd-thumb.is-active,
#main.pd .pd-thumb[aria-selected="true"] {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pd-accent);
}

#main.pd .pd-gallery-empty {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--pd-r-xl);
  background: linear-gradient(160deg, #f3f3f6, #e8e8ec);
  color: #c4c6cc;
}

/* =========================================================
   08. SUMMARY CARD
   ========================================================= */
#main.pd .pd-summary { position: sticky; top: var(--pd-sticky-top); min-width: 0; }

#main.pd .pd-summary-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.8vw, 28px);
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-xl);
  box-shadow: var(--pd-shadow);
}

#main.pd .pd-summary-head { display: flex; flex-wrap: wrap; gap: 8px; }

#main.pd .pd-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pd-accent-soft);
  font-size: .74rem;
  font-weight: 700;
  color: var(--pd-accent-dark);
}
#main.pd .pd-badge--featured { background: var(--pd-accent); color: #fff; }

#main.pd .pd-title {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

#main.pd .pd-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: .88rem;
}
#main.pd .pd-rating-stars { display: flex; gap: 2px; }
#main.pd .pd-star { width: 16px; height: 16px; fill: var(--pd-star-off); stroke: none; }
#main.pd .pd-star.is-on { fill: var(--pd-star); }
#main.pd .pd-rating strong { font-weight: 700; }
#main.pd .pd-rating-count {
  color: var(--pd-ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pd-line-2);
}
#main.pd .pd-rating-count:hover { color: var(--pd-ink); text-decoration-color: currentColor; }
#main.pd .pd-rating--empty { color: var(--pd-ink-3); font-size: .86rem; }

#main.pd .pd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
#main.pd .pd-price-label { width: 100%; font-size: .78rem; color: var(--pd-ink-3); font-weight: 500; }
#main.pd .pd-price-amount {
  font-size: clamp(1.85rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#main.pd .pd-price-unit { font-size: .86rem; color: var(--pd-ink-3); }

/* =========================================================
   09. KEY FACTS  (soft tiles, 2 per row, never scroll sideways)
   ========================================================= */
#main.pd .pd-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  overflow: visible;
}
#main.pd .pd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-md);
  background: var(--pd-soft);
}
#main.pd .pd-meta-item + .pd-meta-item { border-left: 1px solid var(--pd-line); }
#main.pd .pd-meta-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

#main.pd .pd-meta-item dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--pd-ink-3);
}
#main.pd .pd-meta-item dt .pd-ico { width: 14px; height: 14px; color: var(--pd-accent); }
#main.pd .pd-meta-item dd {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pd-ink);
  overflow-wrap: anywhere;
}

#main.pd .pd-lede {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--pd-ink-2);
}

#main.pd .pd-summary-op {
  font-size: .82rem;
  color: var(--pd-ink-3);
  text-align: center;
}
#main.pd .pd-summary-op strong { color: var(--pd-ink-2); font-weight: 600; }

#main.pd .pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--pd-line);
}
#main.pd .pd-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--pd-ink-2);
}
#main.pd .pd-trust .pd-ico { width: 16px; height: 16px; color: var(--pd-success); }

/* =========================================================
   10. CONTENT BLOCKS
   ========================================================= */
#main.pd .pd-block {
  padding: clamp(20px, 2.8vw, 30px);
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-xl);
  box-shadow: var(--pd-shadow-sm);
}

#main.pd .pd-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
#main.pd .pd-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  scroll-margin-top: calc(var(--pd-sticky-top) + 8px);
}
#main.pd .pd-block-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--pd-accent-soft);
  font-size: .76rem;
  font-weight: 700;
  color: var(--pd-accent-dark);
}
#main.pd .pd-block-meta {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pd-soft);
  font-size: .78rem;
  color: var(--pd-ink-2);
  font-weight: 600;
  white-space: nowrap;
}

#main.pd .pd-rich { display: flex; flex-direction: column; gap: 14px; }
#main.pd .pd-rich p {
  max-width: 72ch;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--pd-ink-2);
  overflow-wrap: break-word;
}

/* =========================================================
   11. ITINERARY
   ========================================================= */
#main.pd .pd-itinerary { display: flex; flex-direction: column; }

#main.pd .pd-itinerary-day {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}
#main.pd .pd-itinerary-day:last-child { padding-bottom: 0; }
#main.pd .pd-itinerary-day::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pd-accent-soft), var(--pd-line));
}
#main.pd .pd-itinerary-day:last-child::before { display: none; }

#main.pd .pd-itinerary-marker {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pd-accent-soft);
  box-shadow: inset 0 0 0 2px var(--pd-accent);
  color: var(--pd-accent-dark);
  font-size: .8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#main.pd .pd-itinerary-body { flex: 1; min-width: 0; padding-top: 5px; }

#main.pd .pd-itinerary-title {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
#main.pd .pd-itinerary-subtitle { font-weight: 500; color: var(--pd-ink-2); }
#main.pd .pd-itinerary-subtitle::before { content: ' \2014  '; }

#main.pd .pd-itinerary-desc {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--pd-ink-2);
  overflow-wrap: break-word;
}
#main.pd .pd-itinerary-desc p { margin-bottom: 8px; }
#main.pd .pd-itinerary-desc p:last-child { margin-bottom: 0; }

#main.pd .pd-itinerary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
#main.pd .pd-itinerary-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  background: var(--pd-soft);
  font-size: .76rem;
  font-weight: 500;
  color: var(--pd-ink-2);
}
#main.pd .pd-itinerary-meta .pd-ico { width: 13px; height: 13px; color: var(--pd-accent); }

/* =========================================================
   12. INCLUSIONS + INFO
   ========================================================= */
#main.pd .pd-inclusions-grid,
#main.pd .pd-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#main.pd .pd-inclusions-col {
  padding: 18px 20px;
  border-radius: var(--pd-r-lg);
}
#main.pd .pd-inclusions-col--yes { background: var(--pd-success-soft); }
#main.pd .pd-inclusions-col--no { background: var(--pd-danger-soft); }

#main.pd .pd-inclusions-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .92rem;
  font-weight: 800;
}
#main.pd .pd-inclusions-col--yes .pd-inclusions-heading { color: var(--pd-success); }
#main.pd .pd-inclusions-col--no  .pd-inclusions-heading { color: var(--pd-danger); }
#main.pd .pd-inclusions-heading .pd-ico { width: 18px; height: 18px; stroke-width: 2.6; }

#main.pd .pd-inclusions-list { display: flex; flex-direction: column; gap: 8px; }
#main.pd .pd-inclusions-list li {
  position: relative;
  padding-left: 18px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--pd-ink-2);
  overflow-wrap: break-word;
}
#main.pd .pd-inclusions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
#main.pd .pd-inclusions-col--yes .pd-inclusions-list li::before { background: var(--pd-success); }
#main.pd .pd-inclusions-col--no  .pd-inclusions-list li::before { background: var(--pd-danger); }

#main.pd .pd-info-card {
  padding: 18px 20px;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-lg);
  background: var(--pd-soft);
}
#main.pd .pd-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .92rem;
  font-weight: 700;
}
#main.pd .pd-info-title .pd-ico { width: 16px; height: 16px; color: var(--pd-accent); }
#main.pd .pd-info-body {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--pd-ink-2);
  overflow-wrap: break-word;
}

/* =========================================================
   13. REVIEWS
   ========================================================= */
#main.pd .pd-reviews-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: 24px;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--pd-r-lg);
  background: var(--pd-soft);
}

#main.pd .pd-reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#main.pd .pd-reviews-value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
#main.pd .pd-reviews-max { font-size: .85rem; color: var(--pd-ink-3); }
#main.pd .pd-reviews-stars { display: flex; gap: 3px; margin-top: 8px; }
#main.pd .pd-reviews-count { margin-top: 8px; font-size: .78rem; color: var(--pd-ink-3); }

#main.pd .pd-reviews-dist {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  max-width: 340px;
}
#main.pd .pd-reviews-dist-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
}
#main.pd .pd-reviews-dist-label { color: var(--pd-ink-2); font-weight: 500; }
#main.pd .pd-reviews-dist-bar {
  height: 7px;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--pd-line);
}
#main.pd .pd-reviews-dist-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--pd-star);
}
#main.pd .pd-reviews-dist-num {
  text-align: right;
  color: var(--pd-ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#main.pd .pd-reviews-list { display: flex; flex-direction: column; gap: 20px; }
#main.pd .pd-review {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pd-line);
}
#main.pd .pd-review:last-child { padding-bottom: 0; border-bottom: 0; }

#main.pd .pd-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#main.pd .pd-review-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pd-accent);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}
#main.pd .pd-review-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#main.pd .pd-review-author { font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }
#main.pd .pd-review-date { font-size: .78rem; color: var(--pd-ink-3); }
#main.pd .pd-review-stars { display: flex; gap: 2px; flex-shrink: 0; }
#main.pd .pd-review-stars .pd-star { width: 15px; height: 15px; }

#main.pd .pd-review-title { margin-bottom: 4px; font-size: .96rem; font-weight: 700; }
#main.pd .pd-review-body {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--pd-ink-2);
  overflow-wrap: break-word;
}

/* =========================================================
   14. SIDEBAR
   ========================================================= */
#main.pd .pd-sidebar {
  position: sticky;
  top: var(--pd-sticky-top);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

#main.pd .pd-sidebar-card {
  padding: 20px;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-lg);
  box-shadow: var(--pd-shadow-sm);
}
#main.pd .pd-sidebar-card--booking {
  border-color: transparent;
  box-shadow: var(--pd-shadow);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(217, 68, 96, .1), transparent 65%),
    var(--pd-card);
}

#main.pd .pd-sidebar-label {
  display: block;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pd-ink-3);
}

#main.pd .pd-sidebar-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 14px;
}
#main.pd .pd-sidebar-amount {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
#main.pd .pd-sidebar-unit { font-size: .84rem; color: var(--pd-ink-3); }

#main.pd .pd-sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--pd-ink-2);
}
#main.pd .pd-sidebar-note .pd-ico {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--pd-success);
}
#main.pd .pd-sidebar-note--plain { margin: 0 0 14px; color: var(--pd-ink-2); }
#main.pd .pd-sidebar-note--plain .pd-ico { display: none; }

#main.pd .pd-sidebar-op { display: flex; align-items: center; gap: 12px; }
#main.pd .pd-sidebar-op-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pd-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
#main.pd .pd-sidebar-op-text { display: flex; flex-direction: column; min-width: 0; }
#main.pd .pd-sidebar-op-text strong { font-size: .94rem; font-weight: 700; overflow-wrap: anywhere; }
#main.pd .pd-sidebar-op-text span { font-size: .8rem; color: var(--pd-ink-3); }

#main.pd .pd-sidebar-dest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-md);
  background: var(--pd-soft);
  transition: background .18s ease, border-color .18s ease;
}
#main.pd .pd-sidebar-dest:hover { background: #fff; border-color: var(--pd-line-2); }
#main.pd .pd-sidebar-dest .pd-ico { width: 20px; height: 20px; color: var(--pd-accent); }
#main.pd .pd-sidebar-dest-text { display: flex; flex-direction: column; min-width: 0; }
#main.pd .pd-sidebar-dest-text strong { font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
#main.pd .pd-sidebar-dest-text span { font-size: .78rem; color: var(--pd-ink-3); }

/* =========================================================
   15. MOBILE BOOK BAR
   ========================================================= */
.pd-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--pd-line);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px -12px rgba(20, 22, 26, .22);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--pd-ink);
}
.pd-mobile-bar *,
.pd-mobile-bar *::before,
.pd-mobile-bar *::after { box-sizing: border-box; }
.pd-mobile-bar a { text-decoration: none; }
#main.pd .pd-mobile-price { display: flex; flex-direction: column; min-width: 0; }
#main.pd .pd-mobile-label { font-size: .72rem; color: var(--pd-ink-3); font-weight: 500; }
#main.pd .pd-mobile-amount {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pd-mobile-bar .pd-btn { height: 48px; padding: 0 24px; flex-shrink: 0; }

/* =========================================================
   16. EMPTY STATE
   ========================================================= */
#main.pd .pd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(48px, 8vw, 96px) 24px;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-xl);
  background: var(--pd-card);
  box-shadow: var(--pd-shadow-sm);
  text-align: center;
}
#main.pd .pd-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 20px;
  background: var(--pd-accent-soft);
  color: var(--pd-accent);
}
#main.pd .pd-empty-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
#main.pd .pd-empty-text { max-width: 42ch; font-size: .92rem; line-height: 1.6; color: var(--pd-ink-2); }
#main.pd .pd-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

/* =========================================================
   17. RESPONSIVE
   ========================================================= */

/* ---------- Laptop ---------- */
@media (max-width: 1180px) {
  #main.pd .pd-content-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 310px); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  #main.pd .pd-hero-grid { grid-template-columns: minmax(0, 1fr); }
  #main.pd .pd-summary { position: static; }

  #main.pd .pd-content-grid { grid-template-columns: minmax(0, 1fr); }
  #main.pd .pd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  #main.pd .pd-sidebar-card--booking { grid-column: 1 / -1; }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
  #main.pd .pd-wrap { width: calc(100% - 24px); }
  #main.pd { padding-bottom: 112px; }

  #main.pd .pd-gallery-main,
#main.pd .pd-gallery-empty { border-radius: var(--pd-r-lg); }
  #main.pd .pd-summary-inner,
#main.pd .pd-block,
#main.pd .pd-sidebar-card { border-radius: var(--pd-r-lg); }
  #main.pd .pd-summary-inner { padding: 18px; gap: 14px; }
  #main.pd .pd-block { padding: 18px; }
  #main.pd .pd-block-head { margin-bottom: 14px; }

  #main.pd .pd-gallery-nav { width: 40px; height: 40px; }
  #main.pd .pd-gallery-prev { left: 10px; }
  #main.pd .pd-gallery-next { right: 10px; }
  #main.pd .pd-gallery-count { bottom: 10px; right: 10px; padding: 5px 11px; font-size: .72rem; }

  #main.pd .pd-thumb { width: 72px; height: 54px; border-radius: 10px; }

  #main.pd .pd-rich p { font-size: .94rem; }

  #main.pd .pd-inclusions-grid,
#main.pd .pd-info-grid { grid-template-columns: minmax(0, 1fr); }

  #main.pd .pd-reviews-summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #main.pd .pd-reviews-score { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
  #main.pd .pd-reviews-value { font-size: 2rem; }
  #main.pd .pd-reviews-stars { margin-top: 0; }
  #main.pd .pd-reviews-count { width: 100%; margin-top: 2px; }
  #main.pd .pd-reviews-dist { max-width: none; }

  #main.pd .pd-sidebar { grid-template-columns: minmax(0, 1fr); }
  /* the fixed bar already handles booking on phones */
  #main.pd .pd-sidebar-card--booking { display: none; }

  .pd-mobile-bar { display: flex; }
  body.page-product,
body:has(.pd-mobile-bar) { padding-bottom: 0; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  #main.pd .pd-wrap { width: calc(100% - 20px); }
  #main.pd .pd-summary-inner { padding: 16px; }
  #main.pd .pd-block { padding: 16px; }

  #main.pd .pd-title { font-size: 1.25rem; }
  #main.pd .pd-meta { gap: 6px; }
  #main.pd .pd-meta-item { padding: 10px 12px; }
  #main.pd .pd-meta-item dd { font-size: .9rem; }

  #main.pd .pd-itinerary-day { gap: 12px; }
  #main.pd .pd-itinerary-marker { width: 32px; height: 32px; font-size: .74rem; }
  #main.pd .pd-itinerary-day::before { left: 15px; top: 36px; }

  #main.pd .pd-review-head { flex-wrap: wrap; }
  #main.pd .pd-review-stars { width: 100%; margin-left: 52px; margin-top: -4px; }

  #main.pd .pd-empty-actions .pd-btn { flex: 1 1 100%; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {
  #main.pd .pd-wrap { width: calc(100% - 16px); }
  #main.pd .pd-meta { grid-template-columns: minmax(0, 1fr); }
  .pd-mobile-bar { padding-inline: 12px; gap: 10px; }
  .pd-mobile-bar .pd-btn { padding: 0 18px; }
  #main.pd .pd-trust { flex-direction: column; }
}

/* ---------- Short landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  #main.pd .pd-summary,
#main.pd .pd-sidebar { position: static; }
  #main.pd .pd-gallery-main { aspect-ratio: 16 / 9; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
  #main.pd .pd-wrap { width: min(1320px, 100% - 64px); }
}

/* =========================================================
   18. MOTION / PRINT / A11Y
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  #main.pd *,
#main.pd *::before,
#main.pd *::after,
.pd-mobile-bar,
.pd-mobile-bar * {
    transition-duration: .01ms !important;
    animation: none !important;
  }
  #main.pd .pd-btn:hover .pd-ico { transform: none; }
}

@media (forced-colors: active) {
  #main.pd .pd-btn,
#main.pd .pd-gallery-nav,
#main.pd .pd-gallery-count { border: 1px solid ButtonText; }
  #main.pd .pd-thumb.is-active { outline: 2px solid Highlight; }
}

@media print {
  .pd-mobile-bar,
#main.pd .pd-gallery-nav,
#main.pd .pd-gallery-thumbs,
#main.pd .pd-sidebar-card--booking,
#main.pd .pd-btn { display: none !important; }
  #main.pd .pd-summary,
#main.pd .pd-sidebar { position: static !important; }
  #main.pd .pd-hero-grid,
#main.pd .pd-content-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #main.pd .pd-block,
#main.pd .pd-summary-inner,
#main.pd .pd-sidebar-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}