/* The Pinnacle seat map. Chrome follows thepinnaclenashville.com (navy ground, cream type, pale gold nav,
   coral call-to-action, Akzidenz-Grotesk Pro). The map itself stays on white and is never restyled here. */
@font-face { font-family: 'AkzidenzGroteskPro-Regular'; src: url('/assets/AkzidenzGroteskPro-Regular.73a5aa53.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AkzidenzGroteskPro-Bold';    src: url('/assets/AkzidenzGroteskPro-Bold.d4850c9e.woff2') format('woff2');    font-weight: 700; font-display: swap; }
@font-face { font-family: 'AkzidenzGroteskPro-MdCn';    src: url('/assets/AkzidenzGroteskPro-MdCn.336f84ea.woff2') format('woff2');    font-weight: 500; font-display: swap; }
@font-face { font-family: 'AkzidenzGroteskPro-XBdCn';   src: url('/assets/AkzidenzGroteskPro-XBdCn.ef657a1b.woff2') format('woff2');   font-weight: 800; font-display: swap; }

:root {
  --navy: #101820; --navy-deep: #0b1016; --cream: #f1f1de; --gold: #e4e2b7; --coral: #d76242; --coral-dark: #c4573a;
  --line: rgba(241, 241, 222, .16); --muted: rgba(241, 241, 222, .72); --panel: rgba(241, 241, 222, .05);
  --ada: #2b63d9;
  --f-reg: 'AkzidenzGroteskPro-Regular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-bold: 'AkzidenzGroteskPro-Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mdcn: 'AkzidenzGroteskPro-MdCn', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-xbdcn: 'AkzidenzGroteskPro-XBdCn', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --map-ground: #f8f8ee;                        /* a hint of the brand cream behind the map (the print files stay white) */
  --top-h: 56px; --gutter: 16px; --radius: 4px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden; overscroll-behavior: none;
  background: var(--navy); color: var(--cream); font-family: var(--f-reg); font-size: 16px; line-height: 1.5;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
#content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* top bar: logo | hairline | map name ........ buttons. On phones the name drops to a second row under a hairline. */
.top {
  flex: none; display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo name tools print";
  --ctl: 36px;
  align-items: center; column-gap: 14px; min-height: var(--top-h); padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--navy-deep); border-bottom: 1px solid var(--line);
}
.venue { grid-area: logo; display: inline-flex; align-items: center; }
.logo { display: block; height: 22px; width: auto; }
.mapname {
  grid-area: name; min-width: 0; margin: 0; font-weight: normal; font-family: var(--f-mdcn); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1;
  padding: 0 0 0 14px; border-left: 1px solid var(--line); transform: translateY(4px);   /* optical: caps vs the wordmark's letter band */
}
.mapname:empty { display: none; }
.tools { grid-area: tools; display: flex; gap: 8px; justify-self: end; }
.btn.print { grid-area: print; text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 699px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo tools" "name print"; row-gap: 8px; padding-top: calc(env(safe-area-inset-top) + 10px); padding-bottom: 8px; }
  .btn.print { justify-self: end; align-self: end; font-size: 13px; padding: 8px 12px 6px; min-height: 32px; border-radius: 16px; }
  .btn { min-height: 36px; }
  .mapname { font-size: 13px; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); white-space: normal; line-height: 1.2; transform: none; }
}
.btn {
  font-family: var(--f-mdcn); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1;
  color: var(--gold); background: transparent; border: 1px solid var(--gold); border-radius: 16px;
  padding: 9px 14px 7px; min-height: 34px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease;
}
@media (hover: hover) { .btn:hover { background: rgba(228, 226, 183, .12); } }
.btn:active { background: var(--gold); color: var(--navy); }
.btn:focus-visible, .card:focus-visible, .chip-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.chip-x { font: inherit; font-size: 22px; line-height: 1; color: var(--gold); background: none; border: 0; padding: 4px 6px; cursor: pointer; }

