/* ==========================================================================
   Destination & article pages — layout only.

   Loaded after site.css so it can lean on the same custom properties
   (--action, --coral, --radius-lg ...). No inline styles anywhere: the
   CSP in netlify.toml has no 'unsafe-inline', so every rule lives here.
   ========================================================================== */

/* --- Shared page shell --------------------------------------------------- */
.container--content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px 64px;
}
html[dir="rtl"] .container--content { text-align: right; }
html[dir="ltr"] .container--content { text-align: left; }

.container--content h2 {
    color: var(--coral);
    margin-top: 44px;
    margin-bottom: 12px;
}
.container--content h3 {
    color: var(--ink-deep);
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 1.08em;
}
.container--content p,
.container--content li { line-height: 1.75; }

/* --- Destination hub grid ------------------------------------------------ */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
}

.dest-card {
    display: block;
    background: var(--surface);
    border: 2px solid var(--teal);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dest-card:hover,
.dest-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.11);
}
.dest-card__name {
    display: block;
    font-weight: bold;
    font-size: 1.18em;
    color: var(--action);
    margin-bottom: 6px;
}
.dest-card__blurb {
    display: block;
    color: var(--muted);
    font-size: 0.95em;
    line-height: 1.6;
}

/* Cards that have no page behind them yet: visible, but not a dead link. */
.dest-card--soon {
    border-color: #d8d8d8;
    box-shadow: none;
    cursor: default;
}
.dest-card--soon .dest-card__name { color: var(--muted); }
.dest-card--soon:hover { transform: none; box-shadow: none; }

/* --- Key facts strip ----------------------------------------------------- */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 28px 0 8px;
    padding: 0;
    list-style: none;
}
.facts li {
    background: #f3fbfd;
    border: 1px solid var(--teal);
    border-radius: 14px;
    padding: 14px 16px;
}
.facts__label {
    display: block;
    font-size: 0.82em;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.facts__value { display: block; font-weight: bold; color: var(--ink-deep); }

/* --- Day-by-day outline -------------------------------------------------- */
.itinerary { list-style: none; padding: 0; margin: 24px 0 0; }
.itinerary > li {
    border-inline-start: 4px solid var(--teal);
    padding: 4px 18px 22px;
    margin: 0;
}
.itinerary > li:last-child { padding-bottom: 4px; }
.itinerary__day {
    display: block;
    font-weight: bold;
    color: var(--action);
    margin-bottom: 4px;
}

/* Outline variant: the day labels only, tighter, with no body text. */
.itinerary--outline > li { padding: 4px 18px 12px; }
.itinerary--outline > li:last-child { padding-bottom: 4px; }
.itinerary--outline .itinerary__day { margin-bottom: 0; }

.route-note {
    background: #f3fbfd;
    border: 1px solid var(--teal);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0 0;
    color: var(--text);
    line-height: 1.7;
}
.route-note .btn { margin-top: 12px; }

/* --- FAQ (also feeds the FAQPage structured data) ------------------------ */
.faq-list { margin-top: 24px; }
.faq-list dt {
    font-weight: bold;
    color: var(--ink-deep);
    margin-top: 22px;
}
.faq-list dd {
    margin: 6px 0 0;
    padding: 0;
    color: var(--text);
    line-height: 1.75;
}

/* --- Related guides ----------------------------------------------------- */
.more-guides {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.more-guides a {
    display: inline-block;
    border: 1px solid var(--teal);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    text-decoration: none;
    color: var(--action);
    font-size: 0.95em;
    background: var(--surface);
}
.more-guides a:hover,
.more-guides a:focus-visible { background: #f3fbfd; }

/* --- Closing call to action ---------------------------------------------- */
.content-cta {
    background: var(--surface);
    border: 2px solid var(--teal);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    margin-top: 48px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}
.content-cta h2 { margin-top: 0; }

.breadcrumb {
    font-size: 0.92em;
    color: var(--muted);
    margin: 24px 0 0;
}
.breadcrumb a { color: var(--action); }

@media (max-width: 600px) {
    .container--content { padding: 0 16px 48px; }
    .dest-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Hotel booking links (see assets/affiliates.js) -----------------------
   Rendered only once a partner is configured, so on an unconfigured site
   none of this is ever on screen. Deliberately quieter than .content-cta:
   the personal itinerary is the product, this is a convenience.
   -------------------------------------------------------------------------- */
.stay-links {
    margin-top: 32px;
    padding: 22px 20px;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius-lg);
    background: #fffdf7;
}
.stay-links h2 { margin-top: 0; }
.stay-links__intro { margin: 0 0 14px; color: var(--muted); }

.stay-links__list { list-style: none; margin: 0; padding: 0; }
.stay-links__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}
.stay-links__city { font-weight: bold; min-width: 7em; }

.stay-links__link {
    display: inline-block;
    min-height: 44px;
    padding: 9px 16px;
    border: 2px solid var(--action);
    border-radius: var(--radius-pill);
    color: var(--action);
    background: var(--surface);
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: none;
}
.stay-links__link:hover,
.stay-links__link:focus-visible { background: var(--action); color: #ffffff; }
.stay-links__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Not fine print in spirit: smaller than the links but still at the
   readable minimum, and never hidden behind a toggle. */
.stay-links__disclosure {
    margin: 14px 0 0;
    font-size: 0.88em;
    line-height: 1.55;
    color: var(--muted);
}

@media (max-width: 600px) {
    .stay-links__city { min-width: 100%; }
}
