/* ============================================
   PAGE COMPONENTS — shared by destination,
   itinerary, experience, and blog pages.
   Imports tokens from styles.css (--green-dark, etc.)
   ============================================ */

/* ---------- PAGE WRAP ---------- */
.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 1px dotted rgba(15,61,46,.35);
}
.breadcrumb a:hover { border-bottom-color: var(--green-dark); }
.breadcrumb-sep {
  color: var(--gold);
  font-weight: 600;
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 50px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-image: var(--hero-img, none);
  opacity: 0.35;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,61,46,.45) 0%, rgba(15,61,46,.78) 100%);
  z-index: 1;
}
.page-hero .page-wrap { position: relative; z-index: 2; }
.page-hero .breadcrumb { color: rgba(255,255,255,.78); margin-bottom: 22px; }
.page-hero .breadcrumb a { color: var(--gold-soft); border-bottom-color: rgba(245,232,200,.4); }
.page-hero .breadcrumb a:hover { border-bottom-color: var(--gold-soft); }
.page-hero .breadcrumb-current { color: #fff; }
.page-hero .breadcrumb-sep { color: var(--gold); }

.page-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(201,162,74,.18);
  border: 1px solid rgba(201,162,74,.42);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.page-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 16px;
  color: #fff;
  max-width: 880px;
}
.page-intro {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: rgba(255,255,255,.92);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 0 28px;
}

/* ---------- FACT GRID ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 920px;
}
.fact {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.fact-value {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* ---------- PAGE BODY LAYOUT ---------- */
.page-body {
  background: var(--ivory);
  padding: 50px 0 70px;
}
.page-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.page-main { min-width: 0; }

/* ---------- TABLE OF CONTENTS ---------- */
.toc {
  position: sticky;
  top: 96px;
  font-size: 0.88rem;
}
.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.toc a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  border-left: 2px solid transparent;
  margin-left: -16px;
  padding-left: 14px;
  transition: color .2s, border-color .2s;
}
.toc a:hover, .toc a.active {
  color: var(--green-dark);
  border-left-color: var(--gold);
  font-weight: 600;
}

/* ---------- PAGE SECTION ---------- */
.page-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}
.page-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 14px;
  line-height: 1.2;
}
.page-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 24px 0 10px;
}
.page-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}
.page-section p strong { color: var(--green-dark); font-weight: 600; }
.page-section a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(15,61,46,.35);
  font-weight: 500;
}
.page-section a:hover { text-decoration-color: var(--green-dark); }
.page-section ul, .page-section ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}
.page-section li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text);
}
.page-section li::marker { color: var(--gold); }

/* ---------- PLACE GRID (best places to visit) ---------- */
.place-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}
.place-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,61,46,.14);
  border-color: var(--gold);
}
.place-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid), var(--gold));
}
.place-card-body { padding: 14px 16px 16px; }
.place-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 6px;
}
.place-card-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 8px;
}
.place-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.place-card-meta span::before { content: "· "; color: var(--gold); }
.place-card-meta span:first-child::before { content: ""; }

/* ---------- DAY TIMELINE (itinerary) ---------- */
.day-timeline {
  border-left: 3px solid var(--gold);
  margin: 18px 0 24px;
  padding-left: 0;
}
.day-block {
  position: relative;
  padding: 0 0 28px 28px;
}
.day-block::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 17px;
  height: 17px;
  background: var(--gold);
  border: 3px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
.day-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.day-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 8px;
}
.day-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.day-meta span { margin-right: 12px; }

/* ---------- COST TABLE ---------- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}
.cost-table caption {
  text-align: left;
  font-weight: 600;
  color: var(--green-dark);
  padding: 6px 0;
}
.cost-table th, .cost-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cost-table th {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table td:last-child { text-align: right; font-weight: 600; color: var(--green-dark); }

/* ---------- TIP CALLOUT ---------- */
.tip-callout {
  background: linear-gradient(135deg, var(--gold-soft), #fff);
  border: 1px solid var(--gold);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}
.tip-callout strong { color: var(--gold-deep); }
.tip-callout-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 22px;
}
.tip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}
.tip-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border-radius: 9px;
}
.tip-card-body { min-width: 0; }
.tip-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
  display: block;
  margin-bottom: 4px;
}
.tip-card-text {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 24px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--gold); }
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  line-height: 1.4;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  transition: transform .25s;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 18px 16px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text);
}
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ---------- COMPARE TABLE ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,61,46,.08);
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.compare-table tbody th {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
  width: 28%;
}
.compare-table tr:last-child td,
.compare-table tr:last-child th { border-bottom: none; }

/* ---------- RELATED LINKS ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,61,46,.10);
  border-color: var(--gold);
}
.related-kind {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.related-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 4px;
}
.related-desc {
  display: block;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
  color: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
  margin: 30px 0 10px;
  box-shadow: 0 18px 40px rgba(15,61,46,.22);
}
.cta-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}
.cta-block p {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 20px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 30px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn-cta-primary:hover { background: #d6b057; transform: translateY(-2px); }
.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 30px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc {
    position: static;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
  }
  .toc ul { border-left: none; padding-left: 0; }
  .toc a {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-bottom: 1px dashed transparent;
  }
  .toc a:hover, .toc a.active { border-bottom-color: var(--gold); border-left: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-wrap { padding: 0 18px; }
  .page-hero { padding: 100px 0 36px; }
  .page-body { padding: 36px 0 56px; }
  .page-section { margin-bottom: 36px; }
  .place-grid { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 10px 12px; }
  .fact-value { font-size: 0.9rem; }
  .cta-block { padding: 28px 22px; border-radius: 14px; }
  .cta-block h2 { font-size: 1.3rem; }
  .compare-table { font-size: 0.88rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .day-block { padding-left: 22px; padding-bottom: 22px; }
}
