/* **************************************** */
/* * Vector Maps Shell */
/* **************************************** */
:root {
    --bg: #fff;
    --panel-soft: #eef3ff;
    --text: #122638;
    --muted: #5b6475;
    --line: #dde5f1;
    --brand: #1459ff;
    --brand-dark: #0f43bf;
    --action: #dc2436;
    --action-dark: #b91c2b;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

#skiptocontent {
    height: 1px;
    overflow: hidden;
    position: absolute;
    top: -20px;
    width: 1px;
}

.vector-container {
    margin: 0 auto;
    width: min(1220px, calc(100% - 32px));
}

.site-header {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(221, 229, 241, .9);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .inner {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 16px 0;
}

.vector-brand,
.vector-nav {
    align-items: center;
    display: flex;
}

.vector-brand-mark {
    display: block;
    height: 64px;
    width: 340px;
}

.vector-brand-mark img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.vector-nav {
    gap: 18px;
}

.vector-nav a {
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.vector-menu-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: none;
    font: inherit;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
}

.vector-menu-toggle svg {
    height: 20px;
    width: 20px;
}

.vector-button,
.regular-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
}

.vector-button-primary,
.vector-button-primary:link,
.vector-button-primary:visited {
    background: var(--brand);
    color: #fff;
}

.vector-button-primary:hover,
.vector-button-primary:focus {
    background: var(--brand-dark);
}

.vector-button-secondary,
.vector-button-secondary:link,
.vector-button-secondary:visited,
.regular-button {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}
/* **************************************** */





/* **************************************** */
/* * Place Directory */
/* **************************************** */
.postcode-place-page {
    margin: 0 auto;
    padding: 34px 0 72px;
    width: min(calc(100% - 40px), 1220px);
}

.breadcrumbs {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 15px;
    font-weight: 700;
    gap: 9px;
    margin: 6px 0 20px;
}

.breadcrumbs a {
    color: #315e83;
}

.breadcrumbs svg {
    display: block;
}

.postcode-place-page h1,
.postcode-place-page h2,
.postcode-place-page h3 {
    letter-spacing: -.03em;
}

.postcode-place-page h1 {
    font-size: clamp(2.45rem, 5vw, 4.85rem);
    line-height: .98;
    margin: 0 0 12px;
    max-width: 980px;
}

.postcode-place-page h1::after {
    background: var(--action);
    border-radius: 999px;
    content: "";
    display: block;
    height: 3px;
    margin-top: 18px;
    width: 64px;
}

.postcode-place-page h2 {
    font-size: clamp(1.42rem, 2.2vw, 2rem);
    line-height: 1.1;
    margin: 0 0 12px;
}

.postcode-place-page h3 {
    font-size: 1.1rem;
    margin: 0;
}

.directory-intro {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.68;
    margin: 0 0 30px;
    max-width: 850px;
}

.country-badge {
    background: var(--panel-soft);
    border-radius: 999px;
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-bottom: 22px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.place-index-section,
.postcode-list-section {
    border-top: 1px solid var(--line);
    padding: 42px 0;
}

.place-index-section:first-of-type {
    margin-top: 34px;
}

.place-index-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.place-index-grid a,
.postcode-code {
    background: #fff;
    border: 1px solid rgba(213, 224, 232, .95);
    border-radius: 8px;
    color: var(--brand-dark);
    display: block;
    font-weight: 800;
    padding: 13px 15px;
}

.place-index-grid a:hover,
.place-index-grid a:focus,
.postcode-code:hover,
.postcode-code:focus {
    border-color: rgba(20, 89, 255, .35);
    box-shadow: 0 10px 24px rgba(18, 38, 56, .07);
}
/* **************************************** */





/* **************************************** */
/* * Map and Purchases */
/* **************************************** */
.map-purchase-row {
    align-items: stretch;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 350px;
    margin: 0 0 38px;
}

#placeMap {
    border: 1px solid rgba(213, 224, 232, .95);
    border-radius: 8px;
    height: 460px;
    min-height: 460px;
    overflow: hidden;
}

#placeMap.place-map-sample {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
}

#placeMap.place-map-sample img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.place-map-label {
    background: #fff;
    border: 0;
    box-shadow: 0 8px 24px rgba(18, 38, 56, .18);
    color: var(--text);
    font-weight: 900;
    padding: 7px 10px;
}

.place-map-label::before {
    display: none;
}

.purchase-section {
    background: #fff;
    border: 1px solid rgba(213, 224, 232, .95);
    border-radius: 8px;
    padding: 22px;
}

.purchase-section p {
    color: var(--muted);
    margin: 0 0 18px;
}

