/* Booking plan: one look for guests and staff. Warm materials, quiet chrome, the room in the spotlight. */
.booking, .panorama-public {
    --espresso: #2b2118; --ink: #3a2d22; --soft-ink: #75644f; --paper: #f6f1e9; --card: #fffdf9; --line: #e6dccd;
    --gold: #c3923f; --gold-soft: #f1dfba; --free: #5e8f6c; --free-soft: #dcebdf; --taken: #9c8f80; --radius: 18px;
    --shadow: 0 24px 60px -28px #3b281566, 0 2px 8px #3b28150f;
}
.booking [hidden] { display: none !important; }
.booking { color: var(--ink); font-family: inherit; }
.booking .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.booking .button.primary { background: var(--espresso); color: #fbf3e4; box-shadow: 0 10px 24px -12px #2b2118aa; }
.booking .button.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px #2b2118cc; }
.booking .button.primary:disabled { opacity: .6; transform: none; cursor: progress; }
.booking .button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.booking .text-button { border: 0; background: none; color: var(--soft-ink); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }
.booking .eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.booking .muted { color: var(--soft-ink); }
.booking button:focus-visible, .booking input:focus-visible, .booking textarea:focus-visible, .booking .floor-table:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Service bar */
.booking-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-times { grid-column: 1 / -1; }
.booking-label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-ink); }
.booking-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 10px; }
.booking-dates .booking-label { grid-column: 1 / -1; }
.date-strip, .time-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.date-strip::-webkit-scrollbar, .time-strip::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 auto; display: grid; gap: 3px; min-width: 66px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; scroll-snap-align: start; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.date-chip span { font-size: 11px; text-transform: capitalize; color: var(--soft-ink); }
.date-chip strong { font-size: 14px; white-space: nowrap; }
.date-chip:hover { border-color: var(--gold); }
.date-chip[aria-checked="true"] { background: var(--espresso); border-color: var(--espresso); color: #fbf3e4; box-shadow: 0 8px 18px -10px #2b2118; }
.date-chip[aria-checked="true"] span { color: var(--gold-soft); }
.date-other input { height: 52px; padding: 0 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; cursor: pointer; transition: background .2s; }
.stepper button:hover:not(:disabled) { background: var(--gold-soft); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 112px; text-align: center; font-weight: 600; }
.time-strip { flex-wrap: wrap; overflow: visible; gap: 14px 22px; }
.time-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.time-service { width: 100%; font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: var(--soft-ink); font-size: 14px; }
.time-chip { position: relative; min-width: 70px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.time-chip:hover:not(:disabled):not([aria-checked="true"]) { border-color: var(--free); color: var(--free); }
.time-chip[aria-checked="true"] { background: var(--free); border-color: var(--free); color: #fff; box-shadow: 0 8px 18px -10px var(--free); }
.time-chip.is-full { color: var(--taken); background: #f4efe8; text-decoration: line-through; }
.time-chip.is-full small { position: absolute; inset: auto 0 -16px; font-size: 10px; text-decoration: none; font-weight: 400; }
.time-chip:disabled { cursor: not-allowed; }
.strip-empty { margin: 0; color: var(--soft-ink); }

/* Stage */
.booking-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.plan-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.room-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.room-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--soft-ink); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.room-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.room-free { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: var(--free-soft); color: var(--free); font-size: 12px; }
.plan-hint { margin: 0; font-size: 13px; color: var(--soft-ink); }
.plan-stage { position: relative; height: clamp(380px, 64vh, 720px); background: radial-gradient(120% 90% at 30% 10%, #fbf6ec 0%, #ece3d4 70%, #e2d6c3 100%); overflow: hidden; }
#booking-canvas { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; animation: plan-in .7s cubic-bezier(.2, .8, .2, 1); }
#booking-canvas.is-panning { cursor: grabbing; }
@keyframes plan-in { from { opacity: 0; transform: scale(.985); } }

/* Tables: state is read at a glance, materials stay visible */
.booking .floor-table { cursor: pointer; outline: none; }
.booking .table-body { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .45s, filter .45s; }
.booking .table-halo { fill: transparent; stroke: transparent; stroke-width: 3; vector-effect: non-scaling-stroke; transition: fill .4s, stroke .4s; }
.booking .floor-table.is-available .table-halo { fill: var(--free); fill-opacity: .12; stroke: var(--free); animation: breathe 3.2s ease-in-out infinite; }
.booking .floor-table.is-booked .table-body { opacity: .38; filter: grayscale(.9); }
.booking .floor-table.is-booked { cursor: not-allowed; }
.booking.is-staff .floor-table.is-booked { cursor: pointer; }
.booking.is-staff .floor-table.is-booked .table-halo { fill: #9c8f8018; stroke: #9c8f80; stroke-dasharray: 6 5; }
.booking .floor-table.is-capacity .table-body { opacity: .5; filter: saturate(.35); }
.booking .floor-table.is-capacity { cursor: help; }
.booking .floor-table.is-selected .table-halo, .booking.is-staff .floor-table.is-selected .table-halo { fill: var(--select-color, var(--gold)); fill-opacity: calc(var(--halo-strength, .7) * .45); stroke: var(--select-color, var(--gold)); stroke-width: calc(2px + var(--halo-strength, .7) * 4px); stroke-dasharray: none; animation: glow var(--halo-speed, 1.8s) ease-in-out infinite; }
.booking .floor-table.is-selected .table-body { transform: scale(1.06); filter: drop-shadow(0 14px 16px #3b281566); opacity: 1; }
@media (hover: hover) {
    .booking:not(.no-hover) .floor-table.is-available:hover .table-body, .booking:not(.no-hover) .floor-table.is-idle:hover .table-body { transform: scale(1.045); filter: drop-shadow(0 12px 14px #3b28154d); }
    .booking:not(.no-hover) .floor-table.is-available:hover .table-halo { fill-opacity: .22; animation: none; }
}
@keyframes breathe { 50% { fill-opacity: .04; stroke-opacity: .45; } }
@keyframes glow { 50% { stroke-opacity: .55; fill-opacity: .15; } }
.booking .room-opening, .booking .plan-decor { cursor: inherit; }
.booking .room-opening.has-view { cursor: zoom-in; }
.booking .room-opening .opening-hit { fill: transparent; }
@media (prefers-reduced-motion: reduce) { .booking *, #booking-canvas { animation: none !important; transition: none !important; } }

.plan-zoom { position: absolute; top: 14px; right: 14px; display: grid; gap: 6px; }
.plan-zoom button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fffdf9e6; color: var(--ink); font-size: 18px; box-shadow: 0 6px 16px -8px #3b281588; cursor: pointer; backdrop-filter: blur(6px); }
.plan-zoom button:hover { background: #fff; }
.plan-legend { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 9px 14px; list-style: none; border-radius: 999px; background: #fffdf9d9; font-size: 12px; color: var(--soft-ink); box-shadow: 0 6px 16px -10px #3b281588; backdrop-filter: blur(6px); }
.plan-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid; }
.dot.available { border-color: var(--free); background: var(--free-soft); }
.dot.booked { border-color: var(--taken); background: #d6cfc6; }
.dot.capacity { border-color: #c9bca9; background: #efe8de; }
.dot.selected { border-color: var(--gold); background: var(--gold-soft); }
.plan-toast { position: absolute; left: 50%; bottom: 64px; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 11px 18px; border-radius: 999px; background: var(--espresso); color: #fbf3e4; font-size: 14px; box-shadow: 0 12px 30px -12px #000a; animation: toast-in .3s ease; transition: opacity .3s; text-align: center; }
.plan-toast.is-out { opacity: 0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Contextual sheet */
.table-sheet { position: sticky; top: 20px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sheet-empty { text-align: center; padding: 26px 6px; }
.sheet-emblem { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 22px; }
.sheet-empty h2, .sheet-table h2, .booking-done h2 { margin: 0 0 8px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 26px; color: var(--espresso); }
.sheet-empty p { margin: 0; color: var(--soft-ink); font-size: 14px; }
.sheet-table { position: relative; animation: sheet-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); } }
.sheet-close { position: absolute; top: -8px; right: -8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; cursor: pointer; }
.sheet-facts { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; font-size: 14px; }
.sheet-facts li { display: flex; gap: 10px; align-items: baseline; }
.sheet-facts li > span:first-child { color: var(--gold); width: 16px; text-align: center; }
.sheet-facts li > span:last-child::first-letter { text-transform: uppercase; }
.sheet-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: var(--ink); }
.sheet-occupant { margin-bottom: 16px; padding: 14px; border-radius: 12px; background: #f4efe8; border-left: 3px solid var(--taken); font-size: 13px; }
.sheet-occupant p, .sheet-occupant strong { display: block; margin: 0 0 4px; }
.sheet-cta { width: 100%; }
.booking-form { display: grid; gap: 12px; margin-top: 6px; animation: sheet-in .35s ease; }
.booking-form h3 { margin: 6px 0 0; font-size: 15px; }
.float-field { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--soft-ink); }
.float-field input, .float-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit; font-weight: 400; font-size: 16px; line-height: 1.3; transition: border-color .2s, box-shadow .2s; }
.float-field input:focus, .float-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #c3923f2e; outline: none; }
.source-choice { display: flex; gap: 8px; }
.source-choice label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; }
.source-choice label:has(input:checked) { border-color: var(--espresso); background: var(--paper); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { margin: 0; font-size: 12px; color: var(--soft-ink); }
.form-fine a { color: inherit; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fbe9e5; color: #8d2f22; font-size: 14px; }

/* Confirmation */
.booking-done { width: min(460px, calc(100% - 32px)); padding: 34px 30px 28px; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 40px 90px -30px #000a; }
.booking-done[open] { animation: done-in .45s cubic-bezier(.2, .8, .2, 1); }
.booking-done::backdrop { background: #1d150fb8; backdrop-filter: blur(3px); }
@keyframes done-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.done-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--free); color: #fff; font-size: 30px; box-shadow: 0 0 0 8px var(--free-soft); }
.done-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); text-align: left; }
.done-facts div { padding: 12px 14px; background: #fff; }
.done-facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft-ink); }
.done-facts dd { margin: 3px 0 0; font-weight: 600; }
.done-facts dd::first-letter { text-transform: uppercase; }
.done-reference { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: .08em; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--free-soft); color: var(--free); font-size: 13px; }
.booking-view { width: min(1000px, calc(100% - 24px)); padding: 12px; border: 0; border-radius: 18px; background: var(--card); text-align: right; }
.booking-view::backdrop { background: #1d150fd0; }
.booking-view img { display: block; width: 100%; max-height: 78vh; object-fit: contain; margin-bottom: 10px; border-radius: 10px; }

/* Staff day list */
.day-list { margin-top: 20px; padding: 20px 22px; }
.day-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.day-list-head h2 { margin: 0; font-size: 18px; }
.day-table-wrap { overflow-x: auto; }
.day-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.day-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft-ink); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.day-table td { padding: 10px; border-bottom: 1px solid #f0e9df; white-space: nowrap; }
.day-table tbody tr { cursor: pointer; transition: background .15s; }
.day-table tbody tr:hover, .day-table tr.is-current { background: #fbf4e6; }

/* Guest page */
.panorama-public { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.public-hero { position: relative; min-height: 300px; display: grid; align-items: end; padding: 0 20px 110px; color: #fbf3e4; background: linear-gradient(180deg, #1b130d33 0%, #1b130d99 45%, #1b130dee 100%), var(--hero) center 35% / cover no-repeat, #2b2118; }
.public-hero-inner { width: min(1240px, 100%); margin: 0 auto; animation: hero-in .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }
.public-brand { display: inline-block; margin-bottom: 18px; color: var(--gold-soft); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.public-hero h1 { text-shadow: 0 2px 18px #0008; margin: 0 0 8px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.public-hero p { max-width: 560px; margin: 0; font-size: 16px; color: #f1e6d3; }
.public-main { width: min(1240px, calc(100% - 32px)); margin: -84px auto 0; position: relative; }
.public-footer { padding: 36px 16px; text-align: center; font-size: 13px; color: var(--soft-ink); }
.public-footer a { color: inherit; }

@media (max-width: 960px) { .booking-stage { grid-template-columns: minmax(0, 1fr) 300px; } }
/* The staff workspace keeps a sidebar: below this width the sheet sits under the plan. */
@media (min-width: 761px) and (max-width: 1180px) { .booking.is-staff .booking-stage { grid-template-columns: minmax(0, 1fr); } .booking.is-staff .table-sheet { position: static; } }
@media (max-width: 760px) {
    .booking-bar { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 16px; }
    .booking-dates { grid-template-columns: minmax(0, 1fr); }
    .date-other { display: none; }
    .booking-party { justify-self: start; }
    .time-strip { flex-wrap: nowrap; overflow-x: auto; }
    .time-group { flex-wrap: nowrap; }
    .time-service { width: auto; margin-right: 2px; white-space: nowrap; }
    .booking-stage { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
    .plan-stage { height: 62vh; min-height: 340px; }
    .plan-head { padding: 12px 14px; }
    .plan-legend { right: 64px; border-radius: 14px; gap: 4px 10px; font-size: 11px; }
    /* On phones the sheet becomes a bottom sheet that rises over the plan. */
    .table-sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; box-shadow: 0 -20px 50px -20px #3b281599; }
    .booking.has-selection .table-sheet { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
    .table-sheet::before { content: ''; display: block; width: 44px; height: 4px; margin: -8px auto 14px; border-radius: 4px; background: var(--line); }
    .sheet-empty { display: none; }
    .sheet-close { top: 0; right: 0; }
    .public-hero { min-height: 230px; padding-bottom: 90px; }
    .public-main { width: calc(100% - 20px); margin-top: -70px; }
    .done-facts { grid-template-columns: 1fr; }
}

/* Staff operations: blocks, edits, dialogs, occupancy timeline */
.block-open { min-height: 38px !important; padding: 0 16px !important; font-size: 13px !important; margin-left: auto; }
.dot.blocked { border-color: #a35d5d; background: repeating-linear-gradient(45deg, #f3dede 0 3px, #fff 3px 6px); }
.booking .floor-table.is-blocked .table-body { opacity: .4; filter: grayscale(1); }
.booking .floor-table.is-blocked .table-halo { fill: #a35d5d14; stroke: #a35d5d; stroke-dasharray: 3 6; }
.booking.is-staff .floor-table.is-blocked { cursor: pointer; }
.sheet-occupant.is-block { border-left-color: #a35d5d; background: #f8eeee; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.booking .button.danger-button { color: #9b3428; border-color: #ecc9c2; }
.booking .button.danger-button:hover { background: #fbebe8; }
#remove-block { width: 100%; margin-bottom: 12px; }
.edit-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff4dc; border: 1px solid var(--gold-soft); font-size: 13px; }
.edit-banner .text-button { display: block; margin-top: 4px; }
.booking-dialog { width: min(520px, calc(100% - 32px)); padding: 26px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 40px 90px -30px #000a; }
.booking-dialog::backdrop { background: #1d150fb0; backdrop-filter: blur(2px); }
.booking-dialog h2 { margin: 0 0 6px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 24px; color: var(--espresso); }
.booking-dialog form { display: grid; gap: 14px; }
.booking-dialog .muted { margin: 0; font-size: 13px; }
.block-scope { flex-wrap: wrap; }
.block-scope label { min-width: 120px; }
.block-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
#booking-confirm p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.view-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); }
.view-switch button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--soft-ink); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.view-switch button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #3b28151f; }
.day-table tr.is-block td { color: #8a4a44; font-style: italic; }
.timeline { overflow-x: auto; font-size: 12px; }
.timeline-row { display: grid; grid-template-columns: 64px minmax(560px, 1fr); align-items: center; min-height: 34px; border-bottom: 1px solid #f2ece3; }
.timeline-head { min-height: 26px; border-bottom: 1px solid var(--line); }
.timeline-label { padding-right: 10px; font-weight: 700; color: var(--ink); text-align: right; }
.timeline-track { position: relative; height: 100%; min-height: 26px; }
.timeline-hour { position: absolute; top: 4px; transform: translateX(-50%); color: var(--soft-ink); font-size: 11px; }
.timeline-room { padding: 12px 0 4px 74px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: var(--soft-ink); font-size: 14px; }
.timeline-bar { position: absolute; top: 4px; bottom: 4px; min-width: 6px; overflow: hidden; padding: 0 8px; border: 0; border-radius: 8px; background: linear-gradient(180deg, #6f9b7a, #5e8f6c); color: #fff; font-family: inherit; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 2px 6px -2px #2b211855; transition: transform .15s, box-shadow .15s; }
.timeline-bar:hover, .timeline-bar:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 12px -4px #2b211888; }
.timeline-bar.is-current { outline: 2px solid var(--gold); outline-offset: 1px; }
.timeline-bar.is-block { background: repeating-linear-gradient(45deg, #b77a74 0 6px, #a35d5d 6px 12px); }
.timeline-cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); opacity: .7; }
@media (max-width: 760px) { .block-grid { grid-template-columns: 1fr 1fr; } .sheet-actions { grid-template-columns: 1fr; } }

/* Premium finishing: light, focus, reveal, motion and touch comfort */
.booking[aria-busy="true"] .plan-stage::before { content: ''; position: absolute; z-index: 3; top: 0; left: 0; height: 3px; width: 35%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: loading-sweep 1.1s ease-in-out infinite; }
@keyframes loading-sweep { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.booking .window-light { opacity: var(--daylight, .9); transition: opacity .6s ease; }
#booking-canvas { transition: opacity .35s ease; }
#booking-canvas.is-entering { opacity: 0; transition: none; }
.booking .floor-table { transition: opacity .4s ease; }
.booking.has-selection:not(.no-dim) .floor-table:not(.is-selected) { opacity: .72; }
#booking-canvas.is-reveal .floor-table.is-available .table-body { animation: table-rise .55s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 45ms) both; }
@keyframes table-rise { from { opacity: .35; transform: scale(.94); } }
.booking .floor-table.is-changed .table-halo { animation: changed 1.5s ease-out; }
@keyframes changed { 0%, 40% { stroke: var(--gold); stroke-width: 8; stroke-opacity: 1; } }
/* While the plan moves, costly shadows and pulses pause so panning stays fluid on phones. */
#booking-canvas.is-panning .table-body, #booking-canvas.is-panning .chair-photo, #booking-canvas.is-panning .decor-object, #booking-canvas.is-panning .room-wall { filter: none !important; }
#booking-canvas.is-panning * { animation-play-state: paused !important; transition: none !important; }
.plan-context { position: absolute; top: 14px; left: 14px; z-index: 2; max-width: calc(100% - 90px); margin: 0; padding: 8px 14px; border-radius: 999px; background: #2b2118d9; color: #fbf3e4; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -10px #000a; backdrop-filter: blur(6px); pointer-events: none; animation: context-in .4s ease; }
@keyframes context-in { from { opacity: 0; transform: translateY(-6px); } }
.plan-context::first-letter { text-transform: uppercase; }
.plan-tip { position: absolute; z-index: 4; display: grid; gap: 2px; min-width: 150px; padding: 9px 13px; border-radius: 12px; background: #fffdf9f2; color: var(--ink); font-size: 12px; box-shadow: 0 14px 30px -14px #2b2118aa; border-left: 3px solid var(--line); pointer-events: none; backdrop-filter: blur(6px); }
.plan-tip strong { font-size: 13px; }
.plan-tip[data-state="available"] { border-left-color: var(--free); }
.plan-tip[data-state="booked"], .plan-tip[data-state="blocked"] { border-left-color: var(--taken); }
.plan-tip[data-state="capacity"] { border-left-color: #c9bca9; }
@media (max-width: 760px) {
    .plan-context { top: 10px; left: 10px; font-size: 12px; padding: 7px 12px; }
    .table-sheet { touch-action: pan-y; }
}

/* Views from the windows and viewing angle */
.booking .room-opening.has-view { animation: view-glow 2.8s ease-in-out infinite; }
@keyframes view-glow { 50% { filter: drop-shadow(0 0 7px #c3923fcc); } }
.view-peek { position: absolute; z-index: 3; right: 14px; bottom: 62px; display: flex; align-items: center; gap: 10px; width: 250px; padding: 6px 12px 6px 6px; border: 0; border-radius: 16px; background: #fffdf9f0; color: var(--ink); font: inherit; text-align: left; cursor: zoom-in; box-shadow: 0 18px 40px -16px #2b2118aa; backdrop-filter: blur(6px); opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.view-peek.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.view-peek img { width: 84px; height: 60px; object-fit: cover; border-radius: 11px; flex: none; }
.view-peek span { display: grid; gap: 2px; min-width: 0; }
.view-peek small { font-size: 11px; color: var(--soft-ink); }
.view-peek strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-view { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; overflow: hidden; border: 0; border-radius: 14px; cursor: zoom-in; box-shadow: 0 12px 26px -16px #2b2118aa; }
.sheet-view img { display: block; width: 100%; height: 132px; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.sheet-view:hover img { transform: scale(1.04); }
.sheet-view span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; background: linear-gradient(180deg, transparent, #1b130dcc); color: #fbf3e4; font-size: 12px; font-weight: 600; text-align: left; }
.booking-view-caption { margin: 0 0 10px; text-align: left; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; color: var(--espresso); }
.plan-zoom .zoom-gap { height: 4px; }
.plan-zoom .angle-toggle { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.plan-zoom .angle-toggle[aria-pressed="true"] { background: var(--espresso); color: #fbf3e4; }
.plan-stage { perspective: 1700px; perspective-origin: 50% 35%; }
#booking-canvas { transform-origin: 50% 55%; transition: opacity .35s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.plan-stage.is-angled { background: linear-gradient(180deg, #e7dccb 0%, #f3ece1 38%, #e9dfcf 100%); }
.plan-stage.is-angled .room-wall { stroke-width: 18; }
@media (max-width: 760px) { .view-peek { width: 210px; bottom: 70px; } .view-peek img { width: 70px; height: 52px; } }
.booking .room-shade { fill: #3a2614; opacity: .1; pointer-events: none; }
.plan-stage.is-angled #booking-canvas { overflow: visible; }
.plan-stage { touch-action: none; cursor: grab; }

/* Identity of the establishment: walls, table finish and service light come from its published theme. */
.booking .room-wall { stroke: var(--wall-color, #948775); }
.booking .ref-wall { stroke: var(--wall-color, #a9977c); }
.booking .table-outline { fill: var(--table-fill, url(#table-wood)); }
.booking .ambience rect { transition: opacity .8s ease, fill .8s ease; }
/* While the server confirms, the chosen table waits with a turning outline; once confirmed it gives a short burst. */
.booking .floor-table.is-pending .table-halo { stroke-dasharray: 10 8; animation: pending-turn 1s linear infinite; }
@keyframes pending-turn { to { stroke-dashoffset: -36; } }
.booking .floor-table.is-confirmed .table-halo { animation: confirmed 1.6s cubic-bezier(.2, .8, .2, 1); }
@keyframes confirmed { 0% { stroke: var(--free); stroke-width: 14px; stroke-opacity: 1; fill: var(--free); fill-opacity: .45; } 100% { stroke-width: 3px; stroke-opacity: 0; fill-opacity: 0; } }

/* Parametric furniture models */
.model-shadow { filter: drop-shadow(3px 6px 4px #33211355); }
.chair-model { filter: drop-shadow(1px 3px 2px #33211344); }
.library-model { width: 100%; height: 135px; background: #eee8dc; border-radius: 5px; }

.demo-banner { max-width: 1100px; margin: 0 auto 14px; padding: 10px 14px; border: 1px solid #e0b56b; border-radius: 10px; background: #fbecd0; color: #5b3a0c; font-size: 14px; }

/* Immersive rendering (prototype): the realistic view replaces the drawing, the rest of the page is unchanged. */
.immersive-host { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #2c241d; }
.plan-stage.is-immersive #booking-canvas, .plan-stage.is-immersive .angle-toggle, .plan-stage.is-immersive [data-turn], .plan-stage.is-immersive .zoom-gap { display: none; }
.plan-stage.is-immersive .plan-zoom, .plan-stage.is-immersive .plan-legend, .plan-stage.is-immersive .plan-tip { z-index: 2; }
.render-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #ece5dc; }
.render-switch[hidden] { display: none; }
.render-switch button { border: 0; border-radius: 999px; padding: 5px 12px; background: transparent; color: #5c4d3f; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.render-switch button[aria-pressed="true"] { background: #fff; color: #2b2118; box-shadow: 0 1px 3px #0000001f; }

.sheet-immersive { width: 100%; margin: 10px 0 4px; }

.booking .ref-wall { stroke: var(--wall-color, #a9977c); }
