/* =====================================================
   MAP PAGE ONLY (safe + clean)
   ===================================================== */

* { box-sizing: border-box; }

body {
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* Hero */
.service-map-hero{
  padding: 30px 20px 10px;
}
.service-map-hero-inner{
  max-width: 1200px;
  margin: 0 auto;
}
.service-map-hero-inner h2{
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .2px;
}
.service-map-hero-inner p{
  margin: 8px 0 0;
  color: #4b5563;
}

/* Section wrapper */
.service-map-section{
  padding: 18px 20px 60px;
  background: #fafafa;
}
.service-map-wrap{
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   MAP AREA
========================= */
.service-map-area{
  position: relative;
  z-index: 1;
  background: #e9e9e9;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  overflow: hidden;
}

#mapSvg{
  width: 100%;
  height: auto;
  display: block;
}

/* States (darker outline) */
.service-map-state{
  fill: #c3c3c3;
  stroke: #2f2f2f;        /* MUCH darker outline */
  stroke-width: 1.6;      /* thicker border */
  vector-effect: non-scaling-stroke;
  transition: fill .15s ease;
}

.service-map-state:hover{
  fill: #b5b5b5;
}

/* =========================
   PINS
========================= */
.service-map-pin{
  cursor: pointer;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

.service-map-pin-shadow{ fill: rgba(0,0,0,.25); }
.service-map-pin-body{ fill: #b91c1c; }
.service-map-pin-ring{ fill: #ffffff; }
.service-map-pin-dot{ fill: #b91c1c; }

/* =========================
   TOOLTIP
========================= */
.service-map-tooltip{
  position: absolute;
  opacity: 0;
  pointer-events: none;
  background: rgba(17, 24, 39, .96);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(12px, -14px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: opacity .12s ease;
  z-index: 50;
}

/* =========================
   MODAL — HARD OFF UNTIL OPEN
   This prevents any page shading until you click a pin.
========================= */
.service-map-modal{
  display: none;                 /* ✅ key: no overlay until open */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.service-map-modal.open{
  display: flex;                 /* ✅ only open on pin click */
}

/* Modal card */
.service-map-modal-card{
  background: #fff;
  width: 100%;
  max-width: 860px;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
}

/* Modal header */
.service-map-modal-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.service-map-modal-head h3{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}
.service-map-close{
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}
.service-map-close:hover{ color: #111827; }

/* Modal body */
.service-map-modal-body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
}
@media (max-width: 768px){
  .service-map-modal-body{ grid-template-columns: 1fr; }
}

/* Image */
.service-map-modal-img img{
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}

/* Info */
.service-map-modal-info p{
  margin: 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.65;
}

/* Tags */
.service-map-tags{ margin-top: 12px; }
.service-map-tag{
  display: inline-block;
  background: #e5e7eb;
  color: #111827;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  margin: 6px 8px 0 0;
  font-weight: 700;
}

/* Buttons */
.service-map-cta{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.service-map-btn{
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 800;
}
.service-map-btn.primary{
  background: #b91c1c;
  color: #fff;
}
.service-map-btn.primary:hover{ background: #991b1b; }
.service-map-btn.secondary{
  background: #f3f4f6;
  color: #111827;
}
.service-map-btn.secondary:hover{ background: #e5e7eb; }
