/* Community directory only. Reserve map size before scripts; no global layout changes. */
#swpc-community.swpcd-community{max-width:1160px}
#swpc-community .swpcd-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:28px}
#swpc-community .swpcd-map-panel{min-width:0}
#swpc-community .swpcd-map-panel>h2,#swpc-community .swpcd-widget-heading h2{font-size:21px;line-height:1.35;margin:0;color:#143752}
#swpc-community .swpcd-map-panel>h2{margin:0 0 14px}
#swpc-community .swpcd-map-frame{position:relative;width:100%;border:6px solid #153b59;border-radius:22px;background:#dfeff4;box-shadow:0 5px 15px #14375214;overflow:hidden;isolation:isolate;box-sizing:border-box}
#swpc-community .swpcd-map-frame:before{content:"";display:block;padding-top:100%}
#swpc-community .swpcd-map{position:absolute;inset:0;width:100%;height:100%;z-index:1;background:#dfeff4;direction:ltr}
#swpc-community #swpcd-map-status{position:absolute;inset:40% 20px auto;text-align:center;z-index:2;font-size:14px;line-height:1.6;padding:12px;border-radius:12px;background:#ffffffed;color:#153b59;margin:0;pointer-events:none}
#swpc-community #swpcd-map-status[hidden]{display:none!important}
#swpc-community .swpcd-map-note{margin:12px 0 0;color:#60768a;font-size:12px;line-height:1.6}
#swpc-community .swpcd-overview .swpc-members-widget{margin:0;padding:20px;min-width:0;border-radius:20px}
#swpc-community .swpcd-widget-heading{display:flex;gap:12px;justify-content:space-between;align-items:center}
#swpc-community .swpcd-ten{background:#e9faff;color:#087b92;min-width:30px;border-radius:20px;padding:5px 9px;text-align:center;font-size:12px;font-weight:700}
#swpc-community .swpcd-overview .swpc-member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#swpc-community .swpcd-overview .swpc-member-card{flex-direction:row;text-align:start;padding:12px 10px;gap:9px;min-height:78px}
#swpc-community .swpcd-browse{display:flex;width:100%;margin-top:16px;min-height:46px}
#swpc-community .swpcd-directory{margin:28px 0 0;border:1px solid #bddbe9;border-radius:22px;background:#fff;scroll-margin-top:105px;overflow:hidden}
#swpc-community .swpcd-directory>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px;background:linear-gradient(120deg,#eefbff,#fff5e6);min-height:86px;color:#153b59}
#swpc-community .swpcd-directory-title{display:block;margin-top:5px;font-size:24px;line-height:1.3;font-weight:800}
#swpc-community .swpcd-toggle{font-size:12px;display:flex;gap:7px;align-items:center;text-align:end;flex-shrink:0;color:#087b92}
#swpc-community .swpcd-close-label{display:none}
#swpc-community .swpcd-directory[open] .swpcd-close-label{display:inline}
#swpc-community .swpcd-directory[open] .swpcd-open-label{display:none}
#swpc-community .swpcd-directory[open] .swpcd-toggle>span:last-child{transform:rotate(180deg)}
#swpc-community .swpcd-directory-body{padding:0 24px 24px}
#swpc-community .swpcd-directory-body>.swpc-muted{margin:18px 0}
#swpc-community .swpcd-directory .swpc-search{background:#f5fbfe}
#swpc-community .swpcd-results{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 0}
#swpc-community .swpcd-directory .swpc-member-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#swpc-community .swpcd-directory .swpc-member-card{min-height:144px;padding:18px 10px;justify-content:flex-start}
#swpc-community .swpcd-directory .swpc-member-card img,#swpc-community .swpcd-directory .swpc-letter{width:52px!important;height:52px!important;min-width:52px}
#swpc-community .swpcd-pagination{flex-wrap:wrap;gap:6px;direction:ltr}
#swpc-community .swpcd-pagination a{padding:7px 11px;font-size:13px;min-width:40px;min-height:44px}
#swpc-community .swpcd-map .leaflet-control-zoom a{width:36px;height:36px;line-height:36px;color:#143752}
#swpc-community .swpcd-map .leaflet-control-attribution{font-size:10px;background:#ffffffe8;color:#35556b;max-width:100%;line-height:1.35}
#swpc-community .swpcd-map .leaflet-control-attribution a{color:#087b92}
#swpc-community .swpcd-avatar-pin{border:0;background:transparent}
#swpc-community .swpcd-pin-face{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:3px solid #16bfd7;border-radius:50%;background:#fff;box-shadow:0 3px 8px #153b594d;color:#153b59;font-weight:bold;position:relative}
#swpc-community .swpcd-pin-face img{width:100%;height:100%;border-radius:50%;object-fit:cover;max-width:none}
#swpc-community .swpcd-pin-count{position:absolute;top:-7px;right:-9px;background:#153b59;border:2px solid #fff;border-radius:15px;color:#fff;min-width:22px;padding:2px 4px;font-size:10px;text-align:center;line-height:14px}
#swpc-community .swpcd-map-popup{max-height:240px;overflow:auto;min-width:170px;color:#153b59}
#swpc-community .swpcd-map-popup>strong{display:block;padding:4px 0 9px;font-size:13px}
#swpc-community .swpcd-map-person{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #dceaf1;color:#153b59;text-decoration:none;font-size:13px;line-height:1.4;min-height:48px;overflow-wrap:anywhere}
#swpc-community .swpcd-map-person img{width:36px;height:36px;object-fit:cover;border-radius:50%;flex-shrink:0}
#swpc-community .swpcd-map .leaflet-popup-content-wrapper{border-radius:14px}
#swpc-community .swpcd-map .leaflet-popup-close-button{min-width:30px;min-height:30px;font-size:24px;line-height:26px}
@media(max-width:950px){#swpc-community .swpcd-overview{gap:18px}#swpc-community .swpcd-overview .swpc-members-widget{padding:16px}#swpc-community .swpcd-overview .swpc-member-card{flex-direction:column;text-align:center;min-height:120px}#swpc-community .swpcd-directory .swpc-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){#swpc-community.swpcd-community{padding:0 14px}#swpc-community .swpcd-overview{grid-template-columns:minmax(0,1fr);gap:22px}#swpc-community .swpcd-map-frame{border-radius:18px}#swpc-community .swpcd-overview .swpc-member-card{flex-direction:row;text-align:start;min-height:78px}#swpc-community .swpcd-overview .swpc-members-widget{padding:16px}#swpc-community .swpcd-map-panel>h2,#swpc-community .swpcd-widget-heading h2{font-size:20px}#swpc-community .swpcd-directory{border-radius:18px}#swpc-community .swpcd-directory>summary{padding:18px 16px;gap:10px;align-items:flex-start}#swpc-community .swpcd-directory-title{font-size:22px}#swpc-community .swpcd-toggle{max-width:105px;flex-shrink:1;line-height:1.5}#swpc-community .swpcd-directory-body{padding:0 14px 18px}#swpc-community .swpcd-directory .swpc-member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#swpc-community .swpcd-directory .swpc-member-card{flex-direction:column;text-align:center;min-height:140px}#swpc-community .swpcd-directory .swpc-search input{font-size:16px}#swpc-community .swpcd-directory .swpc-search button{width:100%;flex-basis:100%}#swpc-community .swpcd-directory .swpc-member-card strong{font-size:13px}#swpc-community .swpcd-directory .swpc-member-card small{font-size:11px}#swpc-community .swpcd-pagination a{min-width:36px;padding:7px 9px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#swpc-community *{scroll-behavior:auto!important}}

/* Keep this directory map square despite the site's global circular-map theme. */
html:root body #swpc-community #swpc-members #swpcd-map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;clip-path:none!important;mask-image:none!important;-webkit-mask-image:none!important;transform:none!important;aspect-ratio:auto!important;box-sizing:border-box!important;overflow:hidden!important;}
#swpc-community .swpcd-ten{white-space:nowrap;flex-shrink:0;min-width:36px;height:auto;line-height:20px;box-sizing:border-box;}
/* Same soft orange as the approved listing fields; content cards stay white. */
#swpc-community #swpc-room{background:#fff2df;border-color:#d9ad75;}
#swpc-community #swpc-room .swpc-room-heading{background:#ffebcd;border-bottom-color:#d9ad75;}
