/* Florida service-area map. Scoped to .fl-map; colours come from the site tokens with fallbacks. */
.fl-map {
  --map-land: var(--surface, #FAF5EC);
  --map-coast: var(--gold-ink, #7A5B1F);
  --map-mesh: var(--line, #D6C7B1);
  --map-area: var(--gold-light, #DCC48F);
  --map-area-line: var(--gold, #B68F40);
  --map-neighbor: var(--bg-2, #E6DACA);
  --map-dot: var(--navy, #0C1531);
  --map-pulse: var(--gold, #B68F40);
  --map-text: var(--ink-2, #3D4450);
  --map-text-strong: var(--ink, #0E1117);
  margin: 0;
  display: grid;
  gap: 20px;
}
.fl-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.fl-map__neighbors path { fill: var(--map-neighbor); stroke: var(--map-mesh); stroke-width: .6; opacity: .55; }
.fl-map__land { fill: var(--map-land); }
.fl-map__mesh { fill: none; stroke: var(--map-mesh); stroke-width: .5; opacity: .7; }
.fl-map__area path { fill: var(--map-area); fill-opacity: .55; stroke: var(--map-area-line); stroke-width: .8; stroke-linejoin: round; }
.fl-map__coast { fill: none; stroke: var(--map-coast); stroke-width: .9; stroke-linejoin: round; opacity: .55; }
.fl-map__cities circle { fill: var(--map-text); opacity: .7; }
.fl-map__cities text, .fl-map__label text {
  font-family: Inter, system-ui, sans-serif; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; fill: var(--map-text); font-weight: 500;
}
.fl-map__label line { stroke: var(--map-dot); stroke-width: 1; opacity: .5; }
.fl-map__label text { font-size: 13px; font-weight: 600; fill: var(--map-text-strong); letter-spacing: .06em; }
.fl-map__label .fl-map__sub { font-size: 10.5px; font-weight: 500; fill: var(--map-text); letter-spacing: .1em; }
.fl-map__dot { fill: var(--map-dot); stroke: var(--map-land); stroke-width: 2; }
.fl-map__halo { fill: var(--map-pulse); opacity: .22; }
.fl-map__pulse { fill: none; stroke: var(--map-pulse); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }

/* Entrance: land fades/lifts in, then the area tints, then the dot lands. */
.fl-map__land, .fl-map__mesh, .fl-map__coast, .fl-map__neighbors,
.fl-map__area, .fl-map__cities, .fl-map__home {
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.js .fl-map:not(.is-visible) .fl-map__land,
.js .fl-map:not(.is-visible) .fl-map__coast,
.js .fl-map:not(.is-visible) .fl-map__mesh { opacity: 0; transform: translateY(8px); }
.js .fl-map:not(.is-visible) .fl-map__area,
.js .fl-map:not(.is-visible) .fl-map__cities,
.js .fl-map:not(.is-visible) .fl-map__home { opacity: 0; }
.fl-map.is-visible .fl-map__area { transition-delay: .35s; }
.fl-map.is-visible .fl-map__cities { transition-delay: .55s; }
.fl-map.is-visible .fl-map__home { transition-delay: .75s; }
.fl-map.is-visible .fl-map__pulse { animation: fl-map-pulse 2.8s cubic-bezier(.22,1,.36,1) 1.4s 4; }
@keyframes fl-map-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* Legend */
.fl-map__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px;
  font: 500 14px/1.4 Inter, system-ui, sans-serif; color: var(--map-text); }
.fl-map__legend li { display: flex; align-items: center; gap: 10px; }
.fl-map__legend b { color: var(--map-text-strong); font-weight: 600; }
.fl-map__key { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.fl-map__key--home { border-radius: 50%; background: var(--map-dot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--map-pulse) 30%, transparent); width: 10px; height: 10px; margin: 2px; }
.fl-map__key--area { background: color-mix(in srgb, var(--map-area) 55%, var(--map-land)); border: 1px solid var(--map-area-line); }
.fl-map__key--remote { background: var(--map-land); border: 1px solid var(--map-coast); opacity: .8; }

@media (max-width: 560px) {
  .fl-map__legend { flex-direction: column; font-size: 13.5px; }
  /* SVG text scales down with the map; keep only the home-base label, sized up to stay legible. */
  .fl-map__cities { display: none; }
  .fl-map__label text { font-size: 21px; }
  .fl-map__label .fl-map__sub { font-size: 16px; }
  .fl-map__label text:not(.fl-map__sub) { transform: translateY(-4px); }
  .fl-map__label .fl-map__sub { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .fl-map *, .fl-map.is-visible * { transition: none !important; animation: none !important; }
  .js .fl-map:not(.is-visible) .fl-map__land, .js .fl-map:not(.is-visible) .fl-map__coast, .js .fl-map:not(.is-visible) .fl-map__mesh,
  .js .fl-map:not(.is-visible) .fl-map__area, .js .fl-map:not(.is-visible) .fl-map__cities, .js .fl-map:not(.is-visible) .fl-map__home { opacity: 1; transform: none; }
}
