/* TFLavanda interactive map — marker, popup, and legend styling. */
.tfmap-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(20, 20, 20, 0.35), 0 0 0 1px rgba(20, 20, 20, 0.06);
}

.tfmap-hq-pin {
  position: relative;
  display: block;
  width: 30px;
  height: 38px;
  filter: drop-shadow(0 3px 8px rgba(20, 20, 20, 0.4));
}
.tfmap-hq-halo {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgba(40, 254, 94, 0.25);
  animation: tfmap-pulse 2.4s ease-in-out infinite;
}
.tfmap-hq-svg { position: relative; z-index: 1; display: block; }
@keyframes tfmap-pulse {
  0%, 100% { transform: scale(0.8); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .tfmap-hq-halo { animation: none; }
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 12px 30px -8px rgba(20, 20, 20, 0.35) !important;
}
.leaflet-popup-content { margin: 14px 16px !important; }
.leaflet-popup-tip { box-shadow: none !important; }
.tfmap-popup-tag {
  font: 700 11px/1.4 "General Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1FCB4B;
  margin: 0 0 4px;
}
.tfmap-popup-name { font: 600 14px/1.3 "General Sans", sans-serif; color: #141414; margin: 0 0 3px; }
.tfmap-popup-address { font: 400 12px/1.5 "General Sans", sans-serif; color: rgba(20, 20, 20, 0.6); margin: 0; }

.tfmap-popup a.tfmap-popup-gmaps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font: 700 11px/1.4 "General Sans", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1FCB4B;
  text-decoration: none;
  transition: color 0.2s ease;
}
.tfmap-popup-gmaps svg { flex-shrink: 0; }
.tfmap-popup a.tfmap-popup-gmaps:hover { color: #141414; }
.tfmap-popup a.tfmap-popup-gmaps:focus-visible { outline: 2px solid #28FE5E; outline-offset: 2px; }

.tfmap-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px -6px rgba(20, 20, 20, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: "General Sans", sans-serif;
  pointer-events: none;
}
.tfmap-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141414;
}
.tfmap-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tfmap-legend-hq { flex-shrink: 0; display: block; }

.tfmap-reset-control { margin-bottom: 8px !important; }
a.tfmap-reset-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 1 !important;
  background: #fff;
  color: #141414;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
a.tfmap-reset-btn svg { display: block; width: 19px; height: 19px; flex-shrink: 0; }
a.tfmap-reset-btn:hover { background: #f2f2f2; color: #1FCB4B; }
a.tfmap-reset-btn:active { background: #e8e8e8; }
a.tfmap-reset-btn:focus-visible { outline: 2px solid #28FE5E; outline-offset: -2px; }
