:root {
    --ink: #17211f;
    --muted: #64716d;
    --line: #dce4e0;
    --soft: #f4f7f5;
    --paper: #ffffff;
    --brand: #2d6a5f;
    --brand-dark: #18453f;
    --gold: #c79a3f;
    --blue: #315a8a;
    --danger: #9f3434;
    --shadow: 0 18px 45px rgba(23, 33, 31, 0.16);
}

@font-face {
    font-family: "Gilroy";
    src: url("../../fonts/Gilroy-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../../fonts/Gilroy-Light.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../../fonts/Gilroy-ExtraBold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../../fonts/Gilroy-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../../fonts/Gilroy-ExtraBold.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: "Gilroy", "Segoe UI", Arial, sans-serif;
    font-weight: 300;
    line-height: 1.5;
}

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

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

.gm-style img {
    max-width: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner,
.section,
.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    color: var(--brand-dark);
}

.brand-logo {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
}

.nav a:hover {
    color: var(--brand-dark);
}

.hero {
    min-height: 660px;
    position: relative;
    overflow: hidden;
    color: white;
    background: #14211f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 20, 18, 0.78), rgba(10, 20, 18, 0.34) 54%, rgba(10, 20, 18, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    align-content: center;
    padding: 90px 0 70px;
}

.eyebrow {
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: 58px;
}

.hero-copy {
    max-width: 650px;
    margin: 18px 0 28px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-search {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) auto;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.client-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.phone-paste-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.client-picker input {
    min-width: 0;
}

.phone-paste-row input {
    min-width: 0;
}

.client-paste-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    white-space: nowrap;
    font-size: 20px;
    line-height: 1;
}

.icon-button {
    aspect-ratio: 1 / 1;
}

.client-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 310px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
}

.client-result {
    width: 100%;
    display: grid;
    gap: 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    background: white;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.client-result:last-child {
    border-bottom: 0;
}

.client-result:hover,
.client-result:focus {
    background: var(--soft);
}

.client-result strong {
    font-size: 14px;
}

.client-result span,
.client-picker-status {
    color: var(--muted);
    font-size: 12px;
}

.client-new-name {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--brand);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn.secondary {
    background: white;
    color: var(--brand-dark);
    border-color: var(--line);
}

.btn.secondary:hover {
    border-color: var(--brand);
}

.btn.gold {
    background: var(--gold);
}

.btn.danger {
    background: var(--danger);
}

.slider-dots {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.slider-dots button.active {
    background: white;
}

.section {
    padding: 58px 0;
}

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

.section-title h2 {
    font-size: 34px;
}

.section-title p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
}

.search-hero {
    position: relative;
    min-height: 180px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: white;
    background: #17211f;
}

.search-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.54);
}

.search-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 33, 31, 0.1), rgba(23, 33, 31, 0.76));
}

.search-hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 28px;
}

.search-hero-content h1 {
    font-size: clamp(34px, 4vw, 52px);
}

.search-hero-content p {
    max-width: 720px;
    margin: 8px 0 0;
    font-size: 17px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.86);
}

.search-section {
    padding-top: 14px;
}

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

.concierge-section {
    padding-top: 26px;
}

.concierge-content {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.concierge-copy {
    display: grid;
    justify-items: start;
    gap: 16px;
}

.eyebrow {
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.concierge-copy h2 {
    max-width: 520px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
}

.concierge-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    font-weight: 650;
}

.before-after {
    --position: 50%;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    min-height: 320px;
    border-radius: 8px;
    background: #d9dedb;
    box-shadow: 0 18px 36px rgba(23, 33, 31, 0.16);
    aspect-ratio: 16 / 9;
}

.before-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.before-after-base,
.before-after-reveal {
    position: absolute;
    inset: 0;
}

.before-after-base {
    position: relative;
}

.before-after-reveal {
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-after-reveal img {
    max-width: none;
}

.before-after::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    z-index: 3;
    width: 2px;
    background: white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    transform: translateX(-1px);
}

.before-after-handle {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: var(--position);
    width: 54px;
    height: 54px;
    border: 2px solid white;
    border-radius: 999px;
    background: rgba(17, 33, 31, 0.72);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transform: translate(-50%, -50%);
}

.before-after-handle::before,
.before-after-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 3px solid white;
    border-left: 3px solid white;
}

