/* Holiday trips: /holidays, /holidays/{slug}, /holidays/{slug}/{country}/{city} and the strip on /recommended. */

.hol-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--s-6) 16px var(--s-16);
    color: var(--c-ink-2);
    font-family: var(--font);
}
.hol-page h1, .hol-page h2, .hol-page h3 { color: var(--c-ink); line-height: var(--lh-tight); }
.hol-page h1 { font-size: var(--fs-h1); margin: 0 0 var(--s-3); overflow-wrap: anywhere; }
.hol-page h2 { font-size: var(--fs-h2); margin: var(--s-12) 0 var(--s-4); }
.hol-page h3 { font-size: var(--fs-h3); margin: 0 0 var(--s-2); }
.hol-page p { line-height: var(--lh-body); }

.hol-crumbs { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: var(--s-4); }
.hol-crumbs a { color: var(--c-primary); text-decoration: none; }
.hol-crumbs a:hover { text-decoration: underline; }
.hol-crumbs span[aria-hidden] { margin: 0 6px; }

.hol-preview {
    background: var(--c-warning-tint); color: var(--c-warning-ink);
    border: 1px solid var(--c-warning); border-radius: var(--r-md);
    padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font-size: var(--fs-small);
}

.hol-hero {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary) 0%, #2b7bd0 60%, var(--c-accent) 140%);
    color: #fff; padding: var(--s-12) var(--s-8); margin-bottom: var(--s-8);
}
.hol-hero.has-image { background-size: cover; background-position: center; }
.hol-hero.has-image::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15, 34, 51, 0.82) 0%, rgba(15, 34, 51, 0.45) 100%);
}
.hol-hero > * { position: relative; }
.hol-hero h1 { color: #fff; }
.hol-hero .hol-dates { font-weight: var(--fw-semibold); font-size: var(--fs-h3); margin: 0 0 var(--s-3); }
.hol-hero p { max-width: 760px; margin: 0; color: rgba(255, 255, 255, 0.92); }

.hol-intro { max-width: 820px; font-size: var(--fs-body); }

/* Dates table */
.hol-dates-table { width: 100%; border-collapse: collapse; background: var(--c-surface);
    border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); font-size: var(--fs-small); }
.hol-dates-table th, .hol-dates-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.hol-dates-table th { background: var(--c-primary-tint); color: var(--c-ink); font-weight: var(--fw-semibold); }
.hol-dates-table tr:last-child td { border-bottom: none; }
.hol-dates-table td.hol-when { white-space: nowrap; font-weight: var(--fw-medium); color: var(--c-ink); }
.hol-approx { color: var(--c-muted); font-size: var(--fs-label); margin-left: 4px; }
.hol-region { color: var(--c-muted); display: block; font-size: var(--fs-label); margin-top: 2px; }
.hol-table-wrap { overflow-x: auto; }

/* City cards */
.hol-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s-6); }
.hol-city-card { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-md);
    box-shadow: var(--shadow-1); overflow: hidden; text-decoration: none; color: inherit;
    border: 1px solid var(--c-line); transition: box-shadow .15s ease, transform .15s ease; }
.hol-city-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.hol-city-img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--c-primary-tint); }
.hol-city-img-placeholder { height: 170px; display: flex; align-items: center; justify-content: center;
    font-size: 48px; font-weight: var(--fw-bold); color: var(--c-primary); background: var(--c-primary-tint); }
.hol-city-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.hol-city-body h3 { margin: 0; }
.hol-city-country { color: var(--c-muted); font-size: var(--fs-small); }
.hol-city-body p { margin: 0; font-size: var(--fs-small); }
.hol-city-cta { margin-top: auto; color: var(--c-primary); font-weight: var(--fw-semibold); font-size: var(--fs-small); }

