:root {
    --bg: #07111f;
    --bg-soft: #0f1b2d;
    --card: #122033;
    --card-hover: #162a42;
    --text: #e8eef7;
    --muted: #9fb0c7;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --accent: #93c5fd;
    --gold: #d4a853;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.18);
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(7, 17, 31, 0.9);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: .85rem 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.site-brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.site-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--primary-glow);
}

.site-brand__mark svg {
    width: 22px;
    height: 22px;
}

.site-brand__text {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.site-brand__eyebrow {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.site-brand__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.site-nav {
    display: flex;
    gap: .35rem;
}

.site-nav a {
    color: var(--muted);
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    transition: color .2s, background .2s;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.site-nav__cta {
    display: none;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: .5rem .65rem;
    cursor: pointer;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

/* ── Footer ─────────────────────────────────────────── */

.site-main { min-height: 70vh; }

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    background: linear-gradient(180deg, transparent, rgba(15, 27, 45, 0.6));
    color: var(--muted);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.site-footer__brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: .5rem;
}

.site-footer__heading {
    color: var(--text);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .85rem;
    font-weight: 700;
}

.site-footer__links {
    display: grid;
    gap: .45rem;
}

.site-footer__links a:hover {
    color: var(--accent);
}

.site-footer__contact a {
    color: var(--text);
}

.site-footer__contact a:hover {
    color: var(--accent);
}

.site-footer__bottom {
    border-top: 1px solid var(--line);
    padding: 1.25rem 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .88rem;
}

.site-footer__syndication {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--accent);
}

/* ── Typography ─────────────────────────────────────── */

.eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.section h2,
.detail-card h1,
.inquiry-card h2,
.feature-card h3 {
    margin: 0 0 .75rem;
    line-height: 1.15;
    font-family: var(--font-display);
    font-weight: 600;
}

.muted { color: var(--muted); }

/* ── Hero (Home) ────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.72) 45%, rgba(7, 17, 31, 0.35) 100%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2), transparent 40%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 6rem 0 4rem;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3rem;
    align-items: center;
}

.hero__copy {
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    margin-bottom: 1rem;
}

.hero__lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.hero__actions {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero__stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__stat {
    padding-right: 1.5rem;
    border-right: 1px solid var(--line);
}

.hero__stat:last-child {
    border-right: none;
    padding-right: 0;
}

.hero__stat strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--text);
}

.hero__stat span {
    font-size: .82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero__visual {
    position: relative;
}

.hero__card {
    background: rgba(18, 32, 51, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero__card-image {
    border-radius: var(--radius-sm);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    margin-bottom: 1rem;
}

.hero__card-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .5rem;
}

.hero__card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* ── Page banner ────────────────────────────────────── */

.page-banner {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3rem;
}

.page-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.82), rgba(7, 17, 31, 0.95));
}

.page-banner__content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin-bottom: .65rem;
}

.page-banner p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0;
}

/* ── Sections ───────────────────────────────────────── */

.section { padding: 4rem 0; }
.section--muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section--image {
    position: relative;
    overflow: hidden;
}

.section--image .section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .18;
}

.section--image .container {
    position: relative;
    z-index: 1;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section__header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section__header a {
    color: var(--accent);
    font-weight: 600;
    font-size: .95rem;
}

.section__header a:hover {
    text-decoration: underline;
}

.section__intro {
    max-width: 640px;
    color: var(--muted);
    margin: -.5rem 0 2rem;
}

/* ── Feature grid ───────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .25s, border-color .25s, background .25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--card-hover);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.15);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* ── CTA strip ──────────────────────────────────────── */

.cta-strip {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-strip h2 {
    margin: 0 0 .35rem;
    font-size: 1.6rem;
}

.cta-strip p {
    margin: 0;
    color: var(--muted);
}

/* ── Property grid & cards ──────────────────────────── */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.25);
}

.property-card--sold {
    opacity: .92;
}

.property-card--sold:hover {
    transform: translateY(-3px);
}

.property-card__image-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.property-card:hover .property-card__image {
    transform: scale(1.05);
}

.property-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 31, 0.55));
    pointer-events: none;
}

.property-card__badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    background: rgba(7, 17, 31, 0.85);
    border: 1px solid var(--line);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    z-index: 1;
}

.property-card__badge--featured {
    left: auto;
    right: .85rem;
    background: rgba(212, 168, 83, 0.22);
    border-color: rgba(212, 168, 83, 0.45);
    color: #f5d78e;
}

