/* Nimbus ∆P Official Partner locator. Premium Light, list-first, map-enhanced. */

:root {
    --locator-ink: #111827;
    --locator-body: #4B5563;
    --locator-muted: #6B7280;
    --locator-faint: #9CA3AF;
    --locator-line: rgba(0,0,0,0.08);
    --locator-surface: #FFFFFF;
    --locator-soft: #F7F6F4;
    --locator-bronze: #B5886A;
    --locator-bronze-soft: rgba(181,136,106,0.12);
    --locator-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.07);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.locator-hero {
    padding: 132px 0 40px;
    background:
        radial-gradient(circle at 74% 0%, rgba(181,136,106,0.16), transparent 34%),
        linear-gradient(180deg, #fff 0%, #FAFAF9 100%);
    border-bottom: 1px solid var(--locator-line);
}

.locator-hero-grid {
    max-width: 820px;
}

.locator-hero h1 {
    max-width: 720px;
}

.locator-hero .section-sub {
    max-width: 760px;
}

.locator-hero-partner-note {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--locator-body);
}

.locator-hero-partner-note strong {
    color: var(--locator-ink);
    font-weight: 850;
}

.locator-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.locator-hero-actions .btn-blue,
.locator-hero-actions .btn-outline {
    justify-content: center;
}

.locator-search-shell {
    background: var(--locator-surface);
    border-bottom: 1px solid var(--locator-line);
    padding: 20px;
}

.locator-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.locator-search-field {
    position: relative;
}

.locator-search-field svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: var(--locator-faint);
    transform: translateY(-50%);
    pointer-events: none;
}

.locator-search-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    color: var(--locator-ink);
    background: #fff;
}

.locator-search-input:focus {
    outline: none;
    border-color: var(--locator-bronze);
    box-shadow: 0 0 0 3px var(--locator-bronze-soft);
}

.pac-container {
    z-index: 10000;
    margin-top: 4px;
    border: 1px solid var(--locator-line);
    border-radius: 12px;
    box-shadow: var(--locator-shadow);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pac-item {
    padding: 10px 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--locator-muted);
    cursor: pointer;
}

.pac-item:first-child {
    border-top: 0;
}

.pac-item-query {
    color: var(--locator-ink);
    font-size: 14px;
    font-weight: 700;
}

.locator-geo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--locator-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.locator-geo-btn:hover {
    color: var(--locator-bronze);
}

.locator-radius-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--locator-muted);
}

.locator-radius-btn {
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 999px;
    background: #fff;
    color: var(--locator-body);
    padding: 8px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.locator-radius-btn[aria-pressed="true"] {
    border-color: var(--locator-bronze);
    color: var(--locator-ink);
    background: var(--locator-bronze-soft);
}

.locator-shell {
    padding: 32px 0 80px;
    background: #FAFAF9;
}

.locator-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.42fr) minmax(0, 0.58fr);
    gap: 22px;
    align-items: start;
}

.locator-panel,
.locator-map-card {
    background: #fff;
    border: 1px solid var(--locator-line);
    border-radius: 16px;
    box-shadow: var(--locator-shadow);
    overflow: hidden;
}

.locator-results {
    display: grid;
    gap: 12px;
    padding: 16px;
    max-height: 720px;
    overflow: auto;
}

.locator-result-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    background: #fff;
}

.locator-result-card.is-active {
    border-color: var(--locator-bronze);
    box-shadow: 0 0 0 1px var(--locator-bronze-soft);
}

.locator-result-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.locator-result-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    color: var(--locator-ink);
}

.locator-result-meta,
.locator-result-address {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--locator-muted);
}

.locator-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.locator-card-actions a,
.locator-card-actions button {
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: var(--locator-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.locator-card-actions a:hover,
.locator-card-actions button:hover {
    border-color: rgba(0,0,0,0.26);
    background: #F9FAFB;
}

.locator-empty {
    padding: 20px;
    border: 1px dashed rgba(0,0,0,0.16);
    border-radius: 12px;
    background: #fff;
}

.locator-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--locator-ink);
}

