:root {
    --accent: #2f6b4f;
    --accent-hover: #24543e;
    --accent-dark: #183b2b;
    --soft: #eaf4ef;
    --ink: #17211b;
    --muted: #66736b;
    --line: #dce6df;
    --surface: #fff;
    --page: #f6f8f6;
    --shadow: 0 14px 35px rgba(25, 57, 41, .09);
    --radius: 22px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65
}

a {
    color: inherit
}

.shell {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto
}

.site-header {
    background: var(--accent-dark);
    color: #fff
}

.nav-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.08rem
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    color: var(--accent-dark);
    font-size: .82rem;
    letter-spacing: .04em
}

.nav-tagline {
    color: #cde0d4;
    font-size: .92rem
}

.hero,
.town-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent) 65%, #3e8062);
    position: relative;
    overflow: hidden
}

.hero:after,
.town-hero:after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    right: -120px;
    top: -220px
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 82px 0 94px;
    text-align: center
}

.eyebrow {
    display: inline-block;
    color: #4f8e6c;
    background: var(--soft);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.hero .eyebrow,
.town-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .14)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.04;
    max-width: 850px;
    margin: 18px auto
}

.hero p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: #e0ede5;
    font-size: 1.12rem
}

.search-box {
    max-width: 660px;
    margin: auto;
    background: #fff;
    border-radius: 18px;
    padding: 7px 10px 7px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
    color: var(--muted)
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 14px 4px;
    font: inherit;
    color: var(--ink);
    background: transparent
}

.content-stack {
    display: grid;
    gap: 34px;
    padding: 0 0 68px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -38px;
    position: relative;
    z-index: 2
}

.stat-card {
    background: var(--surface);
    border: 1px solid rgba(220, 230, 223, .8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    text-align: center;
    display: grid;
    gap: 4px
}

.stat-card strong {
    font-size: 2rem;
    color: var(--accent)
}

.stat-card span {
    color: var(--muted)
}

.editorial-card,
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 42px)
}

.editorial-card p {
    color: var(--muted);
    max-width: 900px
}

.editorial-card p:last-child {
    margin-bottom: 0
}

.editorial-card--slim {
    padding: 28px 32px
}

.section-heading {
    margin-bottom: 22px
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin: 9px 0 0;
    line-height: 1.15
}

.section-heading--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px
}

.count-pill,
.verified-pill {
    background: var(--soft);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 7px 11px
}

.town-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.town-card {
    position: relative;
    display: grid;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 20px 46px 20px 20px;
    text-decoration: none;
    transition: .2s ease
}

.town-card:hover {
    transform: translateY(-3px);
    border-color: #9fc4ae;
    box-shadow: var(--shadow)
}

.town-name {
    font-weight: 800
}

.town-count {
    font-size: .84rem;
    color: var(--muted)
}

.town-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 900
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 28px
}

.town-hero {
    padding: 46px 0 54px
}

.town-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.08;
    margin: 14px 0 8px
}

.town-hero p {
    margin: 0;
    color: #dcece2
}

.breadcrumbs {
    display: flex;
    gap: 9px;
    margin-bottom: 28px;
    color: #cee3d6;
    font-size: .9rem
}

.breadcrumbs a {
    text-decoration: none
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.listing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 7px 24px rgba(25, 57, 41, .05);
    display: flex;
    flex-direction: column
}

.listing-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.listing-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 900
}

.listing-card h2 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 18px 0 9px
}

.address {
    color: var(--muted);
    font-size: .94rem;
    flex-grow: 1
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 18px
}

.rating span {
    color: #e0a225
}

.rating small {
    color: var(--muted)
}

.listing-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: auto
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: black!important;
    color: #fff;
    text-decoration: none;
    border-radius: 11px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: .88rem;
    transition: .2s
}

.button:hover {
    background: var(--accent-hover)
}

.button--secondary {
    background: var(--soft);
    color: var(--accent)
}

.back-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none
}

.site-footer {
    background: #122a1e;
    color: #fff;
    padding: 45px 0 18px;
    margin-top: 30px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px
}

.site-footer p {
    color: #b9d0c1;
    margin: 5px 0
}

.footer-disclaimer {
    font-size: .88rem
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
    padding-top: 16px;
    color: #9ab6a4;
    font-size: .84rem
}

@media(max-width:900px) {
    .town-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:680px) {
    .nav-tagline {
        display: none
    }

    .hero-inner {
        padding: 60px 0 76px
    }

    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: -28px
    }

    .town-grid,
    .listing-grid {
        grid-template-columns: 1fr
    }

    .section-heading--row,
    .footer-grid {
        display: block
    }

    .count-pill {
        display: inline-block;
        margin-top: 14px
    }

    .editorial-card--slim {
        padding: 24px
    }

    .listing-actions .button {
        flex: 1
    }

    .town-hero {
        padding: 34px 0 42px
    }
}

/* Town live filter and Bootstrap-style town cards */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important
}

.town-filter {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(25, 57, 41, .06)
}

.town-filter:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 107, 79, .12)
}

.town-filter-icon {
    position: absolute;
    left: 17px;
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1;
    pointer-events: none
}

.town-filter input {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 14px 18px 14px 50px;
    border: 0;
    border-radius: 14px;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1rem
}

.town-filter input::placeholder {
    color: #7a877f
}

.town-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

.town-card:hover {
    transform: translateY(-3px);
    border-color: #9fc4ae;
    box-shadow: var(--shadow)
}

.town-card-header {
    padding: 14px 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem
}

.town-card-body {
    flex: 1;
    padding: 18px
}

.town-card-body strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink)
}

.town-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem
}

.town-card-footer {
    padding: 0 18px 18px;
    background: #fff
}

.town-card-button {
    width: 100%
}