/* ============================================================================
   Locations Page — new CSS needed for the dynamic region map labels and the
   postcode-checker result box. Nothing below overrides existing rules — it
   only styles the new elements introduced by locations_template.php + the
   Locations Region Map JS in custom.js. Append this to your main stylesheet
   (or enqueue as its own file) — no existing selectors are touched.
   ========================================================================== */

/* Region name labels drawn on top of each coloured polygon on #service-map */
.region-map-label {
    pointer-events: none;
    text-align: center;
}
.region-map-label span {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #94a3b8; /* dim/inactive by default */
    text-shadow: 0 1px 2px rgba(255,255,255,.6);
    transition: color .2s ease, font-weight .2s ease;
}
.region-map-label span.active {
    color: #0f2a4a;
    font-weight: 700;
}

/* Postcode checker result panel, shown under the search bar after a check */
.postcode-result {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #fff;
}
.postcode-result.is-covered {
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .4);
}
.postcode-result.is-not-covered {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
}
.postcode-result .pc-result-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
}
.postcode-result.is-covered .pc-result-icon {
    background: #22c55e;
    color: #08331a;
}
.postcode-result.is-not-covered .pc-result-icon {
    background: #ef4444;
    color: #350808;
}
.postcode-result .pc-result-text {
    flex: 1 1 auto;
    min-width: 0;
}
.postcode-result .pc-result-text strong {
    display: block;
    font-size: 14px;
}
.postcode-result .pc-result-text p {
    margin: 2px 0 0;
    font-size: 12.5px;
    opacity: .8;
}
.postcode-result .pc-result-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}
.postcode-result .pc-result-actions a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.postcode-result .btn-get-quote {
    background: #22c55e;
    color: #08331a;
}
.postcode-result .btn-call-us {
    background: rgba(255,255,255,.12);
    color: #fff;
}

@media (max-width: 767px) {
    .postcode-result {
        flex-wrap: wrap;
    }
    .postcode-result .pc-result-actions {
        width: 100%;
        justify-content: flex-start;
    }
}