.property-card__badge--sold {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.property-card__body { padding: 1.15rem 1.2rem 1.25rem; }

.property-card__type {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.property-card h3 {
    margin: 0 0 .45rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.25;
}

.property-card h3 a:hover {
    color: var(--accent);
}

.property-card__location {
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.property-card__location svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: .7;
}

.property-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding-top: .85rem;
    border-top: 1px solid var(--line);
}

.property-card__footer small,
.inquiry-price small,
.detail-stats small,
.stat-tile small {
    display: block;
    color: var(--muted);
    margin-bottom: .2rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.property-card__sold-label {
    color: var(--success);
    font-weight: 600;
    font-size: .9rem;
}

.property-card__cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn--primary,
.property-card__cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn--primary:hover,
.property-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn--ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn--block { width: 100%; }

.btn--sm {
    padding: .55rem .95rem;
    font-size: .85rem;
}

/* ── Filters ────────────────────────────────────────── */

.filters-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: end;
}

.filters-panel label {
    display: grid;
    gap: .4rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    min-width: 180px;
    flex: 1;
}

.filters-panel select,
.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .8rem .95rem;
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}

.filters-panel select:focus,
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filters__count {
    margin-left: auto;
    padding: .65rem 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    color: var(--accent);
    font-weight: 600;
    font-size: .88rem;
    white-space: nowrap;
}

/* ── Property detail ────────────────────────────────── */

.property-detail { padding: 2rem 0 4rem; }

.property-detail__grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 1.75rem;
    align-items: start;
}

.gallery {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
}

.gallery__main {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    padding: .75rem;
    background: var(--bg-soft);
}

.gallery__thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color .2s, opacity .2s;
    opacity: .75;
}

.gallery__thumb.is-active,
.gallery__thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

.gallery__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.detail-card,
.inquiry-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.inquiry-card {
    position: sticky;
    top: 5.5rem;
}

.detail-card__location {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-tile strong {
    font-size: 1.05rem;
}

.detail-card__description h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.detail-amenities h3 {
    font-size: 1rem;
    margin-bottom: .75rem;
}

.detail-amenities ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-amenities li {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .88rem;
}

.badge {
    display: inline-block;
    margin-bottom: .75rem;
    margin-right: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: .82rem;
    font-weight: 600;
}

.badge--sold {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.inquiry-price {
    margin: 1.25rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
}

.inquiry-price strong {
    font-size: 1.4rem;
    font-family: var(--font-display);
}

/* ── Contact advisor card ───────────────────────────── */

.advisor-card {
    text-align: center;
}

.advisor-card__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.advisor-card__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: .35rem;
}

.advisor-card__role {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

.advisor-card__details {
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.advisor-card__item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
}

.advisor-card__item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: .15rem;
}

/* ── Forms ──────────────────────────────────────────── */

.form-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.form-row .form-field {
    flex: 1;
    min-width: 200px;
}

.form-field { margin-bottom: 1rem; }

.form-field label {
    display: block;
    margin-bottom: .4rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
}

.validation-message {
    color: #fca5a5;
    font-size: .82rem;
    margin-top: .25rem;
}

/* ── Alerts & states ────────────────────────────────── */

.alert {
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .92rem;
}

.alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skeleton-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.skeleton-card__image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, var(--bg-soft) 25%, var(--card-hover) 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-card__body {
    padding: 1.2rem;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg-soft) 25%, var(--card-hover) 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    margin-bottom: .65rem;
}

.skeleton-line--short { width: 60%; }
.skeleton-line--medium { width: 80%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.empty-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    color: var(--muted);
    opacity: .6;
}

/* ── Error page ─────────────────────────────────────── */

.error-page {
    padding: 5rem 0;
    text-align: center;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.error-page code {
    background: var(--bg-soft);
    padding: .2rem .5rem;
    border-radius: 6px;
    font-size: .88rem;
}

/* ── Blazor error UI ────────────────────────────────── */

#blazor-error-ui { display: none; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__visual {
        max-width: 480px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .property-detail__grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-card {
        position: static;
    }

    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-header__actions .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(7, 17, 31, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 1rem;
    }

    .site-header__actions .site-nav.is-open {
        display: flex;
    }

    .site-header__inner {
        position: relative;
        flex-wrap: wrap;
    }

    .site-header__actions {
        margin-left: auto;
    }

    .site-nav__cta {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
    }

    .hero__content {
        padding: 4.5rem 0 3rem;
    }

    .hero__stats {
        gap: 1rem;
    }

    .hero__stat {
        padding-right: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filters__count {
        margin-left: 0;
        text-align: center;
    }

    .cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}
