/* /service-areas/ map page. Builds on home.css + why.css. */
.ccl-map { position: relative; height: clamp(640px, calc(100vh - 150px), 880px); background: #E9EEF0; }
.ccl-map__canvas { position: absolute; inset: 0; z-index: 0; }
/* Pinned to the map's top-left corner (as on the reference site), not to the page container. */
.ccl-panel { position: absolute; z-index: 1; top: 20px; left: 20px; width: 350px; max-height: calc(100% - 40px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px -10px rgba(0,0,0,.25); }
.cch-page .ccl-panel h1 { font-size: 27px; line-height: 1.2; font-weight: 700; }
.ccl-panel > p { margin: 0; font-size: 14px; line-height: 1.65; font-weight: 300; color: var(--cc-muted); }
.ccl-panel__list { border-top: 1px solid #ECEAEA; }
.ccl-panel details { border-bottom: 1px solid #ECEAEA; }
.ccl-panel summary { display: flex; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--cc-head); }
.ccl-panel summary::-webkit-details-marker { display: none; }
.ccl-panel summary:hover, .ccl-panel details.is-hover summary { color: var(--cc-red); }
.ccl-panel summary:focus-visible { outline: 2px solid var(--cc-red); outline-offset: 2px; border-radius: 8px; }
.ccl-panel summary i { width: 10px; height: 10px; border-radius: 50%; background: var(--cc-head); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #CDCBCC; flex-shrink: 0; }
.ccl-panel details[open] summary i { background: var(--cc-red); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--cc-red); }
.ccl-panel summary span { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--cc-muted); }
/* Drilled into one area: hide the others, show Back. */
.ccl-panel__list.is-focused details:not([open]) { display: none; }
.ccl-panel__list.is-focused details[open] { border-bottom: 0; }
.ccl-panel__list.is-focused details[open] summary { font-size: 19px; }
.cch-page .ccl-panel__back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 -4px; padding: 8px 14px 8px 12px; border: 0; border-radius: 100px; background: var(--cc-grey); color: var(--cc-head); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cch-page .ccl-panel__back:hover, .cch-page .ccl-panel__back:focus { background: var(--cc-mint); color: var(--cc-green-dk); }
.ccl-panel__back[hidden] { display: none !important; }
.ccl-panel__back svg { transform: rotate(180deg); }
.ccl-panel__body { padding: 0 4px 16px 26px; display: flex; flex-direction: column; gap: 10px; }
.ccl-panel__body p { margin: 0; font-size: 13px; color: var(--cc-muted); }
.ccl-panel__body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ccl-panel__body li { padding: 5px 11px; border-radius: 100px; background: var(--cc-mint); color: var(--cc-green-dk); font-size: 12px; font-weight: 500; }
.ccl-panel__body a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cc-red); }
.ccl-panel .cch-btn { justify-content: center; gap: 8px; margin-top: 4px; }
.ccl-panel small { text-align: center; font-size: 13px; color: var(--cc-muted); }
.ccl-panel small a { font-weight: 600; color: var(--cc-head); }

/* Leaflet bits */
.ccl-map .leaflet-container { font-family: inherit; background: #E9EEF0; }
.ccl-label.leaflet-tooltip { padding: 3px 9px; border: 0; border-radius: 100px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cc-head); }
.ccl-label.leaflet-tooltip::before { display: none; }
.ccl-label--office.leaflet-tooltip { background: var(--cc-red); color: #fff; }
.ccl-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--cc-red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }

@media (max-width: 760px) {
  .ccl-map { height: auto; display: flex; flex-direction: column-reverse; }
  .ccl-map__canvas { position: relative; height: 380px; }
  .ccl-panel { position: static; width: auto; max-height: none; padding: 26px 20px; border-radius: 0; box-shadow: none; }
  .cch-page .ccl-panel h1 { font-size: 24px; }
}
.ccl-map .leaflet-tile-pane { filter: saturate(.5) brightness(1.04); }

/* Mini map card on each area page (under "Neighborhoods & Hospitals We Serve") */
.ccl-minimap { display: flex; flex-direction: column; margin-top: 8px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.12); }
.ccl-minimap__map { position: relative; z-index: 0; isolation: isolate; height: 280px; background: #E9EEF0; } /* keeps Leaflet's z-index 400+ panes under the sticky nav */
.ccl-minimap > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; font-size: 14px; font-weight: 600; color: var(--cc-red); }
.ccl-minimap > a:hover { background: var(--cc-grey); }
.ccl-minimap .leaflet-tile-pane { filter: saturate(.5) brightness(1.04); }
.ccl-minimap .leaflet-control-attribution { font-size: 9px; }
@media (max-width: 760px) { .ccl-minimap__map { height: 220px; } }
