/* Advance booking map page (/<slug>/advance-booking/map/).
   Split layout (Avi, 2026-11-17): one frame - a vertical info
   panel on the left (film, totals, day + heat controls, legend,
   the selected theatre's card) and the map filling the right,
   with nothing overlaid on the map itself beyond its native
   controls. On mobile the panel condenses to a strip above the
   map and the theatre card drops below it. Loaded only by the
   advmap shell; the launch button lives in style.css. */
.amap-nomap{padding:18px}
/* Full-screen map (Avi, 2026-11-17): the back row and the split
   frame break out of the content column to the full viewport
   width, and the frame takes the full height below the sticky
   site header (68px, its measured height), so the map uses the
   whole screen; the sections above and below keep the normal
   column. --sbw (published by advmap.js) is the classic-scrollbar
   width, so the breakout lands exactly on the layout viewport
   instead of overshooting under the scrollbar. */
.adv-backrow{width:calc(100vw - var(--sbw,0px));margin:0 0 10px;margin-left:calc(50% - 50vw + var(--sbw,0px)/2);padding:2px 16px 0}
.amap-card{padding:0;overflow:hidden;width:calc(100vw - var(--sbw,0px));margin-top:0;margin-left:calc(50% - 50vw + var(--sbw,0px)/2);border-left:0;border-right:0;border-radius:0}
.amap-frame{display:grid;grid-template-columns:302px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:calc(100dvh - 68px);min-height:540px;background:var(--card)}
.amap-frame:fullscreen{height:100dvh;background:var(--bg)}
.amap-panel{grid-column:1;grid-row:1;padding:16px 16px 12px;border-right:1px solid var(--line);overflow-y:auto;min-height:0}
.amap-film{margin:0;font-size:19px;line-height:1.3;padding-right:40px}
/* The generic .card h2 rule (style.css) forces nowrap + ellipsis;
   with the full-screen frame the panel title wraps instead of
   truncating (Avi, 2026-11-17). Scoped .amap-card .amap-film on
   purpose, same pattern as .aicard .aih-lab. */
