:root {
    --bp-green: #018034;
    --bp-green-dark: #016a2c;
    --bp-ink: #1f2933;
    --bp-muted: #5f6b76;
    --bp-line: #e1e5e9;
    --bp-bg: #f6f7f8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--bp-ink);
    background: var(--bp-bg);
}

a { color: var(--bp-green-dark); }

.bp-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

main.bp-wrap { padding-bottom: 48px; }

/* header and footer */

.bp-header {
    background: #fff;
    border-bottom: 1px solid var(--bp-line);
}

.bp-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.bp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bp-green);
    text-decoration: none;
}

.bp-nav a {
    margin-left: 18px;
    color: var(--bp-ink);
    text-decoration: none;
    font-weight: 500;
}

.bp-nav a:hover { color: var(--bp-green); }

.bp-footer {
    border-top: 1px solid var(--bp-line);
    background: #fff;
    padding: 18px 0;
    color: var(--bp-muted);
    font-size: 0.9rem;
}

.bp-footer-links a { margin-left: 14px; }

/* listings */

.bp-hero {
    text-align: center;
    padding: 40px 0 24px;
}

.bp-hero h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.bp-hero p {
    margin: 0 auto 16px;
    max-width: 640px;
    color: var(--bp-muted);
}

.bp-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-points li {
    background: #e7f4ec;
    color: var(--bp-green-dark);
    border-radius: 999px;
    padding: 4px 14px;
    font-weight: 600;
    font-size: 0.95rem;
}

.bp-asof, .bp-empty { color: var(--bp-muted); }

.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.bp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s;
}

.bp-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }

.bp-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.bp-nomap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #eef1f3;
    color: var(--bp-muted);
    text-decoration: none;
}

.bp-card-media { position: relative; }

.bp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c2410c;
    color: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.bp-badge-inline {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
}

.bp-featured { border: 2px solid #e8590c; }

.bp-section h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--bp-line);
}

.bp-section-featured h2 {
    color: #c2410c;
    border-bottom-color: #e8590c;
}

.bp-card-body { padding: 14px 16px 16px; }

.bp-card-county {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bp-muted);
}

.bp-card-addr { font-weight: 600; }

.bp-card-size {
    font-size: 0.9rem;
    color: var(--bp-muted);
    margin-bottom: 8px;
}

.bp-card-price {
    font-size: 1.4rem;
    font-weight: 700;
}

.bp-card-pay { color: var(--bp-green-dark); }

/* one listing */

.bp-back { margin: 20px 0 0; }

.bp-lot-title {
    margin: 12px 0 4px;
    font-size: 1.8rem;
}

.bp-lot-sub {
    margin: 0 0 20px;
    color: var(--bp-muted);
}

.bp-lot {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 760px) {
    .bp-lot { grid-template-columns: 1fr; }
}

.bp-lot-map img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--bp-line);
    display: block;
}

.bp-lot-map .bp-nomap { border-radius: 10px; }

/* our other lots, pinned over the road map image */
.bp-areamap { position: relative; }

/* clicks between the pins fall through to the map's own link beneath */
.bp-areamap-pins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.bp-areamap-pins a { pointer-events: auto; }

.bp-areamap-pins circle {
    fill: var(--bp-green);
    stroke: #fff;
    stroke-width: 2;
}

.bp-areamap-pins a:hover circle, .bp-areamap-pins a:focus circle { fill: #d89b00; }

/* a county with more than one lot in a region: its road map, pins drawn in the image's own pixels, and its cards */
.bp-countygroup + .bp-countygroup, .bp-countygroup + .bp-countygroup-head { margin-top: 28px; }

.bp-countygroup-head { margin: 0 0 12px; font-size: 1.1rem; }

.bp-countygroup-head span { font-weight: 400; color: var(--bp-muted); font-size: 0.95rem; margin-left: 6px; }

.bp-countymap {
    position: relative;
    max-width: 720px;
    margin: 0 0 16px;
}

.bp-countymap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--bp-line);
}