.before-after-handle::before {
    left: 14px;
    transform: translateY(-50%) rotate(-45deg);
}

.before-after-handle::after {
    right: 14px;
    transform: translateY(-50%) rotate(135deg);
}

.before-after-label {
    position: absolute;
    z-index: 5;
    top: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.before-after-label.before {
    left: 16px;
}

.before-after-label.after {
    right: 16px;
}

.before-after input[type="range"] {
    position: absolute;
    inset: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.home-page .site-header {
    display: none;
}

.home-page .hero {
    height: 58vh;
    height: 58svh;
    min-height: 430px;
    max-height: 620px;
}

.home-page .hero::after {
    background: linear-gradient(rgba(17, 25, 35, 0.52), rgba(17, 25, 35, 0.52));
}

.hero-topbar {
    position: absolute;
    z-index: 4;
    top: 28px;
    left: 50%;
    width: min(1180px, calc(100% - 54px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-menu {
    width: 52px;
    display: grid;
    gap: 8px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.hero-menu span {
    height: 5px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-logo {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 0 0 14px;
}

.hero-logo img {
    width: auto;
    height: 21px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.34));
}

.hero-login {
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.home-page .hero-content {
    height: 100%;
    min-height: 100%;
    align-content: center;
    justify-items: center;
    padding: 104px 0 46px;
}

.home-page .hero-content h1 {
    max-width: none;
    text-align: center;
    font-size: clamp(30px, 4vw, 48px);
}

.home-page .hero-content h1 span {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: white;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.52);
}

.portal-search {
    width: min(980px, 100%);
    display: block;
    margin-top: 34px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.portal-tabs {
    display: flex;
    width: min(500px, 100%);
}

.portal-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-tabs label,
.portal-tabs a {
    min-width: 0;
    min-height: 60px;
    display: grid;
    place-items: center;
    flex: 1;
    border: 1px solid #d8d8d8;
    background: #e9e9e9;
    color: #202020;
    font-size: clamp(20px, 2.35vw, 28px);
    font-weight: 800;
    cursor: pointer;
}

.portal-tabs input:checked + label {
    background: white;
}

.portal-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    min-height: 84px;
    background: white;
}

.portal-search-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0 24px;
    color: var(--ink);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
}

.portal-search-row input::placeholder {
    color: #8c8c8c;
}

.portal-search-button {
    display: grid;
    place-items: center;
    border: 0;
    background: #050505;
    cursor: pointer;
}

.search-icon {
    position: relative;
    width: 30px;
    height: 30px;
    border: 5px solid white;
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 5px;
    right: -13px;
    bottom: -7px;
    background: white;
    transform: rotate(45deg);
    transform-origin: left center;
}

.portal-property-type {
    display: none;
}

.listing-grid {
    gap: 24px;
}

.listing-card {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 22px rgba(23, 33, 31, 0.12);
}

.listing-link {
    display: block;
}

.listing-card:hover img {
    transform: scale(1.035);
}

.listing-media {
    position: relative;
    display: block;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    background: #d8e0dc;
}

.listing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card-gallery-controls {
    position: absolute;
    z-index: 4;
    top: 34%;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.card-gallery-controls button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #050505;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.listing-badge,
.listing-distance {
    position: absolute;
    z-index: 2;
    top: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: calc(100% - 32px);
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #050505;
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: 900;
    line-height: 1.05;
}

.listing-badge {
    left: 16px;
}

.listing-distance {
    right: 16px;
    font-size: 16px;
}

.listing-body {
    display: grid;
    gap: 10px;
    padding: 22px 24px 24px;
    background: white;
    color: var(--ink);
}

.listing-body .listing-price {
    text-align: left;
    color: #050505;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
}

.listing-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    color: #5f6865;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 300;
}

.listing-facts span {
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px solid var(--line);
}

.listing-facts span:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.listing-address {
    color: #6a7370;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.25;
}

.listing-meta {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.search-layout .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neighborhood-section {
    padding-top: 22px;
}

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

.neighborhood-card {
    position: relative;
    min-height: 96px;
    overflow: hidden;
    border-radius: 8px;
    color: white;
    background: #1e2c29;
}

.neighborhood-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
    transition: transform 0.3s ease;
}

.neighborhood-card:hover img {
    transform: scale(1.04);
}

.neighborhood-card span {
    position: relative;
    z-index: 1;
    min-height: 96px;
    display: grid;
    align-content: center;
    padding: 18px 24px;
}

.neighborhood-card strong {
    font-size: 20px;
    font-weight: 900;
}

.neighborhood-card small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.about-hero {
    position: relative;
    min-height: 180px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: white;
    background: #17211f;
}

.about-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.54);
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 33, 31, 0.1), rgba(23, 33, 31, 0.76));
}

