/**
 * Trade locations hub — curated city/town navigation with optional clustered map.
 */
.pxab-trade-locations-hub {
    display: grid;
    gap: 22px;
    width: 100%;
    color: var(--pxab-trades-public-text, var(--pxab-trades-ink, #17232c));
}

.pxab-trade-locations-hub__title {
    margin: 0;
    color: var(--pxab-trades-public-heading, #17232c);
}

.pxab-trade-locations-hub__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.pxab-trade-locations-hub.has-map .pxab-trade-locations-hub__workspace {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.pxab-trade-locations-hub__directory {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.pxab-trade-locations-hub__type {
    display: grid;
    gap: 12px;
}

.pxab-trade-locations-hub__type > h3,
.pxab-trade-locations-hub__type > h4,
.pxab-trade-locations-hub__type > h5,
.pxab-trade-locations-hub__type > h6 {
    margin: 0;
    color: var(--pxab-trades-public-heading, #17232c);
}

.pxab-trade-locations-hub__locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pxab-trade-locations-hub__location {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--pxab-trades-border);
    border-radius: calc(var(--pxab-trades-radius) - 4px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
    scroll-margin-top: 24px;
}

.pxab-trade-locations-hub__location-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pxab-trade-locations-hub__location-heading h4,
.pxab-trade-locations-hub__location-heading h5,
.pxab-trade-locations-hub__location-heading h6 {
    margin: 0;
    color: var(--pxab-trades-public-heading, #17232c);
    font-size: 1.02rem;
    line-height: 1.3;
}

.pxab-trade-locations-hub__location-heading span {
    color: var(--pxab-trades-public-muted, var(--pxab-trades-muted, #61717c));
    font-size: .78rem;
    font-weight: 700;
}

.pxab-trade-locations-hub__location ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pxab-trade-locations-hub__location li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
}

.pxab-trade-locations-hub__location a {
    min-width: 0;
    color: var(--pxab-trades-public-link, var(--pxab-trades-link, var(--pxab-trades-accent)));
    font-weight: 760;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pxab-trade-locations-hub__location a:hover,
.pxab-trade-locations-hub__location a:focus-visible {
    color: var(--pxab-trades-public-link-hover, var(--pxab-trades-link-hover, var(--pxab-trades-public-link, var(--pxab-trades-link, var(--pxab-trades-accent)))));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pxab-trade-locations-hub__location li > span {
    flex: 0 0 auto;
    color: var(--pxab-trades-public-muted, var(--pxab-trades-muted, #61717c));
    font-size: .76rem;
    white-space: nowrap;
}

.pxab-trade-locations-hub__map-panel {
    position: sticky;
    top: 24px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pxab-trades-border);
    border-radius: var(--pxab-trades-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}

.admin-bar .pxab-trade-locations-hub__map-panel {
    top: 56px;
}

.pxab-trade-locations-hub__map-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border-bottom: 1px solid var(--pxab-trades-border);
}

.pxab-trade-locations-hub__map-heading strong {
    color: var(--pxab-trades-ink);
}

.pxab-trade-locations-hub__map-heading span {
    color: var(--pxab-trades-public-muted, var(--pxab-trades-muted, #61717c));
    font-size: .8rem;
    font-weight: 700;
}

.pxab-trades-map--locations-hub {
    min-height: 540px;
    border-radius: 0;
}

.pxab-trades-map-popup__links {
    display: grid;
    gap: 5px;
    margin: 3px 0 0;
    padding: 7px 0 0;
    border-top: 1px solid rgba(15, 23, 42, .1);
    list-style: none;
}

.pxab-trades-map-popup__links a {
    color: var(--pxab-trades-public-link, var(--pxab-trades-link, var(--pxab-trades-accent)));
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
}

.pxab-trades-map-popup__links a:hover,
.pxab-trades-map-popup__links a:focus-visible {
    color: var(--pxab-trades-public-link-hover, var(--pxab-trades-link-hover, var(--pxab-trades-public-link, var(--pxab-trades-link, var(--pxab-trades-accent)))));
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 980px) {
    .pxab-trade-locations-hub.has-map .pxab-trade-locations-hub__workspace {
        grid-template-columns: 1fr;
    }

    .pxab-trade-locations-hub__map-panel {
        position: relative;
        top: auto;
        order: -1;
    }

    .admin-bar .pxab-trade-locations-hub__map-panel {
        top: auto;
    }

    .pxab-trades-map--locations-hub {
        min-height: 380px;
    }
}

@media (max-width: 680px) {
    .pxab-trade-locations-hub__locations {
        grid-template-columns: 1fr;
    }

    .pxab-trade-locations-hub__location {
        padding: 14px;
    }

    .pxab-trade-locations-hub__location li {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .pxab-trades-map--locations-hub {
        min-height: 300px;
    }
}
