/* ───────────── MAP ───────────── */

#map-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
}

/* Desktop : la carte ne recouvre pas la sidebar (248px) */
@media (min-width: 769px) {
  #map-view {
    left: 248px;
  }
}
#map-view .leaflet-container { background: #f0ede8; font-family: inherit; }
@media (prefers-color-scheme: dark) {
  #map-view .leaflet-container { background: #1a1a2e; }
}

@keyframes map-pulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(2.4); opacity: 0;  }
}

.map-pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  position: relative;
  border: 2px solid white;
}

.map-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: .4;
  animation: map-pulse 1.5s ease-out infinite;
}
[data-pin].pin-selected {
  box-shadow: 0 4px 16px rgba(0,0,0,.35) !important;
  transform: scale(1.1);
}

.map-pin-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1c1c1e;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .map-pin-label { color: #fff; background: rgba(40,40,40,.85); }
}

.map-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 768px) {
  .map-hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 3.5rem); }
}

@media (max-width: 768px) {
  #map-view {
    position: fixed !important;
    top: 52px !important;
    left: 0 !important; right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    z-index: 360 !important;
  }
}