.about-hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 28px;
}

.about-hero-content span,
.about-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.about-hero-content h1 {
    max-width: 790px;
    font-size: clamp(34px, 4vw, 52px);
}

.about-intro,
.about-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
    align-items: start;
}

.about-intro h2,
.about-panel h2 {
    font-size: 38px;
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.founder-profile img {
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: 52% 23%;
    border: 3px solid white;
    box-shadow: 0 14px 32px rgba(23, 33, 31, 0.18);
    background: #dbe3df;
}

.about-copy,
.about-panel {
    color: var(--muted);
    font-size: 18px;
}

.about-copy p,
.about-panel p {
    margin: 0 0 18px;
}

.about-split {
    align-items: stretch;
}

.about-image {
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: #dbe3df;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-panel {
    display: grid;
    align-content: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.about-panel h2 {
    margin-bottom: 18px;
    color: var(--ink);
}

.about-stats-section {
    padding-top: 20px;
}

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

.about-stat {
    min-height: 150px;
    display: grid;
    align-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.about-stat strong {
    color: var(--brand-dark);
    font-size: 42px;
    line-height: 1;
}

.about-stat span {
    color: var(--muted);
    font-weight: 750;
}

.site-menu[hidden] {
    display: none;
}

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.site-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.site-menu-panel {
    position: relative;
    width: min(520px, 100%);
    height: 100%;
    overflow-y: auto;
    background: white;
    box-shadow: 16px 0 44px rgba(0, 0, 0, 0.24);
}

.site-menu-head {
    min-height: 132px;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 28px 34px;
}

.site-menu-head button {
    border: 0;
    background: transparent;
    color: #111;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
}

.site-menu-logo {
    display: inline-flex;
    align-items: center;
}

.site-menu-logo img {
    width: auto;
    height: 46px;
    filter: grayscale(1) brightness(0.45);
}

.site-menu-nav,
.site-menu-links {
    display: grid;
}

.site-menu-nav {
    gap: 34px;
    padding: 34px 48px 44px;
    border-bottom: 1px solid var(--line);
}

.site-menu-links {
    gap: 28px;
    padding: 34px 48px;
    border-bottom: 1px solid var(--line);
}

.site-menu-nav a,
.site-menu-links a {
    color: #111;
    font-size: 30px;
    font-weight: 300;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.site-menu-nav a {
    text-decoration: none;
}

.site-menu-login {
    min-height: 68px;
    margin: 34px 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #050505;
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.menu-open {
    overflow: hidden;
}

.property-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: white;
    transition: transform 0.18s ease;
}

.property-search-bar {
    min-height: 52px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    border-bottom: 1px solid var(--line);
    background: white;
}

.property-menu-button,
.property-search-button {
    border: 0;
    border-right: 1px solid var(--line);
    background: white;
    cursor: pointer;
}

.property-menu-button {
    display: grid;
    place-content: center;
    gap: 4px;
}

.property-menu-button span {
    width: 22px;
    height: 2px;
    background: #050505;
}

.property-search-bar input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    color: var(--ink);
    font-size: 18px;
}

.property-search-button {
    border-right: 0;
    display: grid;
    place-items: center;
}

.search-icon.dark {
    border-color: #050505;
}

.search-icon.dark::after {
    background: #050505;
}

.detail-hero {
    background: var(--paper);
}

.detail-media {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #16211f;
}

.detail-media-badge {
    position: absolute;
    z-index: 4;
    top: 24px;
    left: 24px;
    max-width: min(520px, calc(100% - 48px));
    overflow: hidden;
    border-radius: 6px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-counter {
    position: absolute;
    z-index: 4;
    left: 24px;
    bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    font-size: 14px;
    font-weight: 900;
}

.gallery-type-badge {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 18px;
    max-width: calc(100% - 112px);
    overflow: hidden;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-media-actions {
    min-height: 86px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: white;
    border-bottom: 1px solid var(--line);
}

.floor-plan-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #cfd5d2;
    border-radius: 999px;
    padding: 0 22px;
    background: white;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.floor-plan-button span {
    font-size: 22px;
    font-weight: 300;
}

.detail-media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 28px;
}

.gallery-controls button {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark);
    font-size: 28px;
    font-weight: 900;
    pointer-events: auto;
    cursor: pointer;
}

.detail-summary {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
    padding: 30px 0 34px;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(var(--fact-count, 4), minmax(0, 1fr));
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
}

.fact {
    padding: 8px 18px 8px 0;
    border-right: 0;
}

.fact:last-child {
    border-right: 0;
}

.fact strong {
    display: block;
    font-size: 20px;
    line-height: 1.05;
}

.fact span {
    color: var(--muted);
    font-size: 17px;
}

.detail-hero-address h1 {
    max-width: none;
    margin: 0;
    font-size: 34px;
}

.detail-hero-address p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.detail-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 620px;
}

.pill-action {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #cfd5d2;
    border-radius: 999px;
    background: white;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.pill-save {
    border-color: #050505;
    background: #050505;
    color: white;
}

.detail-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.detail-share strong {
    font-size: 14px;
    font-weight: 900;
}

.detail-share-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.share-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 11px;
    color: white;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.share-whatsapp {
    background: #1f9d55;
}

.share-viber {
    background: #665cac;
}

.share-telegram {
    background: #229ed9;
}

.share-facebook {
    background: #315a8a;
}

.share-email {
    background: var(--brand);
}

.share-sms {
    background: #111;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 70px;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(460px, 1.28fr);
    gap: 28px;
}

.ad-page .detail-layout aside {
    min-width: 0;
}

.ad-page .ad-detail-map-box,
.ad-page .ad-detail-map-box > div {
    min-height: 520px;
}

.panel,
.admin-card,
.filter-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.panel {
    padding: 26px;
}

.panel h2,
.panel h3 {
    margin-bottom: 18px;
}

.panel textarea {
    width: 100%;
    min-height: 160px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--soft);
    resize: vertical;
}

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

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

.detail-table th {
    width: 34%;
    color: var(--ink);
}

.detail-table td {
    color: var(--muted);
}

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

.amenity {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    font-weight: 700;
}

.contact-box {
    display: grid;
    gap: 12px;
}

.contact-box strong {
    font-size: 22px;
}

.interest-box {
    display: grid;
    gap: 14px;
}

.interest-box h2 {
    font-size: 22px;
}

.interest-form {
    display: grid;
    gap: 12px;
}

.interest-form textarea {
    min-height: 96px;
    margin-bottom: 0;
}

.map-box {
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #e8eeeb;
}

.map-box iframe,
.map-box > div {
    width: 100%;
    min-height: 340px;
    border: 0;
}

.property-search-button .search-icon {
    width: 22px;
    height: 22px;
    border-width: 4px;
}

.property-search-button .search-icon::after {
    width: 12px;
    height: 4px;
    right: -10px;
    bottom: -7px;
}

.ad-scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    min-height: 58px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ad-page.ad-scrolled .ad-scroll-header {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ad-page.ad-scrolled .property-topbar {
    transform: translateY(-100%);
}

.ad-scroll-header strong,
.ad-scroll-header span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-scroll-header strong {
    font-size: 18px;
    font-weight: 900;
}

.ad-scroll-header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.ad-scroll-back,
.ad-scroll-share {
    height: 58px;
    display: grid;
    place-items: center;
    border: 0;
    background: white;
    color: #050505;
    font-size: 38px;
    font-weight: 900;
    cursor: pointer;
}

.ad-scroll-share {
    font-size: 28px;
}

.ad-share-sheet[hidden] {
    display: none;
}

.ad-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    align-items: end;
}

.ad-share-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
}

.ad-share-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(78vh, 620px);
    overflow: auto;
    border-radius: 18px 18px 0 0;
    padding: 24px 24px 28px;
    background: white;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
}

