:root {
    --reservation-card: rgba(34, 52, 111, .94);
    --reservation-field: #22346f;
    --reservation-soft: rgba(255, 255, 255, .06);
    --reservation-label: #dfe5fa;
    --reservation-error: #ff9e91;
    --reservation-bar: rgba(18, 28, 62, .92);
}

.reservation-body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.reservation-body .public-header {
    position: sticky;
    z-index: 30;
    top: 0;
    background: var(--bg);
}

.reservation-page {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    width: var(--public-width);
    margin: 0 auto;
    padding-bottom: clamp(14px, 2.4vh, 26px);
}

.reservation-stage {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.reservation-stage--off {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
}

.reservation-stage .reservation-back {
    position: absolute;
    z-index: 11;
    top: 14px;
    left: 14px;
    background: var(--panel);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.reservation-stage--off .reservation-back {
    position: static;
    box-shadow: none;
}

.reservation-stage__frame {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: #f5f0e3;
    box-shadow: var(--card-shadow);
}

.reservation-map-off__text {
    margin: 0;
    padding: 18px 20px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}

.reservation-map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 8px;
}

.reservation-stage__frame .zoom-tools { top: 14px; right: 14px; }

.map-pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    color: var(--text);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    text-decoration: none;
}
.map-pdf-link:hover { background: rgba(255, 255, 255, .14); }

.reservation-map-pin {
    position: absolute;
    left: var(--area-left);
    top: var(--area-top);
    width: var(--area-width);
    height: var(--area-height);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity .15s ease;
}
.reservation-map-pin .booth-marker__pin { background: var(--available); }
.reservation-map-pin:hover, .reservation-map-pin:focus-visible { z-index: 6; outline: none; }
.reservation-map-pin:hover .booth-marker__shape path,
.reservation-map-pin:focus-visible .booth-marker__shape path {
    fill: color-mix(in srgb, var(--available) 16%, transparent);
    stroke: var(--available);
}
.reservation-map-pin:hover .booth-marker__pin,
.reservation-map-pin:focus-visible .booth-marker__pin {
    scale: 1.5;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 4px 10px rgba(0, 0, 0, .35);
}
.reservation-map-pin.is-occupied .booth-marker__pin { background: var(--occupied); }
.reservation-map-pin.is-occupied:hover .booth-marker__shape path,
.reservation-map-pin.is-occupied:focus-visible .booth-marker__shape path {
    fill: color-mix(in srgb, var(--occupied) 12%, transparent);
    stroke: var(--occupied);
}
.reservation-map-pin.is-dimmed { opacity: 0; pointer-events: none; }

.selection-bar {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: clamp(.9rem, 3vw, 2rem);
    max-width: calc(100% - 28px);
    padding: .7rem .7rem .7rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--reservation-bar);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    transform: translateX(-50%);
}
.selection-bar[hidden] { display: none; }

.selection-bar__summary {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    margin: 0;
    color: var(--text);
    font-size: .95rem;
    white-space: nowrap;
}

.selection-bar__area { color: var(--muted); font-weight: 700; }
.selection-bar__area:not(:empty)::before { content: "·"; margin-right: .5rem; }

.selection-bar .submit-reservation { min-height: 44px; padding: .55rem 1.4rem; border-radius: 999px; }

.reservation-dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: min(88dvh, 940px);
    padding: 0;
    overflow: hidden;
    color: var(--text);
    background: var(--reservation-card);
    border: 1px solid var(--border);
    border-radius: 1.3rem;
    box-shadow: var(--card-shadow);
}
.reservation-dialog[open] { display: flex; flex-direction: column; }
.reservation-dialog::backdrop { background: rgba(6, 10, 24, .64); backdrop-filter: blur(3px); }

.reservation-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reservation-dialog__head h2 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.reservation-dialog__close {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: var(--reservation-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.reservation-dialog__close:hover { color: var(--text); }

.reservation-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .3rem;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(1.1rem, 3vw, 1.9rem);
}

.reservation-picked__label {
    margin: 0 0 .55rem;
    color: var(--reservation-label);
    font-size: .8rem;
    font-weight: 750;
}

.booth-checklist {
    max-height: 210px;
    overflow-y: auto;
    padding: .6rem .8rem;
    background: var(--reservation-soft);
    border: 1px solid var(--border);
    border-radius: .75rem;
}
.booth-checklist ul { margin: 0; padding: 0; list-style: none; }
.booth-checklist label { display: flex; min-height: 36px; align-items: center; gap: .55rem; cursor: pointer; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.form-field { min-width: 0; }
.form-field.full-width { grid-column: 1 / -1; }

.form-field > label:not(.search-box) {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--reservation-label);
    font-size: 0.8rem;
    font-weight: 750;
}

.form-field > input:not([type="radio"]):not([type="checkbox"]),
.form-field > select,
.form-field > textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.78rem 0.85rem;
    color: var(--text);
    background: var(--reservation-field);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    font-size: 1rem;
    outline: 0;
}
.form-field > textarea { min-height: 96px; resize: vertical; }

