/* Installation map: public area locations, with searchable customer records. */
#locationsMapSection { scroll-margin-top: 135px; }
#locationsMapSection .installation-total { white-space: nowrap; }
#showAllLocations { cursor: pointer; background: transparent; }
#showAllLocations:hover { background: var(--primary); }
.locations-map-wrap { isolation: isolate; background: #fff; }
.installation-search {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 800;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    pointer-events: none;
}
.installation-search label { min-width: 0; pointer-events: auto; }
.installation-search label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.installation-search label i { margin-right: 5px; color: var(--primary); }
.installation-search input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 16px 20px;
    font: inherit;
    font-size: 16px;
    color: var(--secondary);
    border: 1px solid #eceeef;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.13);
}
.installation-search input:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.installation-results { margin: 0; padding: 16px 24px 0; font-size: 13px; color: #526175; }
.locations-map-wrap #locationsMap { height: 660px; background: #edf0e8; z-index: 0; }
.locations-map-wrap .leaflet-container { font-family: 'Poppins', sans-serif; }
.locations-map-wrap .leaflet-control-attribution { font-size: 10px; max-width: calc(100% - 10px); }
.locations-map-wrap .leaflet-control-zoom a { color: #606060; width: 42px; height: 44px; line-height: 44px; font-size: 28px; }
.locations-map-wrap .leaflet-bar { border: 0; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.installation-fit-control button { width: 42px; height: 44px; border: 0; background: #fff; color: #111; cursor: pointer; font-size: 22px; }
.installation-fit-control button:hover { background: #f4f4f4; }
.locations-map-wrap .leaflet-marker-icon:focus-visible { outline: 3px solid #0b5ed7; outline-offset: 5px; border-radius: 50%; }
.sb-installation-marker { background: transparent; border: 0; }
.sb-pin-shape {
    display: block;
    width: 32px;
    height: 42px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 44'%3E%3Cpath d='M16 1C7.8 1 1 7.8 1 16c0 9 8 17 13.8 26.1.55.85 1.85.85 2.4 0C23 33 31 25 31 16 31 7.8 24.2 1 16 1Z' fill='%23ef4438' stroke='%23bc2c26' stroke-width='1.4'/%3E%3Ccircle cx='16' cy='16' r='6' fill='%23bd2018'/%3E%3C/svg%3E");
    filter: drop-shadow(0 1px 1px rgba(75,16,12,.2));
}
.sb-pin-count { display: none; }
.locations-map-wrap .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 8px 30px rgba(7,23,46,.22); }
.locations-map-wrap .leaflet-popup-content { width: 310px; max-width: calc(100vw - 94px); margin: 20px; }
.locations-map-wrap .leaflet-popup-close-button { top: 6px; right: 7px; font-size: 26px; width: 32px; height: 32px; }
.installation-popup { color: #1a2b3e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.installation-popup h3 { margin: 0 20px 8px 0; font-size: 18px; line-height: 1.35; color: #0a1f3d; }
.installation-popup p { margin: 8px 0; }
.installation-popup-list { margin-top: 12px; padding-right: 8px; max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.installation-popup-record { padding: 10px 0; border-top: 1px solid #e6ebf1; }
.installation-popup-record strong { display: block; }
.installation-map-note, .installation-map-message { padding: 16px 24px; margin: 0; font-size: 12px; line-height: 1.7; color: #526175; }
.installation-map-note { padding-top: 8px; }
.installation-map-message { color: #8a3b10; background: #fff7ed; }
.installation-directory { margin-top: 20px; padding: 18px 24px; border: 1px solid #dbe3ed; border-radius: 12px; background: #fff; }
.installation-directory > summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--secondary); }
.installation-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.installation-entry { display: block; width: 100%; min-width: 0; text-align: left; border: 1px solid #dbe3ed; padding: 16px; border-radius: 9px; background: #f8fafc; color: #27394c; font: inherit; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
button.installation-entry { cursor: pointer; }
button.installation-entry:hover { background: #eef5ff; border-color: #0b5ed7; }
.installation-entry-name { display: block; color: #0a1f3d; font-size: 14px; font-weight: 600; }
.installation-entry-id { display: block; margin: 3px 0 8px; font-size: 11px; color: #69798b; }
.installation-entry-meta, .installation-entry-status { display: block; margin-top: 5px; }
.installation-entry-status { color: #0b5ed7; font-size: 12px; }
.installation-empty { grid-column: 1/-1; padding: 16px 0; color: #526175; }
#loadMoreLocations { display: flex; margin: 24px auto 0; cursor: pointer; background: transparent; }
#loadMoreLocations:hover { background: var(--primary); }
#loadMoreLocations[hidden], .installation-map-message[hidden] { display: none; }
@media (max-width: 900px) { .installation-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
    .installation-search { top: 14px; left: 12px; right: 12px; gap: 12px; }
    .installation-search input { min-height: 50px; padding: 12px 10px; font-size: 12px; }
    .installation-results { padding: 14px 16px 0; }
    .locations-map-wrap #locationsMap { height: 560px; }
    .installation-map-note, .installation-map-message { padding: 14px 16px; }
    .installation-directory { padding: 16px; }
    .installation-list { grid-template-columns: minmax(0,1fr); }
}
