/* ── Real Estate Map Page ── */

.realty-page {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100svh - 64px);
    overflow: hidden;
}

/* ── Top filter bar ── */

.realty-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    flex-shrink: 0;
    flex-wrap: wrap;
    z-index: 10;
}

.realty-toolbar__group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.realty-toolbar__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.realty-toolbar__select,
.realty-toolbar__input {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    min-width: 0;
}

.realty-toolbar__select:focus,
.realty-toolbar__input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.realty-toolbar__input--price {
    width: 7rem;
}

.realty-toolbar__btn {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.875rem;
    border: none;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
}

.realty-toolbar__btn:hover {
    opacity: 0.85;
}

.realty-toolbar__count {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-left: auto;
}

/* ── Split layout: map left, cards right ── */

.realty-split {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.realty-map {
    flex: 1;
    min-width: 0;
    position: relative;
}

.realty-map__container {
    width: 100%;
    height: 100%;
}

.realty-sidebar {
    width: 420px;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--color-bg);
    border-left: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

/* ── Listing cards ── */

.realty-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.realty-cards__header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 0.625rem 0.75rem;
    background: var(--color-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted);
}

.listing-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
    cursor: pointer;
    transition: background 0.12s;
}

.listing-card:hover,
.listing-card--active {
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

.listing-card__photo {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--color-text) 5%, transparent);
}

.listing-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-muted);
    width: 120px;
    height: 90px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--color-text) 5%, transparent);
    flex-shrink: 0;
}

.listing-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.listing-card__price {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.listing-card__meta {
    font-size: 0.8125rem;
    color: var(--color-text);
}

.listing-card__address {
    font-size: 0.8125rem;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card__type {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.listing-card__mls {
    font-size: 0.6875rem;
    color: var(--color-muted);
}

/* ── Detail panel (rd = realty detail) ── */

.rd {
    animation: rd-enter 0.3s ease-out;
}

@keyframes rd-enter {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Sticky top bar ── */

.rd__topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.rd__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    background: none;
    border: none;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.rd__back:hover { opacity: 0.7; }
.rd__back svg { flex-shrink: 0; }

.rd__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
    background: none;
    border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
    border-radius: 6px;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.rd__expand:hover {
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--color-text) 25%, transparent);
}

/* ── Photo gallery ── */

.rd__gallery {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: color-mix(in srgb, var(--color-text) 4%, transparent);
    aspect-ratio: 16 / 10;
    /* Ensure track children don't overflow */
    width: 100%;
}

.rd__gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.rd__gallery-img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.rd__gallery-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    z-index: 2;
}

.rd__gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.rd__gallery:hover .rd__gallery-btn {
    opacity: 1;
}

.rd__gallery-btn:hover {
    transform: translateY(-50%) scale(1.08);
}

.rd__gallery-btn--prev { left: 8px; }
.rd__gallery-btn--next { right: 8px; }

.rd__gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.rd__gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.rd__gallery-dot--active {
    background: #fff;
    transform: scale(1.3);
}

.rd__gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 160px;
    background: color-mix(in srgb, var(--color-text) 4%, transparent);
    color: var(--color-text);
    opacity: 0.5;
    font-size: 0.875rem;
}

/* ── Header: price + address ── */

.rd__header {
    padding: 1rem 1rem 0;
}

.rd__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}

.rd__price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.rd__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2em 0.55em;
    border-radius: 3px;
    white-space: nowrap;
}

.rd__badge--active {
    background: #dcfce7;
    color: #166534;
}

.rd__badge--sold {
    background: #fee2e2;
    color: #991b1b;
}

.rd__badge--other {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
}

.rd__address {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 0.375rem;
    line-height: 1.3;
}

.rd__city {
    font-size: 0.875rem;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 0.125rem;
}

/* ── Stats bar ── */

.rd__stats {
    display: flex;
    gap: 0;
    margin: 0.875rem 1rem 0;
    border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    border-radius: 8px;
    overflow: hidden;
}

.rd__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.25rem;
    gap: 0.125rem;
    border-right: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.rd__stat:last-child {
    border-right: none;
}

.rd__stat-val {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
}

.rd__stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text);
    opacity: 0.55;
}

/* ── Sections ── */

.rd__section {
    padding: 0 1rem;
    margin-top: 1.125rem;
}

.rd__section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    opacity: 0.6;
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

/* ── Description ── */

.rd__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text);
    max-height: 5.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.35s ease;
}