.form-field > input:focus,
.form-field > select:focus,
.form-field > textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

#id_event_year {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

#id_event_year label {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    background: var(--reservation-soft);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
}

.booth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    max-height: 132px;
    overflow-y: auto;
}

.booth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.4rem 0.4rem 0.85rem;
    background: var(--reservation-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.85rem;
}

.booth-chip-label { display: flex; flex-direction: column; line-height: 1.2; }

.booth-chip-area {
    color: var(--muted);
    font-size: 0.72em;
    font-weight: 650;
}

.booth-chip button {
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: rgba(255, 255, 255, .08);
    border: 0;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.booth-chip button:hover { color: var(--text); background: rgba(255, 255, 255, .16); }

.step-back {
    padding: 0.6rem 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
}
.step-back:hover { color: var(--text); }

.form-field small,
.privacy-note {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.field-error,
.form-errors {
    color: var(--reservation-error);
    font-size: 0.78rem;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: var(--reservation-error) !important;
}

.submit-reservation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 1.25rem;
    color: var(--on-accent);
    background: var(--accent);
    border: 0;
    border-radius: 0.8rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}
.submit-reservation:disabled { opacity: 0.45; cursor: not-allowed; }

.success-page {
    display: grid;
    min-height: 100vh;
    padding: 72px 24px;
    place-items: center;
}

.success-card {
    width: min(680px, 100%);
    padding: clamp(1.3rem, 4vw, 2.5rem);
    background: var(--reservation-card);
    border: 1px solid var(--border);
    border-radius: 1.3rem;
    box-shadow: var(--card-shadow);
}

.success-card h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.success-card > p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
}

.success-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    place-items: center;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
}

.success-theme-toggle { position: fixed; z-index: 5; top: 22px; right: 22px; }

html[data-theme="light"] {
    --reservation-card: #ffffff;
    --reservation-field: #f5f7fc;
    --reservation-soft: rgba(23, 33, 71, .04);
    --reservation-label: #3d4560;
    --reservation-error: #a52f2f;
    --reservation-bar: rgba(255, 255, 255, .94);
}

html[data-theme="light"] .map-pdf-link { background: rgba(23, 33, 71, .07); }
html[data-theme="light"] .map-pdf-link:hover { background: rgba(23, 33, 71, .13); }
html[data-theme="light"] .selection-bar { box-shadow: 0 18px 40px rgba(23, 33, 71, .18); }
html[data-theme="light"] .booth-chip button { background: rgba(23, 33, 71, .07); }
html[data-theme="light"] .booth-chip button:hover { background: rgba(23, 33, 71, .13); }

@media (max-width: 820px) {
    .reservation-page { padding-bottom: 10px; }


    .reservation-stage__frame { border-radius: .9rem; }

    .reservation-stage__frame .zoom-tools {
        top: auto;
        right: 10px;
        bottom: 84px;
        flex-direction: column;
    }

    .selection-bar {
        left: 10px;
        right: 10px;
        bottom: 12px;
        max-width: none;
        padding: .6rem .6rem .6rem 1rem;
        transform: none;
    }

    .selection-bar__summary { flex-direction: column; gap: 0; font-size: .85rem; }
    .selection-bar__area:not(:empty)::before { content: none; }
    .selection-bar .submit-reservation { margin-left: auto; }

    .reservation-dialog { max-height: 92dvh; }

    .form-grid { grid-template-columns: 1fr; }
    .form-field.full-width { grid-column: auto; }
}

.reservation-body { min-height: 100dvh; }

.reservation-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: var(--public-width);
    margin: 0 auto;
    padding: 18px 0 28px;
}

.reservation-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reservation-pdf {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.reservation-pdf svg { width: 16px; height: 16px; }
.reservation-pdf:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--accent-muted); }
.reservation-pdf:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.reservation-stage {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: min(72dvh, 760px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--card-shadow);
}

.reservation-stage--off { align-items: center; justify-content: center; min-height: 320px; border-style: dashed; }
.reservation-stage--off p { margin: 0; color: var(--muted); font-size: .95rem; }

.reservation-stage .map-viewport { position: absolute; inset: 0; }

