/* Reservations search page. Colours per site from admin (CSS variables). */
:root {
    /* Site colours come from admin and are set on <html>; these are the fallbacks. */
    --brand: #e85d04;
    --brand-dark: #903a02;
    --banner: #1b3150;
    --accent: #efc630;
    --brand-tint: color-mix(in srgb, var(--brand) 8%, #fff);
    --brand-hover: color-mix(in srgb, var(--brand) 85%, #000);
    --ink: #383838;
    --muted: #6d6767;
    --line: #e3e3e3;
    --field-border: #333;
    --radius: 8px;
    --shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, system-ui, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.page { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); padding-top: 22px; }
.page-title { margin: 0 0 16px; color: var(--brand); font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.page-tabs { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.page-tabs a { color: #333; text-decoration: none; padding: 0 8px 14px; }
.page-tabs a.is-active { color: var(--brand); border-bottom: 3px solid var(--brand); }

.hero { position: relative; overflow: hidden; margin-top: 24px; border-radius: 12px; padding: 34px; color: #fff;
    background: linear-gradient(118deg, var(--banner), var(--brand-dark)); }
.hero::after { content: ""; position: absolute; right: -60px; top: 20px; width: 220px; height: 220px; border-radius: 50%;
    border: 18px solid rgba(239, 198, 48, .25); }
.hero-kicker { margin: 0; color: var(--brand); font-weight: 700; letter-spacing: 3px; font-size: 14px; }
.hero-title { margin: 6px 0 0; font-size: 46px; font-weight: 800; letter-spacing: 1.8px; line-height: 1.05; }
.hero-text { margin: 10px 0 0; color: #f1e3d8; }

.search { margin-top: 22px; background: #fff; box-shadow: var(--shadow); padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-dates { flex: 1.6 1 300px; }
.field-narrow { flex: .8 1 150px; }
.field-label { font-size: 13px; font-weight: 600; }
.search input, .search select { height: 50px; width: 100%; border: 1px solid var(--field-border); border-radius: 3px; background: #fff;
    padding: 0 12px; font: inherit; font-size: 16px; color: #333; }
.date-pair { display: flex; align-items: center; gap: 8px; }
.date-pair input { flex: 1; min-width: 0; padding: 0 8px; }
.search-btn { flex: 0 0 150px; height: 50px; font-size: 16px; }

.btn { min-height: 44px; border: 0; border-radius: 4px; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn:focus-visible, .chip:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.notice { margin: 18px 0 0; padding: 12px 14px; border-radius: 4px; }
.notice-error { background: #fdecea; color: #8a1c10; }

.intro { margin-top: 26px; }
.intro iframe { display: block; width: 100%; height: 800px; border: 0; }

.results-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid #d6d6d6; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select { height: 40px; border: 1px solid #d6d6d6; border-radius: 3px; font: inherit; padding: 0 8px; }
.results-summary { margin: 4px 0 16px; font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: flex; flex-direction: column; background: #fff; }
.card.is-open { outline: 2px solid var(--brand); }
.card-photo { position: relative; height: 180px; background: #e9e2da; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 12px; }
.badge-weekend { background: var(--accent); color: #000; }
.badge-midweek { background: var(--banner); color: #fff; }
.badge-fullweek { background: var(--brand); color: #fff; }
.badge-other { background: #fff; color: var(--ink); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { margin: 0; font-size: 20px; color: var(--banner); }
.card-place, .card-note { margin: 0; font-size: 13px; color: var(--muted); }
.card-unit { margin: 0; font-size: 15px; }
.card-dates { margin: 0; font-size: 14px; background: var(--brand-tint); color: var(--brand-dark); padding: 7px 10px; border-radius: 4px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.card-price { margin: 0; font-size: 13px; color: var(--muted); }
.card-price b { font-size: 20px; color: var(--brand); }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; background: #f7f4f1; border-radius: var(--radius); }

.request-panel { grid-column: 1 / -1; border: 2px solid var(--brand); border-radius: var(--radius); overflow: hidden; background: #fff; }
.request-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; }
.request-title { margin: 0; font-weight: 600; color: var(--banner); }
.request-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.request-steps { margin: 0; padding: 10px 16px; font-size: 14px; background: var(--brand-tint); color: var(--brand-dark); }
.request-frame { position: relative; overflow: hidden; height: 760px; background: #f6f7fb; }
.request-frame iframe { position: absolute; left: 0; width: 100%; border: 0; }
.request-panel.is-collapsed .request-steps, .request-panel.is-collapsed .request-frame { display: none; }

@media (max-width: 640px) {
    .page { padding: 0 14px 30px; }
    .page-head { align-items: center; padding-top: 12px; }
    .page-title { font-size: 22px; margin-bottom: 10px; }
    .page-tabs a { padding-bottom: 10px; }
    .hero { padding: 20px; }
    .hero::after { display: none; }
    .hero-title { font-size: 26px; }
    .hero-text { font-size: 14px; }
    .search { padding: 14px; }
    .field, .field-dates { flex-basis: 100%; }
    .field-narrow { flex: 1 1 calc(50% - 6px); }
    .search-btn { flex: 1 1 100%; }
    .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
    .chip { flex: none; }
    .cards { grid-template-columns: 1fr; gap: 16px; }
    .request-frame { height: 640px; }
    .intro iframe { height: 600px; }
}
