@import '../../styles/booking-row.css';

/* One progress value keeps the sheet, navigation and map controls on the same
   gesture. The SDK retains its full viewport geometry throughout the morph. */
@property --booking-map-progress { syntax:'<number>'; inherits:true; initial-value:0; }
.booking-map-open { --sm-navbar-bottom:calc(var(--booking-map-nav-height,72px) * (1 - var(--booking-map-progress))); }
.booking-map-open #main-navbar { translate:0 calc(-100% * var(--booking-map-progress)); }
/* The glass surface's two 1px borders can extend beyond the nav's own box. */
.booking-map-open #mobile-bottom-nav { translate:0 calc((100% + var(--sm-bottom-nav-offset,0px) + 2px) * var(--booking-map-progress)); }
.booking-map-open #main-navbar,.booking-map-open #mobile-bottom-nav { will-change:translate; }
.booking-page .main-content:is(.booking-map-browsing,.booking-map-morph) { --booking-map-strip-inset:max(24px,calc((100vw - min(80vw,620px))/2)); --booking-map-card-cap:var(--booking-hero-edge-height,var(--sm-hero-edge-height,40px)); --booking-map-bottom-gap:16px; isolation:isolate; }
.booking-page .hero-section:is(.hero-map-mode,.hero-map-morph):not(.hero-photo-mode)::after { opacity:0; }
.booking-page .hero-section.hero-map-mode:not(.hero-photo-mode) { overflow:visible; }
.booking-page .hero-section:is(.hero-map-mode,.hero-map-morph):not(.hero-photo-mode) > .booking-map-shell { height:var(--booking-map-viewport-height,100dvh); bottom:auto; }
.booking-map-open .booking-map-shell .booking-map-toolbar { top:calc(var(--booking-map-nav-height,96px) * (1 - var(--booking-map-progress)) + 16px + env(safe-area-inset-top,0px) * var(--booking-map-progress)); }
@media(max-width:600px) { .booking-map-open .booking-map-shell .booking-map-toolbar { top:calc(var(--booking-map-nav-height,72px) * (1 - var(--booking-map-progress)) + 12px + env(safe-area-inset-top,0px) * var(--booking-map-progress)); } }

.booking-map-open { overscroll-behavior:none; }
.booking-map-open #footer-container,.booking-map-open footer { visibility:hidden; }
.booking-page .main-content.booking-map-browsing { position:fixed; z-index:5; inset:var(--booking-map-height,70dvh) 0 auto; height:calc(120px + var(--booking-map-card-cap) + 16px + env(safe-area-inset-bottom,0px)); min-height:0; margin:0; padding:0; overflow:visible; touch-action:pan-x; overscroll-behavior:none; background:transparent; }
.booking-page .main-content.is-map-dragging { touch-action:pan-x; }
.booking-page .main-content.booking-map-browsing > .container { display:none!important; }
/* Scale the retained booking content into the widening frame. No screenshot or
   horizontal clipping substitutes for the complete page layout. */
.booking-page .main-content.booking-map-morph { position:relative; z-index:5; background:transparent; opacity:1; transition:none; overflow:visible; }
.booking-map-morph > .booking-map-selection { position:absolute; inset:0 0 auto; height:calc(120px + var(--booking-map-card-cap) + 16px); pointer-events:none; }
.booking-map-morph > .booking-map-sheet-edge { pointer-events:none; }
.booking-map-morph > .container { pointer-events:none; transform-origin:center top; transform:translateY(calc(var(--booking-map-card-cap) * var(--booking-map-progress))) scale(calc(1 - (1 - var(--booking-map-list-scale-open, .8)) * var(--booking-map-progress))); will-change:transform,opacity; }
.booking-map-morph .booking-map-record.is-current { opacity:calc(var(--booking-map-progress) * var(--booking-map-progress)); }
.booking-map-morph .booking-map-selection-hint { opacity:calc(var(--booking-map-progress) * var(--booking-map-progress)); }
.booking-map-morph .booking-map-record:not(.is-current) { translate:calc(var(--map-record-side,0) * 60vw * (1 - var(--booking-map-progress)) * (1 - var(--booking-map-progress))) 0; }
.booking-map-shell .booking-map-canvas { position:absolute; z-index:0; top:0; bottom:0; height:100%; }
.hero-map-morph .booking-map-shell .booking-map-canvas { bottom:auto; height:var(--booking-map-viewport-height,100dvh); }
/* The geographic popup retires before the sheet reaches it, so it never reads
   as a second card protruding above the sheet's single gradient edge. */