.locator-empty p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--locator-muted);
}

.locator-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.locator-map-card {
    position: sticky;
    top: 112px;
}

.locator-map {
    position: relative;
    min-height: 560px;
    background:
        radial-gradient(circle at 58% 20%, rgba(181,136,106,0.14), transparent 28%),
        linear-gradient(180deg, #fff 0%, #F4F2EF 100%);
    overflow: hidden;
}

.locator-map.has-mapbox {
    background: #E8EEF3;
}

.locator-map.has-leaflet {
    background: #E8EEF3;
}

.locator-mapbox-canvas,
.locator-leaflet-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.locator-map-fallback {
    position: absolute;
    inset: 0;
    padding: 28px;
}

.locator-map.has-mapbox .locator-map-fallback {
    display: none;
}

.locator-map.has-leaflet .locator-map-fallback {
    display: none;
}

.locator-world-svg {
    position: absolute;
    inset: 42px 28px 84px;
    width: calc(100% - 56px);
    height: calc(100% - 126px);
    opacity: 0.58;
}

.locator-world-svg path {
    fill: rgba(17,24,39,0.08);
    stroke: rgba(17,24,39,0.12);
    stroke-width: 2;
}

.locator-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.locator-pin {
    position: absolute;
    z-index: 3;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 999px;
    background: var(--locator-bronze);
    box-shadow: 0 0 0 8px rgba(181,136,106,0.16), 0 8px 22px rgba(0,0,0,0.20);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.locator-pin.is-active {
    box-shadow: 0 0 0 12px rgba(181,136,106,0.24), 0 8px 22px rgba(0,0,0,0.22);
}

.locator-leaflet-marker {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 999px;
    background: var(--locator-bronze);
    box-shadow: 0 0 0 8px rgba(181,136,106,0.16), 0 8px 22px rgba(0,0,0,0.20);
}

.locator-leaflet-marker.is-active {
    box-shadow: 0 0 0 12px rgba(181,136,106,0.24), 0 8px 22px rgba(0,0,0,0.22);
}

.locator-leaflet-canvas .leaflet-control-attribution {
    font-size: 10px;
}

.locator-radius-circle {
    stroke: var(--locator-bronze);
    stroke-width: 1.5;
    stroke-opacity: 0.72;
    fill: var(--locator-bronze);
    fill-opacity: 0.08;
}

.locator-map-status {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 12px;
    color: var(--locator-muted);
}

.locator-map-status strong {
    color: var(--locator-ink);
}

.locator-map.has-mapbox .locator-map-status,
.locator-map.has-leaflet .locator-map-status {
    top: 18px;
    bottom: auto;
    right: auto;
    max-width: 420px;
}

.locator-mini {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--locator-shadow);
}

.locator-mini-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.locator-mini h2,
.locator-mini h3 {
    margin: 0 0 8px;
    color: var(--locator-ink);
}

.locator-mini p {
    margin: 0;
    color: var(--locator-muted);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .locator-hero-grid,
    .locator-grid,
    .locator-mini-grid {
        grid-template-columns: 1fr;
    }

    .locator-map-card {
        position: static;
    }

    .locator-results {
        max-height: none;
    }
}

@media (max-width: 560px) {
    .locator-hero {
        padding-top: 116px;
    }

    .locator-hero-actions .btn-blue,
    .locator-hero-actions .btn-outline {
        width: 100%;
    }

    .locator-search-form {
        grid-template-columns: 1fr;
    }

    .locator-map {
        min-height: 420px;
    }

    .locator-map-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .locator-empty-actions,
    .locator-card-actions {
        flex-direction: column;
    }

    .locator-empty-actions .btn-blue,
    .locator-empty-actions .btn-outline,
    .locator-card-actions a,
    .locator-card-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