.rd__desc::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(transparent, var(--color-bg));
    pointer-events: none;
    transition: opacity 0.25s;
}

.rd__desc--expanded {
    max-height: 80em;
}

.rd__desc--expanded::after {
    opacity: 0;
}

.rd__desc--short::after {
    display: none;
}

.rd__desc-toggle {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    background: none;
    border: none;
    padding: 0.25rem 0 0;
    cursor: pointer;
    transition: opacity 0.15s;
}

.rd__desc-toggle:hover {
    opacity: 0.7;
}

/* ── Property details grid ── */

.rd__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
}

.rd__detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent);
    font-size: 0.875rem;
}

.rd__detail-row:last-child {
    border-bottom: none;
}

.rd__detail-row dt {
    color: var(--color-text);
    opacity: 0.6;
    font-weight: 400;
}

.rd__detail-row dd {
    color: var(--color-text);
    font-weight: 600;
    text-align: right;
    margin: 0;
}

/* ── Features tags ── */

.rd__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.rd__feature-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.3em 0.625em;
    border-radius: 4px;
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: color-mix(in srgb, var(--color-primary) 80%, var(--color-text));
    white-space: nowrap;
}

/* ── Agent section ── */

.rd__section--agent {
    background: color-mix(in srgb, var(--color-text) 3%, transparent);
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 1rem;
    border-radius: 0;
    margin-top: 1.25rem;
}

.rd__agent-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.rd__agent-brokerage {
    font-size: 0.8125rem;
    color: var(--color-text);
    opacity: 0.65;
    margin-top: 0.1rem;
}

/* ── Area label ── */

.rd__area {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    opacity: 0.5;
    padding: 0.75rem 1rem 1.5rem;
}

/* ── Dark mode adjustments ── */

[data-theme="dark"] .rd__gallery-btn {
    background: rgba(30, 30, 30, 0.85);
    color: #e5e5e5;
}

[data-theme="dark"] .rd__badge--active {
    background: #052e16;
    color: #86efac;
}

[data-theme="dark"] .rd__badge--sold {
    background: #450a0a;
    color: #fca5a5;
}

[data-theme="dark"] .rd__desc::after {
    background: linear-gradient(transparent, var(--color-bg));
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .rd__gallery-btn {
        background: rgba(30, 30, 30, 0.85);
        color: #e5e5e5;
    }

    html:not([data-theme="light"]) .rd__badge--active {
        background: #052e16;
        color: #86efac;
    }

    html:not([data-theme="light"]) .rd__badge--sold {
        background: #450a0a;
        color: #fca5a5;
    }
}

/* ── Map marker hover tooltip ── */

.mp-tooltip {
    padding: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    background: var(--color-surface) !important;
    overflow: hidden;
    min-width: 240px;
    max-width: 280px;
}

.mp-tooltip::before {
    border-top-color: var(--color-surface) !important;
}

.mp {
    font-family: var(--font-body);
}

.mp__photo {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.mp__body {
    padding: 0.625rem 0.75rem 0.7rem;
}

.mp__price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.2;
}

.mp__address {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 0.2rem;
    line-height: 1.25;
}

.mp__city {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.mp__stats {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0.4rem;
}

.mp__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.mp__type {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15em 0.45em;
    border: 1.5px solid;
    border-radius: 3px;
    white-space: nowrap;
}

.mp__dom {
    font-size: 0.6875rem;
    color: var(--color-muted);
}

/* ── Empty state ── */

.realty-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-muted);
}

.realty-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.realty-empty__text {
    font-size: 0.875rem;
}

/* ── Loading indicator ── */

.realty-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--color-muted);
    gap: 0.5rem;
    font-size: 0.875rem;
}

.realty-loading__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: realty-spin 0.6s linear infinite;
}

@keyframes realty-spin {
    to { transform: rotate(360deg); }
}

/* ── Full-page detail modal (rf = realty fullscreen) ── */

.rf-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    overflow: hidden;
    animation: rf-enter 0.25s ease-out;
}

@keyframes rf-enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rf__bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

.rf__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
    border-radius: 6px;
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.rf__close:hover {
    background: color-mix(in srgb, var(--color-text) 5%, transparent);
}

.rf__title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf__body {
    height: calc(100vh - 53px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rf__content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    padding: 1.5rem;
    align-items: start;
}

/* ── Photos column (vertical list) ── */

.rf__photos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rf__photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px;
}

/* ── Info column ── */

