/* ============================================
   RealtyIndex — project stylesheet

   Loads AFTER indexbychi.css. Everything here is
   specific to RealtyIndex: property cards, the search
   and filter bars, the hero, page-level layout.

   Shared tokens, base elements, the logo lockup,
   buttons, badges, tables and number treatments live
   in indexbychi.css. Do not redefine them here — and
   never edit indexbychi.css in this repo.

   Every colour below is a token from indexbychi.css.
   ============================================ */

/* --------------------------------------------
   1. Navigation
   -------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.nav-scrolled,
.nav-light {
    background: var(--color-light-a95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-hairline);
}

.nav > .container {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: space-between;
}

/* The shared lockup sits on the dark hero by default here, and
   flips to ink once the nav gains a background. */
.nav .logo-mark {
    color: var(--color-text-inverse);
}

.nav .logo-sub {
    color: var(--color-light-a45);
}

.nav-scrolled .logo-mark,
.nav-light .logo-mark {
    color: var(--color-text);
}

.nav-scrolled .logo-sub,
.nav-light .logo-sub {
    color: var(--color-dark-a35);
}

.nav .logo:hover .logo-sub,
.nav-scrolled .logo:hover .logo-sub,
.nav-light .logo:hover .logo-sub {
    color: var(--color-accent);
}

.nav-links {
    display: none;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-text-inverse);
    transition: opacity var(--transition-fast);
}

.nav-scrolled .nav-links a,
.nav-light .nav-links a {
    color: var(--color-text);
}

.nav-links a:hover {
    opacity: 0.8;
}

/* The wallet button is a shared .btn — only its responsive
   visibility and its inversion on scroll belong to this site. */
.nav > .container > .nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav > .container > .nav-cta {
        display: inline-flex;
    }
}

.nav-scrolled .nav-cta,
.nav-light .nav-cta {
    background-color: var(--color-text-strong);
    color: var(--color-text-inverse);
}

.nav-mobile-toggle {
    display: block;
    padding: var(--space-2);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-inverse);
}

.nav-scrolled .nav-mobile-toggle,
.nav-light .nav-mobile-toggle {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .nav-mobile-toggle {
        display: none;
    }
}

.nav-mobile-menu {
    display: none;
}

.nav-mobile-menu.open {
    display: block;
    background-color: var(--color-bg);
    border-top: var(--border-thin) solid var(--color-border);
    padding: var(--space-6);
}

.nav-mobile-menu a {
    display: block;
    font-size: var(--text-lg);
    color: var(--color-text);
    padding: var(--space-2) 0;
}

.nav-mobile-menu button,
.nav-mobile-menu .nav-mobile-cta {
    display: block;
    width: 100%;
    background-color: var(--color-text-strong);
    color: var(--color-text-inverse);
    padding: var(--space-3);
    border: none;
    border-radius: var(--radius-sharp);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    text-align: center;
    margin-top: var(--space-2);
}

/* --------------------------------------------
   2. Hero
   -------------------------------------------- */
.hero {
    background-color: var(--color-bg-inverse);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
    text-align: center;
    color: var(--color-text-inverse);
}

.hero h1 {
    font-size: var(--display-xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-tight);
}

.hero h1 span {
    color: var(--color-light-a80);
    font-weight: var(--weight-light);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: var(--display-5xl);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: var(--display-6xl);
    }
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.hero-badge {
    background: var(--color-light-a10);
    border: var(--border-thin) solid var(--color-light-a20);
    border-radius: var(--radius-sharp);
    padding: var(--space-2) var(--space-4);
    color: var(--color-text-inverse);
    font-weight: var(--weight-bold);
    font-size: var(--text-2xl);
}

.hero p {
    font-size: var(--text-2xl);
    color: var(--color-light-a90);
    max-width: 672px;
    margin: 0 auto var(--space-10);
    line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
    .hero p {
        font-size: var(--text-3xl);
    }
}

/* --------------------------------------------
   3. Search bar
   -------------------------------------------- */
.search-form {
    max-width: 896px;
    margin: 0 auto;
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-2-5);
    padding: var(--space-3-5) var(--space-5);
    border-bottom: var(--border-thin) solid var(--color-border);
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .search-input-group {
        border-bottom: none;
        border-right: var(--border-thin) solid var(--color-border);
    }
}

