﻿/* =============================================
   Laplapky Map — Leaflet customization + map UI
   ============================================= */

/* ─────────────────────────────────────────────
   Custom marker pin
   ───────────────────────────────────────────── */
.map-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: var(--color-orange);
  box-shadow: 0 4px 14px rgba(244, 162, 89, .45), 0 1px 4px rgba(0,0,0,.10);
  border: 2.5px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.map-pin:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 89, .50), 0 2px 6px rgba(0,0,0,.10);
}
.map-pin span { font-size: 15px; line-height: 1 }

.map-pin--typed {
  background: var(--pin-c, var(--color-orange));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--pin-c, var(--color-orange)) 45%, transparent), 0 1px 4px rgba(0,0,0,.10);
}

/* ─────────────────────────────────────────────
   Leaflet overrides (keep rounded popup)
   ───────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-line);
}
.leaflet-popup-content {
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--color-ink);
  line-height: 1.5;
  margin: 14px 14px;
}
.leaflet-popup-tip { background: var(--color-white) }
.leaflet-popup-close-button {
  font-size: 18px !important;
  color: var(--color-ink-soft) !important;
  top: 8px !important;
  right: 10px !important;
}

/* ─────────────────────────────────────────────
   Leaflet attribution
   ───────────────────────────────────────────── */
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255, 255, 255, .75) !important;
}

/* ─────────────────────────────────────────────
   Zoom controls
   ───────────────────────────────────────────── */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
}
.leaflet-control-zoom a {
  font-family: var(--font-family) !important;
  border-radius: var(--radius-xs) !important;
  color: var(--color-ink) !important;
}
.leaflet-control-zoom-in  { border-radius: var(--radius-xs) var(--radius-xs) 0 0 !important }
.leaflet-control-zoom-out { border-radius: 0 0 var(--radius-xs) var(--radius-xs) !important }
.leaflet-control-zoom a:hover { background: var(--color-teal-tint) !important; color: var(--color-teal) !important }
