:root {
    --ink: #182227;
    --muted: #617279;
    --line: #d9e4e6;
    --paper: #f4f8f8;
    --white: #ffffff;
    --sea: #0d8a8f;
    --brand-blue: #4d8df7;
    --brand-blue-deep: #3d79dc;
    --deep: #113f4d;
    --coral: #ea6353;
    --sun: #f2b446;
    --leaf: #3f8f6a;
    --shadow: 0 22px 60px rgba(17, 63, 77, 0.14);
    --shadow-soft: 0 14px 34px rgba(17, 63, 77, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #eef5ff 0%, #f6fbff 55%, #eef6f5 100%);
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

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

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

h1,
h2,
h3,
p,
strong,
small,
span,
a,
button,
label {
    overflow-wrap: anywhere;
}

.site-header {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(17, 63, 77, 0.08);
    backdrop-filter: blur(18px);
    transition: background .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(17, 63, 77, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    background: linear-gradient(135deg, var(--coral), #f28a66);
    border-radius: 12px;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(234, 99, 83, 0.25);
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-size: 16px;
}

.brand-copy small {
    margin-top: 2px;
    opacity: .76;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 800;
}

.main-nav a {
    position: relative;
    padding-bottom: 6px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-call,
.call-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.header-call,
.call-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--sea), #167a80);
    box-shadow: 0 14px 26px rgba(13, 138, 143, 0.18);
}

.call-button--compact {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
}

.ghost-button {
    color: var(--deep);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 63, 77, 0.14);
}

.ghost-button--small {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
}

.ghost-button--full {
    width: 100%;
}

.header-call:hover,
.call-button:hover,
.ghost-button:hover,
.category-card:hover,
.listing-card:hover,
.directory-card:hover,
.map-listing:hover {
    transform: translateY(-2px);
}

.hero {
    position: relative;
    min-height: 820px;
    overflow: hidden;
    color: var(--white);
    margin: 96px 18px 0;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(17, 63, 77, 0.18);
}

.hero-media,
.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster {
    background:
        linear-gradient(110deg, rgba(10, 33, 41, 0.78), rgba(10, 33, 41, 0.24) 58%, rgba(234, 99, 83, 0.18)),
        url("https://images.unsplash.com/photo-1602002418082-a4443e081dd1?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 33, 41, 0.24), rgba(10, 33, 41, 0.78));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 122px 0 72px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .75fr);
    gap: 34px;
    align-items: end;
    padding: 160px 0 74px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd66f;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 80px);
    line-height: .98;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
}

.hero-copy {
    max-width: 660px;
    margin: 18px 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.6;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 220px) minmax(160px, 190px) 160px;
    gap: 10px;
    width: min(950px, 100%);
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.search-panel label {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 8px 14px;
    border-right: 1px solid var(--line);
}

.search-panel label:last-of-type {
    border-right: 0;
}

.captcha-inline,
.captcha-field {
    display: grid;
    gap: 6px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.hero-notice {
    margin-bottom: 16px;
}

.search-panel span,
.filter-form span,
.admin-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.search-panel input,
.search-panel select,
.filter-form input,
.filter-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-weight: 800;
}

.search-panel button,
.filter-form button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-links a {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-panel {
    padding: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(10, 33, 41, 0.22);
    backdrop-filter: blur(18px);
}

.hero-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-panel-head strong {
    font-size: 22px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
}

.stat-card strong,
.stat-card span {
    display: block;
}

.stat-card strong {
    font-size: 26px;
}

.stat-card span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.4;
}

.hero-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hero-mini-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.hero-mini-tone {
    width: 10px;
    height: 100%;
    min-height: 36px;
    border-radius: 999px;
}

.hero-mini-item strong,
.hero-mini-item small {
    display: block;
}

.hero-mini-item small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
}

.tone-green.hero-mini-tone { background: #7ad18f; }
.tone-yellow.hero-mini-tone { background: #f4c35f; }
.tone-blue.hero-mini-tone { background: #79bdf6; }
.tone-cyan.hero-mini-tone { background: #67d9df; }
.tone-teal.hero-mini-tone { background: #66d0af; }
.tone-red.hero-mini-tone { background: #ff8b77; }

.page-main {
    padding-top: 116px;
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 72px 0;
}

.page-hero,
.results-head {
    padding-bottom: 28px;
}

.page-hero p,
.results-head p {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

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

.section-link {
    color: var(--sea);
    font-weight: 900;
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lifestyle-card {
    display: grid;
    gap: 16px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.lifestyle-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
}

.lifestyle-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 170px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.category-card strong {
    font-size: 18px;
}

.category-card small {
    color: var(--muted);
    font-weight: 800;
}

.tone-green .category-icon { color: var(--leaf); background: #e8f5ee; }
.tone-yellow .category-icon { color: #906100; background: #fff4cf; }
.tone-blue .category-icon { color: #2468a3; background: #eaf3fd; }
.tone-cyan .category-icon { color: #0d7780; background: #def6f7; }
.tone-teal .category-icon { color: #15795f; background: #dff6ef; }
.tone-red .category-icon { color: var(--coral); background: #fee9e5; }

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

.listing-card,
.directory-card,
.filter-card,
.empty-state-box,
.admin-form,
.map-stage,
.map-listing {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(21, 58, 87, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(52, 85, 122, 0.08);
}

.listing-card {
    overflow: hidden;
}

.biz-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 338px;
    height: 338px;
    padding: 28px;
    border-radius: 22px;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(44, 72, 110, 0.1);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
    position: relative;
    overflow: hidden;
}

.biz-card:hover,
.biz-card:focus-visible {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 28px 68px rgba(44, 72, 110, 0.15);
    border-color: rgba(77, 141, 247, 0.2);
    outline: none;
}

.biz-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at top left, rgba(77, 141, 247, 0.16), rgba(77, 141, 247, 0));
    pointer-events: none;
}

.biz-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.biz-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.biz-card-badge,
.biz-card-fresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0;
    flex: 0 0 auto;
}

.biz-card-badge {
    color: #2f4f77;
    background: #eef4ff;
    border: 1px solid rgba(77, 141, 247, 0.12);
}

.biz-card-fresh {
    color: #845900;
    background: #fff7df;
    border: 1px solid rgba(242, 180, 70, 0.12);
}

.biz-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 20px;
    min-height: 0;
}

.biz-card-body h3 {
    margin: 0;
    max-width: 100%;
    font-size: 20px;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.22em * 2);
}

.biz-card-summary {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6em;
}

.biz-card-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #73818a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.biz-card-location svg {
    width: 16px;
    height: 16px;
    color: var(--sea);
    flex: 0 0 auto;
}

.biz-card-footer {
    padding-top: 22px;
    margin-top: auto;
}

.biz-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 14px 28px rgba(77, 141, 247, 0.22);
    pointer-events: none;
}

.listing-card--featured {
    display: grid;
    grid-template-rows: 180px 1fr;
}

.listing-cover {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    padding: 22px;
    color: var(--white);
    background: linear-gradient(135deg, #143d4b, #17878d);
}

.listing-cover.tone-green { background: linear-gradient(135deg, #2f624a, #53a778); }
.listing-cover.tone-yellow { background: linear-gradient(135deg, #8d6713, #daa12d); }
.listing-cover.tone-blue { background: linear-gradient(135deg, #2e5a87, #4c99d7); }
.listing-cover.tone-cyan { background: linear-gradient(135deg, #0c6068, #17a6b1); }
.listing-cover.tone-teal { background: linear-gradient(135deg, #135746, #1f9c7d); }
.listing-cover.tone-red { background: linear-gradient(135deg, #8c372e, #de7160); }

.listing-cover-label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .82;
}

.listing-cover strong {
    font-size: 30px;
    line-height: 1;
}

.listing-body,
.directory-card {
    padding: 20px;
}

.listing-meta,
.directory-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--sea);
    font-size: 13px;
    font-weight: 900;
}

.listing-meta span:last-child,
.directory-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #a36a00;
}

.listing-card h3,
.directory-card h3,
.map-listing h3 {
    margin: 14px 0 10px;
    font-size: 25px;
    line-height: 1.16;
}

.listing-card p,
.directory-card p,
.filter-card p,
.site-footer p,
.map-listing p {
    color: var(--muted);
    line-height: 1.58;
}

.listing-card p,
.directory-location,
.map-listing p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
}

.listing-summary,
.directory-summary {
    display: block;
    min-height: 52px;
    margin: 0 0 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.tag-list span,
.directory-pill {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.tag-list span {
    color: var(--deep);
    background: #edf5f3;
}

.directory-pill {
    color: var(--sea);
    background: #e6f7f7;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.directory-shell,
.map-shell {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.filter-card {
    padding: 22px;
}

.filter-card--soft {
    background: linear-gradient(180deg, rgba(230, 247, 247, 0.95), rgba(255, 255, 255, 0.92));
}

.filter-card strong {
    display: block;
    margin-bottom: 14px;
    font-size: 22px;
}

.filter-form {
    display: grid;
    gap: 14px;
}

.filter-form label,
.admin-form label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 900;
}

.filter-form input,
.filter-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
    min-height: 48px;
    padding: 10px 14px;
    background: #f7fbfb;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.directory-content {
    min-width: 0;
}

.directory-card {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.directory-card:hover {
    border-color: rgba(13, 138, 143, 0.3);
    box-shadow: 0 24px 50px rgba(17, 63, 77, 0.12);
    transform: translateY(-4px);
}

.directory-hover {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 14px;
    background: linear-gradient(180deg, #f7fbfb, #eef6f5);
    border: 1px solid #dbe9e8;
    border-radius: 14px;
    opacity: .75;
    transition: opacity .18s ease, transform .18s ease;
}

.directory-card:hover .directory-hover {
    opacity: 1;
    transform: translateY(-1px);
}

.hover-facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hover-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.hover-facts span {
    color: var(--muted);
    font-weight: 700;
}

.hover-facts strong {
    font-size: 13px;
    text-align: right;
}

.district-band,
.neighborhood-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 28px;
    align-items: stretch;
}

.neighborhood-copy,
.district-panel {
    padding: 34px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.neighborhood-copy p:not(.eyebrow) {
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.neighborhood-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.neighborhood-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.neighborhood-stats div {
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff, #f4f8f8);
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 18px;
}

.neighborhood-stats strong,
.neighborhood-stats span {
    display: block;
}

.neighborhood-stats strong {
    font-size: 28px;
    font-weight: 900;
}

.neighborhood-stats span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.district-panel {
    display: grid;
    align-content: start;
    gap: 20px;
}

.district-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.district-panel-head strong {
    font-size: 24px;
}

.district-panel-head small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.district-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.district-cloud a {
    padding: 12px 16px;
    color: var(--deep);
    background: linear-gradient(180deg, #ffffff, #f5f9f9);
    border: 1px solid rgba(17, 63, 77, 0.1);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(17, 63, 77, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.district-cloud a:hover {
    transform: translateY(-2px);
    color: var(--sea);
    border-color: rgba(13, 138, 143, 0.24);
    box-shadow: 0 16px 30px rgba(13, 138, 143, 0.12);
}

.map-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .75fr);
    gap: 22px;
    align-items: start;
}

.map-stage-wrap {
    display: grid;
    gap: 16px;
}

.map-stage {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.map-frame {
    width: 100%;
    min-height: 520px;
    border: 0;
}

.map-stage-overlay {
    position: absolute;
    left: 18px;
    top: 18px;
    max-width: min(440px, calc(100% - 36px));
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(18, 60, 74, 0.92), rgba(13, 138, 143, 0.88));
    border-radius: 16px;
}

.map-stage-overlay strong {
    font-size: 18px;
    line-height: 1.2;
}

.map-focus-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.map-focus-meta,
.map-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.map-focus-card h2 {
    margin: 14px 0 10px;
    font-size: 32px;
    line-height: 1.08;
}

.map-focus-card p {
    color: var(--muted);
    line-height: 1.58;
}

.map-results {
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 150px);
    padding: 2px 4px 2px 2px;
    overflow: auto;
}

.map-results-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    background: rgba(244, 248, 248, 0.96);
    border-bottom: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 14px;
}

.map-results-head > div {
    display: grid;
    gap: 4px;
}

.map-results-head strong {
    font-size: 18px;
}

.map-results-head span {
    color: var(--muted);
    font-size: 13px;
}

.map-listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 16px;
    border-radius: 18px;
}

.map-listing.is-active {
    border-color: rgba(13, 138, 143, 0.35);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(231, 248, 248, 0.95), rgba(255, 255, 255, 0.96));
}

.map-listing-copy {
    min-width: 0;
}

.map-listing h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.14;
}

.map-listing-actions {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 96px;
}

.detail-hero {
    padding-bottom: 26px;
}

.detail-hero--pro {
    padding-top: 10px;
}

.detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.detail-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 24px;
    padding: 30px;
    color: var(--white);
    background: linear-gradient(135deg, #123c4a, #0d8a8f);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-banner.tone-green { background: linear-gradient(135deg, #2f624a, #53a778); }
.detail-banner.tone-yellow { background: linear-gradient(135deg, #8d6713, #daa12d); }
.detail-banner.tone-blue { background: linear-gradient(135deg, #2e5a87, #4c99d7); }
.detail-banner.tone-cyan { background: linear-gradient(135deg, #0c6068, #17a6b1); }
.detail-banner.tone-teal { background: linear-gradient(135deg, #135746, #1f9c7d); }
.detail-banner.tone-red { background: linear-gradient(135deg, #8c372e, #de7160); }

.detail-banner-copy h1 {
    max-width: none;
    margin-top: 12px;
}

.detail-banner-top,
.detail-banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-banner-meta {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.detail-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.detail-quick-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

.detail-quick-card > strong {
    display: block;
    margin-bottom: 18px;
    font-size: 22px;
}

.detail-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-quick-grid div {
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.detail-quick-grid span,
.detail-quick-grid strong {
    display: block;
}

.detail-quick-grid span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.detail-quick-grid strong {
    margin-top: 6px;
    font-size: 16px;
}

.detail-hero-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: start;
}

.detail-copy,
.detail-summary-card,
.detail-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.detail-lead {
    margin: 18px 0 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.detail-top-meta,
.detail-actions,
.detail-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-actions {
    margin-top: 18px;
    justify-content: flex-start;
}

.detail-grid--pro {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-card--prose p,
.detail-card-copy {
    color: var(--muted);
    line-height: 1.74;
    font-size: 16px;
}

.detail-facts,
.detail-contact-list,
.detail-related-list {
    display: grid;
    gap: 14px;
}

.detail-facts {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.detail-facts li {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 63, 77, 0.08);
}

.detail-facts li:first-child {
    padding-top: 0;
    border-top: 0;
}

.detail-facts span,
.review-summary span,
.detail-related-item small {
    color: var(--muted);
}

.detail-facts strong,
.review-summary strong {
    font-size: 16px;
}

.detail-map-frame {
    width: 100%;
    min-height: 360px;
    margin-top: 18px;
    border: 0;
    border-radius: 18px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.review-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.empty-review-box {
    padding: 18px;
    background: #f7fbfb;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.empty-review-box strong {
    display: block;
    margin-bottom: 6px;
}

.detail-related-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #f7fbfb;
    border: 1px solid rgba(17, 63, 77, 0.08);
    border-radius: 16px;
}

.detail-card--sticky {
    position: sticky;
    top: 110px;
}

.results-head h1 {
    max-width: 920px;
}

.empty-state-box {
    padding: 28px;
}

.empty-state-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(18px, 4vw, 56px);
    color: var(--white);
    background: #102a32;
}

.site-footer p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.register-layout {
    display: grid;
    gap: 22px;
}

.notice {
    padding: 15px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.notice.success {
    color: #195739;
    background: #ddf4e8;
    border: 1px solid #bce5cf;
}

.notice.error {
    color: #8f261d;
    background: #fde8e5;
    border: 1px solid #f3c1bb;
}

.admin-form {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.admin-form h2 {
    margin: 0;
    font-size: 28px;
}

.admin-form p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.text-link {
    color: var(--sea);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-form .full {
    grid-column: 1 / -1;
}

.form-submit {
    justify-self: start;
    min-height: 48px;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sea), #167a80);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

@media (max-width: 1080px) {
    .hero-layout,
    .directory-shell,
    .map-shell,
    .district-band,
    .lifestyle-grid,
    .listing-grid,
    .directory-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-panel {
        max-width: 720px;
    }

    .directory-shell,
    .map-shell,
    .map-main,
    .detail-banner,
    .detail-hero-grid,
    .detail-grid,
    .neighborhood-band {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .map-stage {
        position: static;
    }

    .map-results {
        max-height: none;
        overflow: visible;
    }

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

    .map-listing-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .detail-info-grid,
    .review-panels,
    .detail-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .search-panel label {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .search-panel label:last-of-type {
        border-bottom: 0;
    }

    .hero {
        min-height: 900px;
    }

    .hero-layout {
        padding-top: 132px;
    }

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

    .category-grid,
    .listing-grid,
    .directory-grid,
    .form-grid,
    .lifestyle-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .site-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-items: start;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand-copy small,
    .header-call {
        display: none;
    }

    .page-main {
        padding-top: 92px;
    }

    .hero-content,
    .section {
        width: calc(100% - 28px);
    }

    .hero-layout {
        gap: 22px;
        padding-bottom: 40px;
    }

    .district-band {
        padding: 26px;
        border-radius: 24px;
    }

    .map-stage,
    .map-frame {
        min-height: 420px;
    }

    .map-listing {
        display: grid;
    }

    .map-focus-card h2,
    .map-listing h3 {
        font-size: 22px;
    }

    .detail-banner {
        padding: 22px;
        border-radius: 22px;
    }
}
