/* ------------------------------------------------------------------ *
 * Locations World Map – scoped to .locations-root
 * ------------------------------------------------------------------ */

.locations-root {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;



}

@media (max-width: 1024px) {
    .locations-root {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------- MAP ------------------------------ */

.locations-map {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    background: #fff;

    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.locations-map-canvas {
    position: relative;
    width: 100%;
}

.locations-map-svg svg,
.locations-map-svg img {
    display: block;
    width: 100%;
    height: auto;
}

.locations-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.locations-pin {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    outline: 2px solid #fff;
}

.locations-pin--headquarters {
    background: #e8e100;
    width: 12px;
    height: 12px;
    z-index: 10;
}

.locations-pin--office {
    background: #b0004e;
}

.locations-pins .locations-pin:hover,
.locations-pins .locations-pin:focus-visible,
.locations-pin.is-active {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
    outline: none;
}

/* ------------------------------ LEGEND ---------------------------- */

.locations-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
}

.locations-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.locations-legend .locations-pin {
    position: static;
    transform: none;
}

/* --------------------------- LIST / ACCORDION --------------------- */

.locations-list-outer {
    height: 75vh;
    overflow-y: auto;
}


.locations-group+.locations-group {
    margin-top: 24px;
}

.locations-group-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 12px;
}

.locations-item {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.locations-item.is-open {
    border-color: #000;
    transition: .3s;
}

.locations-item-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px !important;
    background: transparent !important;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: #000;

    &:hover,
    &:focus-visible,
    &:focus {
        background: rgba(0, 0, 0, 0.05);
        color: #000;
    }
}

.locations-item-icon {
    font-size: 20px;
    line-height: 1;
    width: 1em;
    text-align: center;
    transition: transform .2s ease;
}

.locations-item.is-open .locations-item-icon {
    transform: rotate(45deg);
    color: #000;
}

.locations-item.is-open .locations-item-label {
    color: #000;
}

.locations-item-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px 0 41px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    transition: max-height .3s ease;
}

.locations-item.is-open .locations-item-panel {
    padding-bottom: 16px;
}

.locations-detail-name {
    display: block;
    margin-bottom: 4px;
}

.locations-detail-contact {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.locations-detail-contact a {
    color: #000;
    text-decoration: underline;
}

span.locations-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    a {
        color: var(--e-global-color-v4-color-accent);
        font-weight: 500;

        text-decoration: none;
    }
}