.search-input-group svg {
    flex-shrink: 0;
    color: var(--color-text-subtle);
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    outline: none;
    font-family: inherit;
}

.search-input-group input::placeholder {
    color: var(--color-text-faint);
}

.search-filters-toggle {
    display: none;
    align-items: center;
    padding: var(--space-3-5) var(--space-5);
    cursor: pointer;
    background: none;
    border: none;
    border-right: var(--border-thin) solid var(--color-border);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    gap: var(--space-2);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .search-filters-toggle {
        display: flex;
    }
}

.search-filters-toggle:hover {
    color: var(--color-text);
}

/* Submit button is a shared .btn — only its width behaviour
   inside the search form belongs here. */
button.search-btn {
    width: 100%;
    margin-top: var(--space-1);
}

@media (min-width: 768px) {
    button.search-btn {
        width: auto;
        margin-top: 0;
        margin-left: var(--space-1);
    }
}

.search-filters {
    display: none;
    width: 100%;
}

.search-filters.open {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2);
    border-top: var(--border-thin) solid var(--color-border);
    margin-top: var(--space-2);
}

@media (min-width: 768px) {
    .search-filters.open {
        grid-template-columns: repeat(3, 1fr);
    }
}

.search-filters .search-input-group {
    border: var(--border-thin) solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2-5) var(--space-4);
}

.search-filters select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-text);
    outline: none;
}

/* --------------------------------------------
   4. Section headers
   -------------------------------------------- */
.properties-section {
    padding: var(--space-24) 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: var(--space-12);
}

/* Spacing only — the chip itself is a shared .badge. */
.section-badge {
    margin-bottom: var(--space-4);
}

.section-header h2 {
    font-size: var(--display-xl);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    letter-spacing: var(--tracking-tight);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: var(--display-3xl);
    }
}

.section-header p {
    font-size: var(--text-2xl);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps-wide);
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: var(--space-8);
    transition: color var(--transition-fast);
}

.view-all-link:hover {
    color: var(--color-positive);
}

