/* Opaque Smoke School Calendar — Map View overlay styles
   Companion to /calendar-map-view.js. Brand tokens from public/theme.css:
   navy #1e3167, orange #e8741a. */

/* pill state while map mode is on: suppress the bundle's active pill,
   light ours up (the React toggle only knows calendar|list) */
body[data-oss-map-view="on"] [class*="viewToggle_"] [class*="viewBtn_"]:not(.oss-map-pill) {
  background: #fff !important;
  color: #4b5563 !important;
}
body[data-oss-map-view="on"] .oss-map-pill {
  background: #1e3167 !important;
  color: #fff !important;
}

/* hide the React view while map mode is on */
[data-oss-map-hidden] { display: none !important; }
body[data-oss-map-view="on"] [class*="monthNav_"] { visibility: hidden; }

#oss-map-root { font-family: inherit; }

.oss-map-loading {
  padding: 60px 0;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

.oss-map-head { margin: 18px 0 6px; }
.oss-map-head h2 { margin: 0 0 4px; font-size: 22px; color: #1e3167; }
.oss-map-head p { margin: 0; color: #6b7280; font-size: 14px; }

.oss-state-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.oss-legend { display: inline-flex; gap: 14px; align-items: center; margin-left: auto; }
.oss-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #6b7280; }
.oss-legend-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d6dae3; display: inline-block; }
.oss-legend-split { background: linear-gradient(90deg, #1e3167 50%, #e8741a 50%); }
#oss-map-back {
  border: 1px solid #d6dae3;
  background: #fff;
  color: #1e3167;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
#oss-map-back:hover { background: #eef1f7; }

.oss-map-stage { position: relative; }
#oss-map-svg { display: block; width: 100%; height: auto; }

.oss-st { stroke: #fff; stroke-width: 1; transition: filter .15s ease, fill .15s ease; }
.oss-st.has-events { cursor: pointer; }
.oss-st.has-events:hover { filter: brightness(1.25) saturate(1.2); }

.oss-st-label {
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(30, 49, 103, 0.55);
  stroke-width: 2.5px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.oss-st-label.tiny { font-size: 9px; }

.oss-st-bg { stroke: #fff; stroke-width: 0.8; }
.oss-st-bg.sel { stroke: #1e3167; stroke-width: 1.4; }

.oss-pin { opacity: 0; transform-origin: center; transform-box: fill-box; animation: oss-pin-drop .35s ease-out forwards; cursor: pointer; }
/* animation fill-mode:forwards would override a class transform, so switch it
   off while highlighted */
.oss-pin.hi { animation: none; opacity: 1; transform: scale(1.35); filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
@keyframes oss-pin-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.oss-state-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 40px;
}
.oss-state-list { max-height: 640px; overflow-y: auto; padding-right: 4px; }

.oss-venue-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.oss-venue-card.hi {
  border-color: #e8741a;
  box-shadow: 0 2px 10px rgba(232, 116, 26, 0.18);
}
.oss-venue-city { font-weight: 700; color: #1e3167; font-size: 15px; }
.oss-venue-name { color: #6b7280; font-size: 13px; margin: 2px 0 8px; }
.oss-venue-dates { display: flex; flex-wrap: wrap; gap: 6px; }

.oss-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef1f7;
  color: #1e3167;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.oss-date-chip:hover { background: #1e3167; color: #fff; }
.oss-chip-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #e8741a;
}

@media (max-width: 760px) {
  .oss-state-split { grid-template-columns: 1fr; }
  .oss-state-list { max-height: none; }
  .oss-map-head h2 { font-size: 18px; }
}
