/* One map decision: choose a county, then explore its full guide. */
.community-map-section .map-layout{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:28px;align-items:stretch;margin-top:26px}
.community-map-section .map-layout>*{min-width:0}
.community-map-section #map-count{font-size:17px;line-height:1.6;max-width:52ch;margin:20px auto 0}
.community-map-section #community-map.county-map-simple{height:590px;min-height:100%;border:1px solid #b7c3b1;border-radius:8px;overflow:hidden;isolation:isolate}
.county-map-simple .leaflet-tile-pane{filter:saturate(.45) brightness(1.03)}
.county-map-simple .leaflet-container{font-family:var(--body,'DM Sans',sans-serif)}
.county-map-simple .county-marker>span{padding:11px 9px;border-radius:8px;border:2px solid #F4F0E6;color:#F4F0E6;box-shadow:0 3px 12px #17332420;font:22px/1.15 var(--heading-face,Georgia,serif);transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease}
.county-map-simple .county-marker small{font:11px/1.4 'DM Sans',sans-serif;letter-spacing:.02em;margin-top:5px}
.county-map-simple .county-marker.is-selected>span{background:#193D32;border-color:#D5BC83;box-shadow:0 3px 14px #17332440}
.county-map-simple .county-marker:hover>span,.county-map-simple .county-marker:focus-visible>span{outline:3px solid #D5BC83;outline-offset:3px}
.community-map-section .map-layout .county-preview{padding:0;height:100%;max-height:none;overflow:visible;border:1px solid #d6d8c8;border-radius:8px;background:#F4F0E6}
.county-preview-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px;background:#e8eddf;border-radius:8px 8px 0 0}
.county-preview-choices button{min-height:46px;border:1px solid transparent;border-radius:6px;background:transparent;color:#193D32;padding:10px 6px;font:600 15px/1.3 'DM Sans',sans-serif;cursor:pointer}
.county-preview-choices button:hover{background:#dce4d3}
.county-preview-choices button[aria-pressed=true]{background:#193D32;color:#F4F0E6;border-color:#193D32}
.county-preview-choices button:focus-visible{outline:3px solid #a57832;outline-offset:2px}
.county-preview .county-panel-photo{width:100%;height:205px;object-fit:cover;margin:0}
.county-preview .county-panel-copy{padding:25px 28px 28px;text-align:left}
.county-preview .county-panel-copy .county-preview-count{font:600 12px/1.5 'DM Sans',sans-serif;text-transform:uppercase;letter-spacing:.11em;color:#5d6d56;margin:0 0 12px}
.community-map-section .county-preview .county-panel-copy h3{font-size:42px;line-height:1.1;margin:0 0 12px}
.county-preview .county-panel-copy .county-preview-tagline{font-size:18px;line-height:1.4;font-weight:600;color:#193D32;margin:0 0 12px}
.county-preview .county-panel-copy>p{font-size:17px;line-height:1.6;margin:0 0 20px}
.county-preview .county-panel-copy>.button{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;line-height:1.4;text-align:left;min-height:50px;margin:24px 0 0;padding:14px 18px}
.county-preview .county-panel-copy>.button span{font-size:24px;line-height:1}
.county-map-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;padding:40px;text-align:center;background:#dde6d5}
.county-map-fallback h3{font-size:44px;line-height:1.1}
.county-map-fallback>p{font-size:18px;line-height:1.6}
@media(max-width:1100px){
  .community-map-section .map-layout{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:20px}
  .county-preview .county-panel-copy{padding:24px}
}
@media(max-width:900px){
  .community-map-section .map-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .community-map-section #community-map.county-map-simple{height:470px;min-height:0}
  .county-preview-content{display:grid;grid-template-columns:1fr 1.15fr;align-items:stretch}
  .county-preview .county-panel-photo{height:100%;min-height:290px;object-fit:cover}
  .county-preview .county-panel-copy{padding:26px}
}
@media(max-width:650px){
  .community-map-section #map-count{font-size:16px;margin-top:18px}
  .community-map-section #community-map.county-map-simple{height:390px}
  .county-map-simple .county-marker>span{font-size:20px}
  .county-map-simple .county-marker small{display:none}
  .county-preview-content{display:block}
  .county-preview .county-panel-photo{height:190px;min-height:0}
  .county-preview .county-panel-copy{padding:24px}
  .community-map-section .county-preview .county-panel-copy h3{font-size:36px}
  .county-preview .county-panel-copy>p{font-size:17px;line-height:1.6}
  .county-preview .county-panel-copy>.button{font-size:16px;min-height:52px}
  .county-preview-choices{padding:9px;gap:2px}
  .county-preview-choices button{font-size:14px;padding:11px 3px}
}
@media(prefers-reduced-motion:reduce){.county-map-simple .county-marker>span{transition:none}}
.area img[src="/assets/york-coastal-aerial.jpg"],
.county-preview img[src="/assets/york-coastal-aerial.jpg"]{width:106.7%;max-width:none;margin-left:-3.35%;object-position:center 72%;clip-path:inset(0 3.2%)}
.communities .area img[src="/assets/york-coastal-aerial.jpg"]{transform:scale(1.35);transform-origin:center 85%}
.communities .area:hover img[src="/assets/york-coastal-aerial.jpg"]{transform:scale(1.4)}
