/* Add this to your existing <style> section */
.postcode-label {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid #d7a645 !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  padding: 5px 7px !important;
  text-align: center !important;
}

.postcode-label::before {
  display: none !important;
}

/* ===== Map polish ===== */
#map {
  box-shadow: 0 18px 48px rgba(0,0,0,0.16);
}

/* Popups styled to match site cards */
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22) !important;
  border: 1px solid #e6cf98 !important;
  padding: 2px !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.leaflet-popup-content strong {
  color: #9b6f16 !important;
  font-size: 16px !important;
}

.leaflet-popup-tip {
  background: #fff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12) !important;
}

.leaflet-popup-close-button {
  color: #9b6f16 !important;
  font-size: 20px !important;
}

/* Custom gold marker */
.leafletpro-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #e2b862 0%, #d7a645 55%, #c99228 100%);
  transform: rotate(-45deg);
  border: 2px solid #111827;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.leafletpro-pin::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111827;
}

/* Zoom controls matching brand */
.leaflet-control-zoom a {
  color: #111827 !important;
  font-weight: 800 !important;
}

.leaflet-control-zoom a:hover {
  background: #f7efe0 !important;
  color: #9b6f16 !important;
}

/* Loading overlay while map data fetches */
.map-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(223,231,243,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  border-radius: 22px;
  transition: opacity .25s ease;
}

.map-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(215,166,69,0.25);
  border-top-color: #d7a645;
  animation: leafletpro-spin 0.8s linear infinite;
}

@keyframes leafletpro-spin {
  to { transform: rotate(360deg); }
}

/* Selected-sector chips */
#selectedAreaText {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e6cf98;
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.sector-chip-label {
  white-space: nowrap;
}

.sector-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(215,166,69,0.18);
  color: #9b6f16;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}

.sector-chip-remove:hover {
  background: #d7a645;
  color: #111;
}

.sector-clear-all {
  border: none;
  background: transparent;
  color: #9b6f16;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 4px 2px;
}

.sector-clear-all:hover {
  color: #111827;
}
