/* Szalajka foglalási oldal — a jóváhagyott design-koncepció (foglalas.html prototípus) értékei szerint.
   Betűk: Cinzel (címek, gombok), Poppins (törzsszöveg, a téma már tölti). Színek: bordó #6a000c, sötét #212429. */
.booking-page {
    --bk-maroon: #6a000c;
    --bk-maroon-hover: #8a0f1c;
    --bk-dark: #212429;
    --bk-muted: #5f5552;
    --bk-num: #8a7f7c;
    --bk-input: #d9d0cc;
    --bk-card: #e4dcd8;
    --bk-tile: #f5f2f0;
    --bk-tile-on: #f3e6e7;
    --bk-summary: #f7f4f2;
    --bk-rule: #ddd3cf;
    --bk-error: #b3261e;
    --bk-cinzel: 'Cinzel', serif;
    background: #fff;
    color: #1f1f1f;
    font-family: 'Poppins', sans-serif;
}

.booking-page *, .booking-page *::before, .booking-page *::after { box-sizing: border-box; }
.booking-page h1, .booking-page h2, .booking-page h3, .booking-page p { margin: 0; text-transform: none; }

/* A morzsa-sáv (page-header) helyett fotósáv van (a sötét fejléc a téma szerint a morzsa-jelölőtől függ) */
.main:has(.booking-page) > .page-header { display: none; }

