/* Oil Map — styles for the general oil production map engine */

.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }

.map-layout > div:first-child { position: relative; }

#map {
  height: 560px;
  border-radius: 12px;
  border: 1px solid var(--border);
  z-index: 1;
}

.leaflet-tile-pane { filter: brightness(0.7) saturate(0.6) contrast(1.1); }
.leaflet-control-attribution { font-size: 9px !important; opacity: 0.6; }

.map-pill {
  pointer-events: none !important;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10000 !important;
}
.map-pill span {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  line-height: 1.3;
  pointer-events: none !important;
}
.map-pill .sub {
  font-weight: 400;
  font-size: 10px;
  color: #aaa;
  margin-left: 4px;
}

/* Scenario-specific label styling (used by overlays) */
.scenario-label {
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
  white-space: nowrap;
  pointer-events: none;
}

.map-legend-html {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.8rem;
  color: var(--text);
}
.map-legend-html .legend-item { display: flex; align-items: center; gap: 8px; }
.map-legend-html .legend-swatch { width: 24px; height: 4px; border-radius: 2px; flex-shrink: 0; }
.map-legend-html .legend-swatch-dash { width: 24px; height: 0; border-top: 3px dashed; flex-shrink: 0; }
.map-legend-html .legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 2px solid; }

.side-panel { max-height: calc(100vh - 120px); overflow-y: auto; }

.chart-container { min-width: 0; }
#supply-chart {
  display: block;
  width: 100%;
  height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Ghost mark — shows inactive timeframe position on slider track */
.slider-row { position: relative; }
.slider-ghost {
  position: absolute;
  width: 3px;
  height: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.slider-ghost-baseline { background: #8b8fa3; }
.slider-ghost-short { background: #34d399; }
.slider-ghost-long { background: #60a5fa; }