/* Hub cards */
.hol-holiday { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-1); padding: var(--s-6); margin-bottom: var(--s-6); }
.hol-holiday h2 { margin: 0 0 var(--s-2); }
.hol-holiday h2 a { color: var(--c-ink); text-decoration: none; }
.hol-holiday h2 a:hover { color: var(--c-primary); }
.hol-holiday .hol-dates { color: var(--c-accent-ink); font-weight: var(--fw-semibold); margin: 0 0 var(--s-3); }
.hol-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: var(--s-3); margin: var(--s-4) 0; }
.hol-mini { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--c-ink);
    background: var(--c-canvas); border-radius: var(--r-md); padding: 6px; font-weight: var(--fw-medium); font-size: var(--fs-small); }
.hol-mini img, .hol-mini .hol-mini-ph { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; flex: none;
    background: var(--c-primary-tint); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-weight: var(--fw-bold); }
.hol-mini:hover { background: var(--c-primary-tint); }
.hol-empty { text-align: center; color: var(--c-muted); padding: var(--s-12) 0; }

/* Options on the city page */
.hol-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s-6); }
.hol-option { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-1); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.hol-option h2 { margin: 0; font-size: var(--fs-h3); }
.hol-option p { margin: 0; font-size: var(--fs-small); }
.hol-option .btn, .hol-option .hol-btn { margin-top: auto; align-self: flex-start; }
.hol-option-badge { display: inline-flex; width: 40px; height: 40px; border-radius: var(--r-full); align-items: center;
    justify-content: center; background: var(--c-primary-tint); color: var(--c-primary); }
.hol-option-badge svg { width: 22px; height: 22px; }
.hol-option.is-oct .hol-option-badge { background: var(--c-accent-tint); color: var(--c-accent-ink); }
.hol-btn { display: inline-block; padding: 10px 18px; border-radius: var(--r-sm); background: var(--c-primary); color: #fff;
    text-decoration: none; font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.hol-btn:hover { background: var(--c-primary-hover); color: #fff; }
.hol-btn.is-accent { background: var(--c-accent); color: #fff; }
.hol-btn.is-ghost { background: transparent; color: var(--c-primary); border: 1px solid var(--c-line-strong); }

.hol-itinerary { display: grid; gap: var(--s-3); }
.hol-itinerary-day h3 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin: 0 0 4px; }
.hol-itinerary-day ol { margin: 0; padding-left: 20px; font-size: var(--fs-small); }
.hol-itinerary-day li { margin: 2px 0; overflow-wrap: anywhere; }

.hol-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--s-4); }
.hol-plan { display: flex; gap: var(--s-3); align-items: center; background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-md); padding: var(--s-3); text-decoration: none; color: var(--c-ink); }
.hol-plan:hover { border-color: var(--c-primary); }
.hol-plan img, .hol-plan .hol-mini-ph { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none;
    background: var(--c-primary-tint); display: flex; align-items: center; justify-content: center; color: var(--c-primary); font-weight: var(--fw-bold); }
.hol-plan small { display: block; color: var(--c-muted); }

