/* Global module - Locations Map: map with pins (left), title, text and the list of places (right). */
.el-loc {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f1f6f9, #e9f0f5);
}

/* Faint arcs on the right (design) */
.el-loc::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -18%;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 58px, rgba(27, 58, 95, 0.05) 59px 60px);
    pointer-events: none;
}

.el-loc-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, calc(32px + 48 * (100vw - 1280px) / 640), 80px);
}

/* Map: the SVG fills the box, pins sit on it in % */
.el-loc-map {
    position: relative;
    width: 100%;
}

.el-loc-map.is-tall {
    max-width: 480px; /* tall maps (UK) stay a sensible size */
    margin-inline: auto;
}

.el-loc-map svg {
    display: block;
    width: 100%;
    height: 100%;
}

.el-loc-pin {
    position: absolute;
    width: clamp(16px, calc(16px + 6 * (100vw - 1280px) / 640), 22px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--el-color-navy);
    transform: translate(-50%, -50%);
}

/* Home base: orange with a thin ring */
.el-loc-pin.is-home {
    background: var(--el-color-orange);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7), 0 0 0 6px var(--el-color-orange);
}

.el-loc-pin-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    font-size: clamp(15px, calc(15px + 4 * (100vw - 1280px) / 640), 19px);
    line-height: 1.2;
    white-space: nowrap;
    color: var(--el-color-navy);
    transform: translateY(-50%);
}

.el-loc-pin-label small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--el-color-muted);
}

/* Pins on the right half: the name sits below-left, so it stays on the map */
.el-loc-pin.is-label-left .el-loc-pin-label {
    top: calc(100% + 6px);
    right: 50%;
    left: auto;
    text-align: right;
    transform: none;
}

/* Title, text and the list */
.el-loc-body h2 {
    margin: 0 0 clamp(16px, calc(16px + 8 * (100vw - 1280px) / 640), 24px);
}

.el-loc-text {
    margin: 0 0 clamp(24px, calc(24px + 12 * (100vw - 1280px) / 640), 36px);
    font-size: clamp(17px, calc(17px + 3 * (100vw - 1280px) / 640), 20px);
    color: var(--el-color-muted);
}

.el-loc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #d5dee6;
}

.el-loc-list li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(130px, 34%) minmax(0, 1fr);
    gap: 4px 20px;
    padding: clamp(14px, calc(14px + 6 * (100vw - 1280px) / 640), 20px) 0 clamp(14px, calc(14px + 6 * (100vw - 1280px) / 640), 20px) 38px;
    border-bottom: 1px solid #d5dee6;
}

/* Marker: navy dot, orange dot (home), dotted ring (no pin) */
.el-loc-list li::before {
    content: "";
    position: absolute;
    top: clamp(24px, calc(24px + 6 * (100vw - 1280px) / 640), 30px);
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--el-color-navy);
}

.el-loc-list li.is-home::before {
    width: 14px;
    height: 14px;
    left: 3px;
    background: var(--el-color-orange);
}

.el-loc-list li.is-anywhere::before {
    border: 1.5px dashed var(--el-color-navy);
    background: transparent;
}

/* h3 in the outline; sized like the design (the site h4 size, as the stats titles). */
.el-loc-list h3 {
    margin: 0;
    font-size: clamp(20px, 1.35vw, 26px);
    line-height: 1.3;
}

.el-loc-list p {
    margin: 0;
    padding-top: 3px;
    font-size: clamp(16px, calc(16px + 2 * (100vw - 1280px) / 640), 18px);
    line-height: 1.5;
    color: var(--el-color-muted);
}

@media (max-width: 991px) {
    .el-loc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Title and list first, then the map */
    .el-loc-map {
        order: 2;
        max-width: 640px;
        margin-inline: auto;
    }
}

@media (max-width: 575px) {
    .el-loc-list li {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 30px;
    }

    .el-loc-list li::before {
        left: 2px;
    }

    .el-loc-pin-label {
        font-size: 13px;
    }

    .el-loc-pin-label small {
        font-size: 11px;
    }
}