/* --------------------------------------------
   5. Property grid
   -------------------------------------------- */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .property-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1536px) {
    .property-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* --------------------------------------------
   6. Property card
   -------------------------------------------- */
.property-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-card article {
    background-color: var(--color-surface);
    border-radius: var(--radius-sharp);
    overflow: hidden;
    border: var(--border-thin) solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.property-card:hover article {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.property-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-surface-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-card-image .img-placeholder {
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.property-card:hover .property-card-image img {
    transform: scale(1.1);
}

.property-card-platform {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-light-a95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: var(--space-1-5) var(--space-3);
    border-radius: var(--radius-sharp);
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

.property-card-yield {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: linear-gradient(135deg, var(--color-positive), var(--color-positive-strong));
    color: var(--color-text-inverse);
    padding: var(--space-1-5) var(--space-3);
    border-radius: var(--radius-sharp);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-2xs);
    font-weight: var(--weight-bold);
}

.property-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-dark-a60), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: var(--space-6);
}

.property-card:hover .property-card-overlay {
    opacity: 1;
}

.property-card-overlay span {
    color: var(--color-text-inverse);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.property-card-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-card-content h3 {
    font-size: var(--text-3xl);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.property-card-location svg {
    color: var(--color-positive);
    flex-shrink: 0;
}

.property-card-divider {
    border-top: var(--border-thin) solid var(--color-border-subtle);
    padding-top: var(--space-4);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card-price-label,
.property-card-yield-label {
    font-size: var(--text-2xs);
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
}

.property-card-price-value {
    font-size: var(--display-xs);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
}

.property-card-yield-value {
    font-size: var(--display-xs);
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
    color: var(--color-positive);
    text-align: right;
}

/* --------------------------------------------
   7. How it works
   -------------------------------------------- */
.how-it-works {
    padding: var(--space-24) 0;
    background-color: var(--color-bg);
}

.how-it-works .section-header {
    text-align: center;
    margin-bottom: var(--space-20);
}

.how-it-works .section-header p {
    font-size: var(--text-2xl);
    color: var(--color-text-muted);
    max-width: 672px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.how-it-works-card {
    position: relative;
    background-color: var(--color-surface);
    border-radius: var(--radius-sharp);
    padding: var(--space-8);
    border: var(--border-thin) solid var(--color-border);
    height: 100%;
}

.how-it-works-step {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-inverse);
    border-radius: var(--radius-sharp);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-weight: var(--weight-bold);
    font-size: var(--text-base);
}

.how-it-works-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sharp);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    background: var(--color-text-a10);
}

.how-it-works-icon--emerald {
    background: var(--color-positive-soft);
}

.how-it-works-card h3 {
    font-size: var(--display-xs);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.how-it-works-card p {
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* Layout only — the CTA itself is a shared .btn. */
.how-it-works-cta {
    text-align: center;
    margin-top: var(--space-16);
}

/* This CTA used to carry the nav button class as well as its own, so its
   hover faded AND darkened at the same time. Preserved verbatim rather
   than tidied away, because the extraction changes nothing visual. */
.how-it-works-cta .btn:hover {
    opacity: 0.9;
}

/* --------------------------------------------
   8. Footer
   -------------------------------------------- */
.footer {
    background-color: var(--color-bg-inverse);
    color: var(--color-text-inverse);
    padding: var(--space-16) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-brand .logo {
    margin-bottom: var(--space-6);
}

.footer-brand .logo-mark {
    color: var(--color-text-inverse);
}

.footer-brand .logo-sub {
    color: var(--color-light-a40);
}

.footer-brand .logo:hover .logo-sub {
    color: var(--color-accent);
}

.footer-brand p {
    color: var(--color-text-faint);
    line-height: var(--leading-relaxed);
    max-width: 384px;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-light-a10);
    border-radius: var(--radius-sharp);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    transition: background var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-light-a20);
}

.footer-col h4 {
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    font-family: var(--font-sans);
}

.footer-col a {
    display: block;
    color: var(--color-text-faint);
    font-size: var(--text-base);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-bottom: var(--space-3);
}

.footer-col a:hover {
    color: var(--color-text-inverse);
}

.footer-disclaimer {
    border-top: var(--border-thin) solid var(--color-border-inverse);
    padding-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-disclaimer p {
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    line-height: var(--leading-relaxed);
}

.footer-disclaimer strong {
    color: var(--color-neutral-300);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text-faint);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom a {
    color: var(--color-text-inverse);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-neutral-300);
}

/* --------------------------------------------
   9. Property detail page
   -------------------------------------------- */
.property-detail {
    padding-top: 100px;
    padding-bottom: var(--space-16);
}

.property-detail-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    text-decoration: none;
    margin-bottom: var(--space-8);
    transition: color var(--transition-fast);
}

.property-detail-back:hover {
    color: var(--color-text);
}

.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .property-detail-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.property-detail-images {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.property-detail-main-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-surface-inverse);
    position: relative;
}

.property-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: object-fit var(--transition-medium);
}

.property-detail-main-image img.contain {
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-dark-a60);
    color: var(--color-text-inverse);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    z-index: 2;
}

.property-detail-main-image:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: var(--color-dark-a85);
}

.gallery-arrow-left { left: var(--space-3); }
.gallery-arrow-right { right: var(--space-3); }

.property-photo-count {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    background: var(--color-dark-a70);
    color: var(--color-text-inverse);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    padding: var(--space-1) var(--space-2-5);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.property-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-surface-inverse);
}

.property-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.property-detail-thumbs {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-1);
    scrollbar-width: thin;
    scrollbar-color: var(--color-text-muted) transparent;
}

.property-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border-thick) solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    opacity: 0.5;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.property-thumb.active,
.property-thumb:hover {
    opacity: 1;
    border-color: var(--color-positive);
}

.property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spacing only — the chip itself is a shared .badge. */
.property-detail-platform {
    margin-bottom: var(--space-4);
}

.property-detail-info h1 {
    font-size: var(--display-lg);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .property-detail-info h1 {
        font-size: var(--display-2xl);
    }
}

.property-detail-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.property-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.property-detail-stat {
    background-color: var(--color-bg-subtle);
    padding: var(--space-6);
    border-radius: var(--radius-sharp);
}