.ad-share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ad-share-head h2 {
    font-size: 28px;
}

.ad-share-head button {
    width: 42px;
    height: 42px;
    border: 0;
    background: white;
    color: #111;
    font-size: 34px;
    cursor: pointer;
}

.ad-share-item {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: white;
    color: var(--ink);
    text-align: left;
    font-size: 22px;
    font-weight: 650;
    cursor: pointer;
}

.ad-share-item span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 900;
}

.ad-share-item.copied {
    color: var(--brand);
}

.share-open {
    overflow: hidden;
}

.ad-sticky-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 44;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
    gap: 14px;
    padding: 14px max(18px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-right));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.ad-sticky-contact,
.ad-sticky-tour {
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 19px;
    font-weight: 900;
}

.ad-sticky-contact {
    border: 1px solid #cfd5d2;
    background: white;
}

.ad-sticky-tour {
    background: #050505;
    color: white;
}

.ad-sticky-tour span {
    margin-top: -4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 650;
}

.ad-page {
    padding-bottom: 92px;
}

.search-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
}

.filter-panel {
    align-self: start;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.admin-compact-filter {
    padding: 12px;
    gap: 8px;
}

.admin-filter-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 8px;
}

.admin-compact-filter .field {
    gap: 5px;
}

.admin-compact-filter .field input,
.admin-compact-filter .field select {
    min-height: 38px;
    padding: 7px 9px;
}

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

