/* ── VTH Leaflet Map Component ────────────────────────────────────────────── */

.vth-map-wrap {
  position: relative;
  isolation: isolate;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: 1px solid var(--color-border, #e4ebf1);
}

.vth-map-canvas {
  width: 100%;
  height: 480px;
  display: block;
  background: #e8f0f7;
}

@media (max-width: 640px) {
  .vth-map-canvas { height: 340px; }
}

/* Scroll-unlock overlay — removed once user clicks */
.vth-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 171, 226, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.vth-map-overlay.hidden { opacity: 0; pointer-events: none; }
.vth-map-overlay-msg {
  background: rgba(255,255,255,0.92);
  color: #414142;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ── Office marker ─────────────────────────────────────────────────────────── */
.vth-marker-office {
  width: 36px;
  height: 36px;
  background: #fab633;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.vth-marker-office::after {
  content: '📍';
  position: absolute;
  font-size: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ── City markers (divIcon) ───────────────────────────────────────────────── */
.vth-city-marker {
  width: 28px;
  height: 28px;
  background: #2aabe2;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}
.vth-city-marker:hover,
.vth-city-marker.active {
  background: #1a8fbf;
  transform: scale(1.18);
}
.vth-city-marker.tier-1 {
  width: 34px;
  height: 34px;
  background: #1a8fbf;
  border-width: 3px;
}
.vth-city-marker.tier-2 {
  width: 30px;
  height: 30px;
}

/* ── Popup ─────────────────────────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  min-width: 180px;
  max-width: 240px;
}
.vth-popup {
  font-family: 'Source Sans 3', sans-serif;
}
.vth-popup-header {
  background: #2aabe2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
}
.vth-popup-header.office {
  background: #fab633;
  color: #414142;
}
.vth-popup-body {
  padding: 0.6rem 0.9rem 0.7rem;
}
.vth-popup-body p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}
.vth-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.vth-popup-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2aabe2;
  text-decoration: none;
  background: #eef7fc;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}
.vth-popup-link:hover { background: #d3ecf9; }
.leaflet-popup-tip { display: none !important; }

/* ── Attribution ──────────────────────────────────────────────────────────── */
.leaflet-control-attribution {
  font-size: 0.72rem !important;
  background: rgba(255,255,255,0.8) !important;
}
