/* Map shortcode: everything is scoped to .cpc-map-wrap, nothing here touches the theme. */
.cpc-map-wrap { position: relative; width: 100%; margin: 1em 0; }
.cpc-map-wrap .cpc-listings-map { width: 100%; min-height: 200px; border-radius: 6px; overflow: hidden; background: #eceff1; }
.cpc-map-wrap .cpc-map-empty { margin: 0; padding: 2em 1em; text-align: center; color: #666; font-size: 14px; }
.cpc-map-wrap .cpc-pop { display: flex; gap: 10px; align-items: flex-start; min-width: 190px; font-size: 13px; line-height: 1.5; color: #222; }
.cpc-map-wrap .cpc-pop img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cpc-map-wrap .cpc-pop a { color: #1d4ed8; text-decoration: none; }
.cpc-map-wrap .cpc-pop .cpc-pop-addr { margin-top: 2px; color: #555; }

/* "Search this area" / "show whole map" buttons */
.cpc-map-wrap .cpc-map-btn { position: absolute; top: 12px; z-index: 5; padding: 8px 14px; border: 0; border-radius: 20px; background: #1d4ed8; color: #fff; font: 600 13px/1.2 inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.cpc-map-wrap .cpc-map-btn:hover { background: #1e40af; }
.cpc-map-wrap .cpc-map-search { left: 50%; transform: translateX(-50%); }
.cpc-map-wrap .cpc-map-clear { inset-inline-end: 12px; background: #fff; color: #1d4ed8; }
.cpc-map-wrap .cpc-map-clear:hover { background: #eef3ff; }

/* Dark mode (PeepSo Block Theme: body.ps-dark-mode) */
body.ps-dark-mode .cpc-map-wrap .cpc-listings-map { background: #2a2d33; }
body.ps-dark-mode .cpc-map-wrap .cpc-map-empty { color: #aab0b8; }
body.ps-dark-mode .cpc-map-wrap .cpc-map-clear { background: #2a2d33; color: #9db7ff; }
body.ps-dark-mode .cpc-map-wrap .cpc-map-clear:hover { background: #343841; }
body.ps-dark-mode .leaflet-popup-content-wrapper,
body.ps-dark-mode .leaflet-popup-tip,
body.ps-dark-mode .maplibregl-popup-content { background: #2a2d33; color: #e6e8eb; }
body.ps-dark-mode .maplibregl-popup-anchor-top .maplibregl-popup-tip,
body.ps-dark-mode .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
body.ps-dark-mode .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #2a2d33; }
body.ps-dark-mode .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
body.ps-dark-mode .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
body.ps-dark-mode .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #2a2d33; }
body.ps-dark-mode .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #2a2d33; }
body.ps-dark-mode .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #2a2d33; }
body.ps-dark-mode .cpc-map-wrap .cpc-pop { color: #e6e8eb; }
body.ps-dark-mode .cpc-map-wrap .cpc-pop a { color: #9db7ff; }
body.ps-dark-mode .cpc-map-wrap .cpc-pop .cpc-pop-addr { color: #aab0b8; }