.search-page .search-layout {
    gap: 14px;
}

.search-page .filter-panel {
    padding: 12px;
    gap: 8px;
}

.search-page .filter-panel .section-title {
    margin-bottom: 0;
}

.search-page .filter-panel h3 {
    font-size: 18px;
}

.search-page .filter-panel .filter-pair {
    gap: 7px 9px;
}

.search-page .filter-panel .field {
    gap: 3px;
}

.search-page .filter-panel .field label {
    font-size: 10px;
    line-height: 1.05;
}

.search-page .filter-panel .field input,
.search-page .filter-panel .field select {
    min-height: 36px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 14px;
}

.search-page .admin-main {
    gap: 10px;
}

.search-page .map-actions {
    gap: 6px;
    margin-top: 6px;
}

.search-page .map-actions .btn,
.search-page .map-school-panel .btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.map-school-panel {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.map-school-panel .filter-pair {
    margin: 0;
}

.map-school-panel .btn {
    justify-self: start;
}

.search-page .map-school-panel {
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
}

.map-status {
    font-size: 13px;
}

.map-info-window {
    min-width: 210px;
    display: grid;
    gap: 4px;
    color: var(--ink);
    font-family: "Gilroy", "Segoe UI", Arial, sans-serif;
}

.map-info-window strong {
    font-size: 18px;
    font-weight: 900;
}

.map-info-window span {
    font-weight: 850;
}

.map-info-window small {
    color: var(--muted);
}

.map-info-window a {
    width: fit-content;
    margin-top: 6px;
    color: var(--brand);
    font-weight: 900;
}

.admin-location-panel {
    display: grid;
    gap: 12px;
}

.admin-map-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(6, auto);
    gap: 10px;
}