.bp-countymap-pins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bp-countymap-pin {
    fill: var(--bp-green);
    stroke: #fff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.bp-countymap-leg { stroke: var(--bp-green-dark); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.bp-countymap-spot { fill: var(--bp-green-dark); }

.bp-countymap-pins a:hover .bp-countymap-pin, .bp-countymap-pins a:focus .bp-countymap-pin { fill: #d89b00; }

/* a map pin's preview, placed by pincard.js in the map's positioned box */
.bp-pincard {
    position: absolute;
    z-index: 2;
    display: block;
    width: 220px;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.bp-pincard[hidden], .bp-pincard img[hidden] { display: none; }

/* after .bp-lot-map img, which a card on a lot page's map sits inside */
.bp-pincard img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 0;
    border-radius: 0;
}

.bp-pincard strong {
    display: block;
    padding: 8px 10px 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.bp-pincard span {
    display: block;
    padding: 2px 10px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp-green-dark);
}

.bp-price-box {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
    padding: 18px 20px;
}

.bp-price {
    font-size: 2rem;
    font-weight: 700;
}

.bp-pay {
    font-size: 1.15rem;
    color: var(--bp-green-dark);
}

.bp-terms {
    margin: 10px 0 16px;
    padding-left: 20px;
    color: var(--bp-muted);
}

.bp-cta {
    display: block;
    text-align: center;
    background: var(--bp-green);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    text-decoration: none;
}

.bp-cta:hover { background: var(--bp-green-dark); }

/* the inquiry form, on a lot page's price box and the Contact page */
.bp-inquiry { margin-top: 18px; }

.bp-inquiry-head { font-size: 1.1rem; margin: 0 0 6px; }

.bp-inquiry-status:empty { display: none; }

.bp-inquiry-status {
    margin: 8px 0;
    padding: 10px 12px;
    border-left: 4px solid var(--bp-green);
    background: #eef7f1;
    font-weight: 600;
}

.bp-inquiry-hint, .bp-inquiry-noscript { font-size: 0.9rem; color: var(--bp-muted); margin: 0 0 10px; }

.bp-inquiry-errors {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 2px solid #b42318;
    border-radius: 8px;
    background: #fff;
}

.bp-inquiry-errors p { margin: 0 0 4px; }

.bp-inquiry-errors ul { margin: 0; padding-left: 18px; }

.bp-inquiry-errors a { color: #b42318; }

.bp-field { margin: 0 0 12px; }

.bp-field label { display: block; font-weight: 600; margin-bottom: 4px; }

.bp-field-required { font-weight: 400; color: var(--bp-muted); }

.bp-field input, .bp-field textarea {
    display: block;
    width: 100%;
    font: inherit;
    padding: 8px 10px;
    border: 1px solid #8a949e;
    border-radius: 6px;
    background: #fff;
    color: var(--bp-ink);
}

.bp-field textarea { resize: vertical; }

.bp-field [aria-invalid="true"] { border: 2px solid #b42318; }

.bp-field-error { margin: 0 0 4px; color: #b42318; font-size: 0.9rem; }

.bp-field-error span { font-weight: 700; }

.bp-inquiry-send {
    width: 100%;
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bp-inquiry :focus-visible, .bp-inquiry-errors:focus {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

/* the honeypot: off screen and hidden from assistive technology, so only a bot fills it in */
.bp-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bp-facts {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
}

.bp-facts th, .bp-facts td {
    text-align: left;
    vertical-align: top;
    padding: 8px 14px;
    border-bottom: 1px solid var(--bp-line);
}

.bp-facts th {
    width: 38%;
    color: var(--bp-muted);
    font-weight: 500;
}

.bp-desc {
    font-size: 1.05rem;
    margin: 24px 0 0;
}

.bp-h2 {
    font-size: 1.2rem;
    margin: 28px 0 8px;
}

.bp-links { padding-left: 20px; }

.bp-contact-form { max-width: 560px; }

/* the listing headline on a card is an h3, sized as body text */

h3.bp-card-addr {
    font-size: 1.05rem;
    margin: 2px 0 4px;
}

/* one listing: price line, maps with captions */

.bp-lot-head { margin-bottom: 18px; }

.bp-priceline {
    margin: 4px 0 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.bp-priceline strong { color: var(--bp-green-dark); }

.bp-lot-main figure {
    margin: 0 0 22px;
}

.bp-lot-main figcaption {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--bp-muted);
}

.bp-lot-side .bp-h2 { margin-top: 22px; }

/* how it works */

.bp-how {
    margin: 48px 0 0;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
    padding: 18px 24px;
}

.bp-how h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.bp-how ol { margin: 0; padding-left: 22px; }

.bp-how li { margin: 6px 0; }

/* the property appraiser's value, shown where it beats the price: set off in gold */

.bp-card-value, .bp-value {
    background: #fff4d6;
    border: 1px solid #f2c94c;
    border-radius: 6px;
    color: #7a5600;
    padding: 4px 8px;
    margin: 4px 0;
    font-size: 0.9rem;
}

.bp-value { margin: 8px 0 4px; padding: 8px 10px; }

.bp-card-value strong, .bp-value strong { color: #5c3d00; }

/* tags drawn from a listing's figures */

.bp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.bp-tag {
    background: #e7f4ec;
    color: var(--bp-green-dark);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* numbered steps, across the page on a wide screen */

.bp-steps {
    counter-reset: bp-step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.bp-steps li {
    counter-increment: bp-step;
    position: relative;
    padding: 4px 0 0 44px;
    margin: 0;
}

.bp-steps li::before {
    content: counter(bp-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bp-green);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-how { margin: 8px 0 24px; }

.bp-how-more { margin: 12px 0 0; }

/* the financing and about pages */

.bp-page {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
    padding: 8px 28px 24px;
}

.bp-page h2 {
    font-size: 1.3rem;
    margin: 26px 0 12px;
}

.bp-examples {
    width: 100%;
    border-collapse: collapse;
}

.bp-examples th, .bp-examples td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--bp-line);
    vertical-align: top;
}

.bp-examples th {
    color: var(--bp-muted);
    font-weight: 500;
}

.bp-examples-where {
    font-size: 0.85rem;
    color: var(--bp-muted);
}

/* on a phone each lot is a block, its figures one to a line, each labeled from its cell's data-label */
@media (max-width: 720px) {
    .bp-examples thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .bp-examples tbody, .bp-examples tr, .bp-examples td { display: block; }

    .bp-examples tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--bp-line);
    }

    .bp-examples td {
        padding: 2px 0;
        border-bottom: 0;
    }

    .bp-examples td[data-label] {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .bp-examples td[data-label]::before {
        content: attr(data-label);
        color: var(--bp-muted);
    }

    .bp-examples td:first-child { padding-bottom: 6px; }
}

.bp-muted { color: var(--bp-muted); }

.bp-ticks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bp-ticks li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
}

.bp-ticks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--bp-green);
    font-weight: 700;
}

.bp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.bp-cta-row .bp-cta { padding: 10px 22px; }

.bp-cta-quiet {
    background: #fff;
    color: var(--bp-green-dark);
    border: 2px solid var(--bp-green);
}

.bp-cta-quiet:hover { background: #e7f4ec; }

.bp-faq dt {
    font-weight: 700;
    margin-top: 16px;
}

.bp-faq dd {
    margin: 4px 0 0;
    color: var(--bp-ink);
}

/* filter and sort */

.bp-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 8px 0 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
}

.bp-search label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--bp-muted);
}

.bp-search select {
    font: inherit;
    font-size: 0.95rem;
    padding: 6px 8px;
    border: 1px solid var(--bp-line);
    border-radius: 6px;
    background: #fff;
    color: var(--bp-ink);
}

.bp-search button {
    font: inherit;
    font-weight: 600;
    padding: 7px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--bp-green);
    color: #fff;
    cursor: pointer;
}

.bp-search button:hover { background: var(--bp-green-dark); }

/* where the lots are */

.bp-where {
    margin: 0 0 20px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 10px;
}

.bp-where h2 { margin: 0 0 12px; font-size: 1.25rem; }

.bp-where-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    align-items: center;
}

.bp-flmap { width: 100%; height: auto; display: block; }

.bp-pin circle {
    fill: var(--bp-green);
    stroke: #fff;
    stroke-width: 2;
}

.bp-pin text {
    fill: #fff;
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

.bp-flmap a:hover .bp-pin circle, .bp-flmap a:focus .bp-pin circle { fill: #d89b00; }

/* from the zoom flmap.js sets bp-show-lots at, a pin per lot stands in for the county pins */
.bp-flmap-lot { display: none; }

.bp-flmap.bp-show-lots .bp-flmap-lot { display: inline; }

.bp-flmap.bp-show-lots .bp-pin { display: none; }

.bp-flmap-lot-pin {
    fill: var(--bp-green);
    stroke: #fff;
    stroke-width: 2;
}

.bp-flmap-lot-leg { stroke: var(--bp-green-dark); stroke-width: 1; }

.bp-flmap-lot-spot { fill: var(--bp-green-dark); }

.bp-flmap a:hover .bp-flmap-lot-pin, .bp-flmap a:focus .bp-flmap-lot-pin { fill: #d89b00; }

.bp-county { display: none; }

.bp-flmap.bp-show-counties .bp-county { display: inline; }

.bp-county text {
    fill: #7f9c88;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-anchor: middle;
}

.bp-city { fill: #6b7a70; }

.bp-city text { font-size: 11px; }

.bp-flmap.bp-zoomed { cursor: grab; }

.bp-flmap.bp-dragging { cursor: grabbing; user-select: none; }

.bp-flmap-box { position: relative; }

.bp-flmap-reset {
    position: absolute;
    top: 8px;
    right: 8px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid var(--bp-line);
    border-radius: 6px;
    background: #fff;
    color: var(--bp-green-dark);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.bp-flmap-reset:hover { background: var(--bp-bg); }

.bp-flmap-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--bp-muted); text-align: center; }

.bp-where-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.bp-where-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--bp-ink);
}

.bp-where-list a:hover { background: var(--bp-bg); }

.bp-where-n {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bp-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: grid;
    place-items: center;
}

.bp-where-from { display: block; color: var(--bp-green-dark); font-size: 0.9rem; }

@media (max-width: 720px) {
    .bp-where { padding: 14px; }
    .bp-where-body { grid-template-columns: 1fr; gap: 12px; }
    .bp-pin circle { r: 15px; stroke-width: 3; }
    .bp-pin text { font-size: 17px; transform: translateY(2px); }
    .bp-flmap-lot-pin { r: 9px; stroke-width: 3; }
    .bp-flmap-lot-spot { r: 2.4px; }
    .bp-flmap-lot-leg { stroke-width: 1.5; }
    .bp-city circle { r: 3.5px; }
    .bp-city text { font-size: 18px; }
}

/* about the area, on a lot page */

.bp-area {
    margin: 4px 0 20px;
    padding: 14px 18px;
    background: #fff;
    border-left: 4px solid var(--bp-green);
    border-radius: 0 8px 8px 0;
}

.bp-area .bp-h2 { margin-top: 0; }

.bp-area p { margin: 0; line-height: 1.55; }