.purchase-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    gap: 14px;
    justify-content: space-between;
    margin-top: 10px;
    min-height: 54px;
    padding: 0 16px;
    width: 100%;
}

.purchase-button span {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.purchase-button span:last-child {
    font-size: 20px;
}

.purchase-button sup {
    color: var(--muted);
    font-size: 10px;
    margin-right: 4px;
    text-transform: uppercase;
}

.purchase-button-custom {
    border-color: var(--line);
    color: var(--brand);
    justify-content: center;
}

.purchase-button-print {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.purchase-button-download {
    background: var(--action);
    color: #fff;
}

.purchase-button-download:hover,
.purchase-button-download:focus {
    background: var(--action-dark);
}

.purchase-trust-icons {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    padding-top: 14px;
}

.purchase-trust-icon {
    color: var(--muted);
    display: grid;
    font-size: 10px;
    font-weight: 800;
    gap: 6px;
    justify-items: center;
    line-height: 1.25;
    text-align: center;
}

.purchase-trust-icon svg {
    color: var(--brand);
    height: 21px;
    width: 21px;
}
/* **************************************** */





/* **************************************** */
/* * Email Download CTA */
/* **************************************** */
.postcode-download-cta {
    align-items: center;
    background: var(--panel-soft);
    border: 1px solid #d8e3ff;
    border-radius: 8px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr);
    margin-bottom: 42px;
    padding: 28px;
}

.postcode-download-cta p {
    color: var(--muted);
    margin: 0;
}

.postcode-download-form {
    display: grid;
    gap: 10px;
}

.postcode-download-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.postcode-download-fields input {
    border: 1px solid #b8c7dc;
    border-radius: 8px;
    font: inherit;
    min-height: 52px;
    padding: 0 14px;
    width: 100%;
}

.postcode-download-fields button {
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 52px;
    padding: 0 18px;
}

.postcode-download-fields button:hover,
.postcode-download-fields button:focus {
    background: var(--brand-dark);
}

.postcode-download-form small,
.source-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.postcode-download-form small a,
.source-note a {
    color: var(--brand-dark);
    text-decoration: underline;
}

.website-field {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}
/* **************************************** */





/* **************************************** */
/* * Postcode Lists */
/* **************************************** */
.section-heading {
    margin-bottom: 18px;
    max-width: 850px;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

.postcode-code-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.postcode-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

.full-postcode-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.place-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 22px;
}

.place-pagination span {
    color: var(--muted);
    font-weight: 800;
}

.source-note {
    border-top: 1px solid var(--line);
    margin: 0;
    padding-top: 24px;
}
/* **************************************** */





/* **************************************** */
/* * Footer and Responsive Layout */
/* **************************************** */
.site-footer {
    padding: 26px 0 44px;
}

.vector-footer-grid {
    align-items: center;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr auto;
    padding-top: 24px;
}

.vector-footer-grid p {
    color: var(--muted);
    margin: 0;
}

.vector-footer-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.vector-footer-actions a:not(.vector-button) {
    color: #334155;
    font-weight: 700;
    text-decoration: underline;
}

@media screen and (max-width: 1050px) {
    .site-header .inner {
        flex-wrap: wrap;
    }

    .vector-menu-toggle {
        display: inline-flex;
    }

    .vector-nav {
        align-items: stretch;
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .site-header.is-menu-open .vector-nav {
        display: flex;
    }

    .vector-nav a {
        align-items: center;
        border-top: 1px solid var(--line);
        display: flex;
        font-size: 16px;
        min-height: 48px;
        padding: 9px 4px;
    }

    .vector-nav .vector-button {
        border-top: 0;
        margin-top: 10px;
        width: 100%;
    }

    .map-purchase-row {
        grid-template-columns: 1fr;
    }

    .place-index-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .full-postcode-grid,
    .postcode-code-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 760px) {
    .postcode-place-page {
        padding-top: 24px;
        width: min(calc(100% - 28px), 1220px);
    }

    .postcode-download-cta {
        grid-template-columns: 1fr;
    }

    .place-index-grid,
    .full-postcode-grid,
    .postcode-code-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {
    .vector-container {
        width: min(1220px, calc(100% - 20px));
    }

    .site-header .inner {
        gap: 10px;
        padding: 12px 0;
    }

    .vector-brand-mark {
        height: 44px;
        width: min(220px, calc(100vw - 145px));
    }

    #placeMap {
        height: 340px;
        min-height: 340px;
    }

    .postcode-download-fields {
        grid-template-columns: 1fr;
    }

    .vector-footer-grid {
        grid-template-columns: 1fr;
    }

    .vector-footer-actions {
        justify-content: flex-start;
    }

    .vector-footer-actions .vector-button {
        width: 100%;
    }
}
/* **************************************** */
