/* =========================================================
   Holiday Brokers — Guides / editorial layer
   Loaded only by /guides and the guide-* article pages.
   Built entirely on the existing HB tokens in main.css so the
   articles inherit the light-luxury system without altering it.
   ========================================================= */

/* ── Guide index cards (hub page) ───────────────────────── */
.guide-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
  overflow: hidden;
  box-shadow: var(--hb-shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hb-shadow);
  border-color: var(--hb-accent);
}
.guide-card-media {
  height: 190px;
  background-size: cover;
  background-position: center;
}
.guide-card-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.guide-card-kicker {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hb-accent);
}
.guide-card-title { font-size: 1.12rem; font-weight: 800; color: var(--hb-text); margin: .3rem 0 .5rem; line-height: 1.35; }
.guide-card-sub { font-size: .88rem; color: var(--hb-muted); margin-bottom: 1rem; }
.guide-card-foot { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--hb-primary); }
.guide-card:hover .guide-card-foot { color: var(--hb-accent); }
.guide-card-link { text-decoration: none; display: block; height: 100%; }

/* ── Article body ───────────────────────────────────────── */
.guide-body { max-width: 760px; }
.guide-body h2 {
  font-size: 1.65rem; font-weight: 800; color: var(--hb-text);
  margin: 2.6rem 0 .9rem; letter-spacing: -.4px;
}
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--hb-text); margin: 1.8rem 0 .6rem; }
.guide-body p { color: var(--hb-muted); margin-bottom: 1.05rem; }
.guide-body ul, .guide-body ol { color: var(--hb-muted); margin-bottom: 1.15rem; padding-left: 1.15rem; }
.guide-body li { margin-bottom: .45rem; }
.guide-body strong { color: var(--hb-text); font-weight: 700; }
.guide-body a { color: var(--hb-primary); font-weight: 600; }
.guide-body a:hover { color: var(--hb-accent); }

/* Lede paragraph directly under the H1 */
.guide-lede { font-size: 1.1rem; color: var(--hb-muted); line-height: 1.7; }

/* ── Meta strip (published / read time) ─────────────────── */
.guide-meta {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  font-size: .78rem; color: var(--hb-muted);
  padding-bottom: 1.1rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--hb-line-soft);
}
.guide-meta .dot { color: var(--hb-line); }

/* ── In-article contents box ────────────────────────────── */
.guide-toc {
  background: var(--hb-surface-warm);
  border: 1px solid var(--hb-line-soft);
  border-radius: var(--hb-radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.2rem;
}
.guide-toc-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hb-muted); margin-bottom: .6rem;
}
.guide-toc ol { margin: 0; padding-left: 1.1rem; }
.guide-toc li { margin-bottom: .3rem; }
.guide-toc a { color: var(--hb-primary); font-weight: 600; text-decoration: none; }
.guide-toc a:hover { color: var(--hb-accent); text-decoration: underline; }

/* Anchored headings clear the fixed navbar */
.guide-body h2[id] { scroll-margin-top: 96px; }

/* ── Pull-out callout ───────────────────────────────────── */
.guide-callout {
  border-left: 3px solid var(--hb-accent);
  background: var(--hb-accent-light);
  border-radius: 0 var(--hb-radius) var(--hb-radius) 0;
  padding: 1.05rem 1.25rem;
  margin: 1.8rem 0;
}
.guide-callout p { color: var(--hb-text); margin-bottom: 0; font-size: .95rem; }
.guide-callout p + p { margin-top: .6rem; }

/* ── Comparison tables ──────────────────────────────────── */
.guide-table-wrap { overflow-x: auto; margin: 1.6rem 0 1.9rem; }
.guide-table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  font-size: .89rem; background: var(--hb-surface);
  border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
}
.guide-table th, .guide-table td {
  padding: .8rem .95rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--hb-line-soft);
}
.guide-table thead th {
  background: var(--hb-surface-warm);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hb-muted);
}
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table tbody th { font-weight: 700; color: var(--hb-text); white-space: nowrap; }
.guide-table td { color: var(--hb-muted); }

/* ── Lifestyle photo break ──────────────────────────────── */
.guide-break {
  position: relative;
  min-height: 300px;
  border-radius: var(--hb-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin: 2.4rem 0;
  box-shadow: var(--hb-shadow-soft);
}
.guide-break-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.guide-break-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,31,62,.88) 0%, rgba(11,31,62,.34) 52%, rgba(11,31,62,.06) 100%);
}
.guide-break-body { position: relative; padding: 1.6rem 1.7rem; color: #fff; max-width: 620px; }
.guide-break-kicker {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hb-accent); display: block; margin-bottom: .4rem;
}
.guide-break-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 .45rem; line-height: 1.3; }
.guide-break-text { font-size: .92rem; margin: 0; color: rgba(255,255,255,.9); }
@media (max-width: 576px) {
  .guide-break { min-height: 250px; }
  .guide-break-body { padding: 1.2rem 1.25rem; }
  .guide-break-title { font-size: 1.15rem; }
}

/* ── FAQ block ──────────────────────────────────────────── */
.guide-faq {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 1.15rem 1.35rem;
  margin-bottom: .8rem;
}
.guide-faq h3 { margin: 0 0 .45rem; font-size: 1.02rem; }
.guide-faq p:last-child { margin-bottom: 0; }

/* ── Next-step panel + related guides ───────────────────── */
.guide-next {
  background: var(--hb-surface-warm);
  border: 1px solid var(--hb-line-soft);
  border-radius: var(--hb-radius-lg);
  padding: 1.6rem 1.7rem;
  margin: 2.6rem 0 0;
}
.guide-next h2 { margin-top: 0 !important; font-size: 1.35rem !important; }
.guide-related a { text-decoration: none; }
.guide-related-item {
  display: block;
  padding: .95rem 1.1rem;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  height: 100%;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.guide-related-item:hover {
  border-color: var(--hb-accent);
  transform: translateY(-2px);
  box-shadow: var(--hb-shadow-card);
}
.guide-related-kicker {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hb-accent); display: block; margin-bottom: .25rem;
}
.guide-related-title { font-size: .95rem; font-weight: 700; color: var(--hb-text); line-height: 1.4; }

/* ── Small print ────────────────────────────────────────── */
.guide-note { font-size: .8rem; color: var(--hb-muted); margin-top: 2.2rem; }
