/* ── SCSN Map Plugin Styles ─────────────────────────────────────── */

.scsn-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(95, 15, 64, 0.35);
  border: 1px solid #D9D9D9;
}

#scsn-map {
  width: 100%;
  background: #f0ece8;
}

/* Loading overlay */
.scsn-map-loading {
  position: absolute;
  inset: 0;
  background: #FBF7F4;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.4s ease;
  font-family: Jost, 'Gill Sans', sans-serif;
  color: #545454;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

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

/* Error state */
.scsn-map-error {
  position: absolute;
  inset: 0;
  background: #FBF7F4;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: Jost, 'Gill Sans', sans-serif;
  color: #EF476F;
  font-size: 0.95rem;
}

/* ── Custom pin marker ───────────────────────────────────────────── */
.scsn-pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scsn-pin:hover {
  transform: scale(1.25);
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5);
}

/* Cycling through brand colours */
.scsn-pin-0 { background: #4AA3D3; }
.scsn-pin-1 { background: #EF476F; }
.scsn-pin-2 { background: #06D6A0; }
.scsn-pin-3 { background: #FFD166; }
.scsn-pin-4 { background: #5F0F40; }

/* ── Popup ───────────────────────────────────────────────────────── */
.scsn-popup {
  font-family: Jost, 'Gill Sans', sans-serif;
  min-width: 180px;
}

.scsn-popup strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5F0F40;
  margin-bottom: 4px;
}

.scsn-popup small {
  display: block;
  font-size: 0.78rem;
  color: #545454;
  margin-bottom: 8px;
}

.scsn-popup a {
  font-size: 0.8rem;
  color: #4AA3D3;
  text-decoration: none;
  font-weight: 600;
}

.scsn-popup a:hover {
  text-decoration: underline;
}

/* Override Leaflet popup chrome to match brand */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 20px 40px -16px rgba(95,15,64,0.35) !important;
  padding: 4px !important;
}

.leaflet-popup-content {
  margin: 16px 18px !important;
}

.leaflet-popup-tip {
  background: #fff !important;
}

.leaflet-popup-close-button {
  color: #545454 !important;
  font-size: 18px !important;
  padding: 6px 8px !important;
}

/* Attribution — keep it subtle */
.leaflet-control-attribution {
  font-size: 10px !important;
  opacity: 0.6;
}
