:root {
    --reservation-ink: #292936;
    --reservation-brand: #525266;
    --reservation-accent: #84c7d0;
    --reservation-surface: #f2f4f6;
    --reservation-border: #d7d9e1;
    --reservation-occupied: #a52d3b;
    --reservation-half: #f4b6bc;
}

.reservation-page { padding: 92px 0 50px; color: var(--reservation-ink); background: var(--reservation-surface); }
.reservation-page h1 { margin: 0 0 24px; padding: 0; scroll-margin-top: 100px; }
.reservation-card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--reservation-border);
    border-top: 5px solid var(--reservation-accent);
    border-radius: 16px;
    padding: clamp(16px, 4vw, 36px);
    box-shadow: 0 12px 32px rgb(41 41 54 / 7%);
}
.reservation-card fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.reservation-card h3 { margin: 26px 0 14px; font-size: 1.28rem; color: var(--reservation-brand); }
.reservation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.reservation-full { grid-column: 1 / -1; }
.reservation-grid label, .reservation-search label { font-weight: 600; font-size: .94rem; }
.reservation-grid input, .reservation-grid textarea, .reservation-grid select,
.reservation-date, .reservation-search input, .admin-signin-form input[type="password"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin-top: 6px;
    padding: 10px 12px;
    color: var(--reservation-ink);
    background: #fff;
    border: 1px solid var(--reservation-border);
    border-radius: 8px;
    font-size: 1rem;
}
.reservation-grid textarea { resize: vertical; }
.reservation-grid input[type="date"], .reservation-search input[type="date"] { cursor: pointer; }
.reservation-date { text-align: left; cursor: pointer; background: #fff url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23525266" stroke-width="1.6"%3E%3Crect x="3" y="5" width="18" height="16" rx="2"/%3E%3Cpath d="M3 10h18M8 3v4m8-4v4"/%3E%3C/svg%3E') right 11px center / 19px no-repeat; padding-right: 36px; }
.reservation-grid input[type="hidden"], [hidden] { display: none; }
.reservation-card :focus-visible, #reservation-calendar :focus-visible { outline: 2px solid var(--reservation-brand); outline-offset: 2px; }
.reservation-price { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 16px; border-radius: 9px; background: #84c7d0; color: #fff; }
.reservation-total { text-align: right; font-size: 1.06rem; font-weight: 700; }
.reservation-card .reservation-payment-options { margin-top: 20px; }
.reservation-payment-options legend { margin-bottom: 8px; font-weight: 700; }
.reservation-payment-options label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 8px; padding: 12px; border: 1px solid var(--reservation-border); border-radius: 8px; cursor: pointer; }
.reservation-payment-options label:has(input:checked) { border-color: var(--reservation-brand); background: #f3fafb; }
.reservation-payment-options input { margin: 0; accent-color: var(--reservation-brand); }
.reservation-payment-options small { display: block; margin-top: 3px; }
.reservation-payment-amount, .reservation-payment-summary { font-weight: 700; }
.reservation-payment-details { margin: 0; }
.reservation-payment-details > div { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 10px; margin-bottom: 4px; }
.reservation-payment-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.reservation-payment-qr { display: block; margin: 12px auto 0; width: 216px; max-width: 100%; height: auto; }
.reservation-consent { margin: 20px 0; line-height: 1.6; }
.reservation-consent input { accent-color: var(--reservation-brand); margin: 0 6px 0 0; }
.reservation-consent a, .reservation-card a, .reservation-admin a { color: #414160; }
.reservation-button, .reservation-secondary { display: inline-block; box-sizing: border-box; padding: 11px 16px; border: 1px solid transparent; border-radius: 8px; background: var(--reservation-accent); color: var(--reservation-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.reservation-button:hover { background: #9cdae2; }
.reservation-submit { padding-top: 12px; }
.reservation-submit [hidden] { display: none; }
.reservation-submit-progress { display: inline-flex; min-height: 43px; align-items: center; padding: 0 16px; }
.reservation-spinner { width: 19px; height: 19px; border: 3px solid var(--reservation-accent); border-top-color: var(--reservation-brand); border-radius: 50%; animation: reservation-spin .75s linear infinite; }
.reservation-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes reservation-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reservation-spinner { animation: none; } }
.reservation-button:disabled { cursor: default; opacity: .55; }
.reservation-secondary { background: #fff; border-color: var(--reservation-border); }
.reservation-message { padding: 13px 16px; border-radius: 9px; margin: 0 0 18px; background: #e3f4f6; line-height: 1.45; }
.reservation-confirmation { text-align: center; }
.reservation-error { background: #fae3e5; color: #7c2834; }
.reservation-error ul { margin: 0; padding-left: 20px; }
#reservation-calendar { width: min(360px, calc(100% - 28px)); box-sizing: border-box; border: 1px solid var(--reservation-border); border-radius: 14px; padding: 17px; color: var(--reservation-ink); }
#reservation-calendar::backdrop { background: rgb(41 41 54 / 60%); }
.reservation-calendar-heading, .reservation-month { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.reservation-calendar-heading h3 { margin: 0; color: var(--reservation-brand); font-size: 1.13rem; }
.reservation-month { margin: 12px 0 8px; }
.reservation-month strong { text-transform: capitalize; }
#reservation-calendar button { cursor: pointer; background-color: #fff; color: inherit; border: 1px solid var(--reservation-border); border-radius: 6px; min-height: 36px; padding: 0; font-size: 1rem; }
#reservation-calendar button:disabled { cursor: default; }
#reservation-calendar button:disabled.free, #reservation-calendar .reservation-month button:disabled { color: #656575; background: #f2f4f6; }
#reservation-calendar button:enabled:hover, #reservation-calendar button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--reservation-brand); }
#reservation-calendar [data-close], .reservation-month button { width: 36px; }
.reservation-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.reservation-days span { font-size: .82rem; padding: 5px 0; }
#reservation-calendar .booked { background: var(--reservation-occupied); color: #fff; }
#reservation-calendar .departure { background: linear-gradient(135deg, var(--reservation-half) 50%, #fff 50%); }
#reservation-calendar .arrival { background: linear-gradient(135deg, #fff 50%, var(--reservation-half) 50%); }
#reservation-calendar .departure:disabled, #reservation-calendar .arrival:disabled { color: #656575; }
.reservation-gdpr-dialog {
    box-sizing: border-box;
    width: min(40rem, calc(100% - 2rem));
    max-width: none;
    padding: 0;
    border: 1px solid var(--reservation-border);
    border-radius: 14px;
    color: var(--reservation-ink);
    background: #fff;
}
.reservation-gdpr-dialog::backdrop { background: rgb(41 41 54 / 65%); }
.reservation-gdpr-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(42rem, calc(100vh - 2rem));
    max-height: min(42rem, calc(100dvh - 2rem));
}
.reservation-gdpr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--reservation-border);
}
.reservation-gdpr-header h2 { padding: 0; font: 700 1.17rem/1.3 Roboto, sans-serif; text-align: left; }
.reservation-gdpr-content { overflow: auto; overscroll-behavior: contain; padding: 1rem; line-height: 1.55; }
.reservation-gdpr-content a { color: var(--reservation-accent); }
.reservation-gdpr-content :first-child { margin-top: 0; }
.reservation-gdpr-content :last-child { margin-bottom: 0; }
.reservation-gdpr-dialog :focus-visible { outline: 2px solid var(--reservation-brand); outline-offset: 2px; }
.reservation-gdpr-content:focus-visible { outline-offset: -3px; }
.reservation-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .78rem; margin-top: 15px; }
.reservation-legend span { display: inline-flex; align-items: center; gap: 4px; }
.reservation-legend i { width: 14px; height: 14px; border: 1px solid var(--reservation-border); border-radius: 3px; }

@media (max-width: 540px) {
    .reservation-page { padding-top: 84px; }
    .reservation-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .reservation-grid label { min-width: 0; }
    .reservation-grid input, .reservation-grid select, .reservation-grid textarea, .reservation-date { max-width: 100%; }
    .reservation-date { background-image: none; padding-right: 8px; }
}