/* Chips: other holidays, and the strip on /recommended */
.holiday-strip, .hol-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.holiday-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 10px; text-decoration: none;
    background: linear-gradient(135deg, #fff7e6 0%, #fdeff4 100%); border: 1px solid #f6d9a8; color: #2d3748; min-width: 200px; }
.holiday-chip strong { font-size: 16px; }
.holiday-chip span { font-size: 13px; color: #718096; }
.holiday-chip:hover { border-color: #1D5FA8; }
.holiday-chip .holiday-chip-count { color: #9A4A08; font-weight: 600; }
.holiday-chip-all { justify-content: center; background: #fff; border-color: #e2e8f0; color: #1D5FA8; font-weight: 600; }

/* Admin schedule */
.hol-admin { margin-top: var(--s-12); font-size: var(--fs-small); }
.hol-admin table { width: 100%; border-collapse: collapse; background: var(--c-surface); }
.hol-admin th, .hol-admin td { border-bottom: 1px solid var(--c-line); padding: 6px 8px; text-align: left; white-space: nowrap; }
.hol-admin .is-live { color: var(--c-success-ink); font-weight: var(--fw-semibold); }
.hol-admin .is-hidden { color: var(--c-muted); }

@media (max-width: 640px) {
    .hol-hero { padding: var(--s-8) var(--s-4); }
    .hol-page h1 { font-size: 1.6rem; }
    .holiday-chip { min-width: 0; flex: 1 1 100%; }
}

/* Photo credit (Wikimedia Commons licences require it next to the photo) */
.hol-credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; line-height: 1.2; max-width: 60%; text-align: right; }
.hol-credit a { color: rgba(255, 255, 255, 0.78); text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.hol-credit a:hover { color: #fff; text-decoration: underline; }
.hol-hero { position: relative; }
.hol-hero.has-image { padding-bottom: calc(var(--s-12) + 8px); }

/* Hub: one full-width photo banner per holiday, stacked top to bottom */
.hol-banner {
    position: relative; overflow: hidden; border-radius: var(--r-lg); margin-bottom: var(--s-6);
    min-height: 340px; display: flex; align-items: flex-end; color: #fff;
    background: linear-gradient(135deg, var(--c-primary) 0%, #2b7bd0 60%, var(--c-accent) 140%);
    background-size: cover; background-position: center; box-shadow: var(--shadow-2);
}
.hol-banner.has-photo::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10, 22, 34, 0.88) 0%, rgba(10, 22, 34, 0.55) 45%, rgba(10, 22, 34, 0.12) 100%);
}
.hol-banner-inner { position: relative; padding: var(--s-8); max-width: 860px; display: flex; flex-direction: column; gap: var(--s-3); }
.hol-banner h2 { margin: 0; font-size: 2rem; line-height: 1.1; }
.hol-banner h2 a { color: #fff; text-decoration: none; }
.hol-banner h2 a:hover { text-decoration: underline; }
.hol-banner-dates { margin: 0; font-weight: var(--fw-semibold); color: #ffd9a8; letter-spacing: .02em; }
.hol-banner-intro { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: var(--fs-small); }
.hol-banner-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.hol-banner-city {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
    text-decoration: none; font-size: var(--fs-small); font-weight: var(--fw-medium); backdrop-filter: blur(4px);
}
.hol-banner-city img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hol-banner-city:not(:has(img)) { padding-left: 12px; }
.hol-banner-city:hover { background: rgba(255, 255, 255, 0.3); }
.hol-banner .hol-btn { align-self: flex-start; }

/* /recommended: compact photo rows, soonest first */
.holiday-rows { display: flex; flex-direction: column; gap: 12px; }
.holiday-row {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
    min-height: 96px; padding: 22px 24px; border-radius: 12px; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #1D5FA8 0%, #2b7bd0 60%, #F28C28 140%); background-size: cover; background-position: center;
}
.holiday-row.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 34, 0.85) 0%, rgba(10, 22, 34, 0.35) 70%, rgba(10, 22, 34, 0.1) 100%); }
.holiday-row > * { position: relative; }
.holiday-row strong { font-size: 22px; flex-basis: 100%; }
.holiday-row span { font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.holiday-row .holiday-row-count { color: #ffd9a8; font-weight: 600; }
.holiday-row:hover strong { text-decoration: underline; }
.holiday-rows-all { display: inline-block; margin-top: 12px; color: #1D5FA8; font-weight: 600; text-decoration: none; }

/* Other holidays as small photo tiles */
.holiday-chip.has-photo { position: relative; overflow: hidden; color: #fff; border: none; background-size: cover; background-position: center; min-height: 90px; justify-content: flex-end; }
.holiday-chip.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 34, 0.85), rgba(10, 22, 34, 0.2)); }
.holiday-chip.has-photo > * { position: relative; color: #fff; }

.hol-plan-form { margin-top: auto; }
.hol-plan-form .hol-btn { border: none; cursor: pointer; font-family: inherit; }
.hol-option-note { color: var(--c-muted); font-size: var(--fs-label) !important; }

@media (max-width: 640px) {
    .hol-banner { min-height: 300px; }
    .hol-banner-inner { padding: var(--s-6) var(--s-4) calc(var(--s-6) + 10px); }
    .hol-banner h2 { font-size: 1.5rem; }
    .hol-credit { max-width: 90%; }
}
