body.map-product { background: #000; }
.map-product .product-shell > header { padding: 12px 0 8px; }
.map-product .product-title { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.12; }
.map-product .product-subtitle { font-size: 14px; max-width: 720px; }
.map-product .scene-picker { margin-top: 16px; padding: 12px 0; border: 0; border-block: 1px solid var(--product-line); border-radius: 0; background: transparent; }
.map-product .scene-heading { margin-bottom: 9px; }
.map-product .scene-heading p:not(.control-label), .map-product .scene-heading > span { display: none; }
.map-product .scene-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.map-product .scene-chips button { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; border-radius: 9px; }
.map-product .scene-chips small { display: none; }
.discovery-disclosure { margin: 10px 0; }
.discovery-disclosure > summary { color: var(--product-muted); cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.discovery-disclosure > summary::before { content: '+'; color: var(--teal); font: 20px var(--mono); }
.discovery-disclosure[open] > summary::before { content: '−'; }
.discovery-disclosure > summary span { color: #748078; font-size: 11px; }
.map-product .discovery-monitor { margin: 0 0 10px; }
.map-product .product-controls { margin: 8px 0 12px; }
.map-resultbar { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.map-resultbar > div:first-child { flex: 1; min-width: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.map-resultbar b { color: var(--teal); font-size: 14px; }
.map-resultbar span { color: var(--product-muted); font-size: 11px; }
.map-resultbar > button { min-height: 44px; padding: 8px 13px; font-size: 11px; }
.map-view-switch { display: none; border: 1px solid var(--product-line); border-radius: 9px; overflow: hidden; }
.map-view-switch button { min-height: 44px; padding: 8px 14px; background: transparent; color: var(--product-muted); border: 0; border-radius: 0 !important; }
.map-view-switch button[aria-pressed="true"] { color: #000; background: var(--teal); }
.map-product .map-workspace { min-height: 560px; border-radius: 16px; }
.map-product .radar-panel { min-height: 560px; }
.map-product .venue-panel { display: flex; flex-direction: column; min-width: 0; }
.map-product .venue-feed { flex: 1; max-height: 560px; overflow: auto; overscroll-behavior: contain; }
.map-product .venue-row { content-visibility: auto; contain-intrinsic-size: auto 110px; }
.map-product .venue-summary { min-height: 48px; font-size: 11px; }
.map-load-more { margin: 12px; min-height: 44px; background: transparent; color: var(--teal); }
.map-product button:focus-visible, .map-product a:focus-visible, .map-product summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.map-product .empty-product { padding: 28px 20px; }
.map-product .empty-product b { display: block; color: var(--product-text); }
.map-product .empty-product button { margin-top: 8px; min-height: 44px; }
.map-product .product-toast { z-index: 220; }
body.map-detail-open { overflow: hidden; }
.map-product .detail-sheet { z-index: 180; }
.map-product .detail-close { min-width: 44px; min-height: 44px; }
@media (max-width: 900px) {
  .map-product .product-topbar { gap: 10px; }
  .map-product .product-brand span { display: none; }
  .map-product .product-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-product .control-search { grid-column: 1 / -1; }
  .map-product .map-workspace { grid-template-columns: minmax(0, 1fr); min-height: 460px; }
  .map-product .radar-panel { min-height: 460px; }
  .map-product .venue-feed { max-height: 65dvh; }
  .map-view-switch { display: flex; flex-shrink: 0; }
  .map-workspace[data-mobile-view="map"] .venue-panel { display: none; }
  .map-workspace[data-mobile-view="list"] .radar-panel { display: none; }
  .map-product .discovery-monitor { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .map-product .product-topbar { grid-template-columns: auto 1fr; padding: 8px 14px; }
  .map-product .product-actions { justify-self: end; gap: 6px; }
  .map-product .product-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: center; border: 0; padding: 0; }
  .map-product .product-nav a { flex: 1; min-height: 44px; }
  .map-product .product-title { font-size: 30px; }
  .map-product .product-subtitle { font-size: 13px; }
  .map-product .product-status { font-size: 10px; line-height: 1.7; }
  .map-resultbar { gap: 8px; flex-wrap: wrap; }
  .map-resultbar > div:first-child { flex-basis: 100%; gap: 8px; }
  .map-resultbar > button { margin-right: auto; }
  .map-product .radar-panel { min-height: 420px; }
  .map-product .detail-sheet { padding: 0; align-items: stretch; }
  .map-product .detail-card { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; overflow-y: auto; }
  .map-product .detail-actions { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: #0b0f0e; }
}
@media (prefers-reduced-motion: reduce) { .map-product *, .map-product *::before { animation: none !important; transition: none !important; } }

@media(min-width:901px){ .map-product .product-controls{grid-template-columns:minmax(85px,.4fr) minmax(190px,1.2fr) repeat(4,minmax(108px,.55fr)) auto;} }

/* Map refinement: calm structure around the live radar. */
.product.map-product .scene-picker { margin: 0 0 16px; padding: 0 0 18px; border-top: 0; border-bottom: 1px solid var(--product-line); }
.product.map-product .scene-heading { margin-bottom: 10px; }
.product.map-product .scene-heading .control-label { font-size: 12px; color: #c1cbda; }
.product.map-product .scene-chips { gap: 8px; padding-bottom: 2px; }
.product.map-product .scene-chips button { min-height: 44px; padding: 9px 16px; border-radius: 9px; border-color: #344153; background: #111925; font: 600 13px var(--body); }
.product.map-product .scene-chips button[aria-pressed='true'] { border-color: var(--ui-accent); background: var(--ui-soft); color: var(--ui-accent); box-shadow: none; }
.product.map-product .scene-chips button:hover { background: var(--ui-hover); }
.product.map-product .discovery-disclosure { margin: 0 0 12px; }
.product.map-product .discovery-disclosure > summary { font: 12px var(--body); color: #b8c2cf; gap: 10px; }
.product.map-product .discovery-disclosure > summary::before { content: ''; width: 16px; height: 16px; background: var(--ui-accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.product.map-product .discovery-disclosure[open] > summary::before { transform: rotate(180deg); }
.product.map-product .discovery-disclosure > summary span { color: #a4b0bf; font: 11px var(--body); }
.product.map-product .discovery-monitor { border-radius: 12px; background: #101b27; padding: 16px; }
.product.map-product .discovery-modes button { font-family: var(--body); border-radius: 8px; }
.product.map-product .product-controls { padding: 16px; border: 1px solid var(--product-line); border-radius: 14px; background: #0f1621; margin: 0 0 8px; }
.product.map-product .map-resultbar { padding: 12px 2px; gap: 12px; }
.product.map-product .map-resultbar b { font: 650 14px var(--body); }
.product.map-product .map-resultbar span { font: 12px var(--body); color: #a4b0bf; }
.product.map-product .map-view-switch { border-radius: 9px; }
.product.map-product .map-view-switch button { font: 600 12px var(--body); }
.product.map-product .map-workspace { grid-template-columns: minmax(0, 1.35fr) minmax(330px, .8fr); min-height: 540px; border-radius: 16px; background: #0d1620; }
.product.map-product .radar-panel { min-height: 540px; }
html:not([data-map-theme='gta']) .product.map-product .radar-panel { background: radial-gradient(circle at center, #11292e, #0b141f 65%); }
html:not([data-map-theme='gta']) .product.map-product .radar-panel::before { opacity: .18; background-image: linear-gradient(#60798b33 1px, transparent 1px), linear-gradient(90deg, #60798b33 1px, transparent 1px); }
html:not([data-map-theme='gta']) .product.map-product .radar-ring { border-color: #4b857e44; }
html:not([data-map-theme='gta']) .product.map-product .radar-ring span { background: #0d1c27; color: #a4b6bf; font-size: 10px; }
html:not([data-map-theme='gta']) .product.map-product .radar-axis { background: #4b857e44; }
html:not([data-map-theme='gta']) .product.map-product .radar-sweep { background: conic-gradient(from 0deg, transparent 0 85%, #73e9d214 95%, transparent 100%); animation-duration: 12s; }
html:not([data-map-theme='gta']) .product.map-product .radar-center { background: #b8ff87; box-shadow: 0 0 0 5px #b8ff8714; }
html:not([data-map-theme='gta']) .product.map-product .radar-point::before { background: #73e9d2; box-shadow: 0 0 8px #73e9d244; }
html:not([data-map-theme='gta']) .product.map-product .radar-point.has-event::before { background: #c2a4ff; box-shadow: 0 0 8px #c2a4ff44; }
html:not([data-map-theme='gta']) .product.map-product .radar-legend i.event { background: #c2a4ff; }
.product.map-product .radar-caption { background: #0c1521; color: #b1bece; border-radius: 9px; padding: 11px 14px; max-width: 300px; font: 11px/1.6 var(--body); }
.product.map-product .radar-legend { background: #0c1521; border: 1px solid var(--product-line); border-radius: 8px; font: 11px/1.5 var(--body); color: #b1bece; }
.product.map-product .venue-panel { background: #101620; }
.product.map-product .venue-summary { font: 12px/1.6 var(--body); padding: 15px 18px; color: #b7c2d2; }
.product.map-product .venue-feed { max-height: 540px; }
.product.map-product .venue-row { padding: 18px; gap: 12px; min-height: 108px; border-bottom-color: #273341; }
.product.map-product .venue-row:hover, .product.map-product .venue-row.active { background: var(--ui-soft); }
.product.map-product .venue-index { color: #a2aebb; font-size: 11px; padding-top: 3px; }
.product.map-product .venue-copy { min-width: 0; }
.product.map-product .venue-copy b { font-size: 15px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.product.map-product .venue-copy span { font: 12px/1.6 var(--body); }
.product.map-product .venue-signal { font: 11px/1.5 var(--body); padding-top: 3px; color: #c2a4ff; }
.product.map-product .scenario-tags span { border-color: #3b655e; background: #162923; color: #b2dacf; font: 11px/1.4 var(--body); padding: 3px 7px; }
.product.map-product .map-load-more { margin: 14px 18px; border-radius: 9px; color: var(--ui-accent); }
.product.map-product .detail-actions { gap: 10px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .product.map-product .product-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product.map-product .control-search { grid-column: span 2; }
  .product.map-product .nearby { grid-column: 4; }
}
@media (max-width: 900px) {
  .product.map-product .map-workspace { grid-template-columns: 1fr; min-height: 460px; }
  .product.map-product .radar-panel { min-height: 460px; }
  .product.map-product .venue-feed { max-height: 65dvh; }
}
@media (max-width: 640px) {
  .product.map-product .scene-picker { padding-bottom: 14px; margin-bottom: 10px; }
  .product.map-product .scene-chips button { padding: 9px 13px; font-size: 12px; }
  .product.map-product .product-controls { padding: 14px 12px; border-radius: 12px; }
  .product.map-product .nearby { grid-column: auto; }
  .product.map-product .control-search { order: -1; }
  .product.map-product .map-resultbar > div:first-child { flex-basis: auto; }
  .product.map-product .map-resultbar span { font-size: 11px; }
  .product.map-product .map-resultbar > button { margin-right: auto; min-height: 44px; }
  .product.map-product .radar-panel { min-height: 420px; }
  .product.map-product .map-workspace { min-height: 420px; border-radius: 12px; }
  .product.map-product .radar-caption { top: 14px; left: 14px; max-width: calc(100% - 28px); font-size: 11px; }
  .product.map-product .radar-legend { bottom: 14px; left: 14px; }
  .product.map-product .detail-actions { background: #101620; }
}
