/* Destination pages: five layouts, five colour families and four detail styles.
   The combinations are assigned in places.php order and stay stable per URL. */
.dest {
  --dest-accent: #006ce4;
  --dest-accent-strong: #003580;
  --dest-wash: #edf5ff;
  --dest-soft: #dbeafe;
}
.dest-tone-1 { --dest-accent: #0b7d78; --dest-accent-strong: #075b58; --dest-wash: #ecf9f5; --dest-soft: #cef0e7; }
.dest-tone-2 { --dest-accent: #9a6415; --dest-accent-strong: #77500d; --dest-wash: #fff8e9; --dest-soft: #f9e9b9; }
.dest-tone-3 { --dest-accent: #6a58a9; --dest-accent-strong: #4a3987; --dest-wash: #f6f3ff; --dest-soft: #e7dcff; }
.dest-tone-4 { --dest-accent: #b45645; --dest-accent-strong: #893f34; --dest-wash: #fff3ef; --dest-soft: #f9ddd4; }

.dest .dest-eyebrow { color: var(--dest-accent-strong); background: var(--dest-wash); border-color: var(--dest-soft); }
.dest .dest-price { border-color: var(--dest-soft); }
.dest .dest-fact b { color: var(--dest-accent-strong); }
.dest .dest-body h2 { color: var(--dest-accent-strong); }
.dest .dest-prices { background: var(--dest-wash); }
.dest .dest-car--top { border-color: var(--dest-accent); }
.dest .dest-car__tag { background: var(--dest-soft); color: var(--dest-accent-strong); }
.dest .dest-faq details[open] { border-color: var(--dest-soft); }
.dest .dest-faq summary::after { color: var(--dest-accent); }
.dest .dest-chip:hover { border-color: var(--dest-accent); }

/* 0: open, classic two-column travel guide. */
.dest-layout-0 .dest-hero { background: linear-gradient(145deg, var(--dest-wash), #fff 70%); }
.dest-layout-0 .dest-hero__img { border-radius: 28px 28px 86px 28px; }
.dest-layout-0 .dest-body section:first-child { border-left: 4px solid var(--dest-accent); padding-left: 22px; }

/* 1: a dark, image-led arrival page. */
.dest-layout-1 .dest-hero { background: linear-gradient(135deg, #061f42, #003580); }
.dest-layout-1 .dest-h1, .dest-layout-1 .dest-lead { color: #fff; }
.dest-layout-1 .dest-lead { color: #e1ebf7; }
.dest-layout-1 .dest-eyebrow { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); }
.dest-layout-1 .dest-hero__img { border-radius: 28px; border: 5px solid rgba(255,255,255,.17); }
.dest-layout-1 .dest-fact { background: rgba(255,255,255,.95); border-color: rgba(255,255,255,.35); }
.dest-layout-1 .dest-body { background: linear-gradient(#fff, var(--dest-wash)); }
.dest-layout-1 .dest-body section { padding: 20px 22px; background: #fff; border: 1px solid var(--dest-soft); border-radius: 20px; box-shadow: 0 14px 34px -32px #082c63; }

/* 2: an editorial image-first journey, with numbered reading sections. */
.dest-layout-2 .dest-hero { background: var(--dest-wash); }
.dest-layout-2 .dest-hero__img { border-radius: 100px 28px 28px 28px; }
.dest-layout-2 .dest-body { counter-reset: dest-section; }
.dest-layout-2 .dest-body section h2::before {
  counter-increment: dest-section;
  content: counter(dest-section, decimal-leading-zero) " / ";
  display: block;
  margin-bottom: 8px;
  color: var(--dest-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}
.dest-layout-2 .dest-price { border-radius: 999px; }

/* 3: centred destination showcase with a wide image. */
.dest-layout-3 .dest-hero { background: linear-gradient(180deg, #fff 10%, var(--dest-wash) 100%); }
.dest-layout-3 .dest-hero__grid { text-align: center; }
.dest-layout-3 .dest-lead { margin-left: auto; margin-right: auto; }
.dest-layout-3 .dest-ctas { justify-content: center; }
.dest-layout-3 .dest-hero__img { border-radius: 32px; }
.dest-layout-3 .dest-facts { max-width: 900px; margin-left: auto; margin-right: auto; }
.dest-layout-3 .dest-fact { text-align: center; border-top: 4px solid var(--dest-accent); }
.dest-layout-3 .dest-body section { border-bottom: 1px solid var(--dest-soft); padding-bottom: 20px; }

/* 4: a framed booking card beside a tall destination photograph. */
.dest-layout-4 .dest-hero { background: linear-gradient(110deg, var(--dest-wash), #fff); }
.dest-layout-4 .dest-hero__grid > div:first-child { background: #fff; border: 1px solid var(--dest-soft); border-radius: 28px; padding: clamp(22px, 3vw, 38px); box-shadow: 0 22px 50px -40px #173860; }
.dest-layout-4 .dest-hero__img { border-radius: 28px 100px 28px 28px; }
.dest-layout-4 .dest-fact { border: 0; background: var(--dest-accent-strong); }
.dest-layout-4 .dest-fact b, .dest-layout-4 .dest-fact span { color: #fff; }
.dest-layout-4 .dest-body section h2 { border-bottom: 3px solid var(--dest-soft); padding-bottom: 12px; }

/* Four small finishing systems make every URL's layout/tone combination distinct. */
.dest-detail-0 .dest-fact { border-radius: 20px; box-shadow: 0 14px 28px -24px #173860; }
.dest-detail-0 .dest-chip { border-radius: 20px; }
.dest-detail-1 .dest-fact { border-radius: 6px 20px 6px 20px; }
.dest-detail-1 .dest-chip { border-radius: 6px 18px 6px 18px; border-left: 3px solid var(--dest-accent); }
.dest-detail-2 .dest-fact { border-radius: 22px; border-bottom: 4px solid var(--dest-accent); }
.dest-detail-2 .dest-chip { border-radius: 22px; background: var(--dest-wash); }
.dest-detail-3 .dest-fact { border-radius: 14px; border-left: 4px solid var(--dest-accent); }
.dest-detail-3 .dest-chip { border-radius: 14px; border-top: 3px solid var(--dest-accent); }
.dest-layout-4 .dest-fact { border-color: var(--dest-soft); }

@media (min-width: 768px) {
  .dest-layout-1 .dest-hero__grid { grid-template-columns: .85fr 1.15fr; }
  .dest-layout-1 .dest-hero__img { aspect-ratio: 5 / 4; }
  .dest-layout-2 .dest-hero__grid { grid-template-columns: 1fr 1fr; }
  .dest-layout-2 .dest-hero__grid > div:first-child { order: 2; }
  .dest-layout-2 .dest-hero__img { order: 1; aspect-ratio: 5 / 4; }
  .dest-layout-3 .dest-hero__grid { grid-template-columns: 1fr; max-width: 1020px; gap: 28px; }
  .dest-layout-3 .dest-hero__img { aspect-ratio: 16 / 6; }
  .dest-layout-4 .dest-hero__grid { grid-template-columns: 1fr 1fr; }
  .dest-layout-4 .dest-hero__img { order: -1; aspect-ratio: 5 / 4; }
}

@media (max-width: 767px) {
  .dest .dest-hero { padding: 24px 0 30px; }
  .dest .dest-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dest .dest-hero__grid > * { min-width: 0; }
  .dest .dest-h1 { font-size: clamp(29px, 8vw, 40px); overflow-wrap: anywhere; }
  .dest .dest-lead { font-size: 15.5px; line-height: 1.65; }
  .dest .dest-price { max-width: 100%; flex-wrap: wrap; }
  .dest .dest-price span { overflow-wrap: anywhere; }
  .dest .dest-hero__img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .dest .dest-facts { margin-top: 18px; }
  .dest .dest-body section { margin-bottom: 24px; }
  .dest .dest-body p { font-size: 15.5px; line-height: 1.7; }
  .dest-layout-2 .dest-hero__img { order: -1; }
  .dest-layout-3 .dest-hero__img { aspect-ratio: 16 / 10; }
  .dest-layout-4 .dest-hero__grid > div:first-child { padding: 20px; }
  .dest-layout-4 .dest-hero__img { order: -1; }
  .dest-layout-1 .dest-body section { padding: 16px; }
}