.admin-map-search input {
    min-width: 0;
}

.admin-map-search .is-active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.admin-map-box,
.admin-map-box > div {
    min-height: 420px;
}

[data-parcel-polygon-field] {
    min-height: 82px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.admin-header .brand {
    font-size: 20px;
}

.admin-shell {
    padding: 28px 0 60px;
}

.admin-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
}

.admin-nav {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 8px;
    align-self: start;
}

.admin-nav a {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--muted);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
}

.admin-main {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-title h1 {
    font-size: 34px;
    color: var(--ink);
}

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

.admin-card {
    min-width: 0;
    padding: 18px;
}

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

.admin-card strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
}

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

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

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

.checkbox-grid label,
.toggle-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    font-weight: 700;
}

.toggle-line.is-disabled {
    opacity: 0.58;
}

.photo-manager {
    display: grid;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.photo-manager h2 {
    margin: 0;
    font-size: 22px;
}

.photo-manager-empty {
    margin: 0;
    padding: 12px 14px;
    border: 1px dashed #b9c5c1;
    border-radius: 8px;
    background: var(--soft);
    color: var(--muted);
    font-weight: 700;
}

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

.photo-manager-item {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.photo-manager-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #d8e0dc;
}

.photo-manager-item > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-manager-item .toggle-line {
    min-height: 36px;
    padding: 7px 8px;
    background: white;
    font-size: 13px;
}

.inline-form {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
}

.inline-status-form select {
    min-height: 36px;
    min-width: 132px;
    padding: 7px 9px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

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

.data-table th {
    background: #eef4f1;
    color: var(--brand-dark);
    font-size: 13px;
}

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

.match-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.match-list-item {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.match-list-item[open] {
    box-shadow: 0 14px 32px rgba(29, 47, 43, 0.08);
}

.match-list-summary {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) minmax(170px, 1fr) minmax(160px, 1fr) minmax(150px, 0.9fr) 72px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.match-list-summary::-webkit-details-marker {
    display: none;
}

.match-list-summary:hover {
    background: #f8fbfa;
}

.match-list-main,
.match-list-clients,
.match-list-reasons,
.match-list-contact {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.match-list-main strong,
.match-list-clients span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-list-main strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.match-list-main small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.match-list-clients span,
.match-list-contact em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.match-list-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.match-list-reasons em {
    padding: 5px 7px;
    border-radius: 999px;
    background: #edf3f1;
    color: var(--brand-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.match-list-contact .is-contacted {
    color: #12623b;
}

.match-list-score {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    font-size: 18px;
    font-weight: 900;
}

.match-list-item .match-card {
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 0;
}

.match-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.score {
    min-width: 76px;
    min-height: 76px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.pill-row,
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 7px 9px;
    border-radius: 8px;
    background: #edf3f1;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.success-pill {
    background: #dff3e9;
    color: #12623b;
}

.muted-pill {
    background: #f0f0ec;
    color: var(--muted);
}

.match-contact-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

.match-contact-panel h3 {
    margin-bottom: 0;
}

.social-row a {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    font-weight: 850;
    font-size: 13px;
}

.notice {
    padding: 12px 14px;
    border: 1px solid #d6c28e;
    border-radius: 8px;
    background: #fff7df;
    color: #66511b;
}

.error {
    padding: 12px 14px;
    border: 1px solid #e1a3a3;
    border-radius: 8px;
    background: #fff1f1;
    color: #7d2222;
}

.hidden {
    display: none !important;
}

.footer {
    border-top: 1px solid var(--line);
    background: white;
    color: var(--muted);
}

.footer .section {
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 980px) {
    h1 {
        font-size: 42px;
    }

    .home-page .hero {
        height: 58vh;
        height: 58svh;
        min-height: 420px;
        max-height: 560px;
    }

    .hero-logo {
        min-height: 66px;
        padding-left: 10px;
    }

    .hero-logo img {
        height: 29px;
    }

    .hero-login {
        font-size: 11px;
    }

    .home-page .hero-content {
        height: 100%;
        min-height: 100%;
        padding: 96px 0 38px;
    }

    .portal-search-row {
        min-height: 76px;
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .search-icon {
        width: 28px;
        height: 28px;
        border-width: 5px;
    }

    .hero-search,
    .search-layout,
    .detail-layout,
    .concierge-content,
    .about-intro,
    .about-split,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .listing-grid,
    .admin-grid,
    .quick-facts,
    .about-stats,
    .photo-manager-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-search {
        width: 100%;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-list-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav {
        flex-wrap: wrap;
    }

    .site-menu-panel {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        display: grid;
        grid-template-rows: auto auto 1fr auto;
        overflow-x: hidden;
        box-shadow: none;
    }

    .site-menu-head {
        min-height: 76px;
        gap: 18px;
        padding: 14px 20px;
    }

    .site-menu-head button {
        font-size: 38px;
    }

    .site-menu-logo img {
        height: 34px;
    }

    .site-menu-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 20px 16px;
    }

    .site-menu-links {
        align-content: start;
        gap: 12px;
        padding: 16px 20px;
    }

    .site-menu-nav a,
    .site-menu-links a {
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .site-menu-nav a {
        min-height: 42px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--soft);
        font-size: 19px;
        font-weight: 900;
    }

    .site-menu-links a {
        font-size: 20px;
        font-weight: 650;
    }

    .site-menu-login {
        min-height: 50px;
        margin: 16px 20px 20px;
        font-size: 18px;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .home-page .hero {
        height: 60vh;
        height: 60svh;
        min-height: 400px;
        max-height: 500px;
    }

    .hero-topbar {
        top: 18px;
        width: min(100% - 28px, 1180px);
        gap: 12px;
    }

    .hero-menu {
        width: 34px;
        gap: 6px;
    }

    .hero-menu span {
        height: 4px;
    }

    .hero-logo {
        min-height: 38px;
        padding: 0 0 0 8px;
    }

    .hero-logo img {
        height: 15px;
    }

    .hero-login {
        max-width: 118px;
        font-size: 8px;
        line-height: 1.05;
        text-align: right;
    }

    .home-page .hero-content {
        height: 100%;
        min-height: 100%;
        padding: 82px 0 36px;
    }

    .home-page .hero-content h1 span {
        padding: 0;
    }

    .portal-search {
        margin-top: 28px;
    }

    .portal-tabs label,
    .portal-tabs a {
        min-height: 48px;
    }

    .portal-search-row {
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) 62px;
    }

    .portal-search-row input {
        padding: 0 16px;
    }

    .search-icon {
        width: 22px;
        height: 22px;
        border-width: 4px;
    }

    .search-icon::after {
        width: 12px;
        height: 4px;
        right: -10px;
        bottom: -6px;
    }

    h1 {
        font-size: 34px;
    }

    .about-hero {
        min-height: 132px;
    }

    .about-hero-content {
        padding: 22px 0 18px;
    }

    .about-hero-content h1 {
        font-size: 34px;
    }

    .about-intro,
    .about-split {
        gap: 22px;
    }

    .about-intro h2,
    .about-panel h2 {
        font-size: 30px;
    }

    .founder-profile {
        align-items: flex-start;
        gap: 14px;
    }

    .founder-profile img {
        width: 86px;
        height: 86px;
    }

    .about-copy,
    .about-panel {
        font-size: 16px;
    }

    .about-panel {
        padding: 24px;
    }

    .about-image {
        min-height: 280px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .search-hero {
        min-height: 132px;
    }

    .search-hero-content {
        padding: 22px 0 18px;
    }

    .search-hero-content h1 {
        font-size: 34px;
    }

    .search-hero-content p {
        font-size: 15px;
        line-height: 1.35;
    }

    .search-section {
        padding-top: 10px;
    }

    .search-page .filter-panel {
        padding: 10px;
        gap: 7px;
    }

    .search-page .filter-panel h3 {
        font-size: 16px;
    }

    .search-page .filter-panel .field input,
    .search-page .filter-panel .field select {
        min-height: 34px;
        padding: 5px 8px;
    }

    .concierge-content {
        gap: 20px;
    }

    .before-after {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .before-after-handle {
        width: 46px;
        height: 46px;
    }

    .before-after-label {
        top: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .listing-grid,
    .search-layout .listing-grid,
    .neighborhood-grid,
    .admin-grid,
    .quick-facts,
    .form-grid,
    .checkbox-grid,
    .about-stats,
    .photo-manager-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-summary {
        margin-top: 0;
    }

    .detail-share {
        align-items: flex-start;
        gap: 8px;
        padding: 9px 10px;
    }

    .detail-share-links {
        justify-content: flex-start;
        gap: 6px;
    }

    .share-button {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 12px;
    }

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

    .client-picker {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

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

    .match-list-summary {
        grid-template-columns: minmax(0, 1fr) 64px;
        gap: 10px;
        padding: 12px;
    }

    .match-list-main,
    .match-list-clients,
    .match-list-reasons,
    .match-list-contact {
        grid-column: 1 / -1;
    }

    .match-list-score {
        grid-column: 2;
        grid-row: 1;
        min-height: 40px;
        font-size: 16px;
    }

    .match-list-main {
        grid-column: 1;
        grid-row: 1;
    }

    .match-list-main strong {
        white-space: normal;
    }

    .footer .section {
        flex-direction: column;
    }

    .property-search-bar {
        min-height: 52px;
        grid-template-columns: 56px minmax(0, 1fr) 56px;
    }

    .property-search-bar input {
        padding: 0 14px;
        font-size: 18px;
    }

    .detail-media {
        min-height: 0;
    }

    .detail-media img {
        height: min(58vh, 520px);
        min-height: 340px;
    }

    .detail-media-badge {
        top: 18px;
        left: 18px;
        max-width: calc(100% - 36px);
        padding: 9px 16px;
        font-size: 13px;
    }

    .gallery-controls {
        padding: 0 18px;
    }

    .gallery-controls button {
        width: 46px;
        height: 46px;
        font-size: 26px;
    }

    .gallery-counter {
        left: 18px;
        bottom: 16px;
        transform: none;
    }

    .gallery-type-badge {
        right: 18px;
        bottom: 16px;
        max-width: calc(100% - 112px);
    }

    .detail-summary {
        width: 100%;
        gap: 22px;
        padding: 22px 28px 34px;
    }

    .ad-page .detail-hero-facts {
        grid-template-columns: repeat(var(--fact-count, 4), minmax(0, 1fr));
        gap: 8px;
    }

    .ad-page .detail-hero-facts .fact {
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .ad-page .detail-hero-facts .fact strong {
        overflow-wrap: anywhere;
        font-size: clamp(15px, 4vw, 20px);
    }

    .ad-page .detail-hero-facts .fact span {
        font-size: clamp(13px, 4vw, 18px);
    }

    .detail-hero-address h1 {
        font-size: 26px;
    }

    .detail-hero-address p {
        font-size: 18px;
    }

    .detail-action-row {
        max-width: none;
        gap: 12px;
    }

    .pill-action {
        min-height: 54px;
        font-size: 20px;
    }

    .ad-page .detail-layout {
        margin-bottom: 108px;
    }

    .ad-page .ad-detail-map-box,
    .ad-page .ad-detail-map-box > div {
        min-height: 340px;
    }

    .ad-share-panel {
        padding: 22px 20px 24px;
    }

    .ad-share-item {
        grid-template-columns: 72px minmax(0, 1fr);
        font-size: 21px;
    }
}