.amap-card .amap-film{white-space:normal;overflow:visible;text-overflow:clip}
.amap-sub{margin:3px 0 0;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gold)}
.amap-tots{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 4px}
.amap-tot{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--bg2);min-width:0}
.amap-tot-l{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amap-tot b{display:block;font-size:19px;line-height:1.25;margin-top:1px;white-space:nowrap}
.amap-grp{margin-top:14px}
.amap-grp-l{margin:0 0 7px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
.amap-days{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.amap-btn{appearance:none;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;line-height:1.2}
.amap-btn:hover{border-color:var(--gold);color:var(--gold)}
.amap-btn.on{background:var(--gold);border-color:var(--gold);color:#fff}
.amap-btn-d{font-size:11.5px;font-weight:600;opacity:.75}
.amap-legend{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:11.5px;font-weight:600;color:var(--mut)}
.amap-leg-bar{flex:1;height:8px;border-radius:99px;background:linear-gradient(90deg,#fee0b2,#fdac5c,#f97316,#dc2626,#991b1b);box-shadow:inset 0 0 0 1px var(--line)}
.amap-leg-r{white-space:nowrap}
.amap-note{margin:14px 0 2px;font-size:12px}
/* Both maps (Avi, 2026-11-19; the advance map joined on
   2026-11-23): the heat legend runs pale to deep RED,
   mirroring the red ramp in advmap.js. The base .amap-leg-bar
   above carries it for every map; this live-section rule
   restates the same values. */
#sec-livemap .amap-leg-bar{background:linear-gradient(90deg,#fee0b2,#fdac5c,#f97316,#dc2626,#991b1b);box-shadow:inset 0 0 0 1px var(--line)}
/* Live map only (Avi, 2026-11-19): the presence swatch sits on
   its own row under the heat gradient - the same faint warm
   tint the grid paints under quiet theatres (#fff0d2, the
   canvas wash at full strength). */
#sec-livemap .amap-legend{flex-wrap:wrap}
.amap-leg-pres{display:inline-flex;align-items:center;gap:6px;flex-basis:100%;white-space:nowrap}
.amap-leg-pres i{width:12px;height:12px;border-radius:3px;background:#fff0d2;box-shadow:inset 0 0 0 1px var(--line)}
/* Advance map (Avi, 2026-11-22; ramp flipped to red
   2026-11-23): the same presence row, with the warm tint its
   red ramp paints under theatres that are booking but have
   no sales yet (#fff0d2, the canvas wash at full strength) -
   the same swatch the live map's base rule above carries. */
#sec-advmap .amap-legend{flex-wrap:wrap}
#sec-advmap .amap-leg-pres i{background:#fff0d2}
.amap-asof{margin:10px 0 0;font-size:12.5px;font-weight:600;color:var(--mut)}
/* Live map panel day line (Avi, 2026-11-19): the LIVE pill rides
   the day line in the panel; the dot pulses softly (the global
   reduced-motion rule stills it). Accent blue, like all UI. */
.amap-live{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:1px 8px;border:1px solid var(--gold);border-radius:99px;color:var(--gold);font-size:10.5px;font-weight:800;letter-spacing:.09em;vertical-align:2px}
.amap-live i{width:7px;height:7px;border-radius:99px;background:var(--gold);animation:amapPulse 2.2s ease-in-out infinite}
@keyframes amapPulse{0%,100%{opacity:1}50%{opacity:.3}}
.amap-stage{grid-column:2;grid-row:1/3;position:relative;min-width:0;min-height:0}
.amap-canvas{position:absolute;inset:0;background:var(--bg2)}
.amap-detail{grid-column:1;grid-row:2;border-right:1px solid var(--line);border-top:1px solid var(--line);padding:13px 16px;min-height:86px}
.amap-det-hint{margin:2px 0;color:var(--mut);font-size:13px;line-height:1.5}
.amap-none{color:var(--mut);font-size:14.5px;margin:4px 0 2px}
/* The share button the share system wires into the card sits at
   the panel's top-right corner, never over the map. */
#sec-advmap .shbtn{top:12px;right:auto;left:256px}
/* Theatre card: the panel detail area carries the full figures;
   the on-map tooltip (hover) and pinned card are the compact
   form. One data source (fig()) feeds all three. */
.amap-pop-w{margin:0 0 3px;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gold)}
.amap-pop h3{margin:0;font-size:15.5px;line-height:1.3}
.amap-pop-c{margin:2px 0 0;font-size:12.5px;color:var(--mut)}
.amap-pop-g{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;margin-top:10px}
.amap-pop-g span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
.amap-pop-g b{font-size:14.5px;white-space:nowrap}
.amap-pop-cmp{margin-top:8px;font-size:13px;color:var(--ink)}
.amap-pop-cmp b{white-space:nowrap}
.amap-pop-note{margin:7px 0 0;font-size:12px;line-height:1.45;color:var(--mut)}
.amap-detail .amap-pop h3{font-size:16.5px}
.amap-popup .maplibregl-popup-content{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 34px rgba(2,6,23,.22);padding:12px 13px;color:var(--ink)}
.amap-popup .maplibregl-popup-tip{border-top-color:var(--line);border-bottom-color:var(--line)}
.amap-popup .maplibregl-popup-close-button{color:var(--mut);font-size:17px;padding:2px 7px}
.amap-popup .amap-pop{min-width:172px;max-width:230px}
@media(max-width:760px){
  .amap-frame{display:flex;flex-direction:column;height:auto;min-height:0}
  .amap-panel{order:1;border-right:0;border-bottom:1px solid var(--line);padding:12px 14px 10px;overflow:visible}
  .amap-film{font-size:17px}
  .amap-tots{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px}
  .amap-tot{padding:6px 7px}
  .amap-tot b{font-size:15px}
  .amap-tot-l{font-size:9px}
  .amap-grp{display:inline-block;vertical-align:top;margin-top:10px;margin-right:16px}
  .amap-legend{margin-top:10px}
  .amap-note{display:none}
  .amap-stage{order:2;height:60vh;min-height:400px;flex:none}
  .amap-detail{order:3;border-right:0;border-top:1px solid var(--line);min-height:0}
  #sec-advmap .shbtn{left:auto;right:12px;top:10px}
}