.reservation-bar {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 26px rgb(0 0 0 / .25);
}
.reservation-bar.is-active { border-color: var(--accent); }

.reservation-bar__hint { margin: 0; color: var(--muted); font-size: .82rem; }
.reservation-bar [hidden] { display: none; }

.reservation-bar__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.reservation-bar__summary strong { font-size: 1rem; font-weight: 800; }
.reservation-bar__summary span { color: var(--muted); font-size: .82rem; }
.reservation-bar__codes { overflow: hidden; max-width: 46ch; text-overflow: ellipsis; white-space: nowrap; }

.reservation-bar__action {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 26px;
    color: var(--on-accent);
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.reservation-bar__action:hover { transform: translateY(-1px); filter: brightness(1.05); }
.reservation-bar__action:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.reservation-map-pin.is-reserved .booth-marker__pin { background: var(--reserved, #f0a500); }
.reservation-map-pin.is-reserved:hover .booth-marker__shape path,
.reservation-map-pin.is-reserved:focus-visible .booth-marker__shape path {
    fill: color-mix(in srgb, var(--reserved, #f0a500) 14%, transparent);
    stroke: var(--reserved, #f0a500);
}
.reservation-map-pin[data-booth-blocked="true"] { cursor: not-allowed; }
.reservation-map-pin.is-selected { z-index: 6; }
.reservation-map-pin.is-selected .booth-marker__shape path {
    fill: color-mix(in srgb, var(--picked) 16%, transparent);
    stroke: var(--picked);
}
.reservation-map-pin.is-selected .booth-marker__pin {
    scale: 1.6;
    border-color: #fff;
    background: var(--picked);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--picked) 45%, transparent), 0 4px 10px rgb(0 0 0 / .35);
}

.map-legend {
    position: absolute;
    z-index: 9;
    top: 82px;
    right: 18px;
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    backdrop-filter: blur(16px);
}

.map-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: .72rem;
    font-weight: 650;
    white-space: nowrap;
}

.map-legend__dot {
    width: 11px;
    height: 11px;
    border: 2px solid rgb(255 255 255 / .92);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / .3);
}

.map-legend__dot--available { background: var(--available); }
.map-legend__dot--reserved { background: var(--reserved); }
.map-legend__dot--occupied { background: var(--occupied); }
.map-legend__dot--picked { background: var(--picked); }

html[data-theme="light"] .map-legend { box-shadow: 0 16px 32px rgb(23 33 71 / .14); }

.reservation-dialog {
    width: min(680px, calc(100% - 28px));
    max-height: min(88dvh, 880px);
    padding: 0;
    overflow: hidden;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}
.reservation-dialog::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(3px); }
.reservation-dialog .reservation-form { display: flex; max-height: inherit; flex-direction: column; margin: 0; padding: 0; border: 0; background: none; }

.reservation-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    cursor: pointer;
}
.reservation-dialog__close:hover { color: var(--text); }

.reservation-dialog__header { padding: 22px 56px 14px 24px; border-bottom: 1px solid var(--border); }
.reservation-dialog__header h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; }
.reservation-dialog__header p { margin: 0; color: var(--muted); font-size: .82rem; }

.reservation-dialog__body { flex: 1; min-height: 0; padding: 20px 24px; overflow-y: auto; }
.reservation-dialog__actions { display: flex; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--border); }

@media (max-width: 820px) {
    .reservation-stage { flex: 0 0 auto; min-height: 0; height: 60dvh; }
    .reservation-stage .zoom-tools { top: 10px; right: 10px; bottom: auto; flex-direction: column; }
    .map-legend { top: 178px; right: 10px; gap: 5px; padding: 8px 10px; }
    .map-legend__item { font-size: .68rem; }
    .reservation-bar { right: 10px; bottom: 10px; left: 10px; padding: 10px 12px; }
    .reservation-bar__action { width: 100%; }
    .reservation-bar__codes { max-width: 100%; }
}

