*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: white;
  color: #2c2c2c;
  min-height: 100vh;
}

.map-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.map-header {
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: #fff;
  border-bottom: 2px solid #e8e0d5;
}

.map-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a1a1a;
}

.map-container {
  flex: 1;
  padding: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

#map {
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 400px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#map-loading {
  position: absolute;
  inset: 0;
  background: rgba(248, 245, 240, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #666;
  gap: 0.5rem;
  pointer-events: none;
  transition: opacity 0.3s;
}
#map-loading.hidden { opacity: 0; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid #ccc;
  border-top-color: #888;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.map-relative { position: relative; }

.leaflet-popup-content b { color: #1a1a1a; }
.leaflet-popup-content a { color: #c0392b; }

.boutique-search {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  padding: 6px 8px;
  position: relative;
}
.boutique-search input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 220px;
  background: transparent;
}
.boutique-search-results {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  max-height: 220px;
  overflow-y: auto;
  z-index: 9999;
}
.boutique-search-result {
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.boutique-search-result:last-child { border-bottom: none; }
.boutique-search-result:hover { background: #f5f0eb; }
.boutique-search-result b { display: block; font-size: 13px; }
.boutique-search-result span { font-size: 11px; color: #888; }

@media (max-width: 600px) {
  .map-container { padding: 0.5rem; }
  #map { height: calc(100vh - 100px); border-radius: 6px; }
}
