.hag-service-map {
  --hag-map-ink: #e8f3ef;
  --hag-map-muted: #93a7a1;
  --hag-map-line: rgba(148, 163, 184, 0.16);
  --hag-map-green: #16c79a;
  --hag-map-green-soft: rgba(22, 199, 154, 0.18);
  --hag-map-gold: #e4b936;
  --hag-map-gold-soft: rgba(228, 185, 54, 0.2);
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
  color: var(--hag-map-ink);
  background:
    radial-gradient(circle at 52% 48%, rgba(13, 148, 136, 0.12), transparent 38%),
    linear-gradient(145deg, #07121a 0%, #09131f 54%, #071016 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.hag-service-map::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hag-map__topbar {
  position: absolute;
  z-index: 8;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.hag-map__identity,
.hag-map__status {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(4, 12, 18, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.hag-map__identity {
  max-width: 390px;
}

.hag-map__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--hag-map-green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hag-map__title {
  margin: 0;
  color: #f8fafc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.15;
}

.hag-map__status {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 16px;
  min-width: 168px;
}

.hag-map__status strong {
  color: var(--hag-map-gold);
  font-size: 1.05rem;
  line-height: 1;
}

.hag-map__status span {
  color: var(--hag-map-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.hag-map__canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform 260ms ease;
}

.hag-map__base {
  display: block;
  width: 100%;
  height: 100%;
}

.hag-map__water {
  fill: #071a24;
  opacity: 0.82;
}

.hag-map__coast {
  fill: none;
  stroke: rgba(71, 190, 181, 0.2);
  stroke-width: 1.5;
}

.hag-map__zone {
  fill: rgba(15, 48, 54, 0.38);
  stroke: rgba(63, 104, 109, 0.42);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, stroke 180ms ease, opacity 180ms ease;
}

.hag-map__zone.is-active {
  fill: rgba(9, 111, 88, 0.28);
  stroke: rgba(35, 214, 163, 0.62);
}

.hag-map__zone.is-dimmed {
  opacity: 0.26;
}

.hag-map__road {
  fill: none;
  stroke: rgba(148, 163, 184, 0.13);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
}

.hag-map__network {
  fill: none;
  stroke: rgba(228, 185, 54, 0.17);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.hag-map__label {
  fill: rgba(180, 205, 198, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-anchor: middle;
  text-transform: uppercase;
}

.hag-map__markers {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.hag-map__pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hag-map-green);
  box-shadow: 0 0 0 4px rgba(22, 199, 154, 0.08), 0 0 13px rgba(22, 199, 154, 0.65);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hag-map__pin::after {
  width: 4px;
  height: 4px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  content: "";
}

.hag-map__pin:hover,
.hag-map__pin:focus-visible,
.hag-map__pin.is-active {
  z-index: 3;
  outline: none;
  box-shadow: 0 0 0 5px rgba(22, 199, 154, 0.18), 0 0 24px rgba(22, 199, 154, 0.95);
  transform: translate(-50%, -50%) scale(1.32);
}

.hag-map__pin--hub {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--hag-map-gold);
  box-shadow: 0 0 0 6px rgba(228, 185, 54, 0.11), 0 0 24px rgba(228, 185, 54, 0.88);
}

.hag-map__pin--hub::before {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(228, 185, 54, 0.62);
  border-radius: 50%;
  content: "";
  animation: hag-map-pulse 2.6s ease-out infinite;
}

.hag-map__pin--hub::after {
  width: 6px;
  height: 6px;
}

.hag-map__pin.is-dimmed {
  opacity: 0.13;
  pointer-events: none;
}

.hag-map__pin.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
}

.hag-map__tooltip {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 210px;
  padding: 8px 10px;
  border: 1px solid rgba(228, 185, 54, 0.34);
  border-radius: 9px;
  color: #f8fafc;
  background: rgba(3, 10, 15, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.hag-map__pin:hover .hag-map__tooltip,
.hag-map__pin:focus-visible .hag-map__tooltip,
.hag-map__pin.is-active .hag-map__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hag-map__controls {
  position: absolute;
  z-index: 9;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.hag-map__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: min(72%, 720px);
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 15px;
  background: rgba(3, 10, 15, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.hag-map__filter {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.19);
  border-radius: 999px;
  color: #b9c8c3;
  background: rgba(15, 23, 42, 0.66);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hag-map__filter:hover,
.hag-map__filter:focus-visible {
  border-color: rgba(22, 199, 154, 0.7);
  color: #fff;
  outline: none;
}

.hag-map__filter[aria-pressed="true"] {
  border-color: rgba(22, 199, 154, 0.78);
  color: #062119;
  background: var(--hag-map-green);
  box-shadow: 0 8px 24px rgba(22, 199, 154, 0.22);
}

.hag-map__card {
  width: min(300px, 30%);
  padding: 15px;
  border: 1px solid rgba(228, 185, 54, 0.32);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(9, 20, 25, 0.96), rgba(12, 18, 23, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.hag-map__card-kicker {
  margin: 0 0 4px;
  color: var(--hag-map-gold);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hag-map__card-title {
  margin: 0;
  color: #f8fafc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
}

.hag-map__card-copy {
  min-height: 2.7em;
  margin: 7px 0 12px;
  color: var(--hag-map-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hag-map__card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(22, 199, 154, 0.58);
  border-radius: 10px;
  color: #dcfff3;
  background: rgba(22, 199, 154, 0.12);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.hag-map__card-link:hover,
.hag-map__card-link:focus-visible {
  color: #041b14;
  background: var(--hag-map-green);
  outline: none;
}

.hag-map__privacy {
  position: absolute;
  z-index: 7;
  top: 96px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(22, 199, 154, 0.18);
  border-radius: 999px;
  color: #9cc8bb;
  background: rgba(3, 10, 15, 0.64);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hag-map__privacy::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hag-map-green);
  box-shadow: 0 0 12px rgba(22, 199, 154, 0.8);
  content: "";
}

@keyframes hag-map-pulse {
  0% { opacity: 0.72; transform: scale(0.55); }
  75%, 100% { opacity: 0; transform: scale(1.42); }
}

@media (max-width: 767px) {
  .hag-service-map {
    min-height: 580px;
  }

  .hag-map__topbar {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 8px;
  }

  .hag-map__identity {
    max-width: calc(100% - 104px);
    padding: 10px 11px;
  }

  .hag-map__eyebrow {
    font-size: 0.56rem;
  }

  .hag-map__title {
    font-size: 1.03rem;
  }

  .hag-map__status {
    grid-template-columns: 1fr;
    gap: 2px;
    min-width: 92px;
    padding: 10px;
  }

  .hag-map__status span:nth-of-type(2),
  .hag-map__status strong:nth-of-type(2) {
    display: none;
  }

  .hag-map__privacy {
    top: 90px;
    right: 14px;
    font-size: 0.55rem;
  }

  .hag-map__canvas {
    inset: 72px -170px 122px -155px;
  }

  .hag-map__label {
    font-size: 8.5px;
  }

  .hag-map__pin {
    width: 14px;
    height: 14px;
  }

  .hag-map__pin--hub {
    width: 25px;
    height: 25px;
  }

  .hag-map__controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hag-map__filters {
    order: 2;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px;
    scrollbar-width: thin;
  }

  .hag-map__filter {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .hag-map__card {
    order: 1;
    width: auto;
    padding: 12px;
  }

  .hag-map__card-copy {
    min-height: 0;
    margin: 5px 0 9px;
  }

  .hag-map__card-link {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hag-map__pin--hub::before {
    animation: none;
  }

  .hag-map__pin,
  .hag-map__zone,
  .hag-map__tooltip {
    transition: none;
  }
}