.property-detail-stat-label {
    font-size: var(--text-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--color-text-subtle);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.property-detail-stat-value {
    font-size: var(--display-md);
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
    color: var(--color-text);
}

.property-detail-stat-value--emerald {
    color: var(--color-positive);
}

.property-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.property-detail-meta-item {
    padding: var(--space-4);
    border: var(--border-thin) solid var(--color-border);
    border-radius: var(--radius-sharp);
}

.property-detail-meta-label {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin-bottom: var(--space-1);
}

.property-detail-meta-value {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
}

.property-detail-updated {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin-top: var(--space-4);
}

/* --------------------------------------------
   10. Loading state
   -------------------------------------------- */
.property-card-skeleton {
    background-color: var(--color-surface);
    border-radius: var(--radius-sharp);
    overflow: hidden;
    border: var(--border-thin) solid var(--color-border);
}

.skeleton-image {
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-muted);
    border-radius: var(--radius-sharp);
    animation: pulse 2s ease-in-out infinite;
}

.skeleton-text {
    background-color: var(--color-bg-muted);
    border-radius: var(--radius-sharp);
    animation: pulse 2s ease-in-out infinite;
}

.skeleton-text--title {
    height: 20px;
    width: 80%;
    margin-bottom: var(--space-3);
}

.skeleton-text--subtitle {
    height: 14px;
    width: 60%;
    margin-bottom: var(--space-4);
}

.skeleton-text--price {
    height: 24px;
    width: 40%;
}

.property-card-skeleton .property-card-content {
    padding: var(--space-6);
}

/* --------------------------------------------
   11. About page
   -------------------------------------------- */
.about-hero {
    background-color: var(--color-bg-inverse);
    padding-top: var(--space-35);
    padding-bottom: var(--space-16);
    text-align: center;
    color: var(--color-text-inverse);
}

.about-hero h1 {
    font-size: var(--display-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .about-hero h1 {
        font-size: var(--display-4xl);
    }
}

.about-hero p {
    font-size: var(--text-2xl);
    color: var(--color-light-a70);
    max-width: 560px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
    .about-hero p {
        font-size: var(--text-3xl);
    }
}

.about-section {
    padding: var(--space-20) 0;
}

.about-section--gray {
    background-color: var(--color-bg-subtle);
}

.about-content {
    max-width: var(--prose-max);
}

.about-content h2 {
    font-size: var(--display-lg);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-6);
    margin-top: var(--space-4);
}

@media (min-width: 768px) {
    .about-content h2 {
        font-size: var(--display-2xl);
    }
}

.about-content p {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-5);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (min-width: 640px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-card {
    background-color: var(--color-surface);
    border: var(--border-thin) solid var(--color-border);
    border-radius: var(--radius-sharp);
    padding: var(--space-8);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sharp);
    background: var(--color-positive-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--color-positive);
}

.about-card h3 {
    font-size: var(--display-2xs);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.about-card p {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: var(--leading-comfortable);
}

.about-platforms {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-4);
}

@media (min-width: 768px) {
    .about-platforms {
        grid-template-columns: repeat(3, 1fr);
    }
}

.platform-item {
    padding: var(--space-8);
    border: var(--border-thin) solid var(--color-border);
    border-radius: var(--radius-sharp);
}

.platform-item h3 {
    font-size: var(--display-xs);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.platform-item p {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: var(--leading-comfortable);
}

.about-cta {
    background-color: var(--color-bg-inverse);
    padding: var(--space-20) 0;
    text-align: center;
    color: var(--color-text-inverse);
}

.about-cta h2 {
    font-size: var(--display-xl);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .about-cta h2 {
        font-size: var(--display-3xl);
    }
}

.about-cta p {
    font-size: var(--text-2xl);
    color: var(--color-light-a70);
    margin-bottom: var(--space-8);
}

/* Shared .btn, with this page's slightly wider icon gap. */
.about-cta-btn {
    gap: var(--space-2-5);
}

/* --------------------------------------------
   12. Properties listing page
   -------------------------------------------- */
.properties-page-hero {
    background-color: var(--color-bg-inverse);
    padding: var(--space-30) 0 var(--space-12);
    text-align: center;
    color: var(--color-text-inverse);
}

.properties-page-hero h1 {
    font-size: var(--display-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
    .properties-page-hero h1 {
        font-size: var(--display-3xl);
    }
}

.properties-page-hero p {
    font-size: var(--text-lg);
    color: var(--color-light-a80);
    max-width: 600px;
    margin: 0 auto var(--space-4);
    line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
    .properties-page-hero p {
        font-size: var(--text-2xl);
    }
}

.properties-page-hero-count {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-light-a60);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

/* Filter bar — sticky below the nav */
.filter-bar {
    position: sticky;
    top: 80px;
    z-index: 40;
    background-color: var(--color-bg);
    border-bottom: var(--border-thin) solid var(--color-border);
    box-shadow: var(--shadow-bar);
    padding: var(--space-4) 0;
}

.filter-bar-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.filter-bar-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .filter-bar-fields {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.filter-bar-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2-5) var(--space-4);
    border: var(--border-thin) solid var(--color-border);
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .filter-bar-group {
        border: none;
        border-right: var(--border-thin) solid var(--color-border);
        border-radius: 0;
        padding: var(--space-2-5) var(--space-4);
    }

    .filter-bar-group:first-child {
        padding-left: 0;
    }

    .filter-bar-group:last-of-type {
        border-right: none;
    }
}

.filter-bar-group svg {
    flex-shrink: 0;
    color: var(--color-text-faint);
}

.filter-bar-group input,
.filter-bar-group select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    outline: none;
    font-family: inherit;
}

