        .postcode-error-page {
            max-width: 800px;
            margin: 60px auto;
            padding: 0 20px;
        }

        .postcode-error-card {
            background: #ffffff;
            border: 1px solid #dfe7ef;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            padding: 40px;
            text-align: center;
        }

        .postcode-error-card h1 {
            margin: 0 0 12px;
            color: #062b52;
            font-size: 30px;
        }

        .postcode-error-card p {
            margin: 0 0 25px;
            color: #526272;
            font-size: 16px;
            line-height: 1.5;
        }

        .postcode-error-message {
            display: inline-block;
            margin-bottom: 25px;
            padding: 12px 18px;
            background: #fff0f0;
            border: 1px solid #efb6b6;
            border-radius: 8px;
            color: #7f1d1d;
            font-weight: 600;
        }

        .postcode-error-button {
            display: inline-block;
            padding: 12px 20px;
            background: #062b52;
            color: #ffffff;
            text-decoration: none;
            border-radius: 7px;
            font-weight: 700;
        }

        .postcode-error-button:hover {
            background: #0a3d70;
        }
    

/* =========================================================
   POWEROUT POSTCODE PAGE
   ========================================================= */

.postcode-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 30px 0px;
}

.postcode-hero {
    background: #062b52;
    color: #ffffff;
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.postcode-hero .breadcrumb {
    margin-bottom: 10px;
    color: #b9cee2;
    font-size: 13px;
}

.postcode-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.postcode-hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.5;
}

.postcode-search {
    display: flex;
    gap: 9px;
    max-width: 680px;
    margin-top: 20px;
}

.postcode-search input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    outline: none;
}

.postcode-search button {
    border: 0;
    border-radius: 7px;
    padding: 13px 21px;
    background: #f5b700;
    color: #062b52;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.postcode-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: #ffffff;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
}

.card-heading {
    padding: 17px 19px;
    border-bottom: 1px solid #e7edf3;
}

.card-heading h2 {
    margin: 0;
    color: #062b52;
    font-size: 20px;
}

.status-card {
    padding: 20px;
}

.status-banner {
    border-radius: 9px;
    padding: 18px;
    margin-bottom: 16px;
}

.status-banner.clear {
    background: #eaf7ee;
    border: 1px solid #b9dfc5;
    color: #175c2b;
}

.status-banner.active {
    background: #fff0f0;
    border: 1px solid #efb6b6;
    color: #7f1d1d;
}

.status-banner strong {
    display: block;
    font-size: 21px;
    margin-bottom: 5px;
}

.status-banner span {
    font-size: 13px;
}

.current-outage {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e1e7ed;
    border-left: 4px solid #d32f2f;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.current-outage.planned {
    border-left-color: #1976d2;
}

.current-outage:hover {
    border-color: #b8c6d4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.current-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.current-title {
    color: #062b52;
    font-weight: 700;
}

.current-type {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.current-type.unplanned {
    color: #c62828;
}

.current-type.planned {
    color: #1565c0;
}

.current-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 9px;
    color: #526272;
    font-size: 12px;
}

.current-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf1f4;
    color: #45515d;
    font-size: 13px;
    line-height: 1.45;
}

.current-link {
    display: inline-block;
    margin-top: 9px;
    color: #1769aa;
    font-size: 12px;
    font-weight: 700;
}

#postcode-map {
    height: 430px;
    width: 100%;
}

.map-footer {
    padding: 10px 14px;
    color: #657383;
    font-size: 11px;
    border-top: 1px solid #e7edf3;
}

.map-marker-postcode {
    background: #062b52;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #dfe7ef;
    border-radius: 9px;
    padding: 16px;
}

.stat-card .label {
    color: #667686;
    font-size: 12px;
    margin-bottom: 7px;
}

.stat-card .value {
    color: #062b52;
    font-size: 25px;
    font-weight: 700;
}

.stat-card .detail {
    margin-top: 3px;
    color: #8793a0;
    font-size: 11px;
}

.history-card {
    overflow: hidden;
}

.history-intro {
    padding: 15px 19px;
    color: #566574;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #e7edf3;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    background: #f6f8fa;
    color: #526272;
    text-align: left;
    font-size: 11px;
    padding: 11px 13px;
    border-bottom: 1px solid #dfe7ef;
}

.history-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #edf1f4;
    color: #344454;
    font-size: 12px;
}

.history-table tr:last-child td {
    border-bottom: 0;
}

.history-table a {
    color: #1769aa;
    text-decoration: none;
    font-weight: 700;
}

.history-table a:hover {
    text-decoration: underline;
}

.type-pill {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.type-pill.unplanned {
    background: #fde8e8;
    color: #b42323;
}

.type-pill.planned {
    background: #e8f1fb;
    color: #155b9a;
}

.empty-history {
    padding: 28px 20px;
    color: #697888;
    text-align: center;
}

.postcode-info {
    margin-top: 20px;
    padding: 18px 20px;
    background: #eef5fb;
    border: 1px solid #d5e4f1;
    border-radius: 9px;
    color: #4f6172;
    font-size: 12px;
    line-height: 1.55;
}

.postcode-info strong {
    color: #062b52;
}

.leaflet-popup-content {
    min-width: 210px;
}

.popup-link {
    display: inline-block;
    margin-top: 9px;
    padding: 7px 10px;
    background: #062b52;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
}

.postcode-history-scroll {
    overflow-x: auto;
}

.popup-spaced {
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 1050px) {
    .postcode-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .postcode-page {
        padding: 15px;
    }

    .postcode-hero {
        padding: 23px 20px;
    }

    .postcode-hero h1 {
        font-size: 28px;
    }

    .postcode-search {
        flex-direction: column;
    }

    .postcode-search button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    #postcode-map {
        height: 360px;
    }

    .history-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
