/* ─────────────────────────────────────────────────────────────
   Per-course detail page (generated by scripts/build-courses.py).
   Reuses variables + review-component styles from destination-page.css;
   this file only adds the course-page-specific layout.
   ───────────────────────────────────────────────────────────── */

.course-page-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Breadcrumb */
.course-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 20px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.course-breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}
.course-breadcrumb a:hover { text-decoration: underline; }
.course-breadcrumb .sep { color: var(--text-muted); opacity: 0.6; }
.course-breadcrumb .current { color: var(--text-muted); }

/* Hero photo */
.course-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--cream);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.course-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  color: #fff;
}
.course-hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.1;
}
.course-hero-locale {
  font-size: 0.95rem;
  opacity: 0.92;
  margin: 0;
}

/* Meta row: tier badge + action buttons */
.course-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 6px;
}
.course-page-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.course-page-tier.tier-budget   { background: #e8f3ea; color: #2f6d43; }
.course-page-tier.tier-mid      { background: #eef1fb; color: #3a4b96; }
.course-page-tier.tier-luxury   { background: #f6eede; color: #8a6d1f; }

.course-page-website {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--forest);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}
.course-page-website:hover { background: var(--green-mid, #2f6d43); }

.course-page-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text, #2a2a2a);
  margin: 18px 0 8px;
}

/* Section blocks */
.course-section { margin-top: 40px; }
.course-section > h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: var(--forest);
}

.course-map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
.course-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* Reviews on the course page: panel is always open (no accordion). */
.course-reviews--page .course-reviews-panel {
  background: var(--cream);
  padding: 20px 22px;
  font-size: 0.95rem;
}

/* Other courses in this destination */
.course-siblings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.course-siblings-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.course-siblings-list a:hover {
  border-color: var(--forest);
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

.course-back-link {
  display: inline-block;
  margin-top: 34px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
}
.course-back-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .course-hero { aspect-ratio: 3 / 2; }
  .course-page-website { margin-left: 0; }
}