/* Menü alatti fotósáv */
.booking-hero { height: 106px; background: #2a3a1e center / cover no-repeat; }

.booking-container { max-width: 1140px; margin: 0 auto; padding: 56px 20px 80px; }

.booking-page .booking-title { font-family: var(--bk-cinzel); font-weight: 700; color: var(--bk-maroon); text-align: center; font-size: clamp(30px, 5vw, 42px); letter-spacing: .5px; margin-bottom: 14px; }
.booking-page .booking-intro { text-align: center; max-width: 640px; margin: 0 auto 48px; line-height: 1.7; font-size: 15px; text-wrap: pretty; }
.booking-page .booking-intro p { margin: 0; }

/* Oszlopok */
.booking-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.booking-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.booking-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.booking-section { display: flex; flex-direction: column; gap: 16px; }
.booking-section#booking-units { gap: 20px; }

.booking-page .booking-h2 { font-family: var(--bk-cinzel); font-weight: 700; color: var(--bk-maroon); font-size: 22px; display: flex; align-items: baseline; gap: 12px; line-height: 1.25; }
.booking-h2 span { font-size: 15px; color: var(--bk-num); font-weight: 400; }

/* Mezők */
.booking-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; margin: 0; }
.booking-input { width: 100%; border: 1px solid var(--bk-input); padding: 12px 14px; font-size: 15px; border-radius: 2px; background: #fff; min-height: 48px; font-family: 'Poppins', sans-serif; font-weight: 400; color: #1f1f1f; box-shadow: none; }
textarea.booking-input { min-height: 0; resize: vertical; }
.booking-input:focus { outline: 2px solid rgba(106, 0, 12, .25); border-color: var(--bk-maroon); }
.booking-input.is-invalid { border-color: var(--bk-error); }
.booking-error { color: var(--bk-error); font-weight: 400; font-size: 12px; }
.booking-dategrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.booking-nights { font-size: 13px; color: var(--bk-muted); }
.booking-warn { font-size: 13px; color: var(--bk-error); font-weight: 500; }
.booking-notice { background: #fff6e5; border-left: 3px solid #d99000; padding: .6rem .9rem; font-size: 13px; }
.booking-dim { color: var(--bk-muted); }

/* Teljes ház sáv */
.booking-house { background: var(--bk-dark); color: #fff; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.booking-house.is-unavailable { opacity: .8; }
.booking-house-text { display: flex; flex-direction: column; gap: 4px; }
.booking-house-title { font-family: var(--bk-cinzel); font-size: 18px; letter-spacing: 1px; }
.booking-house-price { font-size: 13px; color: #cfd2d6; }
.booking-house-note { font-size: 12px; color: #e0c46a; }
.booking-house-note.booking-dim { color: var(--bk-muted); }
.booking-house-btn { background: transparent; color: #fff; border: 1px solid #fff; padding: 12px 20px; min-height: 44px; font-family: var(--bk-cinzel); letter-spacing: 2px; font-size: 13px; cursor: pointer; text-transform: uppercase; }
.booking-house-btn.is-on { background: var(--bk-maroon); }
.booking-house-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Épületcsoport */
.booking-group { display: flex; flex-direction: column; gap: 14px; }
.booking-group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--bk-maroon); padding-bottom: 10px; }
.booking-group-name { display: flex; flex-direction: column; gap: 2px; }
.booking-group-title { font-family: var(--bk-cinzel); font-weight: 700; font-size: 20px; color: var(--bk-maroon); }
.booking-group-info { font-size: 13px; color: var(--bk-muted); }
.booking-btn-line { background: none; border: 1px solid var(--bk-maroon); color: var(--bk-maroon); padding: 10px 16px; min-height: 44px; cursor: pointer; font-family: 'Poppins', sans-serif; }
.booking-btn-line.booking-btn-sm { padding: 9px 14px; font-size: 13px; font-weight: 500; }
.booking-btn-line:disabled { opacity: .5; cursor: not-allowed; }

/* Kártyák */
.booking-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.booking-card { border: 1px solid var(--bk-card); background: #fff; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(33, 36, 41, .08); }
.booking-card.is-selected { border: 2px solid var(--bk-maroon); }
.booking-card.is-unavailable { opacity: .65; }
.booking-card-photo { position: relative; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #ece6e3 0 10px, #e3dbd7 10px 20px); }
.booking-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.booking-photo-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.booking-photo-count { position: absolute; right: 10px; bottom: 10px; background: var(--bk-dark); color: #fff; font-size: 12px; padding: 5px 9px; pointer-events: none; }
.booking-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.booking-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.booking-page .booking-card-head h3 { font-family: var(--bk-cinzel); font-size: 18px; font-weight: 700; color: var(--bk-dark); }
.booking-capacity { font-size: 13px; font-weight: 600; color: var(--bk-maroon); white-space: nowrap; }
.booking-location { font-size: 12px; color: var(--bk-muted); text-transform: uppercase; letter-spacing: 1px; }
.booking-desc { font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.booking-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.booking-rates > div { background: var(--bk-tile); padding: 8px 10px; display: flex; flex-direction: column; }
.booking-rates > div.is-active { background: var(--bk-tile-on); }
.booking-rates span { font-size: 11px; color: var(--bk-muted); }
.booking-rates strong { font-weight: 600; font-size: 14px; }
.booking-seasonal { font-size: 12px; color: #8a5a00; }
.booking-periods { display: flex; flex-direction: column; gap: 6px; font-size: 13px; border-top: 1px solid var(--bk-card); padding-top: 10px; }
.booking-period { display: flex; justify-content: space-between; gap: 12px; }
.booking-period small { display: block; color: var(--bk-muted); font-size: 12px; }
.booking-period strong { white-space: nowrap; font-weight: 500; }
.booking-select { background: #fff; color: var(--bk-maroon); border: 1px solid var(--bk-maroon); min-height: 46px; font-family: var(--bk-cinzel); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; width: 100%; }
.booking-select.is-on { background: var(--bk-maroon); color: #fff; }
.booking-select:disabled { opacity: .5; cursor: not-allowed; }

/* Összesítő */
.booking-summary { background: var(--bk-summary); border-top: 3px solid var(--bk-maroon); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.booking-page .booking-summary h2 { font-family: var(--bk-cinzel); font-weight: 700; color: var(--bk-maroon); font-size: 20px; }
.booking-summary-empty { font-size: 14px; color: var(--bk-muted); }
.booking-lines { display: flex; flex-direction: column; gap: 8px; }
.booking-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.booking-line strong { white-space: nowrap; font-weight: 500; }
.booking-discount { background: var(--bk-maroon); color: #fff; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.booking-discount s { opacity: .85; }
.booking-discount strong { font-weight: 600; white-space: nowrap; }
.booking-row { display: flex; justify-content: space-between; font-size: 14px; }
.booking-row strong { font-weight: 500; }
.booking-row:last-of-type strong { font-weight: 600; }
.booking-row-top { border-top: 1px solid var(--bk-rule); padding-top: 12px; }
.booking-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--bk-rule); padding-top: 12px; font-size: 14px; }
.booking-total strong { font-family: var(--bk-cinzel); font-weight: 700; font-size: 22px; color: var(--bk-maroon); white-space: nowrap; }
.booking-hint { font-size: 13px; line-height: 1.5; color: var(--bk-maroon); }

/* Adatok */
.booking-data { display: flex; flex-direction: column; gap: 14px; }
.booking-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; margin: 0; font-weight: 400; }
.booking-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bk-maroon); flex-shrink: 0; }
.booking-consent a { color: var(--bk-maroon); font-weight: 500; text-decoration: underline; }
.booking-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-submit { background: var(--bk-maroon); color: #fff; border: none; min-height: 52px; font-family: var(--bk-cinzel); font-size: 15px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; }
.booking-submit:hover:not(:disabled) { background: var(--bk-maroon-hover); }
.booking-submit:disabled { opacity: .7; cursor: wait; }
.booking-fine { font-size: 12px; color: var(--bk-muted); line-height: 1.5; }

/* Visszaigazolás */
.booking-confirmation { max-width: 640px; margin: 0 auto; border: 1px solid var(--bk-maroon); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.booking-page .booking-confirmation h2 { font-family: var(--bk-cinzel); font-weight: 700; color: var(--bk-maroon); font-size: 22px; }
.booking-confirmation p { font-size: 14px; line-height: 1.6; }
.booking-confirmation .booking-btn-line { align-self: flex-start; }
.booking-code { font-family: var(--bk-cinzel); font-size: 26px !important; font-weight: 700; letter-spacing: .1em; color: var(--bk-maroon); }

/* Lábjegyzet */
.booking-footnotes { margin-top: 56px; border-top: 1px solid var(--bk-card); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.6; color: var(--bk-muted); }
.booking-footnotes p { margin: 0; }

/* Mobil: egyoszlopos, az összesítő a lakóegységek után, az adatok előtt */
@media (max-width: 999.98px) {
    .booking-side { position: static; }
}