.reservation-intro {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.reservation-intro__naming h1 {
    margin: 0 0 4px;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
}
.reservation-intro__naming p { margin: 0; max-width: 68ch; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.reservation-picker { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
@media (max-width: 820px) { .reservation-picker { grid-template-columns: 1fr; } }

.reservation-picker__or {
    padding-bottom: 12px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
@media (max-width: 820px) { .reservation-picker__or { padding: 0; text-align: center; } }
.reservation-picker__field { display: grid; gap: 6px; min-width: 0; }
.reservation-picker__field > span:first-child { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.reservation-picker__inline { display: flex; gap: 8px; }
.reservation-picker__inline input { flex: 1; min-width: 0; }

.reservation-picker select,
.reservation-picker input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    outline: 0;
}
.reservation-picker select:focus-visible,
.reservation-picker input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }

.reservation-picker button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 20px;
    color: var(--on-accent);
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.reservation-picker button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.reservation-picker button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.reservation-intro__feedback {
    margin: 0;
    padding: 10px 12px;
    color: var(--accent-ink);
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-muted);
    font-size: .82rem;
    line-height: 1.45;
}
.reservation-intro__feedback[hidden] { display: none; }

.reservation-picker button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.reservation-picker button:disabled { cursor: progress; filter: none; opacity: .75; transform: none; }

.reservation-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--on-accent) 35%, transparent);
    border-top-color: var(--on-accent);
    border-radius: 50%;
    animation: reservation-spin .7s linear infinite;
}
.reservation-spinner[hidden] { display: none; }

@keyframes reservation-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .reservation-spinner { animation-duration: 2s; }
}

.reservation-loading {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 10, 24, .62);
    backdrop-filter: blur(4px);
}
.reservation-loading[hidden] { display: none; }

.reservation-loading__card {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(360px, 100%);
    padding: 28px 26px;
    text-align: center;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    background: var(--panel);
    box-shadow: var(--card-shadow);
}

.reservation-loading__card strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.reservation-loading__card span:not(.reservation-loading__spinner) { color: var(--muted); font-size: .84rem; line-height: 1.5; }

.reservation-loading__spinner {
    width: 30px;
    height: 30px;
    border: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: reservation-spin .7s linear infinite;
}

.reservation-loading.is-failed .reservation-loading__spinner {
    border-color: color-mix(in srgb, var(--reservation-error) 32%, transparent);
    border-top-color: var(--reservation-error);
    animation: none;
}
.reservation-loading.is-failed .reservation-loading__card strong { color: var(--reservation-error); }

@media (prefers-reduced-motion: reduce) {
    .reservation-loading__spinner { animation-duration: 2s; }
}

.reservation-options {
    display: grid;
    gap: 8px;
    max-height: 216px;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.reservation-options[hidden] { display: none; }

.reservation-option {
    display: grid;
    gap: 2px;
    padding: 10px 14px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.reservation-option strong { font-size: .84rem; font-weight: 750; }
.reservation-option span { color: var(--muted); font-size: .76rem; }
.reservation-option:hover { transform: translateY(-1px); border-color: var(--accent); }
.reservation-option.is-active { border-color: var(--accent); background: var(--accent-muted); }
.reservation-option:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.map-options { position: absolute; inset: 0; pointer-events: none; }

.map-option {
    position: absolute;
    left: var(--option-x);
    top: var(--option-y);
    display: grid;
    width: max(var(--option-size), calc(var(--map-scale-inverse, 1) * 52px));
    aspect-ratio: 1;
    place-items: start center;
    padding: 0;
    border: calc(var(--map-scale-inverse, 1) * 2px) dashed var(--accent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .15s ease, border-color .15s ease;
}
.map-option:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.map-option.is-active { border-style: solid; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.map-option:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.map-option__badge {
    display: grid;
    min-width: calc(var(--map-scale-inverse, 1) * 18px);
    min-height: calc(var(--map-scale-inverse, 1) * 18px);
    place-items: center;
    color: var(--on-accent);
    border-radius: 999px;
    background: var(--accent);
    font-size: calc(var(--map-scale-inverse, 1) * 11px);
    font-weight: 800;
    transform: translateY(-55%);
}

.reservation-picker__inline { flex-wrap: wrap; }
.reservation-picker__inline select { flex: 1 1 180px; min-width: 0; }
.reservation-picker__inline input { flex: 1 1 140px; min-width: 0; }
.reservation-picker__inline input[hidden] { display: none; }

.reservation-chosen {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--accent-muted);
}
.reservation-chosen[hidden] { display: none; }
.reservation-chosen__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 132px;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.reservation-chosen__total { margin: 0; color: var(--accent-ink); font-size: .86rem; font-weight: 800; }

.reservation-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 14px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    font-size: .8rem;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.reservation-chip strong { font-weight: 750; }
.reservation-chip span { color: var(--muted); font-size: .74rem; }
.reservation-chip i {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--muted);
    border-radius: 50%;
    background: var(--surface);
    font-size: .9rem;
    font-style: normal;
    line-height: 1;
}
.reservation-chip:hover { transform: translateY(-1px); border-color: var(--danger); }
.reservation-chip:hover i { color: var(--danger); }
.reservation-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
