/* ============================================================
   destination-page.css
   Styles specific to /destinations/{slug}/index.html static pages.
   Inherits typography + colors from /style.css
   ============================================================ */

body.dest-page {
  background: var(--cream);
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────── */
.dest-hero {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.dest-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.dest-hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.dest-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.dest-hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin: 0 auto 26px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.dest-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.dest-hero-cta {
  display: inline-block;
  padding: 12px 26px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.dest-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dest-hero-back {
  display: inline-block;
  padding: 12px 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dest-hero-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Main content ───────────────────────────────────────────── */
.dest-main {
  max-width: 980px;
  padding: 48px 20px 80px;
}

.page-section {
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.muted {
  color: var(--text-muted);
  font-style: italic;
}

.best-time {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 24px;
}

/* Stay-onsite callout */
.stay-callout {
  background: rgba(45, 106, 79, 0.07);
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.stay-callout strong {
  color: var(--forest);
}

/* Pricing callout */
.pricing-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffbeb;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 22px;
}
.pricing-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-callout p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

/* Highlights */
.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.highlights-list li {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
}

/* ── Course tier groups ─────────────────────────────────────── */
.tier-group {
  margin-bottom: 32px;
}

.tier-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.course-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.course-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.course-tier {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.tier-budget {
  background: rgba(74, 144, 226, 0.12);
  color: #2c5d9c;
}
.tier-mid {
  background: rgba(45, 106, 79, 0.12);
  color: var(--forest);
}
.tier-luxury {
  background: rgba(201, 162, 78, 0.18);
  color: #8e7032;
}

.course-twilight {
  font-size: 1rem;
}

.course-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.course-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  margin-top: auto;
}
.course-link:hover {
  text-decoration: underline;
}

/* ── Off-course activities ──────────────────────────────────── */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
}

/* ── Videos ─────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}
.video-wrap {
  margin: 0;
}
.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  background: #000;
}
.video-wrap figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-section .section-title {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 0;
}
.cta-section p {
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Plan Your Days (course pair picker) ────────────────────── */
.distance-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.distance-picker-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.distance-picker-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.distance-select {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.distance-select:focus {
  border-color: var(--forest);
  background: #fff;
}
.distance-arrow {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 12px;
}

.distance-map-wrap {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.distance-map {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}
.distance-empty {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .distance-map { height: 360px; }
  .distance-picker {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .distance-arrow {
    text-align: center;
    padding-bottom: 0;
  }
}

/* ── Trip Ideas (itineraries that cover this destination) ─── */
.trip-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.trip-idea-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trip-idea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.trip-idea-photo {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-mid);
}
.trip-idea-body { padding: 14px 18px 16px; }
.trip-idea-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.trip-idea-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.trip-idea-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.trip-idea-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(45,106,79,0.1);
  color: var(--green-dark);
}
.trip-idea-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-mid);
  letter-spacing: 0.04em;
}

/* ── Course map ─────────────────────────────────────────────── */
.dest-map {
  height: 420px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  z-index: 0; /* keep below sticky header */
}
/* Override the default modal height — destination pages have more room */
body.dest-page #modal-course-map {
  height: 420px;
}
/* Hover tooltip on course pins — clean, branded look */
.course-map-tooltip {
  background: var(--green-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}
.course-map-tooltip::before {
  border-top-color: var(--green-dark) !important;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .dest-hero { min-height: 320px; padding: 60px 0 50px; }
  .dest-hero-actions { flex-direction: column; }
  .dest-hero-cta, .dest-hero-back { width: 100%; }
  .dest-main { padding: 32px 16px 60px; }
  .course-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .dest-map, body.dest-page #modal-course-map { height: 320px; }
}
