/* map.css — the spot map component (homepage hero + /free-tools/spot-map). Loaded only on those two pages. */

.wtl-map { position: relative; width: 100%; height: 70vh; min-height: 420px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(13, 63, 97, 0.18); }
.wtl-map.tall { height: 78vh; }

#legend {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  background: rgba(255,255,255,0.93); border-radius: 8px; padding: 7px 10px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); font-size: 12px; color: #222;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,0.3); flex-shrink: 0; }

#spotPanel {
  position: absolute; top: 10px; right: 10px; z-index: 100;
  background: #fff; color: #222; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  width: 300px; display: none; max-height: calc(100% - 20px); overflow: hidden; flex-direction: column;
}
#spotPanel.visible { display: flex; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px 10px; border-bottom: 1px solid #eee; background: #f8fafc; flex-shrink: 0; }
.panel-title { font-weight: 700; font-size: 15px; color: #111; flex: 1; padding-right: 8px; line-height: 1.3; }
.panel-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #777; padding: 0; line-height: 1; }
.panel-close:hover { color: #c62828; }
.panel-content { padding: 12px 14px; overflow-y: auto; flex: 1; }
.panel-actions { padding: 10px 14px 14px; flex-shrink: 0; border-top: 1px solid #eee; }
.panel-sub { font-size: 12px; color: #555; margin: 2px 0 10px; }
.panel-muted { font-size: 12px; color: #777; }
.water-type-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #fff; margin-bottom: 12px; }

.conditions-block { display: flex; align-items: flex-start; gap: 12px; background: #f4f8fb; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.conditions-block[hidden] { display: none; }
.conditions-score-wrap { text-align: center; flex-shrink: 0; min-width: 52px; }
.conditions-score { font-size: 26px; font-weight: 800; line-height: 1; }
.conditions-lbl { font-size: 10px; color: #666; margin-top: 3px; }
.conditions-reasons { list-style: none; font-size: 12px; color: #444; line-height: 1.45; margin: 0; padding: 0; }
.conditions-reasons li { margin: 0 0 3px; }
.score-great { color: #1b5e20; }
.score-good  { color: #2e7d32; }
.score-fair  { color: #b26a00; }
.score-poor  { color: #b71c1c; }

.section-label { font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.species-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.species-chip { background: #e8f4fd; color: #0d47a1; border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.panel-credit { font-size: 11px; color: #555; margin-top: 12px; }
.panel-credit a { color: #1a7fc1; }
.btn-directions { width: 100%; background: #1a7fc1; color: #fff; border: none; border-radius: 10px; padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-directions:hover { background: #145f91; }

@media (max-width: 600px) {
  .wtl-map, .wtl-map.tall { height: 64vh; min-height: 360px; border-radius: 10px; }
  #spotPanel { top: auto; bottom: 0; right: 0; left: 0; width: 100%; border-radius: 16px 16px 0 0; max-height: 60%; }
}
