.theme-toggle {
    min-height: 36px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--gold);
    outline-color: var(--gold);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #ededed;
    --muted: #a1a1aa;
    --line: #383838;
    --paper: #1b1b1b;
}

html[data-theme="dark"] body {
    background: #111;
    color: var(--ink);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .property-card,
html[data-theme="dark"] .contact-profile-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .home-search-panel {
    background-color: #1b1b1b;
    color: var(--ink);
}

html[data-theme="dark"] .contact-card {
    border-color: var(--line);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .property-body h3 a,
html[data-theme="dark"] .contact-details a,
html[data-theme="dark"] .breadcrumb a,
html[data-theme="dark"] .theme-toggle {
    color: var(--ink) !important;
}

html[data-theme="dark"] .hero {
    background: linear-gradient(105deg, #181818 0%, #111 72%);
}

html[data-theme="dark"] .category-band,
html[data-theme="dark"] .page-banner,
html[data-theme="dark"] .empty-state {
    background: #191919;
    color: var(--ink);
}

html[data-theme="dark"] .section,
html[data-theme="dark"] .trust-section {
    color: var(--ink);
}

html[data-theme="dark"] .home-search-field label,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .property-kicker,
html[data-theme="dark"] .trust-grid article > b {
    color: #e0c45d;
}

html[data-theme="dark"] .home-search-field .form-control,
html[data-theme="dark"] .home-search-field .form-select,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    border-color: #444;
    background-color: #252525;
    color: var(--ink);
}

html[data-theme="dark"] .home-search-field .form-control:focus,
html[data-theme="dark"] .home-search-field .form-select:focus {
    background-color: #252525;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #929292;
}

html[data-theme="dark"] .form-select option {
    background: #252525;
    color: var(--ink);
}

html[data-theme="dark"] .pagination .page-link {
    border-color: var(--line);
    background: #1b1b1b;
    color: var(--ink);
}

html[data-theme="dark"] .pagination .page-item.active .page-link {
    background: #0d6efd;
    color: #fff;
}

html[data-theme="dark"] .pagination .page-item.disabled .page-link {
    background: #191919;
    color: var(--muted);
}

html[data-theme="dark"] .profile-portrait,
html[data-theme="dark"] .detail-gallery img,
html[data-theme="dark"] .detail-gallery .gallery-trigger,
html[data-theme="dark"] .property-image {
    background-color: #252525;
}

html[data-theme="dark"] .share-links a {
    color: #e0c45d;
}

html[data-theme="dark"] .btn-dark {
    border-color: #e5e5e5;
    background-color: #e5e5e5;
    color: #111;
}

html[data-theme="dark"] .btn-outline-dark {
    border-color: #bdbdbd;
    color: #ededed;
}

html[data-theme="dark"] .btn-outline-dark:hover {
    border-color: #e5e5e5;
    background-color: #e5e5e5;
    color: #111;
}

html[data-theme="dark"] .page-loader {
    background: #111;
    color: var(--ink);
}

@media (max-width: 991.98px) {
    .theme-toggle {
        margin: 5px 0;
    }

    html[data-theme="dark"] .navbar-toggler {
        border-color: #555;
    }

    html[data-theme="dark"] .navbar-toggler-icon {
        filter: invert(1);
    }
}