.rf__info {
    position: sticky;
    top: 1.5rem;
}

.rf__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}

.rf__price {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.rf__address {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 0.375rem;
}

.rf__city {
    font-size: 0.9375rem;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 0.125rem;
}

.rf__section {
    margin-top: 1.25rem;
}

.rf__section--agent {
    background: color-mix(in srgb, var(--color-text) 3%, transparent);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1.25rem;
}

.rf__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ── Full-page responsive ── */

@media (max-width: 900px) {
    .rf__content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.25rem;
    }

    .rf__info {
        position: static;
    }

    .rf__photo {
        max-height: 350px;
    }
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .realty-split {
        flex-direction: column;
    }

    .realty-map {
        height: 45vh;
        flex: none;
    }

    .realty-sidebar {
        width: 100%;
        flex: 1;
        border-left: none;
        border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    }
}

/* ── Filter controls wrapper (transparent on desktop) ── */

.realty-toolbar__filters {
    display: contents;
}

/* ── Mobile filter toggle bar ── */

.realty-toolbar__toggle {
    display: none;
}

@media (max-width: 600px) {
    .realty-toolbar {
        padding: 0;
        gap: 0;
        flex-direction: column;
    }

    /* Compact toggle bar — always visible on mobile */
    .realty-toolbar__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
    }

    .realty-toolbar__toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-family: var(--font-body);
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-primary);
        background: none;
        border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
        border-radius: 6px;
        padding: 0.4rem 0.75rem;
        min-height: 44px;
        cursor: pointer;
        transition: background 0.15s, border-color 0.15s;
    }

    .realty-toolbar__toggle-btn:hover,
    .realty-toolbar--open .realty-toolbar__toggle-btn {
        background: color-mix(in srgb, var(--color-primary) 8%, transparent);
        border-color: var(--color-primary);
    }

    .realty-toolbar__toggle-btn svg {
        transition: transform 0.2s;
    }

    .realty-toolbar--open .realty-toolbar__toggle-btn svg {
        transform: rotate(180deg);
    }

    .realty-toolbar__toggle-count {
        font-size: 0.8125rem;
        color: var(--color-muted);
        font-weight: 500;
    }

    /* Filter groups — hidden by default on mobile */
    .realty-toolbar__filters {
        display: none;
        width: 100%;
        padding: 0.5rem 0.75rem 0.625rem;
        border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
        gap: 0.5rem;
    }

    .realty-toolbar--open .realty-toolbar__filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        animation: realty-filters-enter 0.2s ease-out;
    }

    @keyframes realty-filters-enter {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Type selector spans full width */
    .realty-toolbar__group--type {
        grid-column: 1 / -1;
    }

    /* Price group spans full width */
    .realty-toolbar__group--price {
        grid-column: 1 / -1;
    }

    /* Search button spans full width */
    .realty-toolbar__group--action {
        grid-column: 1 / -1;
    }

    .realty-toolbar__group {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .realty-toolbar__label {
        font-size: 0.8rem;
        min-width: 3rem;
    }

    .realty-toolbar__select,
    .realty-toolbar__input {
        font-size: 0.875rem;
        min-height: 44px;
        padding: 0.4rem 0.5rem;
        flex: 1;
    }

    .realty-toolbar__btn {
        font-size: 0.875rem;
        min-height: 44px;
        padding: 0.4rem 1rem;
        width: 100%;
    }

    .realty-toolbar__input--price {
        width: auto;
        flex: 1;
    }

    /* Hide the count in the main toolbar — it's in the toggle bar */
    .realty-toolbar__count {
        display: none;
    }

    .realty-map {
        height: 30vh;
    }

    .listing-card__photo,
    .listing-card__photo--placeholder {
        width: 90px;
        height: 68px;
    }

    .listing-card__type {
        font-size: 0.8rem;
    }

    .listing-card__mls {
        font-size: 0.8rem;
    }

    .realty-detail__stat-label {
        font-size: 0.8rem;
    }

    .realty-cards__header {
        font-size: 0.875rem;
    }
}

/* ── Dark mode ── */

[data-theme="dark"] .listing-card__photo--placeholder {
    background: color-mix(in srgb, var(--color-text) 12%, transparent);
}

[data-theme="dark"] .mp-tooltip {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .listing-card__photo--placeholder {
        background: color-mix(in srgb, var(--color-text) 12%, transparent);
    }

    html:not([data-theme="light"]) .mp-tooltip {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
}
