.mps-location-shell,
.mps-location-shell * {
    box-sizing: border-box;
}

.mps-location-shell {
    --mps-accent: #e60021;
    --mps-ink: #242529;
    --mps-muted: #777985;
    --mps-blue: #2368ac;
    --mps-line: #e9e9ee;
    --mps-bg: #f6f6f8;
    --mps-map-height: 620px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 22px;
    background: var(--mps-bg);
    color: var(--mps-ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mps-location-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 100px;
    padding: 13px 23px;
    background: #fff;
    border: 1px solid var(--mps-line);
    border-radius: 18px;
}

.mps-location-heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.mps-location-heading p {
    margin: 5px 0 0;
    color: var(--mps-muted);
    font-size: 13px;
}

.mps-location-header-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 11px;
    background: var(--mps-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.mps-location-header-action:hover {
    filter: brightness(0.92);
}

.mps-location-mapwrap {
    position: relative;
    height: var(--mps-map-height);
    min-height: 400px;
    overflow: hidden;
    background: #e8eceb;
    border: 1px solid var(--mps-line);
    border-radius: 20px;
    box-shadow: 0 8px 40px #22222208;
}

.mps-location-map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mps-location-overlay {
    position: absolute;
    z-index: 600;
}

.mps-location-tools {
    top: 18px;
    left: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 95px);
}

.mps-location-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #e5e5e9;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 14px #00000013;
    color: #303138;
    font: inherit;
    font-size: 13px;
    font-weight: 690;
    line-height: 1.2;
    cursor: pointer;
}

.mps-location-pill:hover {
    background: #fafafa;
}

.mps-location-pill[aria-pressed="true"] {
    border-color: var(--mps-accent);
    background: #fff7f8;
    color: var(--mps-accent);
}

.mps-location-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mps-location-dot-blue {
    background: var(--mps-blue);
}

.mps-location-info {
    bottom: 22px;
    left: 20px;
    width: min(330px, calc(100% - 40px));
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 25px #0002;
}

.mps-location-eyebrow {
    margin-bottom: 7px;
    color: var(--mps-accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.15em;
}

.mps-location-info h3 {
    margin: 0 0 7px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.mps-location-address {
    margin: 0 0 13px;
    color: #62636b;
    font-size: 13px;
    line-height: 1.6;
}

.mps-location-infobutton {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mps-accent) !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
}

.mps-location-info-note {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 11px;
    line-height: 1.5;
}

.mps-location-status {
    right: 18px;
    bottom: 20px;
    max-width: 260px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 12px #0001;
    color: #60606a;
    font-size: 11px;
}

.mps-location-status:empty {
    display: none;
}

.mps-location-bottomline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 5px;
    color: #85858e;
    font-size: 11px;
}

.mps-location-admin-warning {
    margin: 10px 0;
    padding: 12px 14px;
    border-left: 4px solid #d63638;
    background: #fff;
}

@media (max-width: 700px) {
    .mps-location-shell {
        padding: 8px;
        gap: 8px;
    }

    .mps-location-topbar {
        min-height: auto;
        padding: 12px 13px;
        border-radius: 12px;
    }

    .mps-location-heading h2 {
        font-size: 15px;
    }

    .mps-location-heading p {
        font-size: 10px;
    }

    .mps-location-header-action {
        display: none;
    }

    .mps-location-mapwrap {
        min-height: 400px;
        border-radius: 12px;
    }

    .mps-location-tools {
        top: 10px;
        left: 10px;
        gap: 6px;
        max-width: calc(100% - 66px);
    }

    .mps-location-pill {
        padding: 9px;
        font-size: 11px;
    }

    .mps-location-info {
        bottom: 26px;
        left: 10px;
        width: min(270px, calc(100% - 20px));
        padding: 12px 14px;
    }

    .mps-location-info h3 {
        font-size: 18px;
    }

    .mps-location-info-note {
        display: none;
    }

    .mps-location-status {
        right: 10px;
        bottom: 183px;
        max-width: 180px;
        font-size: 10px;
    }

    .mps-location-bottomline {
        font-size: 10px;
    }
}