/* the map is the page; its ground is the one thing app.css sets inside the SVG */
.stage { flex: 1; min-height: 0; position: relative; background: var(--map-ground); }
.stage .map { position: absolute; inset: 0; -webkit-touch-callout: none; }
.map {
  background: var(--map-ground); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.map.dragging { cursor: grabbing; }
.map.sliding { cursor: crosshair; }
.map.ga { cursor: pointer; }
.map svg { display: block; width: 100%; height: 100%; }
#map svg .bg { fill: var(--map-ground); }
.map .loading, .map .failed { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #555; font-size: 15px; text-align: center; padding: 24px; }
.map .failed .btn { color: var(--navy); border-color: var(--navy); }

/* seat finding: marker, hover, focus (map-side colours, unchanged) */
#map svg path.bar { transform-box: fill-box; transform-origin: center; transition: transform .18s ease, filter .18s ease; }
#map svg path.bar.hov { transform: scale(1.035); filter: brightness(.9); }
#map svg #hover { transition: transform .12s ease-out, opacity .15s ease; }
.map.over-seat { cursor: pointer; }
.map.ga path.floor, .map.ga path.ring, .map.ga path.risers { transition: filter .18s ease; }
.map.ga path.floor:hover, .map.ga path.ring:hover, .map.ga path.risers:hover { filter: brightness(.95); }
#map svg path.bar.sel { stroke-width: 1.5px; }
#map svg path.bar:focus { outline: none; }
#map svg path.bar:focus-visible { stroke: var(--ada); stroke-width: 2.5px; }
#map svg path.floor:focus-visible, #map svg path.ring:focus-visible, #map svg path.risers:focus-visible { outline: none; stroke: var(--ada); stroke-width: 2px; vector-effect: non-scaling-stroke; }

/* map-side controls: a quiet stack at the right edge under the header */
.controls { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.ctl {
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 18px; cursor: pointer;
  color: var(--gold); background: rgba(11, 16, 22, .92); border: 1px solid var(--gold); -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease;
}
.ctl svg { width: 18px; height: 18px; }
@media (hover: hover) { .ctl:hover { background: var(--navy-deep); } }
.ctl:active { background: var(--gold); color: var(--navy); }
.ctl:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* floating legend: top-left of the map field, reserved maps only; the map's own legend is hidden on the web.
   Class names are prefixed because the inlined SVG's stylesheet defines .legend, .lv, .ada and friends. */
.mapkey {
  position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; gap: 14px; align-items: center;
  padding: 9px 12px 7px; border-radius: var(--radius); background: rgba(248, 248, 238, .94); border: 1px solid rgba(16, 24, 32, .14);
  font-family: var(--f-mdcn); font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy); line-height: 1;
}
.mapkey span { display: inline-flex; align-items: center; gap: 7px; }
.mapkey-sw { display: inline-block; width: 22px; height: 12px; border-radius: 2px; margin-top: -2px; }
.mapkey-ada { background: var(--ada); }
.mapkey-lv { background: #e8917c; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 1.2px, transparent 1.2px 4px); }
#map svg .legend-block { display: none; }
#map svg .pill, #map svg .pilltxt, #map svg text.cap:not(.inbar):not(.house) { cursor: pointer; }

/* minimap: bottom-right, shows once zoomed in; on phones it yields to the seat sheet */
.minimap {
  position: absolute; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 3; width: 150px;
  border-radius: var(--radius); overflow: hidden; background: rgba(248, 248, 238, .96); border: 1px solid rgba(16, 24, 32, .16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); cursor: pointer; touch-action: none; user-select: none;
}
.minimap svg { display: block; width: 100%; height: auto; }
.minimap .mm-view { fill: rgba(16, 24, 32, .08); stroke: var(--navy); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }


/* readout: bottom sheet on phones, docked panel on desktop */
.readout {
  position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 3;
  padding: 14px 16px 16px; background: var(--navy-deep); color: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .35); transform: translateY(calc(100% + 24px)); opacity: 0;
  visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s; pointer-events: none;
}
.readout.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.readout-head { display: flex; align-items: flex-start; gap: 8px; }
.readout .seat { margin: 0; flex: 1; font-family: var(--f-xbdcn); font-size: 26px; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.readout .level { margin: 6px 0 0; font-family: var(--f-bold); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.readout .note { margin: 8px 0 0; font-size: 15px; color: var(--cream); }
.readout-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn.primary {
  font-family: var(--f-xbdcn); font-size: 16px; letter-spacing: .5px; color: var(--cream); background: var(--coral);
  border: 0; border-radius: var(--radius); padding: 14px 16px 12px; min-height: 44px; flex: 1;
}
@media (hover: hover) { .btn.primary:hover { background: var(--coral-dark); } }
.btn.primary:active { background: var(--coral-dark); color: var(--cream); }
@media (min-width: 900px) {
  .readout { left: auto; right: 60px; top: 10px; bottom: auto; width: 320px; transform: translateX(24px); }
  .readout.open { transform: none; }
}

.loupe {
  position: fixed; left: 0; top: 0; width: 132px; height: 132px; z-index: 4; pointer-events: none;
  border-radius: 50%; overflow: hidden; background: var(--map-ground); border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(16, 24, 32, .45), 0 10px 26px rgba(0, 0, 0, .35); will-change: transform;
}
.loupe svg { display: block; width: 100%; height: 100%; }

.toast {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 5;
  padding: 10px 16px 8px; border-radius: var(--radius); background: var(--gold); color: var(--navy);
  font-family: var(--f-mdcn); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

/* chooser: the landing page when no map is pinned */
.chooser {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--navy);
}
.chooser-h { margin: 0 0 8px; font-family: var(--f-xbdcn); font-size: 38px; line-height: .98; text-transform: uppercase; letter-spacing: .5px; }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 1100px; }
.card {
  display: grid; grid-template-columns: 116px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px;
  align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease;
}
@media (hover: hover) { .card:hover { border-color: var(--gold); background: rgba(241, 241, 222, .08); } }
.card:active { background: rgba(241, 241, 222, .12); }
.thumb { grid-row: 1 / span 2; width: 116px; aspect-ratio: 578 / 493; object-fit: contain; border-radius: 2px; background: #fff; padding: 4px; }
.card-title { font-family: var(--f-xbdcn); font-size: 23px; line-height: 1; text-transform: uppercase; letter-spacing: .5px; align-self: end; }
.card-blurb { font-size: 15px; color: var(--muted); line-height: 1.4; align-self: start; }
.printlinks { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.printlinks a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  :root { --top-h: 64px; }
  .logo { height: 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 8px; padding: 16px; }
  .thumb { grid-row: 1; width: 100%; padding: 10px; }
  .card-title { font-size: 26px; }
  .chooser { padding-top: 40px; }
  .chooser-h { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
