/* Coast After Dark: the approved photograph and a compact county browser. */
.service-area { --service-map-accent: #1aef89; position: relative; isolation: isolate; background: #0b1422; color: #fff; padding: clamp(24px, 3vw, 48px) 0; scroll-margin-top: 16px; }
.service-area-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; gap: clamp(20px, 2.2vw, 36px); max-width: 1600px; }
.service-area-copy { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 540px; overflow: hidden; isolation: isolate; border: 1px solid #ffffff30; border-radius: 22px; background: #101f32; box-shadow: 0 20px 50px #02091645; }
.service-area-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #142b43, #102033 48%, #080f18); }
.service-area-photo img { position: absolute; top: 44%; left: 0; width: 100%; height: auto; max-width: none; transform: translateY(-50%); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 90%, transparent); }
.service-area-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #07111e87, transparent 30%, transparent 67%, #080f1880); pointer-events: none; }
.service-area-copy.is-revealed .service-area-photo img { animation: service-coast-settle 4.5s ease-out both; }
.service-area-heading { position: relative; padding: clamp(24px, 2.4vw, 38px) clamp(20px, 2.2vw, 34px) 18px; }
.service-area-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: #fff; font-size: clamp(18px, 1.55vw, 24px); font-weight: 900; line-height: 1.25; letter-spacing: .075em; text-transform: uppercase; }
.service-area-heading h2::before { content: ''; width: 7px; height: 22px; background: var(--orange); border-radius: 1px; transform: skew(-10deg); flex: none; }
.service-area-intro { margin: 0; color: #fff; font-size: clamp(27px, 2.65vw, 42px); font-weight: 600; line-height: 1.13; letter-spacing: -.035em; text-shadow: 0 2px 10px #0009; }
.service-area-controls { position: relative; margin-top: auto; padding: 18px clamp(16px, 1.65vw, 26px) clamp(18px, 1.8vw, 28px); }
.service-county-list { display: grid; grid-template-columns: 1.1fr .95fr 1.2fr .8fr; gap: 3px; margin: 0 0 14px; padding: 4px; background: #101b2ee8; border: 1px solid #c3d6f05c; border-radius: 10px; box-shadow: 0 8px 20px #0004, inset 0 1px 0 #ffffff12; backdrop-filter: blur(12px); }
.service-county { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 46px; padding: 10px 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #fff; text-align: center; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.service-county-name { font-size: clamp(11px, 1.05vw, 15px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.service-county:not(:last-child) { border-right-color: #ffffff24; }
.service-county[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: #7896ff; box-shadow: 0 3px 12px #082bea55; }
.service-community-panel { padding: clamp(17px, 1.6vw, 25px); border: 1px solid #c3d6f066; border-radius: 13px; background: #101b2ed9; box-shadow: 0 12px 25px #0005, inset 0 1px 0 #ffffff12; backdrop-filter: blur(14px); }
.service-selected-county { margin: 0 0 10px; color: #fff; font-size: clamp(14px, 1.2vw, 18px); font-weight: 800; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.service-city-heading { display: block; margin: 0 0 10px; color: #f4f6ff; font-size: 13px; font-weight: 500; line-height: 1.45; }
.service-city-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.service-city-controls select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 10px; border: 1px solid #dce3ee; border-radius: 6px; background: #f9fafc; color: #152237; font-size: clamp(12px, 1vw, 14px); line-height: 1.4; color-scheme: light; cursor: pointer; }
.service-area-explore { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 16px; border: 1px solid #7592ff; border-radius: 6px; background: var(--blue); color: #fff; font-size: clamp(11px, .95vw, 13px); font-weight: 700; line-height: 1.25; letter-spacing: .015em; white-space: nowrap; box-shadow: 0 4px 14px #082bea30; transition: background-color .2s, color .2s, border-color .2s; }
.service-county:focus-visible, .service-area-explore:focus-visible, .service-city-controls select:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.service-county:active, .service-area-explore:active { background: var(--orange); border-color: var(--orange); color: #121d30; }
@media (hover: hover) and (pointer: fine) {
  .service-county:hover, .service-area-explore:hover { background: var(--orange); border-color: var(--orange); color: #121d30; }
}
@keyframes service-coast-settle { from { transform: translateY(-50%) scale(1.035); } to { transform: translateY(-50%) scale(1); } }

/* About 5% shorter on roomy screens; the complete frame fits below the header. */
.service-map-frame { --service-map-height: clamp(666px, calc(47.5vw + 48px), 770px); position: relative; display: flex; flex-direction: column; height: min(var(--service-map-height), calc(100vh - var(--site-header-height) - 64px)); height: min(var(--service-map-height), calc(100svh - var(--site-header-height) - 64px)); min-width: 0; border-radius: 22px; border: 4px solid #fffffff2; background: #f0f4fa; color: #183153; box-shadow: 0 20px 50px #020d3f40; overflow: hidden; isolation: isolate; }
.service-map-stage { position: relative; flex: 1; min-height: 0; min-width: 0; background: #e6edf5; }
.service-map-canvas { position: absolute; inset: 0; z-index: 0; isolation: isolate; opacity: 0; transition: opacity .3s; }
.service-map-frame[data-state="ready"] .service-map-canvas { opacity: 1; }
.service-map-toolbar { position: absolute; z-index: 3; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.service-map-reset { pointer-events: auto; min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 6px; border: 1px solid #d9e1ec; background: #fff; box-shadow: 0 3px 15px #142d5014; color: #193052; font-size: 12px; font-weight: 600; }
.service-map-reset .icon { width: 17px; height: 17px; }
.service-map-reset:hover { border-color: var(--blue); color: var(--blue); }
.service-map-north { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: #62748c; display: grid; place-items: center; gap: 4px; }
.service-map-north::before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 12px solid #183153; }
.service-map-legend { display: inline-flex; align-items: center; flex: none; gap: 6px; font-size: 10px; line-height: 1.4; color: #52627b; white-space: nowrap; }
.service-map-legend i { display: block; width: 10px; height: 10px; background: #1aef8938; border: 1px solid var(--service-map-accent); border-radius: 2px; }
.service-map-caption { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; min-height: 36px; padding: 9px 14px; background: #fff; border-top: 1px solid #e1e7ee; }
.service-map-caption strong { color: #183153; font-size: 11px; font-weight: 600; line-height: 1.4; }
.service-map-fallback { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding: 80px 26px; background: #f2f6fc url('assets/service-area-fallback.svg?v=green-1') center / contain no-repeat; }
.service-map-frame[data-state="ready"] .service-map-fallback { display: none; }
.service-map-fallback-message { text-align: center; padding: 13px 20px; background: #fffffff2; color: #40536f; border: 1px solid #dfe6f0; box-shadow: 0 3px 15px #142d5008; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 300px; }
.service-map-fallback-message a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.service-map-retry { display: block; margin: 8px auto 0; font-weight: 600; color: var(--blue); padding: 5px 9px; }
.service-map-frame[data-state="loading"] .service-map-fallback-message::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--blue); animation: service-map-loading 1s ease-in-out infinite alternate; }
.service-map-stage .maplibregl-map { font-family: Belman, Arial, sans-serif; }
.service-map-stage .maplibregl-ctrl-top-right { top: 76px; right: 12px; }
.service-map-stage .maplibregl-ctrl-group { border-radius: 13px; border: 1px solid #d9e1ec; box-shadow: 0 3px 15px #142d5014; overflow: hidden; }
.service-map-stage .maplibregl-ctrl-group button { width: 40px; height: 42px; }
.service-map-stage .maplibregl-ctrl-attrib { font: 10px/20px Arial, sans-serif; background: #ffffffd9; }
.service-map-stage .maplibregl-ctrl-bottom-right { max-width: 100%; }
.service-map-stage .maplibregl-ctrl-attrib a { color: #344760; }
.service-map-stage .maplibregl-popup-content { border: 1px solid #dde5f0; border-radius: 13px; box-shadow: 0 8px 30px #18315324; padding: 18px 28px 17px 18px; }
.service-map-stage .maplibregl-popup-close-button { padding: 2px 7px; font-size: 22px; color: #52627b; }
.service-map-popup strong { display: block; font-size: 16px; line-height: 1.3; color: #153052; }
.service-map-popup p { color: #62748c; margin-top: 5px; font-size: 12px; line-height: 1.5; }
.service-map-popup .service-popup-tag { color: #087b46; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.service-map-city-marker { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--service-map-accent); box-shadow: 0 1px 6px #1029684d; }
.service-map-stage .leaflet-container { font-family: Belman, Arial, sans-serif; background: #e6edf5; }
.service-map-stage .leaflet-top.leaflet-right { top: 75px; right: 11px; }
.service-map-stage .leaflet-control-zoom { border: 1px solid #d9e1ec; border-radius: 13px; overflow: hidden; box-shadow: 0 3px 15px #142d5014; }
.service-map-stage .leaflet-control-zoom a { width: 40px; height: 42px; line-height: 42px; color: #183153; }
.service-map-stage .leaflet-control-attribution { font: 10px/17px Arial, sans-serif; max-width: 100%; background: #fffffff0; padding: 3px 6px; }
.service-map-stage .leaflet-control-attribution a { color: #344760; }
.service-map-stage .leaflet-popup-content-wrapper { border: 1px solid #dde5f0; border-radius: 13px; box-shadow: 0 8px 30px #18315324; }
.service-map-stage .leaflet-popup-content { margin: 16px 23px 16px 16px; }
.service-map-stage .leaflet-popup-content p { margin: 5px 0 0; }
.service-map-stage .leaflet-popup-content .service-popup-tag { margin-top: 10px; }
.service-map-stage .leaflet-container a.leaflet-popup-close-button { color: #52627b; }
.service-area-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.service-map-stage .service-county-tooltip { font: 12px Belman, Arial, sans-serif; color: #193052; border: 1px solid #d9e1ec; border-radius: 7px; box-shadow: 0 3px 12px #142d5014; }
.service-map-frame:fullscreen { width: 100vw; height: 100dvh; display: flex; flex-direction: column; border: 0; border-radius: 0; }
.service-map-frame:fullscreen .service-map-stage { height: auto; flex: 1; }
@keyframes service-map-loading { to { opacity: .25; } }
@media (min-width: 901px) and (max-width: 1150px) {
  .service-area-layout { gap: 20px; }
  .service-area-heading { padding-inline: 20px; }
  .service-area-heading h2 { font-size: 18px; letter-spacing: .045em; }
  .service-area-intro { font-size: 29px; }
  .service-area-controls { padding-inline: 12px; }
  .service-community-panel { padding: 15px; }
  .service-area-explore { padding-inline: 11px; }
}
@media (max-width: 900px) {
  .service-area { padding-block: 24px 36px; }
  .service-area-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service-area-copy { min-height: clamp(580px, 85vw, 760px); border-radius: 19px; }
  .service-area-heading { padding: 28px 24px 18px; }
  .service-area-heading h2 { font-size: clamp(18px, 3vw, 24px); }
  .service-area-intro { font-size: clamp(29px, 5vw, 42px); }
  .service-area-controls { padding: 18px; }
  .service-county-name { font-size: clamp(11px, 2.3vw, 15px); }
  .service-community-panel { padding: 18px; }
  .service-selected-county { font-size: 15px; }
  .service-city-controls select { font-size: 14px; }
  .service-area-explore { font-size: 12px; }
  .service-map-frame { --service-map-height: clamp(590px, calc(133vw + 48px), 713px); border-width: 3px; border-radius: 19px; scroll-margin-top: 0; }
  .service-map-toolbar { top: 14px; left: 13px; right: 13px; }
  .service-map-reset { font-size: 11px; padding-inline: 12px; }
  .service-map-caption { padding: 8px 11px; gap: 4px 10px; }
  .service-map-caption strong { font-size: 11px; }
}
@media (max-width: 480px) {
  .service-area-layout { padding-inline: 16px; }
  .service-area-heading { padding-inline: 20px; }
  .service-area-heading h2 { font-size: 18px; gap: 10px; letter-spacing: .045em; }
  .service-area-controls { padding: 14px; }
  .service-community-panel { padding: 16px 13px; }
  .service-city-controls { gap: 8px; }
  .service-city-controls select { font-size: 12px; padding-inline: 8px; }
  .service-area-explore { font-size: 10px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-area *, .service-area *::before { animation: none !important; transition: none !important; }
}