.hero-map-morph .booking-map-marker.is-selected,
.hero-map-morph .booking-venue-preview.is-card > .booking-map-marker-card,
.hero-map-morph .booking-venue-preview.is-card::before,
.hero-map-morph .booking-venue-preview.is-card::after,
.hero-map-morph .booking-map-preview { opacity:clamp(0,calc((var(--booking-map-progress) - .75) * 4),1); transition:none; }
/* A concealed, inert SDK keeps its tiles and dimensions through detail visits. */
.booking-page .hero-section.hero-map-suspended > .booking-map-shell { display:block; position:absolute; inset:0 0 auto; height:var(--booking-map-viewport-height,100dvh); visibility:hidden; pointer-events:none; }
:is(.booking-map-browsing,.booking-map-morph) .booking-map-collapse { position:absolute; z-index:4; top:50%; pointer-events:auto; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:48px; height:44px; min-height:44px; padding:0; border:0; color:var(--sm-text-muted,#bdc7c1); background:transparent; cursor:pointer; touch-action:none; transition:color 180ms ease; }
:is(.booking-map-browsing,.booking-map-morph) .booking-map-collapse > svg { width:18px; height:18px; }
:is(.booking-map-browsing,.booking-map-morph) .booking-map-collapse:hover { color:var(--sm-text,#fff); }
.booking-map-shell button:not(.btn,.sm-text-action):focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.booking-map-shell .booking-map-heading { grid-template-columns:auto; align-items:center; gap:0; padding:0; max-width:240px; border:0; box-shadow:none; background:transparent; backdrop-filter:none; }
.booking-map-shell .booking-map-title { font-size:13px; white-space:nowrap; }
.booking-map-shell .booking-map-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.booking-map-shell .booking-map-message { grid-column:1/-1; font-size:12px; }
.booking-map-shell .booking-map-actions { gap:6px; }
html body .booking-map-shell .booking-map-actions > button { width:44px; height:44px; min-width:44px; min-height:44px; padding:10px; border-radius:14px; color:#fff; background:rgba(22,26,25,.68); border:0; box-shadow:0 3px 14px #10181318; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); transition:background 180ms ease,box-shadow 180ms ease; }
.booking-map-shell .booking-map-actions > button:hover { background:rgba(22,26,25,.8); box-shadow:0 5px 16px #10181320; }
.booking-map-shell .booking-map-actions > button:disabled { opacity:.65; }
.booking-map-shell .booking-map-actions > button:focus-visible { outline:2px solid var(--sm-glass-focus,rgba(236,239,244,.8)); outline-offset:3px; }
.booking-map-close svg { width:20px; height:20px; }
.booking-map-shell .booking-map-preview { bottom:48px; width:min(var(--booking-map-card-width,224px),300px,calc(100vw - 40px)); padding:0; background:var(--sm-surface,#1a1a1a); border-radius:18px; overflow:hidden auto; box-shadow:0 12px 40px #0002; }

.booking-map-shell .booking-map-frame::after { display:none; }
.booking-map-sheet-edge[hidden] { display:none!important; }
/* At rest each carousel card owns the same edge; during vertical motion the
   shared edge takes over at identical bounds, including the empty state. */
.booking-map-sheet-edge { pointer-events:none; position:absolute; z-index:2; top:calc(var(--booking-map-card-cap) * (var(--booking-map-progress) - 1)); left:calc(var(--booking-map-strip-inset) * var(--booking-map-progress)); right:calc(var(--booking-map-strip-inset) * var(--booking-map-progress)); height:var(--booking-map-card-cap); background:var(--sm-surface); border-radius:var(--sm-sheet-radius,32px) var(--sm-sheet-radius,32px) 0 0; touch-action:none; }
.booking-map-browsing > .booking-map-sheet-edge { visibility:hidden; }
.booking-map-morph > .booking-map-sheet-edge { visibility:visible; }
.booking-map-sheet-edge .booking-map-collapse { color:#fff; opacity:var(--booking-map-progress); }

/* Each real venue overlay has a first-photo portrait and its activity title. */
.booking-map-marker { position:absolute; transform:translate(-50%,-50%); pointer-events:none; color:var(--sm-text,#fff); font-family:var(--spinmatch-font-family,sans-serif); text-align:left; transition:opacity 220ms ease,visibility 220ms; }
/* The whole photo + label is centered on the map point. Selected cards
   retain their geographic pointer and bottom anchor. */
.booking-map-marker.is-selected { transform:translate(-50%,-100%); }
.booking-map-marker [hidden] { display:none!important; }
.booking-map-marker > .booking-map-marker-card,.booking-map-pin > span { pointer-events:auto; }
.booking-map-marker > .booking-map-pin { pointer-events:auto; touch-action:manipulation; }
.booking-map-pin { position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; width:64px; padding:0; border:0; background:none; color:#17201b; cursor:pointer; transition:transform 280ms cubic-bezier(.22,.8,.25,1.2),filter 240ms ease; }
.booking-map-pin-photo { display:block; width:64px; height:64px; box-sizing:border-box; border:4px solid #fff; outline:3px solid #47d69e; border-radius:50%; background:#f4f4e9 var(--card-bg-image,url('/assets/images/content-placeholder.svg')) center/cover; box-shadow:0 5px 18px #12332330; }
.booking-map-pin-title { display:block; flex-shrink:0; width:max-content; max-width:140px; padding:8px 12px; border-radius:11px; background:#fff; box-shadow:0 4px 14px #18382918; font-size:13px; font-weight:600; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.booking-map-pin:hover { transform:translateY(-4px) scale(1.035); }
.booking-map-pin-count { position:absolute; top:-5px; right:25px; min-width:20px; height:20px; padding:0 4px; border:2px solid white; border-radius:12px; background:#1a9c71; color:white; font:600 10px/16px sans-serif; text-align:center; }
.booking-map-marker-card { position:relative; width:min(var(--booking-map-card-width,224px),300px,calc(100vw - 40px)); max-height:clamp(170px,calc(var(--booking-hero-height,70dvh) - var(--sm-navbar-bottom,72px) - 190px),360px); margin-bottom:26px; overflow:auto; border-radius:18px; background:var(--sm-surface,#1a1a1a); box-shadow:0 14px 35px #0003; transform-origin:50% 100%; overscroll-behavior:contain; }
.booking-map-marker.is-deselecting .booking-map-marker-card { position:absolute; bottom:50%; left:50%; translate:-50% 0; }
/* 26 - 5√2 (rotated tip) - 9 (outlined dot radius) leaves a 9.93px air gap. */
:is(.booking-map-marker,.booking-venue-preview.is-card).is-selected::after { content:''; display:block; width:10px; height:10px; background:var(--sm-surface,#1a1a1a); position:absolute; left:calc(50% - 5px); bottom:21px; transform:rotate(45deg); }
:is(.booking-map-marker,.booking-venue-preview.is-card).is-selected::before { content:''; position:absolute; bottom:-9px; left:calc(50% - 9px); box-sizing:content-box; width:12px; height:12px; border:3px solid #fff; border-radius:50%; background:#2dc78e; box-shadow:0 3px 10px #0003; }
.booking-map-marker .booking-map-unselect { position:absolute;top:0;right:4px;z-index:3;color:#fff; }
.booking-map-unselect::before { content:"";position:absolute;inset:10px;border-radius:9px;background:rgba(12,20,18,.2);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:-1; }
.booking-map-unselect svg { width:18px; height:18px; }
/* Reuse the actual booking card component, including its two-column facts. */
.booking-map-card-grid { display:grid; gap:4px; min-height:0; }
.booking-map-card-grid.is-multiple { display:flex; gap:0; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior:contain; touch-action:pan-x; scrollbar-width:thin; scrollbar-color:rgba(var(--sm-ink-rgb,255,255,255),.25) transparent; }
.booking-map-card-grid.is-multiple > .booking-card { flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.booking-map-card-grid.booking-grid .booking-card.booking-card { position:relative; width:100%; margin:0; border-radius:0; }
.booking-map-card-grid.booking-grid .booking-card .booking-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.booking-map-card-grid.booking-grid .booking-card .booking-description { -webkit-line-clamp:3; }
.booking-map-card-grid.booking-grid .booking-card .location-item span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.booking-map-card-grid .booking-card:focus-visible { outline:2px solid currentColor; outline-offset:-3px; }

.booking-map-selection[hidden] { display:none!important; }
.booking-map-selection { width:min(100%,1160px); height:100%; overflow:hidden; margin:0 auto; padding:4px clamp(16px,4vw,32px) env(safe-area-inset-bottom,0px); color:var(--sm-text); }
.booking-map-selection button:focus-visible { outline:2px solid var(--primary-color,#ee4852); outline-offset:4px; border-radius:5px; }
.booking-map-selection-hint { position:relative; isolation:isolate; display:flex; align-items:center; justify-content:center; gap:12px; height:120px; max-width:none; margin:0 auto; padding:12px 16px; border-radius:20px; background:var(--sm-surface,#1a1a1a); }
.booking-map-selection-hint > .xiaoping-slot { flex:0 0 74px; min-height:67px; }
.booking-map-selection-hint .xp-touch { width:74px; }
.booking-map-selection-hint p { margin:0; max-width:250px; font-size:13px; line-height:1.6; text-align:left; color:var(--sm-text-muted); }
.booking-map-morph .booking-map-selection-hint { background:transparent; }
.booking-map-record.sm-booking-row { height:112px; min-height:112px; padding:8px 0; border:0; border-radius:0; background:none; color:var(--sm-text); text-align:left; font-family:inherit; cursor:pointer; }
.booking-map-record-cover { display:block; width:100%; height:100%; border-radius:inherit; background-image:var(--card-bg-image,url('/assets/images/content-placeholder.svg')); background-size:cover; background-position:center; }
/* Public halls and clubs form a separate, restrained layer. Booking photo pins
   and their existing cards retain their size and interaction above this layer. */
.booking-venue-controls { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:0; min-width:0; font-size:11px; line-height:1.4; }
.booking-venue-controls > button { padding:5px 9px; border:0; border-radius:10px; color:inherit; background:rgba(var(--sm-ink-rgb,255,255,255),.08); font:inherit; cursor:pointer; min-height:30px; transition:background 180ms ease,color 180ms ease; }
.booking-venue-status { color:var(--sm-text-muted,#bcc3ca); }
.booking-venue-marker { position:absolute; display:grid; place-items:center; width:54px; height:54px; min-height:54px; padding:12px; transform:translate(-50%,-50%); border:0; border-radius:50%; background:#fff; color:#39796b; box-shadow:0 4px 16px #14342730; font-size:25px; transition:opacity 220ms ease,visibility 220ms; pointer-events:auto; cursor:pointer; touch-action:manipulation; z-index:0; }
.booking-map-marker { z-index:1; }
.booking-venue-marker > i { display:block; }
.booking-venue-marker.is-cluster { width:36px; height:36px; font:600 12px/1 sans-serif; background:#39796b; color:white; }
.booking-venue-marker:focus-visible { outline:3px solid #ee4852; outline-offset:2px; }
.booking-venue-preview { position:absolute; z-index:6; left:50%; bottom:42px; transform:translateX(-50%); width:min(300px,calc(100vw - 32px)); padding:16px; border-radius:16px; color:var(--sm-text,#fff); background:var(--sm-surface,#1a1a1a); box-shadow:0 8px 24px #0002; font:13px/1.5 var(--spinmatch-font-family,sans-serif); max-height:calc(100% - 190px); overflow:auto; overscroll-behavior:contain; }
.booking-venue-preview[hidden],.booking-venue-attribution[hidden] { display:none!important; }
.booking-venue-preview strong { display:block; padding-right:32px; font-size:16px; overflow-wrap:anywhere; }
.booking-venue-preview p { margin:7px 0; color:var(--sm-text-muted); overflow-wrap:anywhere; }
.booking-venue-kind { display:block; color:var(--sm-text-muted); font-size:11px; }
.booking-venue-close { position:absolute; right:2px; top:2px; font-size:24px; }
.booking-venue-links { display:flex; gap:18px; margin-top:10px; }
.booking-venue-links > a { color:var(--primary-color,#ee4852); text-decoration:none; }
.booking-venue-attribution { position:absolute; z-index:2; bottom:calc(var(--booking-hero-edge-height,40px) + 6px); right:8px; max-width:calc(100% - 16px); padding:2px 5px; border-radius:4px; background:rgba(255,255,255,.88); color:#42544a; font:10px/1.4 sans-serif; pointer-events:auto; }
.booking-venue-list { display:grid; gap:6px; margin-top:10px; }
.booking-venue-list > button { padding:8px 0; text-align:left; background:transparent; border:0; color:inherit; font:inherit; cursor:pointer; overflow-wrap:anywhere; }
.booking-venue-attribution a { color:inherit; text-decoration:none; }
.booking-venue-sources { margin-left:6px; padding:0; border:0; color:inherit; background:transparent; font:inherit; cursor:pointer; }
.booking-venue-source { font-size:11px; overflow-wrap:anywhere; }
.booking-venue-source a { color:inherit; text-underline-offset:2px; }
.booking-venue-sources:focus-visible { outline:2px solid var(--primary-color,#ee4852); outline-offset:3px; }
@media(max-width:600px) {
 .booking-map-shell .booking-map-canvas { top:0; height:100%; }
 .hero-map-morph .booking-map-shell .booking-map-canvas { height:var(--booking-map-viewport-height,100dvh); }
}
@media(prefers-reduced-motion:reduce) {
 /* The shared tiny-duration fallback must not start a new transition after
    the map has already settled, or hide controls for successive frames. */
 html:has(body.booking-map-open), .booking-map-toolbar, .booking-map-toolbar * { transition:none!important; }
 .booking-map-pin,.booking-map-record,.booking-map-collapse,.booking-page .main-content.booking-map-browsing { transition:none; }
 .booking-map-marker-card,.booking-map-records { animation:none; }
 .booking-map-pin:hover,.booking-map-record:hover { transform:none; }
}

.booking-map-layer-switch { --sm-segment-track:rgba(22,26,25,.72); --sm-segment-fill:rgba(255,255,255,.18); display:flex; gap:4px; padding:4px; border-radius:16px; background:rgba(22,26,25,.7); color:#fff; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); touch-action:pan-y; }
.booking-map-layer-switch > button { min-width:64px; min-height:36px; padding:7px 15px; border:0; border-radius:12px; background:transparent; color:inherit; font:500 13px/1.4 var(--spinmatch-font-family,sans-serif); cursor:pointer; }
@media(max-width:360px) {
 .booking-map-layer-switch { gap:2px; }
 .booking-map-layer-switch > button { min-width:50px; padding-inline:10px; }
}
.booking-map-marker.is-layer-hidden,.booking-venue-marker.is-layer-hidden { opacity:0; visibility:hidden; pointer-events:none; }
.booking-map-marker.is-layer-hidden * { pointer-events:none; }
.booking-map-shell.is-detail-opening .booking-map-canvas,
.booking-map-shell.is-detail-opening .booking-map-canvas *,
.booking-map-shell.is-detail-opening :is(.booking-venue-preview,.booking-map-preview,.booking-venue-attribution) { visibility:hidden!important; pointer-events:none!important; }
.booking-player-marker .booking-map-pin-photo { object-fit:cover; }
.booking-map-position { position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:5px; pointer-events:none; z-index:2; }
.booking-map-position img { width:50px; height:50px; border:3px solid #d94750; border-radius:50%; object-fit:cover; background:#fff; box-shadow:0 3px 14px #0003; }
.booking-map-position span { padding:4px 8px; border-radius:8px; background:#fff; color:#a9343d; font:600 11px/1.4 var(--spinmatch-font-family,sans-serif); white-space:nowrap; }
.booking-venue-preview.is-card { width:min(var(--booking-map-card-width,224px),300px,calc(100vw - 40px)); left:var(--venue-anchor-x,50%); top:var(--venue-anchor-y,50%); bottom:auto; transform:translate(-50%,-100%); padding:0; border-radius:0; background:none; box-shadow:none; max-height:none; overflow:visible; }
.booking-venue-marker.is-previewed { opacity:0; visibility:hidden; pointer-events:none; }
.booking-grid .booking-venue-card.booking-card { isolation:isolate; }
.booking-venue-card-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.booking-grid .booking-venue-card.has-venue-photo { --sm-text:#f3f4f6; --sm-text-muted:#d0d3d8; }
.booking-venue-card-placeholder { position:absolute; right:16px; top:12px; color:var(--sm-text-muted); opacity:.15; font-size:50px; z-index:-1; }
.booking-venue-card-more { margin-left:auto; color:var(--sm-text-muted); font-size:11px; white-space:nowrap; }
.booking-venue-detail { width:100%; margin:0; color:var(--sm-text,#fff); }
.booking-venue-detail-open { --sm-hero-edge-height:var(--sm-return-row-height); }
.booking-venue-detail-open .booking-venue-detail:not(.is-picker-detail) { position:relative; margin:0; }
html body.booking-venue-detail-open.booking-detail-no-media #hero-container { display:none!important; }
html body.booking-venue-detail-open.booking-detail-no-media #main-content-container {
 margin-top:calc(var(--sm-navbar-bottom,72px) + 1px)!important; min-height:calc(100dvh - var(--sm-navbar-bottom,72px) - 1px);
}
.booking-venue-detail-open .booking-map-open-handle { display:none!important; }
.booking-venue-detail-open .main-content { padding-top:0; }
.booking-venue-detail-open #footer-container { display:none; }
.booking-venue-detail-nav { position:sticky; top:var(--sm-navbar-bottom,96px); z-index:55; display:flex; align-items:center; min-height:60px; width:100%; padding:8px max(16px,calc((100vw - 960px)/2)); box-sizing:border-box; background:var(--sm-sticky-surface); border:0; border-radius:0 0 14px 14px; }
.booking-venue-detail-back { display:flex; align-items:center; gap:10px; color:var(--sm-text-muted); }
.booking-venue-detail-body { width:min(100%,960px); margin:auto; padding:20px 16px max(110px,calc(90px + env(safe-area-inset-bottom))); box-sizing:border-box; }
.booking-venue-detail-body h1 { margin:10px 0 22px; font-size:clamp(24px,3vw,36px); font-weight:600; letter-spacing:-.025em; line-height:1.4; overflow-wrap:anywhere; }
.booking-venue-address { display:grid; grid-template-columns:18px minmax(0,1fr) 16px; align-items:baseline; gap:12px; width:100%; padding:0; border:0; background:none; color:var(--sm-text); font:inherit; line-height:1.7; text-align:left; cursor:pointer; }
.booking-venue-address i { font-size:14px; color:var(--sm-text-muted); }
.booking-venue-address span { overflow-wrap:anywhere; text-decoration:underline; text-decoration-color:var(--sm-line); text-underline-offset:4px; }
.booking-venue-address:hover span { text-decoration-color:currentColor; }
.booking-venue-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:28px 0; }
.booking-venue-fact { min-width:0; font-size:14px; line-height:1.7; }
.booking-venue-fact dt { display:flex; align-items:center; gap:10px; margin-bottom:7px; color:var(--sm-text-muted); }
.booking-venue-fact dt i { width:18px; font-size:13px; }
.booking-venue-fact dd { margin:0; white-space:pre-line; overflow-wrap:anywhere; }
.booking-venue-facilities { padding:8px 0; }
.booking-venue-facilities h2 { margin:0 0 12px; color:var(--sm-text-muted); font-size:14px; font-weight:500; }
.booking-venue-facilities p,.booking-venue-description { margin:0; font-size:15px; line-height:1.85; white-space:pre-line; overflow-wrap:anywhere; }
.booking-venue-detail-note { margin:26px 0; color:var(--sm-text-muted); font-size:13px; line-height:1.7; }
.booking-venue-detail-actions { display:grid; gap:12px; margin-top:28px; }
.booking-venue-detail-actions a { display:flex; justify-content:center; text-decoration:none; }
.booking-venue-detail-source { display:flex; flex-direction:column; gap:8px; margin-top:30px; color:var(--sm-text-muted); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.booking-venue-detail-source a { align-self:flex-start; color:inherit; }
.booking-venue-detail :is(button,a):focus:not(:focus-visible),.booking-grid .booking-venue-card:focus:not(:focus-visible) { outline:none; box-shadow:none; }
.booking-venue-detail :is(button,a):focus-visible { outline:2px solid var(--primary-color,#ee4852); outline-offset:4px; border-radius:4px; }
@media(max-width:480px) { .booking-venue-facts { grid-template-columns:1fr; gap:22px; } .booking-venue-detail-body { padding-top:18px; } }
@media(prefers-reduced-motion:reduce) {
 .booking-map-marker,.booking-venue-marker { transition:none; }
}

/* Real tiles extend beyond the visible left and right edge so an ordinary pan
   can reuse already rendered map imagery while the provider fetches neighbors. */
.booking-map-shell:not(.location-venue-picker) .booking-map-canvas { left:-96px; right:-96px; width:calc(100% + 192px); contain:paint; }
.booking-map-shell.is-detail-opening .booking-map-canvas { opacity:0!important; }
.hero-map-suspended .booking-map-shell { opacity:0!important; }

/* The gesture ends on the measured closed page, including its rounded-sheet
   overlap. These values are refreshed on each gesture/toggle after resizing. */
.booking-page .hero-section.hero-map-morph:not(.hero-photo-mode) {
 min-height:var(--booking-map-rest-height)!important;
}
.booking-page .hero-section:not(.hero-photo-mode) { transition:none!important; }
.booking-page .main-content.booking-map-morph {
 margin-top:0!important; padding-top:0!important;
}
.booking-map-morph > .booking-map-sheet-edge {
 top:0;
}
.booking-page .hero-section:is(.hero-map-mode,.hero-map-morph) .booking-map-toolbar {
 opacity:var(--booking-map-progress);transition:none;
}
.booking-venue-marker { width:46px; height:46px; min-width:46px; min-height:46px; padding:10px; color:var(--primary-color,#ee4852); font-size:25px; }
.booking-venue-marker.is-cluster { width:54px; height:54px; min-width:54px; min-height:54px; padding:10px; background:#fff; color:var(--primary-color,#ee4852); }
.booking-map-pin.booking-venue-marker.is-cluster { position:relative; transform:none; width:64px; height:64px; box-sizing:border-box; }
.booking-venue-cluster-icon { position:relative; display:block; width:32px; height:30px; font-size:23px; }
.booking-venue-cluster-icon > i { position:absolute; inset:0 auto auto 0; }
.booking-venue-cluster-icon > i:last-child { left:8px; top:7px; text-shadow:-2px -2px #fff; }
.booking-venue-cluster-count { position:absolute; right:-3px; top:-4px; min-width:20px; height:20px; padding:0 4px; display:grid; place-items:center; border:2px solid white; border-radius:12px; background:var(--primary-color,#ee4852); color:#fff; font:600 10px/1 sans-serif; }
.booking-map-selection { width:100%; height:calc(120px + var(--booking-map-card-cap) + 16px); padding:0 0 calc(16px + env(safe-area-inset-bottom,0px)); }
.booking-map-records.is-carousel { position:relative; display:flex; height:calc(120px + var(--booking-map-card-cap)); gap:6px; padding:var(--booking-map-card-cap) max(24px,calc((100% - min(80vw,620px))/2)) 0; overflow:auto hidden; scroll-snap-type:x mandatory; scroll-padding-inline:max(24px,calc((100% - min(80vw,620px))/2)); overscroll-behavior-x:contain; touch-action:pan-x; scrollbar-width:none; }
.booking-map-morph .booking-map-records.is-carousel { padding-top:calc(var(--booking-map-card-cap) * var(--booking-map-progress)); }
.booking-map-records.is-carousel::-webkit-scrollbar { display:none; }
.booking-map-records.is-carousel > .booking-map-record { position:relative; display:flex; align-items:flex-start; flex:0 0 min(80vw,620px); width:min(80vw,620px); height:120px; min-height:120px; padding:0; border:0; border-radius:20px; background:none; scroll-snap-align:center; scroll-snap-stop:always; transform:none; transition:none; }
/* The snap target never scales. Only its painted surface follows the scroll,
   so the browser's destination cannot move underneath its own snap animation. */
.booking-map-record-surface.sm-booking-row { position:relative; isolation:isolate; width:100%; height:120px; min-height:120px; padding:0; gap:0; border-radius:20px; background:var(--sm-surface,#1a1a1a); transform:scale(var(--map-record-scale,1)); transform-origin:center bottom; will-change:transform; }
.booking-map-record-content.sm-booking-row { --booking-row-cover-width:78px; flex-shrink:0; align-self:flex-start; width:100%; height:120px; min-height:120px; padding:16px 14px; gap:12px; }
.booking-map-morph .booking-map-record.is-current .booking-map-record-surface { background:transparent; }

.booking-map-records.is-carousel > .booking-map-record.is-current { --map-record-scale:1; }
.booking-map-record-content .sm-booking-row-cover { height:78px; }
.booking-map-record-content .sm-booking-row-title { font-size:14px; }
.booking-map-record-content :is(.sm-booking-row-location,.sm-booking-row-time) { display:flex; align-items:center; gap:7px; }
.booking-map-record-content :is(.sm-booking-row-location,.sm-booking-row-time) > i { flex:0 0 13px; font-size:11px; text-align:center; }
.booking-map-record-content :is(.sm-booking-row-location,.sm-booking-row-time) > span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.booking-grid .booking-venue-card .booking-header { justify-content:flex-start; text-align:left; }
.booking-grid .booking-venue-card .booking-title { width:100%; text-align:left; margin-left:0; }
.booking-grid .booking-venue-card .booking-details { display:grid; grid-template-columns:1fr; text-align:left; }
.booking-grid .booking-venue-card .detail-item { display:flex; align-items:center; justify-content:flex-start; gap:9px; min-width:0; }
.booking-grid .booking-venue-card .detail-item > i { flex:0 0 14px; text-align:center; }
.booking-venue-missing { display:inline-block; min-width:8px; vertical-align:baseline; color:var(--sm-text-muted); font:inherit; }
.booking-venue-detail-body { padding-top:18px; }
.booking-venue-detail .booking-detail-header { display:flex; padding:8px 0 14px; background:transparent; border:0; box-shadow:none; }
.booking-venue-detail .booking-detail-header::after { display:none; }
.booking-venue-detail .booking-detail-title { margin:0; padding:0; }
.booking-venue-detail .booking-detail-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; margin:6px 0 24px; padding:0; align-items:start; background:transparent; border:0; border-radius:0; box-shadow:none; }
.booking-venue-detail .detail-meta-item { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:5px 10px; min-width:0; padding:15px 0; border-bottom:1px solid var(--sm-border,rgba(255,255,255,.1)); color:var(--sm-text); }
.booking-venue-detail .detail-meta-item > i { grid-column:1; grid-row:1/3; width:20px; padding-top:2px; font-size:15px; text-align:center; color:var(--sm-text-muted); }
.booking-venue-detail .detail-meta-item > strong { grid-column:2; margin:0; font-size:12px; font-weight:450; line-height:18px; color:var(--sm-text-muted); }
.booking-venue-detail .detail-meta-item > :is(span,a) { grid-column:2; min-width:0; font-size:15px; font-weight:500; line-height:1.55; overflow-wrap:anywhere; }
.booking-venue-detail .detail-meta-item > span:not(.booking-venue-missing) { white-space:pre-line; }
.booking-venue-detail .booking-venue-wide { grid-column:1/-1; }
.booking-venue-detail .booking-venue-address { display:block; width:auto; text-decoration:none; color:var(--sm-text); }
.booking-venue-detail .booking-venue-address > span { display:inline; }
.booking-venue-detail .booking-venue-address > span:last-child { white-space:nowrap; text-decoration:none; margin-left:4px; }
.booking-venue-choose { margin:0 12px 12px; width:calc(100% - 24px); }
@media(max-width:600px) { .booking-venue-detail .booking-detail-meta { gap:0 20px; } }
@media(prefers-reduced-motion:reduce) { .booking-map-records.is-carousel > .booking-map-record { transition:none; } }

/* Unlike hidden overflow, clip cannot be scrolled by focusing a marker in the overscan area. */
.booking-map-shell .booking-map-frame { overflow:clip; }

/* Hall previews reserve one consistent inset on all four sides. */
.booking-grid .booking-venue-card.booking-card { padding:var(--sm-shape-card-inset,12px); }
.booking-grid .booking-venue-card .booking-header { display:block; padding:0; margin:0 0 12px; }
.booking-grid .booking-venue-card .booking-details { padding:0; margin:0; gap:9px; }
.booking-grid .booking-venue-card .detail-item > span:not(.booking-venue-missing) { white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; text-overflow:ellipsis; }

.booking-venue-photo-credit { display:block; font-size:10px; line-height:1.35; color:var(--sm-text-muted); overflow-wrap:anywhere; }
.booking-venue-card .booking-venue-photo-credit { margin-top:10px; color:inherit; opacity:.8; }
.booking-venue-photo-sources { margin:0 0 14px; color:var(--sm-text-muted); }

.booking-map-sheet-edge .booking-map-collapse { opacity:1; }

/* The floating row has the same 12px inner edge as the closed sheet. Its
   rounded outline is not an extra empty header above the existing row. */
html body.booking-page .main-content {
 --booking-map-open-row-height:var(--sm-sheet-open-row-height,112px);
 --booking-map-open-inset:var(--sm-shape-inset,12px);
 --booking-map-open-bottom-gap:calc(16px + env(safe-area-inset-bottom,0px));
}
html body.booking-page .main-content:is(.booking-map-browsing,.booking-map-morph) > .booking-map-open-handle { visibility:hidden; }
html body.booking-page .main-content.booking-map-browsing,
html body.booking-page .main-content > .booking-map-selection {
 height:calc(var(--booking-map-open-row-height) + var(--booking-map-open-bottom-gap));
 box-sizing:border-box;
}
html body.booking-page .booking-map-selection {
 padding-top:0;
 padding-bottom:var(--booking-map-open-bottom-gap);
}
html body.booking-page .booking-map-records.is-carousel {
 height:var(--booking-map-open-row-height);
 padding-top:0;
}
html body.booking-page .booking-map-records.is-carousel > .booking-map-record,
html body.booking-page .booking-map-record-surface.sm-booking-row,
html body.booking-page .booking-map-record-content.sm-booking-row,
html body.booking-page .booking-map-selection-hint {
 height:var(--booking-map-open-row-height);
 min-height:var(--booking-map-open-row-height);
 border-radius:var(--sm-sheet-radius);
 box-sizing:border-box;
}
html body.booking-page .booking-map-record-content.sm-booking-row,
html body.booking-page .booking-map-selection-hint {
 padding:var(--booking-map-open-inset);
}
html body.booking-page .booking-map-record-content .sm-booking-row-cover {
 border-radius:var(--sm-shape-card-radius,24px);
}
/* During a drag the outer edge carries the grip. At rest each visible
   segment is clipped by its real card, including the rounded corners. */
html body.booking-page .booking-map-sheet-edge { background:transparent; }
html body.booking-page .booking-map-browsing > .booking-map-sheet-edge { visibility:visible; }
html body.booking-page .booking-map-sheet-edge .booking-map-collapse {
 top:-18px;left:50%;transform:translateX(-50%);width:120px;height:44px;min-height:44px;padding:0;cursor:grab;
}
html body.booking-page .booking-map-sheet-edge .booking-map-collapse > .booking-map-grip {
 top:22px;left:50%;transform:translateX(-50%);width:60px;height:3px;opacity:.48;
}
html body.booking-page .booking-map-browsing .booking-map-sheet-edge .booking-map-grip { visibility:hidden; }
html body.booking-page .booking-map-record-surface { overflow:hidden; }
html body.booking-page .booking-map-browsing .booking-map-record-surface::after {
 content:'';position:absolute;top:4px;left:calc(50% + var(--map-grip-offset,0px));transform:translateX(-50%);
 width:60px;height:3px;border-radius:999px;background:var(--sm-text-muted);opacity:.48;pointer-events:none;
}
html body.booking-page .booking-map-selection-hint { flex:1; width:100%; background:transparent; }
html body.booking-page .booking-map-record:has(.booking-map-selection-hint) { cursor:default; }
html body.booking-page .booking-map-record-content.sm-booking-row { align-items:center; }
html body.booking-page .booking-map-record-content .sm-booking-row-cover { align-self:center; }
html body.booking-page .booking-map-shell .booking-map-marker-card .booking-card .booking-header { padding-top:var(--sm-shape-card-inset,12px); }
html body.booking-page .booking-venue-preview.is-card { padding:0; }
html body.booking-page .booking-venue-preview.is-card .booking-venue-card { padding:0 0 var(--sm-shape-card-inset); }
html body.booking-page .booking-venue-preview.is-card .booking-header { margin:0; padding:var(--sm-shape-card-inset); }
html body.booking-page .booking-venue-preview.is-card .booking-details { padding-inline:var(--sm-shape-card-inset); }
.booking-venue-preview.is-card .booking-venue-card .booking-description { margin:var(--sm-shape-card-inset) 0 0; }
.booking-venue-preview.is-card .booking-venue-photo-credit { padding-inline:var(--sm-shape-card-inset); }
html body.booking-page .booking-map-position { border:0;padding:0;background:transparent; }
html body.booking-page .booking-map-position[data-map-self] { pointer-events:auto;cursor:pointer;touch-action:manipulation; }
/* Native refresh receives a new downward swipe only at the open endpoint.
   Keep the SDK and carousel live; upward motion is still owned by the sheet. */
html:has(.booking-map-browsing) { overflow-y:auto!important; overscroll-behavior-y:auto; }
body.booking-map-open:has(.booking-map-browsing) { position:relative!important;top:0!important;height:100dvh;min-height:0!important;overflow:clip!important;overscroll-behavior-y:auto; }
html body.booking-page .booking-map-browsing,
html body.booking-page .booking-map-browsing :is(.booking-map-records,.booking-map-collapse,.booking-map-sheet-edge) {
 touch-action:pan-x pan-y pinch-zoom; overscroll-behavior-y:auto;
}
/* Resize the original content element itself. Its retained list keeps its
   desktop/mobile column widths, while the carousel stays viewport-wide to
   reveal the adjacent cards. Neither surface requires a duplicate background. */
html body.booking-page .main-content.booking-map-morph {
 --map-list-scale:calc(1 - (1 - var(--booking-map-list-scale-open,.8)) * var(--booking-map-progress));
 --map-sheet-height:calc(var(--booking-map-open-row-height) * var(--booking-map-progress) + var(--booking-map-list-height,100dvh) * (1 - var(--booking-map-progress)));
 width:calc(100% - 2 * var(--booking-map-strip-inset) * var(--booking-map-progress)); height:var(--map-sheet-height);
 min-height:0; margin-inline:auto; border-radius:var(--sm-sheet-radius); background:var(--sm-surface)!important;
}
html body.booking-page .booking-map-morph > .container {
 position:relative;left:50%;translate:-50% 0;margin-inline:0;width:100vw;
 height:calc(var(--map-sheet-height) / var(--map-list-scale));overflow:clip;
 transform:translateY(calc((var(--booking-map-open-inset) - 4px * var(--booking-map-list-scale-open,.8)) * var(--booking-map-progress))) scale(var(--map-list-scale));
}
html body.booking-page .booking-map-morph > .booking-map-selection {
 left:50%;right:auto;width:100vw;transform:translateX(-50%);
}
html body.booking-page .booking-map-morph > .booking-map-sheet-edge { left:0;right:0; }
/* While shrinking into the map row the same arc travels from the real
   closed sheet edge to the upper edge of the final row. */
html body.booking-page:has(.booking-map-morph) #main-content-container {
 display:flow-root; margin-top:calc(-1 * var(--sm-sheet-radius))!important; padding-top:0!important;
 background:transparent!important;
}
html body.booking-page .main-content.booking-map-morph { margin-top:0!important; }
html body.booking-page .booking-map-morph > .container {
 padding-top:8px;
}

html body.booking-page .booking-map-browsing > .booking-map-return-surface {
 position:fixed;z-index:5;align-items:flex-start;pointer-events:none;
 min-height:0;transform:none;background:var(--sm-surface);border-radius:var(--sm-sheet-radius);
}

html body.booking-page #main-content-container > .main-content:is(.booking-map-browsing,.booking-map-morph) { padding:0!important; }

.booking-map-record-surface > .booking-map-copy-leaving { position:absolute!important;inset:0;pointer-events:none; }

html body.booking-page .booking-map-entry-surface.sm-booking-row {
 position:absolute; inset:0; z-index:1; align-items:flex-start; pointer-events:none;
 height:100%; min-height:0; background:transparent; border-radius:inherit;
 --booking-map-open-row-height:var(--sm-sheet-open-row-height,112px);
 --booking-map-open-inset:var(--sm-shape-inset,12px);
}
.booking-map-record-cover > .booking-card-photo { display:block; width:100%; height:100%; object-fit:cover; }

.booking-page .hero-photo-mode.has-booking-map-arrival,
.booking-page .hero-photo-mode.has-booking-map-arrival .hero-photo-viewer { overflow:visible; }

/* The document's final footer must not cross the gap while the sheet is still
   the height of the compact row. Its place in normal flow stays reserved. */
body.booking-page:has(.booking-map-entry-surface) #footer-container { visibility:hidden; }
body.booking-page #main-content-container:has(> .booking-map-entry-surface) > .details-booking-content { width:100vw; }
