/* NABC 2027 Venue page: Cow Palace floor plan and 3D view (assets/js/venue_plan.js, venue_3d.js) */
.venue-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.venue-bar button { font-size: 13px; padding: 5px 13px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.venue-bar button.on { background: #14203f; border-color: #14203f; color: #fff; }
.venue-bar .venue-3d-btn { font-weight: 700; margin-left: auto; }
.venue-plan-wrap { overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e5e7eb; border-radius: 14px; background: #f7f5ef; }
.venue-svg { display: block; width: 100%; height: auto; aspect-ratio: 830 / 690; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; user-select: none; }
.venue-svg text { text-anchor: middle; pointer-events: none; }
.venue-svg .vp-arena-detail, .venue-svg .vp-detail, .venue-svg .vp-labels { pointer-events: none; }

.vp-ground { fill: #f1efe8; }
.vp-lower { fill: #e7ecef; stroke: #94a3b8; stroke-width: .8; stroke-dasharray: 4 3; }
.vp-fire { stroke: #f87171; stroke-width: .6; }
.vp-fire-lbl { font-size: 6px; font-weight: 800; letter-spacing: 3px; fill: #dc2626; opacity: .75; }
.vp-road { stroke: #94a3b8; stroke-width: 9; stroke-linecap: round; opacity: .35; }
.vp-road-lbl { font-size: 6px; font-weight: 700; letter-spacing: 1.5px; fill: #475569; }
.vp-gate { fill: #14203f; }
.vp-gate-lbl { font-size: 5px; font-weight: 700; fill: #14203f; text-anchor: start !important; }
.vp-note { font-size: 4.4px; fill: #64748b; }

.vp-space { stroke-width: 1; cursor: pointer; transition: fill .15s, stroke-width .15s; outline: none; }
.vp-hall { fill: #e4ebf7; stroke: #1e3a8a; }
.vp-arena { fill: #efe8da; stroke: #7c5a2b; }
.vp-concourse { fill: #e9e2d2; stroke: #a8946d; stroke-width: .6; }
.vp-lobby { fill: #f6e3bd; stroke: #b7791f; }
.vp-ramp { fill: #dfe3e8; stroke: #64748b; stroke-width: .6; }
.vp-walk { fill: #d6e9dc; stroke: #166534; stroke-width: .6; }
.vp-breezeway { fill: #d6e9dc; stroke: #166534; }
.vp-exhibit { fill: #e4f1e8; stroke: #166534; }
.vp-space:hover { stroke-width: 2; }
.vp-hall:hover, .vp-hall.on { fill: #c9d7f0; }
.vp-arena:hover, .vp-arena.on { fill: #e4d6bb; }
.vp-concourse:hover, .vp-concourse.on { fill: #dccfb3; }
.vp-lobby:hover, .vp-lobby.on { fill: #f0d397; }
.vp-ramp:hover, .vp-ramp.on { fill: #cbd2da; }
.vp-exhibit:hover, .vp-exhibit.on, .vp-breezeway:hover, .vp-breezeway.on, .vp-walk:hover, .vp-walk.on { fill: #bfe0c9; }
.vp-space.on { stroke: #f59e0b; stroke-width: 2.4; }
.vp-space:focus-visible { stroke: #f59e0b; stroke-width: 2.4; }

.vp-bowl { fill: #d6d3cc; stroke: #9a8f7c; stroke-width: .5; }
.vp-block { stroke: #fff; stroke-width: .5; }
.vp-stage { fill: #14203f; }
.vp-behind { fill: #1f2433; opacity: .55; }
.vp-drape { stroke: #0b0d14; stroke-width: 2.6; }
.vp-led { stroke: #22d3ee; stroke-width: 2.4; }
.vp-film { stroke: #e2e8f0; stroke-width: 2.4; }
.vp-drape2 { stroke: #0b0d14; stroke-width: 1.4; }
.vp-truss { stroke: #94a3b8; stroke-width: 1.2; stroke-dasharray: 1.2 .8; }
.vp-chair { fill: #7c83db; }
.vp-light { fill: #f59e0b; stroke: #78350f; stroke-width: .4; }
.vp-desk { fill: #fde68a; stroke: #b45309; stroke-width: .4; }
.vp-desk-lbl { font-size: 2.2px; font-weight: 700; fill: #78350f; }
.vp-prog { font-size: 5.2px; font-weight: 800; fill: #14532d; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 1.4px; stroke-linejoin: round; }
.vp-prog-sub { font-size: 3.2px; font-weight: 600; fill: #334155; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 1px; }
.vp-pa { fill: #0b0d14; stroke: #f5a623; stroke-width: .5; }
.vp-pstage-lbl { font-weight: 800; letter-spacing: .4px; fill: #f5a623; }
.vp-stage-lbl { font-size: 7px; font-weight: 800; letter-spacing: 2px; fill: #f5a623; }
.vp-col { fill: #1f2937; }
.vp-trench { stroke: #2563eb; stroke-width: .7; stroke-dasharray: 1.5 1.5; opacity: .55; }
.vp-table { fill: #fff; stroke: #b45309; stroke-width: .45; }
.vp-buffet { fill: #fcd34d; stroke: #b45309; stroke-width: .4; }
.vp-booth { fill: #fff; stroke: #1e3a8a; stroke-width: .45; }
.vp-booth-held { fill: #fde68a; }
.vp-booth-reserved { fill: #ddd6fe; }
.vp-booth-sold { fill: #cbd5e1; }
.vp-booth-blocked { fill: #f3f4f6; stroke: #9ca3af; }
.vp-room { fill: #f8fafc; stroke: #64748b; stroke-width: .5; }
.vp-room-lbl { fill: #334155; font-weight: 600; }
.vp-door { stroke-width: 2.4; stroke-linecap: butt; }
.vp-roll { stroke: #2563eb; }
.vp-slide { stroke: #0d9488; }
.vp-exit { fill: #16a34a; }

.vp-name { font-weight: 800; fill: #14203f; letter-spacing: .3px; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 2.2px; stroke-linejoin: round; }
.vp-size { paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 1.2px; stroke-linejoin: round; }
.vp-name-arena { fill: #5b3f17; }
.vp-name-exhibit, .vp-name-breezeway, .vp-name-walk { fill: #14532d; }
.vp-name-concourse, .vp-name-ramp, .vp-name-lobby { font-weight: 700; fill: #57452a; letter-spacing: 1px; }
.vp-size { fill: #475569; font-weight: 600; }
.vp-bldg { font-size: 6.5px; font-weight: 800; letter-spacing: 1.2px; fill: #166534; }
.vp-zone { font-size: 5px; font-weight: 800; letter-spacing: 2px; fill: #64748b; }
.vp-compass path { fill: #14203f; }

.venue-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #475569; margin: 10px 2px 0; }
.venue-legend span { display: inline-flex; align-items: center; gap: 6px; }
.venue-legend i { display: inline-block; width: 16px; height: 11px; border-radius: 2px; border: 1px solid; }
.venue-legend .lg-hall { background: #e4ebf7; border-color: #1e3a8a; }
.venue-legend .lg-arena { background: #efe8da; border-color: #7c5a2b; }
.venue-legend .lg-exhibit { background: #e4f1e8; border-color: #166534; }
.venue-legend .lg-seat { background: linear-gradient(90deg, #c7d2fe 0 33%, #bae6fd 33% 66%, #fde2b8 66%); border-color: #94a3b8; }
.venue-legend .lg-roll { height: 3px; border: 0; background: #2563eb; }
.venue-legend .lg-slide { height: 3px; border: 0; background: #0d9488; }
.venue-legend .lg-exit { width: 9px; height: 9px; background: #16a34a; border: 0; }
.venue-legend .lg-col { width: 8px; height: 8px; background: #1f2937; border: 0; }
.venue-legend .lg-fire { background: repeating-linear-gradient(45deg, #fef2f2 0 3px, #fca5a5 3px 4px); border-color: #f87171; }

.venue-info { margin: 12px 2px 0; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; font-size: 14.5px; color: #1e293b; min-height: 3.2em; }
.venue-info h4 { font-size: 17px; margin: 0 0 2px; font-family: inherit; font-weight: 800; color: #14203f; }
.venue-info .vi-size { font-weight: 600; color: #b45309; margin-bottom: 4px; }
.venue-info p { margin: 0; }
.venue-info a { font-weight: 700; }
.venue-info .vi-hint { color: #64748b; }
.venue-hint { display: none; font-size: 12.5px; color: #64748b; margin: 6px 2px 0; }
.venue-source { font-size: 12px; color: #8a8577; margin: 8px 2px 0; }

/* 3D view */
.venue-3d-wrap .venue-cams { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.venue-cams button { font-size: 12.5px; padding: 4px 10px; border-radius: 7px; border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.venue-cams label { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; color: #475569; }
.venue-3d { position: relative; height: min(72vh, 660px); min-height: 360px; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #eef1f4; }
.venue-3d canvas { display: block; touch-action: none; cursor: grab; }
.venue-3d canvas:active { cursor: grabbing; }
.venue-3d-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #64748b; padding: 20px; text-align: center; }
.venue-3d-help { font-size: 12.5px; color: #64748b; margin: 6px 2px 0; }

@media (max-width: 700px) {
  .venue-bar button { font-size: 12px; padding: 4px 10px; }
  .venue-bar .venue-3d-btn { margin-left: 0; }
  .venue-svg[data-view="whole"] { min-width: 620px; }
  .venue-svg:not([data-view="whole"]) { aspect-ratio: 4 / 5; }
  .venue-hint { display: block; }
  .venue-legend { font-size: 12px; gap: 4px 12px; }
  .venue-3d { height: 64vh; }
}
