/* ============================================================
   LOCATION BLOCK — CE STYLE (Unified with CE Blocks)
============================================================ */

.ce-block--location {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 3px solid var(--entry-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    /* Match hero, metadata bar, gallery, benefit */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
/* Remove extra vertical gap for Location block */
.ce-block-wrapper:has(.ce-block--location) {
    margin-top: 0;
    margin-bottom: 40px;
}


/* ============================================================
   HEADER — Unified CE Block Header
============================================================ */

.ce-block__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 20px;
    padding-top: 10px;
}

.ce-block__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--entry-color);
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.ce-block__line-left {
    width: 40px;
    height: 2px;
    background-color: var(--entry-color);
    flex-shrink: 0;
    opacity: 0.5;
}

.ce-block__line-right {
    flex-grow: 1;
    height: 2px;
    background-color: var(--entry-color);
    opacity: 0.5;
}

/* ============================================================
   LOCATION PILLS — Four Tone System
============================================================ */

.ce-location-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ce-location-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: default;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.12);
}

.ce-location-pill.dist {
    background: var(--entry-color-dark);
    color: #fff;
}

.ce-location-pill.muni {
    background: var(--entry-color-mid);
    color: #fff;
}

.ce-location-pill.parish {
    background: var(--entry-color-light);
    color: #333;
}

.ce-location-pill.cluster {
    background: var(--entry-color-xdark);
    color: #fff;
}

.ce-location-pill.disabled {
    opacity: 0.75;
}
.ce-pill-count {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.15);
    margin-left: 6px;
    line-height: 1;
}

/* ============================================================
   TWO COLUMN LAYOUT — Unified with Gallery
============================================================ */

.ce-location-map-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.ce-location-column,
.ce-map-column {
    width: 50%;
}

/* Map iframe */
.ce-location-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 6px;
}

/* ============================================================
   RESPONSIVE — Unified with Gallery + Metadata Bar
============================================================ */

@media (max-width: 900px) {
    .ce-location-map-row {
        flex-direction: column;
    }

    .ce-location-column,
    .ce-map-column {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ce-block--location {
        padding: 18px;
    }

    .ce-location-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
}
.ce-cluster-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border-radius: 6px;
    text-align: center;
    pointer-events: none;

    /* FIXES */
    min-width: 160px;      /* wider box */
    max-width: 300px;      /* prevents huge labels */
    white-space: normal;   /* allow wrapping */
    line-height: 1.2;      /* nicer multi-line */
}