.filter-bar-group input::placeholder {
    color: var(--color-text-faint);
}

/* Submit button is a shared .btn — only its behaviour inside
   the sticky bar belongs here. */
.filter-bar-btn {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .filter-bar-btn {
        margin-left: var(--space-2);
        flex-shrink: 0;
    }
}

.filter-bar-active {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-2);
    border-top: var(--border-thin) solid var(--color-border-subtle);
}

.filter-bar-active-count {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    background-color: var(--color-bg-subtle);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sharp);
}

.filter-bar-clear {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-positive);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.filter-bar-clear:hover {
    color: var(--color-positive-strong);
    text-decoration: underline;
}

/* Results info bar */
.results-info {
    background-color: var(--color-bg-subtle);
    border-bottom: var(--border-thin) solid var(--color-border);
    padding: var(--space-3-5) 0;
}

.results-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info-count {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-text-body);
}

.results-info-sort {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
}

.results-info-sort select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-surface);
    border: var(--border-thin) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: var(--space-1) 28px var(--space-1) var(--space-2-5); /* 28px = chevron gutter */
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    cursor: pointer;
    /* Chevron is a data URI, so the stroke cannot reference a token; #6b7280 is --color-neutral-600. */
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-2-5) center;
}

.results-info-sort select:hover {
    border-color: var(--color-neutral-500);
}

.results-info-sort select:focus {
    outline: none;
    border-color: var(--color-positive);
}

.properties-listing {
    padding: var(--space-12) 0 var(--space-24);
    background-color: var(--color-bg);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-20) var(--space-6);
    max-width: 480px;
    margin: 0 auto;
}

.empty-state svg {
    color: var(--color-text-faint);
    margin-bottom: var(--space-6);
}

.empty-state h3 {
    font-size: var(--display-xs);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.empty-state p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

.empty-state a {
    color: var(--color-positive);
    font-weight: var(--weight-medium);
    text-decoration: underline;
}

.empty-state a:hover {
    color: var(--color-positive-strong);
}

/* --------------------------------------------
   13. Legal pages
   -------------------------------------------- */
.legal-hero {
    background-color: var(--color-bg-inverse);
    padding: var(--space-40) 0 var(--space-20);
    text-align: center;
    color: var(--color-text-inverse);
}

.legal-hero h1 {
    font-size: var(--display-xl);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    letter-spacing: var(--tracking-tight);
}

@media (min-width: 768px) {
    .legal-hero h1 {
        font-size: var(--display-3xl);
    }
}

.legal-hero p {
    font-size: var(--text-2xl);
    color: var(--color-light-a70);
    max-width: 600px;
    margin: 0 auto;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6) var(--space-24);
}

.legal-content h2 {
    font-size: var(--display-xs);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: var(--border-thin) solid var(--color-border);
    letter-spacing: var(--tracking-tight);
}

.legal-content h3 {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--color-neutral-800);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.legal-content p {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: var(--color-text-body);
    margin-bottom: var(--space-4);
}

.legal-content p a {
    color: var(--color-positive);
    text-decoration: underline;
    text-underline-offset: var(--space-half);
    transition: color var(--transition-fast);
}

.legal-content p a:hover {
    color: var(--color-positive-strong);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content ul li,
.legal-content ol li {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: var(--color-text-body);
    margin-bottom: var(--space-2);
    padding-left: var(--space-1);
}

.legal-content strong {
    color: var(--color-text);
    font-weight: var(--weight-semibold);
}

.legal-updated {
    display: inline-block;
    font-size: var(--text-base);
    color: var(--color-text-subtle);
    font-weight: var(--weight-medium);
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-bg-subtle);
    border-radius: var(--radius-sharp);
    margin-bottom: var(--space-2);
}

/* --------------------------------------------
   14. Property detail — platform notices
   -------------------------------------------- */
.property-detail-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2-5);
    padding: var(--space-3) var(--space-4);
    background: var(--color-warning-soft);
    border: var(--border-thin) solid var(--color-warning-line);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-warning-strong);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-4);
}

.property-detail-notice svg {
    flex-shrink: 0;
    margin-top: var(--space-half);
    stroke: var(--color-warning-line);
}

/* --------------------------------------------
   15. Monitor page
   -------------------------------------------- */
.monitor-page {
    padding: var(--space-10) 0 var(--space-20);
    min-height: 60vh;
}

.monitor-title {
    font-size: var(--display-md);
    margin-bottom: var(--space-6);
}

.monitor-summary {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.monitor-stat {
    flex: 1;
    background: var(--color-bg-subtle);
    border: var(--border-thin) solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    text-align: center;
}

.monitor-stat-value {
    display: block;
    font-size: var(--display-md);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    font-family: var(--font-display);
}

.monitor-stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    margin-top: var(--space-1);
    display: block;
}

.monitor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.monitor-card {
    background: var(--color-surface);
    border: var(--border-thin) solid var(--color-border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.monitor-card--healthy { border-left: 4px solid var(--color-positive); }
.monitor-card--warning { border-left: 4px solid var(--color-warning); }
.monitor-card--error { border-left: 4px solid var(--color-negative); }
.monitor-card--unknown { border-left: 4px solid var(--color-neutral-500); }

.monitor-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2-5);
    padding: var(--space-4) var(--space-5) var(--space-3);
    border-bottom: var(--border-thin) solid var(--color-border);
}

.monitor-card-header h3 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    font-family: var(--font-sans);
}

.monitor-health-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.monitor-health-dot--healthy { background: var(--color-positive); box-shadow: 0 0 6px rgba(5, 150, 105, 0.4); }
.monitor-health-dot--warning { background: var(--color-warning); box-shadow: 0 0 6px rgba(217, 119, 6, 0.4); }
.monitor-health-dot--error { background: var(--color-negative); box-shadow: 0 0 6px rgba(220, 38, 38, 0.4); }
.monitor-health-dot--unknown { background: var(--color-neutral-500); }

.monitor-card-body {
    padding: var(--space-3) var(--space-5) var(--space-4);
}

.monitor-card-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-1-5) 0;
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

.monitor-card-row span:last-child {
    color: var(--color-text);
    font-weight: var(--weight-medium);
}

.monitor-card-error {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: #fef2f2;
    border-radius: var(--radius-sharp);
    font-size: var(--text-sm);
    color: var(--color-negative);
    word-break: break-word;
}

.monitor-badge {
    display: inline-block;
    padding: var(--space-half) var(--space-2-5);
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.monitor-badge--success { background: #ecfdf5; color: var(--color-positive); }
.monitor-badge--error { background: #fef2f2; color: var(--color-negative); }
.monitor-badge--none { background: var(--color-bg-subtle); color: var(--color-text-subtle); }

.monitor-section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.monitor-table-wrap {
    overflow-x: auto;
    border: var(--border-thin) solid var(--color-border-strong);
    border-radius: var(--radius-md);
}

.monitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}

.monitor-table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-weight: var(--weight-semibold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    border-bottom: var(--border-thin) solid var(--color-border-strong);
}

.monitor-table td {
    padding: var(--space-2-5) var(--space-4);
    border-bottom: var(--border-thin) solid var(--color-border);
    color: var(--color-text);
}

.monitor-table tbody tr:last-child td {
    border-bottom: none;
}

.monitor-table tbody tr:hover {
    background: var(--color-bg-subtle);
}

.monitor-error-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-subtle) !important;
    font-size: var(--text-sm);
}

@media (max-width: 640px) {
    .monitor-summary {
        flex-direction: column;
    }
    .monitor-cards {
        grid-template-columns: 1fr;
    }
}
