:root {
    --rhtm-bg: #0d1117;
    --rhtm-bg-soft: #121820;
    --rhtm-surface: #171e27;
    --rhtm-surface-2: #1d2631;
    --rhtm-border: #303a46;
    --rhtm-text: #f3f5f7;
    --rhtm-muted: #aeb7c2;
    --rhtm-gold: #fdbd13;
}

.rh-theme-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    background: #fff;
    color: #161616;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}
.rh-theme-toggle:hover {border-color:var(--rhtm-gold);color:#b27b00;transform:translateY(-1px)}
.rh-theme-toggle:focus-visible {outline:3px solid rgba(253,189,19,.3);outline-offset:2px}
.rh-theme-toggle svg {display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rh-theme-toggle svg path:first-child {fill:none;stroke:currentColor}
.rh-theme-toggle .rh-theme-spark {stroke-width:1.55}

html[data-rh-theme="dark"] {color-scheme:dark;background:var(--rhtm-bg)}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled {
    --rhhr-ink: var(--rhtm-text);
    --rhhr-paper: var(--rhtm-bg);
    --rhhr-soft: var(--rhtm-bg-soft);
    --rhhr-line: var(--rhtm-border);
    --rhhr-muted: var(--rhtm-muted);
    --rhpp-black: var(--rhtm-text);
    --rhpp-muted: var(--rhtm-muted);
    --rhpp-line: var(--rhtm-border);
    --rhpp-bg: var(--rhtm-bg);
    --rhas-ink: var(--rhtm-text);
    --rhas-soft: var(--rhtm-bg);
    --rhas-line: var(--rhtm-border);
    --rha-ink: var(--rhtm-text);
    --rha-muted: var(--rhtm-muted);
    --rha-line: var(--rhtm-border);
    --rha-soft: var(--rhtm-bg);
    --rhc-ink: var(--rhtm-text);
    --rhc-muted: var(--rhtm-muted);
    --rhc-line: var(--rhtm-border);
    --rhep-black: var(--rhtm-text);
    --rhep-ink: var(--rhtm-text);
    --rhep-muted: var(--rhtm-muted);
    --rhep-line: var(--rhtm-border);
    --rhep-surface: var(--rhtm-bg-soft);
    --rhes-ink: var(--rhtm-text);
    --rhes-muted: var(--rhtm-muted);
    --rhes-line: var(--rhtm-border);
    background-color: var(--rhtm-bg) !important;
    color: var(--rhtm-text) !important;
}

html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(#all_wrapper,.website-wrapper,.wpresidence_main_wrapper_class,.content_wrapper,.wpresidence-content-container-wrapper,.single-content,.entry-content) {
    border-color: var(--rhtm-border);
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(#all_wrapper,.website-wrapper,.wpresidence_main_wrapper_class,.content_wrapper,.wpresidence-content-container-wrapper) {
    background-color: var(--rhtm-bg) !important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(h1,h2,h3,h4,h5,h6,.entry-title,.property_title_label) {color:var(--rhtm-text)}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(p,li,dt,dd,.subtitle,.text-muted) {color:var(--rhtm-muted);border-color:var(--rhtm-border)}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled a:not(.wpresidence_button):not(.elementor-button):not([class*="submit"]):not(.rhpp-show-all) {color:inherit}

/* Header and global tools */
html[data-rh-theme="dark"] body .master_header .header_wrapper,
html[data-rh-theme="dark"] body .master_header .header_wrapper_inside,
html[data-rh-theme="dark"] body .mobile_header {background:#10151c !important;border-color:var(--rhtm-border)!important}
html[data-rh-theme="dark"] body .master_header .menu-item-link {color:#f4f5f6!important}
html[data-rh-theme="dark"] body .master_header .menu-item-link:hover {color:var(--rhtm-gold)!important}
html[data-rh-theme="dark"] body #logo_image {filter:brightness(0) invert(1)}
html[data-rh-theme="dark"] body :where(.rh-header-favorite,.rh-language-toggle,.rh-theme-toggle) {border-color:#343d48;background:#1a222c;color:#f5f6f7}
html[data-rh-theme="dark"] body :where(.rh-header-favorite,.rh-language-toggle,.rh-theme-toggle):hover {border-color:var(--rhtm-gold);color:var(--rhtm-gold)}
html[data-rh-theme="dark"] body .rh-language-menu {border-color:var(--rhtm-border);background:var(--rhtm-surface);box-shadow:0 14px 36px rgba(0,0,0,.38)}

/* Standard cards, controls and dialogs */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.property_listing,.agent_unit,.agency_unit,.developer_unit,.widget-container,.modal-content,.dropdown-menu,.bootstrap-select>.dropdown-menu,.adv_listing_filters_head,.pagination,.rh-empty-state,.rh-public-favorites,.rh-saved-shell) {
    border-color:var(--rhtm-border)!important;
    background-color:var(--rhtm-surface)!important;
    color:var(--rhtm-text)!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(input:not([type="submit"]):not([type="button"]),select,textarea,.form-control,.dropdown-toggle) {
    border-color:var(--rhtm-border)!important;
    background-color:var(--rhtm-surface-2)!important;
    color:var(--rhtm-text)!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(input,textarea)::placeholder {color:#8994a2!important;opacity:1}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.property_listing,.agent_unit,.modal-content,.dropdown-menu) :where(h1,h2,h3,h4,h5,h6,a,strong,span) {border-color:var(--rhtm-border)}

/* Homepage and catalog */
html[data-rh-theme="dark"] body.rh-home-redesign .content_wrapper {background:var(--rhtm-bg)!important}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-card,.rhhr-property-card,.rhhr-section,.rhhr-search-panel,.property_listing) {border-color:var(--rhtm-border)!important}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.property_listing,.rhhr-card,.rhhr-property-card) {background:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-title,.property_unit_type4_title_wrapper,.listing_unit_price_wrapper) {color:var(--rhtm-text)!important}

/* Homepage: invert every light section while preserving the gold visual language. */
html[data-rh-theme="dark"] body.rh-home-redesign .rhhr-exclusive {
    border-color:var(--rhtm-border)!important;
    background-color:var(--rhtm-bg-soft)!important;
    background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign .rhhr-listings {
    border-color:var(--rhtm-border)!important;
    background-color:var(--rhtm-bg)!important;
    box-shadow:inset 0 14px 22px -22px rgba(0,0,0,.9)!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign .rhhr-guidance-zone {
    border-color:var(--rhtm-border)!important;
    background:radial-gradient(circle at 8% 18%,rgba(253,189,19,.1),transparent 22%),linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),var(--rhtm-bg-soft)!important;
    background-size:auto,44px 44px,44px 44px,auto!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-promise,.rhhr-service-card,.rhhr-actions>.e-con) {
    border-color:var(--rhtm-border)!important;
    background:var(--rhtm-surface)!important;
    color:var(--rhtm-text)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.24)!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-section-heading h2,.rhhr-method__intro h2,.rhhr-method__steps h3,.rhhr-bridge h2,.rhhr-service-card h3,.rhhr-actions .elementor-cta__description,.rhhr-actions .elementor-cta__button,.rhhr-promise strong) {
    color:var(--rhtm-text)!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-heading-description,.rhhr-method__intro p,.rhhr-method__steps p,.rhhr-bridge p,.rhhr-service-card p,.rhhr-promise small) {
    color:var(--rhtm-muted)!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-method__steps,.rhhr-method__steps article,.rhhr-promise>div) {border-color:var(--rhtm-border)!important}
html[data-rh-theme="dark"] body.rh-home-redesign .rhhr-action-icon {background:#33290f!important;color:var(--rhtm-gold)!important}
html[data-rh-theme="dark"] body.rh-home-redesign .property_listing :where(.property_unit_type4_title_wrapper,.property_unit_type4_title_wrapper a,.listing_details,.property_location,.property_listing_details,.property_listing_details_v2) {color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-home-redesign .property_listing :where(.property_listing_details,.listing_details,.property_location) {color:var(--rhtm-muted)!important}
html[data-rh-theme="dark"] body.rh-home-redesign .property_listing :where(.property_unit_custom_element,.property_unit_custom_element.image,.property_listing_details_v2,.property_unit_type4_title_wrapper) {border-color:var(--rhtm-border)!important}

/* The search is intentionally a light island in both modes. */
html[data-rh-theme="dark"] body .rhps-responsive-global {
    color-scheme:light!important;
    color:#11151a!important;
    border-color:#e1e4e8!important;
    background:#fff!important;
    box-shadow:0 16px 34px rgba(0,0,0,.32)!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global :where(input:not([type="submit"]):not([type="button"]),select,textarea,.form-control,.dropdown-toggle) {
    color:#11151a!important;
    border-color:#dde2e7!important;
    background-color:#fff!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global :where(input,textarea)::placeholder {color:#697481!important}
html[data-rh-theme="dark"] body .rhps-responsive-global :where(.rhps-panel,[data-rhps-panel],.rhps-popover,.dropdown-menu,.bootstrap-select>.dropdown-menu) {
    color:#11151a!important;
    border-color:#dde2e7!important;
    background:#fff!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global :where(label,p,span,strong,b,small,a,button) {color:inherit}

/* Strong contrast for common WordPress/Elementor surfaces on the remaining pages. */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.elementor-widget-text-editor,.elementor-heading-title,.wpb_text_column,.panel-title,.accordion-toggle,.breadcrumb,.breadcrumb a) {color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.panel,.panel-body,.accordion_wrapper,.wpb_content_element,.sidebar_wrapper,.widget-area,.comment-form,.contact_sidebar_wrap) {border-color:var(--rhtm-border)!important;background-color:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-exclusive-redesign :where(.rhep-main,.rhep-listings,.rhep-filter-shell,.rhep-empty,.property_listing),
html[data-rh-theme="dark"] body.rh-about-redesign :where(.rha-section,.rha-card,.rh-about-modal__dialog),
html[data-rh-theme="dark"] body.rh-saved-redesign :where(.rhes-main,.rhes-empty,.rhes-card) {
    border-color:var(--rhtm-border)!important;
    background-color:var(--rhtm-surface)!important;
    color:var(--rhtm-text)!important;
}

/* Property page */
html[data-rh-theme="dark"] body .rhpp-page {background:var(--rhtm-bg)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body .rhpp-page :where(.rhpp-price,.rhpp-desktop-actions button,.rhpp-round-action,.rhpp-favorite-action,.rhpp-facts>div,.rhpp-section,.rhpp-agent-card,.rhpp-similar-card,.rhpp-home-card,.rhpp-location-facts>div,.rhpp-map-privacy-note,.mortgage-calculator-modern,.rhpp-email-dialog) {border-color:var(--rhtm-border)!important;background-color:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body .rhpp-page :where(h1,h2,h3,h4,strong,b,dt,dd,.rhpp-card-title) {color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body .rhpp-page :where(p,small,.rhpp-back-home,.rhpp-card-excerpt) {color:var(--rhtm-muted)!important}
html[data-rh-theme="dark"] body .rhpp-page :where(.rhpp-contact-form input,.rhpp-contact-form textarea,.rhpp-card-pills span) {border-color:var(--rhtm-border)!important;background:var(--rhtm-surface-2)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body .rhpp-page :where(.rhpp-copy,.rhpp-detail-grid>div,.rhpp-address-grid>div,.rhpp-feature-grid span,.rhpp-facts,.rhpp-mobile-thumbs,.rhpp-similar,.rhpp-similar-grid article,.rhpp-visit-modal>section,.rhpp-email-modal>section,.rhpp-email-modal .rhpp-agent-card,.rhpp-financing .mortgage-calculator-modern) {border-color:var(--rhtm-border)!important;background-color:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body .rhpp-page :where(.rhpp-detail-grid>div,.rhpp-address-grid>div,.rhpp-feature-grid span,.rhpp-copy,.rhpp-financing label,.rhpp-financing input) {color:var(--rhtm-text)!important}

/* Search results */
html[data-rh-theme="dark"] body.rh-search-results-redesign .content_wrapper {background-color:var(--rhtm-bg)!important}
html[data-rh-theme="dark"] body.rh-search-results-redesign :where(.adv_listing_filters_head,#a_filter_order,.pagination,.pagination a,.pagination span,.property_listing) {border-color:var(--rhtm-border)!important;background-color:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-search-results-redesign :where(.rhas-results-row,.rhas-results-shell,.rhas-empty-state) {border-color:var(--rhtm-border)!important;background-color:var(--rhtm-bg)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-empty-state__copy h2 {color:var(--rhtm-text)!important}

/* About, contact, offer and request pages */
html[data-rh-theme="dark"] body.rh-about-redesign,
html[data-rh-theme="dark"] body.rh-contact-redesign,
html[data-rh-theme="dark"] body.rh-action-redesign {background:var(--rhtm-bg)!important}
html[data-rh-theme="dark"] body.rh-contact-redesign .elementor-element-ebb8f73,
html[data-rh-theme="dark"] body.rh-offer-redesign .elementor-element-a0944e9,
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-5c30e61c {background:var(--rhtm-bg)!important}
html[data-rh-theme="dark"] body.rh-contact-redesign .elementor-element-747b41b,
html[data-rh-theme="dark"] body.rh-offer-redesign .fluentform,
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-20ebda1 {border-color:var(--rhtm-border)!important;background:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-action-redesign #all_wrapper {background:var(--rhtm-bg)!important}
html[data-rh-theme="dark"] body.rh-contact-redesign :where(.elementor-element-747b41b,.rh-contact-simple-form),
html[data-rh-theme="dark"] body.rh-offer-redesign .fluentform,
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-20ebda1 {border-color:var(--rhtm-border)!important;background:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body.rh-contact-redesign :where(input,textarea,.dropdown-toggle),
html[data-rh-theme="dark"] body.rh-offer-redesign .fluentform :where(input,select,textarea,.ff-el-form-check-label),
html[data-rh-theme="dark"] body.rh-request-redesign :where(input,textarea,.dropdown-toggle) {border-color:var(--rhtm-border)!important;background:var(--rhtm-surface-2)!important;color:var(--rhtm-text)!important}

/* Property Finder */
html[data-rh-theme="dark"] body :where(.rhpf-dialog,.rhpf-content,.rhpf-request-panel,.rhpf-result-panel,.rhpf-card,.rhpf-feature-picker,.rhpf-select-menu,.rhpf-location-menu) {border-color:var(--rhtm-border)!important;background-color:var(--rhtm-surface)!important;color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body :where(.rhpf-dialog h2,.rhpf-dialog h3,.rhpf-dialog h4,.rhpf-dialog label,.rhpf-dialog strong) {color:var(--rhtm-text)!important}
html[data-rh-theme="dark"] body :where(.rhpf-dialog p,.rhpf-dialog small,.rhpf-card-excerpt) {color:var(--rhtm-muted)!important}
html[data-rh-theme="dark"] body :where(.rhpf-dialog input,.rhpf-dialog select,.rhpf-dialog textarea,.rhpf-location-trigger,.rhpf-select-trigger,.rhpf-feature-picker label) {border-color:var(--rhtm-border)!important;background:var(--rhtm-surface-2)!important;color:var(--rhtm-text)!important}

/* Footer already uses a dark palette; retain its intended contrast. */
html[data-rh-theme="dark"] body :where(.master_footer,.sub_footer,.footer_wrapper) {color:#f4f5f6!important;background-color:#0a0d11!important}

/* v1.0.2 contrast pass: property cards */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing {
    border-color:#34404d!important;
    background:#171f29!important;
    color:var(--rhtm-text)!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing :where(h4,h4 a,.property_unit_type4_title_wrapper,.property_unit_type4_title_wrapper a) {color:#f7f8fa!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing :where(.listing_details,.listing_details.the_grid_view,.property_listing_details_v2) {color:#c2cad4!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .listing_unit_price_wrapper,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .listing_unit_price_wrapper * {color:#fdbd13!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_listing_details {
    border-color:#465362!important;
    color:#eef2f6!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_listing_details>span,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_listing_details>button,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_listing_details .rh-more-trigger {
    border-color:#465362!important;
    background:#222d39!important;
    color:#f4f7fa!important;
    opacity:1!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_listing_details svg {
    opacity:.9!important;
    filter:brightness(0) invert(1)!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_agent_wrapper {
    border-color:#465362!important;
    color:#f3f5f7!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .property_listing .property_agent_wrapper :where(a,.wpestate_card_agent_link,span,b,strong) {color:#f3f5f7!important;opacity:1!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.property_listing,.rhep-card,.rhes-card) :where(.share_list,.icon-fav,.icon-fav-on,.icon-fav-off,[class*="share"],[class*="favorite"]) {
    border-color:#465362!important;
    background:#202a35!important;
    color:#e9eef4!important;
}

/* Keep every property price gold, including custom card layouts. */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.listing_unit_price_wrapper,.property_unit_price,.property_price,.price_area,.rhpf-card-body>strong,.rhpp-price,.rhpp-similar-price),
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.listing_unit_price_wrapper,.property_unit_price,.property_price,.price_area,.rhpf-card-body>strong,.rhpp-price,.rhpp-similar-price) * {color:#fdbd13!important}

/* Property page: visible gallery, section markers, actions and similar cards. */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-show-all {
    border:1px solid #fdbd13!important;
    background:#fdbd13!important;
    color:#11151a!important;
    opacity:1!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-number {color:#fdbd13!important;opacity:1!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-agent-head span {color:#aeb8c4!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-agent-buttons a,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-schedule {
    border-color:#465362!important;
    background:#222d39!important;
    color:#f5f7f9!important;
    opacity:1!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-agent-buttons .rhpp-whatsapp {border-color:#25d366!important;color:#65e795!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-home-card :where(.rhpp-card-title,.rhpp-card-title a,.rhpp-card-agent,.rhpp-card-agent b,strong) {color:#f5f7f9!important;opacity:1!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-home-card .rhpp-card-excerpt {color:#bdc6d1!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-home-card .rhpp-card-pills span {
    border-color:#465362!important;
    background:#222d39!important;
    color:#f3f6f9!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpp-page .rhpp-home-card .rhpp-card-pills svg {color:#f3f6f9!important;stroke:currentColor!important}

/* Search remains a complete white island, not only a white outer shell. */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global form,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global [class*="search-wrapper"],
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global [class*="search-form"] {background-color:#fff!important;color:#11151a!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global input[type="text"],
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global input[type="search"],
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global input[type="number"] {
    color:#11151a!important;
    background:#fff!important;
    -webkit-text-fill-color:#11151a!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhps-responsive-global :where(button,[role="button"]):not([type="submit"]):not([class*="submit"]) {color:#25303b}

/* Search-results toolbar and cards. */
html[data-rh-theme="dark"] body.rh-search-results-redesign #a_filter_order {
    border-color:#465362!important;
    background:#202a35!important;
    color:#f5f7f9!important;
    -webkit-text-fill-color:#f5f7f9!important;
}
html[data-rh-theme="dark"] body.rh-search-results-redesign #a_filter_order option {background:#202a35!important;color:#f5f7f9!important}
html[data-rh-theme="dark"] body.rh-search-results-redesign .adv_listing_filters_head :where(label,span) {color:#b9c3cf!important}

/* Property Finder: coherent dark form with readable labels and fields. */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpf-dialog .rhpf-search-form,
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpf-dialog .rhpf-feature-picker {
    border-color:#465362!important;
    background:#171f29!important;
    color:#f4f6f8!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpf-dialog :where(.rhpf-search-form h2,.rhpf-search-form h3,.rhpf-fields label,.rhpf-feature-picker legend,.rhpf-feature-picker legend small) {color:#f1f4f7!important;opacity:1!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpf-dialog :where(.rhpf-fields input,.rhpf-fields select,.rhpf-contact-fields input,.rhpf-combo-input) {
    border-color:#465362!important;
    background-color:#222d39!important;
    color:#f4f6f8!important;
    -webkit-text-fill-color:#f4f6f8!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpf-dialog :where(.rhpf-fields input,.rhpf-contact-fields input,.rhpf-combo-input)::placeholder {color:#9ca8b5!important;-webkit-text-fill-color:#9ca8b5!important}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled .rhpf-dialog .rhpf-feature-options label {border-color:#465362!important;background:#222d39!important;color:#e9eef3!important}

/* Request and offer pages: remove the remaining light canvas. */
html[data-rh-theme="dark"] body.rh-action-redesign .rh-action-layout {
    background-color:#10161d!important;
    background-image:radial-gradient(circle at 5% 8%,rgba(253,189,19,.08),transparent 25%),radial-gradient(circle at 96% 88%,rgba(255,255,255,.035),transparent 27%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px)!important;
    background-size:auto,auto,42px 42px,42px 42px!important;
}
html[data-rh-theme="dark"] body.rh-offer-redesign .elementor-element-a0944e9,
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-5c30e61c {background:#10161d!important}
html[data-rh-theme="dark"] body.rh-offer-redesign .fluentform,
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-20ebda1 {border-color:#465362!important;background:#171f29!important;color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-offer-redesign .fluentform :where(label,.ff-el-input--label label,.ff-el-section-title,.ff-el-section-description),
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-20ebda1 :where(label,.elementor-field-label,h2,h3,p) {color:#eef2f6!important;opacity:1!important}
html[data-rh-theme="dark"] body.rh-contact-redesign .elementor-element-747b41b :where(label,.elementor-field-label,h2,h3,p) {color:#eef2f6!important;opacity:1!important}

/* About-page FAQ cards. */
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-85c9d41,
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-4c653aa9 {background:#10161d!important}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-toggle-item {border-color:#465362!important;background:#171f29!important}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-tab-title {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-tab-content {color:#bdc6d1!important}

/* Saved properties: empty state and list controls. */
html[data-rh-theme="dark"] body.rh-saved-properties-redesign,
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .content_wrapper {background-color:#0d1117!important;color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-empty {border-color:#465362!important;background:#171f29!important;color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-empty h2,
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-empty__tips strong {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-empty>p,
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-empty__tips small {color:#b8c2ce!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-list-head>p,
html[data-rh-theme="dark"] body.rh-saved-properties-redesign .rhes-button--secondary {border-color:#465362!important;background:#222d39!important;color:#f4f6f8!important}

/* Stronger, cleaner theme control. */
.rh-theme-toggle {border-color:#d9dee4;box-shadow:0 4px 12px rgba(13,17,23,.08)}
html[data-rh-theme="dark"] body .rh-theme-toggle {border-color:#4a5765;background:#202a35;color:#fdbd13;box-shadow:0 5px 15px rgba(0,0,0,.28)}

/* v1.0.3 final dark-mode polish */

/* Mobile navigation: use one coherent dark surface and keep active copy visible. */
@media (max-width:991px) {
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 {
        color-scheme:dark!important;
        color:#eef2f6!important;
        background:#0d1117!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-menu-inner {background:#0d1117!important}
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 :where(.rh-mobile-menu-heading,.rh-mobile-box-label) {color:#aab5c2!important}
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-menu-item,
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-menu-item.rh-active {
        border-color:#35414e!important;
        background:#171f29!important;
        color:#f5f7f9!important;
        box-shadow:none!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-menu-item.rh-active {
        border-color:#586574!important;
        background:#202a35!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 :where(.rh-mobile-menu-title,.rh-mobile-menu-item.rh-active .rh-mobile-menu-title) {
        color:#fff!important;
        opacity:1!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 :where(.rh-mobile-menu-description,.rh-mobile-menu-item.rh-active .rh-mobile-menu-description) {
        color:#b8c3cf!important;
        opacity:1!important;
        -webkit-text-fill-color:#b8c3cf!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-menu-icon {
        color:#dce3ea!important;
        background:#222d39!important;
        box-shadow:none!important;
        filter:none!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-menu-item.rh-active .rh-mobile-menu-icon {
        color:#11151a!important;
        background:#fdbd13!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-box {border-color:#303b47!important}
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-language {
        border-color:#3a4653!important;
        background:#171f29!important;
        color:#eef2f6!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-language.rh-current-language {
        border-color:#fdbd13!important;
        background:#30280f!important;
        color:#fdbd13!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-socials a {
        border-color:#3a4653!important;
        background:#171f29!important;
        color:#fff!important;
    }
}

/* Desktop language menu. */
html[data-rh-theme="dark"] body .rh-language-menu {
    border:1px solid #3d4956!important;
    border-radius:12px!important;
    background:#171f29!important;
}
html[data-rh-theme="dark"] body .rh-language-menu .gtranslate_wrapper a.glink {
    border-color:transparent!important;
    background:#171f29!important;
    color:#eef2f6!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rh-language-menu .gtranslate_wrapper a.glink::after {color:#eef2f6!important;opacity:1!important}
html[data-rh-theme="dark"] body .rh-language-menu .gtranslate_wrapper a.glink:hover {background:#222d39!important}
html[data-rh-theme="dark"] body .rh-language-menu .gtranslate_wrapper a.glink.gt-current-lang {
    border-color:#fdbd13!important;
    background:#30280f!important;
    color:#fdbd13!important;
}
html[data-rh-theme="dark"] body .rh-language-menu .gtranslate_wrapper a.glink.gt-current-lang::after {color:#fdbd13!important}

/* Header saved control: dark button with a clean white heart/SVG. */
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite {
    border-color:#465362!important;
    background:#202a35!important;
    color:#fff!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite :where(svg,path) {
    color:#fff!important;
    stroke:#fff!important;
}

/* Back to top: visible neutral shape, white chevron, no washed-out circle. */
html[data-rh-theme="dark"] body a.backtop[aria-label="up"],
html[data-rh-theme="dark"] body #back_to_top,
html[data-rh-theme="dark"] body .back_to_top {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:46px!important;
    height:46px!important;
    border:1px solid #465362!important;
    border-radius:12px!important;
    background:#202a35!important;
    color:#fff!important;
    opacity:1!important;
    box-shadow:0 6px 16px rgba(0,0,0,.24)!important;
}
html[data-rh-theme="dark"] body a.backtop[aria-label="up"] :where(i,svg,path),
html[data-rh-theme="dark"] body :where(#back_to_top,.back_to_top) :where(i,svg,path) {color:#fff!important;fill:none;stroke:#fff!important;opacity:1!important}

/* About page: accessibility split and FAQ panels must not retain light cards. */
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-487876a1,
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-487876a1>.e-con-inner,
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-31b05204 {
    border-color:#465362!important;
    background:#171f29!important;
    color:#f4f6f8!important;
}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-d207525 h2 {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-31b05204 p {color:#bdc6d1!important}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d :where(.elementor-toggle-item,.elementor-tab-title,.elementor-tab-content) {
    border-color:#465362!important;
    background:#171f29!important;
}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-tab-title {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-tab-content {color:#bdc6d1!important}

/* Request form: all Elementor fields, including native selects. */
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-191aff5 :where(input,select,textarea,.elementor-field,.dropdown-toggle) {
    border-color:#465362!important;
    background-color:#202a35!important;
    color:#f4f6f8!important;
    -webkit-text-fill-color:#f4f6f8!important;
}
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-191aff5 :where(input,textarea)::placeholder {color:#9eabb8!important;-webkit-text-fill-color:#9eabb8!important}
html[data-rh-theme="dark"] body.rh-request-redesign .elementor-element-191aff5 option {background:#202a35!important;color:#f4f6f8!important}

/* Exclusive archive: remove every white canvas and keep filters legible. */
html[data-rh-theme="dark"] body.rh-exclusive-redesign,
html[data-rh-theme="dark"] body.rh-exclusive-redesign :where(#all_wrapper,.content_wrapper,.wpresidence_main_wrapper_class,.wpresidence-content-container-wrapper,.single_width_page,.rhep-main,.rhep-listings) {
    background-color:#0d1117!important;
    color:#f4f6f8!important;
}
html[data-rh-theme="dark"] body.rh-exclusive-redesign .rhep-toolbar__title h2 {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-exclusive-redesign .rhep-filters button {
    border-color:#465362!important;
    background:#171f29!important;
    color:#eef2f6!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body.rh-exclusive-redesign .rhep-filters button b {background:#26323f!important;color:#eef2f6!important}
html[data-rh-theme="dark"] body.rh-exclusive-redesign .rhep-filters button.is-active {border-color:#fdbd13!important;background:#30280f!important;color:#fdbd13!important}
html[data-rh-theme="dark"] body.rh-exclusive-redesign .rhep-filters button.is-active b {background:#fdbd13!important;color:#11151a!important}
html[data-rh-theme="dark"] body.rh-exclusive-redesign #rh-exclusive-properties .rhep-card {border-color:#34404d!important;background:#171f29!important;color:#f4f6f8!important}

/* Search results: only the rounded form remains white, never its outer slot. */
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-search-slot,
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-search-slot>.elementor-widget-container,
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-search-slot>.rhps-responsive-global {
    background:transparent!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-search-slot .rhps-responsive-global form {
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 12px 26px rgba(0,0,0,.24)!important;
}

/* Property cards: a restrained separation from the background, without halo. */
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.property_listing,.rhep-card,.rhes-card,.rhpp-home-card) {
    box-shadow:0 4px 12px rgba(0,0,0,.22)!important;
}
html[data-rh-theme="dark"] body.rh-theme-mode-enabled :where(.property_listing,.rhep-card,.rhes-card,.rhpp-home-card):hover {
    box-shadow:0 6px 15px rgba(0,0,0,.26)!important;
}
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-exclusive,.rhhr-listings) .listing_wrapper,
html[data-rh-theme="dark"] body.rh-home-redesign :where(.rhhr-exclusive,.rhhr-listings) .listing_wrapper:hover {
    box-shadow:none!important;
    filter:none!important;
}

/* Property page section numbers need breathing room from the viewport edge. */
@media (min-width:769px) {
    html[data-rh-theme="dark"] body .rhpp-page :where(.rhpp-summary,.rhpp-section-heading) {
        box-sizing:border-box!important;
        padding-left:20px!important;
    }
}

/* Saved properties: full dark card, readable copy and a mobile-safe heading. */
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card {
    border-color:#465362!important;
    background:#171f29!important;
    color:#f4f6f8!important;
    box-shadow:0 4px 12px rgba(0,0,0,.22)!important;
}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card .property-unit-information-wrapper {background:#171f29!important;color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card :where(h4,h4 a,.property_unit_type4_title_wrapper,.property_unit_type4_title_wrapper a) {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card :where(.listing_details,.listing_details.the_grid_view,.property_agent_wrapper,.property_agent_wrapper a) {color:#bdc6d1!important;opacity:1!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card .listing_unit_price_wrapper,
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card .listing_unit_price_wrapper * {color:#fdbd13!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card .property_listing_details>span {border-color:#465362!important;background:#222d39!important;color:#eef2f6!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card :where(.rhes-button,.unit_more_x,.icon-fav,.icon-fav-on,.icon-fav-off) {border-color:#465362!important;background:#202a35!important;color:#fff!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card :where(.property_location,.property_listing_details,.property_listing_details_v2) {border-color:#465362!important;background:#171f29!important;color:#eef2f6!important}
html[data-rh-theme="dark"] body.rh-saved-properties-redesign #rh-public-favorites .rhes-card :where(.property_listing_details,.property_listing_details_v2) :where(a,button,span) {color:#eef2f6!important;opacity:1!important}

@media (max-width:700px) {
    body.rh-saved-properties-redesign #rh-public-favorites .rhes-list-head {
        display:grid!important;
        grid-template-columns:1fr!important;
        align-items:start!important;
        gap:10px!important;
    }
    body.rh-saved-properties-redesign #rh-public-favorites .rhes-list-head>div {width:100%!important}
    body.rh-saved-properties-redesign #rh-public-favorites .rhes-list-head h2 {
        width:100%!important;
        margin:7px 0 2px!important;
        font-size:25px!important;
        line-height:1.08!important;
        white-space:normal!important;
    }
    body.rh-saved-properties-redesign #rh-public-favorites .rhes-list-head>p,
    body.rh-saved-properties-redesign #rh-public-favorites .rhes-list-head .rhwi-share-button {
        justify-self:start!important;
        width:auto!important;
        margin:0!important;
    }
}

/* v1.0.4 targeted fixes for the last high-specificity page styles. */

/* Saved header heart can be an SVG, font icon, or a nested span. */
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite,
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite * {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite::before,
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite::after {color:#fff!important}
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite svg,
html[data-rh-theme="dark"] body .rh-header-tools .rh-header-favorite svg * {
    fill:none!important;
    stroke:#fff!important;
    opacity:1!important;
    filter:none!important;
}

/* About CTA: the secondary email button must not be white-on-white. */
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-67ebd9e1 a {
    border-color:#536170!important;
    background:#202a35!important;
    color:#fff!important;
}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-67ebd9e1 a :where(span,i,svg,path) {
    color:#fff!important;
    stroke:currentColor!important;
    opacity:1!important;
}
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-74ee3ad4 a,
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-74ee3ad4 a :where(span,i,svg,path) {color:#11151a!important;opacity:1!important}

/* FAQ arrows: gold and clearly visible on the dark cards. */
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-toggle-icon,
html[data-rh-theme="dark"] body.rh-about-redesign .elementor-element-58430c3d .elementor-toggle-icon :where(i,span,svg,path) {
    color:#fdbd13!important;
    stroke:#fdbd13!important;
    opacity:1!important;
}

/* Exclusive page Elementor canvas. */
html[data-rh-theme="dark"] body.rh-exclusive-redesign :where(.elementor-41223,.elementor-element-6af61d8,.elementor-element-6af61d8>.e-con-inner,.elementor-element-e13589f,.elementor-element-e13589f>.elementor-widget-container,.wpresidence_shortcode_listings_wrapper,.rhep-toolbar) {
    background-color:#0d1117!important;
    background-image:none!important;
    color:#f4f6f8!important;
}
html[data-rh-theme="dark"] body.rh-exclusive-redesign .elementor-41223>.elementor-element,
html[data-rh-theme="dark"] body.rh-exclusive-redesign .elementor-41223>.elementor-element>.e-con-inner {background-color:#0d1117!important}

/* Keep the global search white without a separate dark keyword rectangle. */
html[data-rh-theme="dark"] body .rhps-responsive-global :where([class*="keyword"],[class*="location-field"],[class*="search-field"]) {
    border-color:#e1e5e9!important;
    background:#fff!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global :where([class*="keyword"],[class*="location-field"],[class*="search-field"]) :where(input,span,label) {
    background:#fff!important;
    color:#11151a!important;
    -webkit-text-fill-color:#11151a!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global :where([class*="keyword"],[class*="location-field"],[class*="search-field"]) input {
    border-color:transparent!important;
    box-shadow:none!important;
}

/* Property feature pictograms: clean white artwork, no black-on-dark icons. */
html[data-rh-theme="dark"] body .rhpp-page .rhpp-feature-grid span img {
    filter:brightness(0) invert(1)!important;
    opacity:.92!important;
}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-feature-grid span :where(.rhpp-icon,svg,path) {
    color:#fff!important;
    stroke:#fff!important;
    opacity:.92!important;
}

/* v1.0.5 mortgage calculator: seamless fields and a softer result panel. */
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .input-wrapper {
    overflow:hidden!important;
    border:1px solid #465362!important;
    border-radius:12px!important;
    background:#202a35!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .input-wrapper:focus-within {
    border-color:#dca400!important;
    background:#222d39!important;
    box-shadow:0 0 0 3px rgba(253,189,19,.12)!important;
}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .input-wrapper input {
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#f5f7f9!important;
    -webkit-text-fill-color:#f5f7f9!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .input-addon {
    min-width:48px!important;
    border:0!important;
    border-left:1px solid #465362!important;
    border-radius:0!important;
    background:#26323f!important;
    color:#dce4ec!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .result-card {
    border:1px solid #3b4a59!important;
    background:linear-gradient(145deg,#263442 0%,#1d2833 100%)!important;
    color:#f7f8fa!important;
    box-shadow:0 10px 24px rgba(0,0,0,.2)!important;
}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .result-card .per-month,
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .result-card .breakdown-label {color:#c7d0da!important}
html[data-rh-theme="dark"] body .rhpp-page .rhpp-financing .result-card .divider {background:rgba(253,189,19,.34)!important}

/* v1.0.6 dark/light switch inside the mobile navigation. */
@media (max-width:991px) {
    #rh-mobile-menu-2026 .rh-mobile-theme-box {
        margin-top:18px!important;
        padding-top:14px!important;
    }
    #rh-mobile-menu-2026 .rh-mobile-theme-toggle {
        display:grid!important;
        grid-template-columns:40px minmax(0,1fr) auto!important;
        align-items:center!important;
        gap:11px!important;
        width:100%!important;
        min-height:64px!important;
        padding:10px 13px!important;
        border:1px solid #d9e0e6!important;
        border-radius:11px!important;
        background:#fff!important;
        color:#19222d!important;
        text-align:left!important;
        box-shadow:none!important;
        cursor:pointer!important;
    }
    #rh-mobile-menu-2026 .rh-mobile-theme-icon {
        display:grid!important;
        place-items:center!important;
        width:40px!important;
        height:40px!important;
        border-radius:10px!important;
        background:#f2f5f7!important;
        color:#344b62!important;
    }
    #rh-mobile-menu-2026 .rh-mobile-theme-icon svg {width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
    #rh-mobile-menu-2026 .rh-mobile-theme-copy {display:flex!important;min-width:0!important;flex-direction:column!important;gap:3px!important}
    #rh-mobile-menu-2026 .rh-mobile-theme-copy strong {color:inherit!important;font-size:13px!important;line-height:1.2!important}
    #rh-mobile-menu-2026 .rh-mobile-theme-copy small {color:#718094!important;font-size:10px!important;line-height:1.3!important}
    #rh-mobile-menu-2026 .rh-mobile-theme-state {color:#b07800!important;font-size:20px!important;line-height:1!important}

    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-theme-toggle {
        border-color:#3a4653!important;
        background:#171f29!important;
        color:#f5f7f9!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-theme-icon {
        background:#26323f!important;
        color:#fdbd13!important;
    }
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-theme-copy small {color:#aeb9c5!important}
    html[data-rh-theme="dark"] body #rh-mobile-menu-2026 .rh-mobile-theme-state {color:#fdbd13!important}
}

/* v1.0.7 mobile search: the white search component also owns its fields/panels. */
html[data-rh-theme="dark"] body .rhps-responsive-global #rhps-search-form-1 :where(input[type="text"],input[type="search"],input[type="number"],select,textarea) {
    border-color:#dce2e8!important;
    background:#fff!important;
    color:#18212b!important;
    -webkit-text-fill-color:#18212b!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global #rhps-search-form-1 :where(input[type="text"],input[type="search"],input[type="number"],textarea)::placeholder {
    color:#65717e!important;
    -webkit-text-fill-color:#65717e!important;
    opacity:1!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global #rhps-search-form-1 :where(div,label):has(>input[type="text"],>input[type="search"],>input[type="number"]) {
    border-color:#dce2e8!important;
    background:#fff!important;
    color:#18212b!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global [data-rhps-panel],
html[data-rh-theme="dark"] body .rhps-responsive-global [data-rhps-panel] :where(section,fieldset,[class*="group"],[class*="block"],[class*="card"]) {
    border-color:#e0e4e8!important;
    background:#fff!important;
    color:#18212b!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global [data-rhps-panel] :where(h1,h2,h3,h4,label,span,p,strong,small) {
    color:#18212b!important;
    -webkit-text-fill-color:#18212b!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global [data-rhps-panel] :where(input[type="text"],input[type="search"],input[type="number"],select,textarea,.form-control) {
    border-color:#dce2e8!important;
    background:#f6f8fa!important;
    color:#18212b!important;
    -webkit-text-fill-color:#18212b!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-responsive-global [data-rhps-panel] :where(input[type="checkbox"],input[type="radio"]) {accent-color:#fdbd13!important}

/* v1.0.9: let WPResidence control sticky visibility/position; only remove costly motion. */
@media (min-width:1200px) {
    body .master_header_sticky,
    body .sticky_header {
        transition:none!important;
        animation:none!important;
        will-change:auto!important;
        backface-visibility:hidden!important;
    }
    body .master_header_sticky .header_wrapper,
    body .master_header_sticky .header_wrapper_inside,
    body .sticky_header .header_wrapper,
    body .sticky_header .header_wrapper_inside,
    body .header_wrapper.sticky_header,
    body .header_wrapper_inside.sticky_header {
        height:var(--wp-estate-sticky-header-height-option,90px)!important;
        min-height:var(--wp-estate-sticky-header-height-option,90px)!important;
        max-height:var(--wp-estate-sticky-header-height-option,90px)!important;
        margin-top:0!important;
        margin-bottom:0!important;
        transition:none!important;
        animation:none!important;
    }
    body :where(.master_header_sticky,.sticky_header) :where(.logo,#logo_image,.wpresidence-navigation-menu,.rh-header-tools) {
        transform:none!important;
        transition:none!important;
        animation:none!important;
    }
}

/* v1.0.9 search cleanup: remove the inner divider and the unused mobile type row. */
body .rhps .rhps-keyword-search,
body .rhps .rhps-keyword-search:focus,
body .rhps .rhps-keyword-search:focus-within,
body .rhps .rhps-keyword-search:hover {
    border-right:0!important;
    border-right-color:transparent!important;
}

/* v1.0.11: keep the keyword field, but make it a clean white surface. */
body .rhps .rhps-keyword-search,
body .rhps .rhps-keyword-search:focus,
body .rhps .rhps-keyword-search:focus-within,
body .rhps .rhps-keyword-search:hover {
    border-color:transparent!important;
    background:#fff!important;
    box-shadow:none!important;
}
body .rhps .rhps-keyword-search input,
body .rhps .rhps-keyword-search input:focus,
body .rhps .rhps-keyword-search input:focus-visible {
    border:0!important;
    outline:0!important;
    background:#fff!important;
    color:#18212b!important;
    -webkit-text-fill-color:#18212b!important;
    box-shadow:none!important;
}
body .rhps .rhps-keyword-search input::placeholder {
    color:#65717e!important;
    -webkit-text-fill-color:#65717e!important;
    opacity:1!important;
}
body .rhps .rhps-keyword-search svg {
    background:#fff!important;
    color:#18212b!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-toolbar,
html[data-rh-theme="dark"] body .rhps-responsive-global {
    background:#fff!important;
    box-shadow:none!important;
}

@media (max-width:650px) {
    body .rhps .rhps-topline::after {
        display:none!important;
        content:none!important;
    }
    body .rhps .rhps-bottomline {
        display:block!important;
        min-height:0!important;
        padding:8px!important;
    }
    body .rhps .rhps-bottomline > .rhps-types {
        display:none!important;
        width:0!important;
        height:0!important;
        min-height:0!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
    }
    body .rhps .rhps-bottomline > .rhps-actions {
        display:block!important;
        width:100%!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
    }
    body .rhps .rhps-bottomline > .rhps-actions > :not(.rhps-filter-button) {
        display:none!important;
    }
    body .rhps .rhps-bottomline .rhps-filter-button {
        width:100%!important;
        margin:0!important;
    }
}

/* The filter drawer is intentionally a light surface in both site themes. */
html[data-rh-theme="dark"] body .rhps-popover.rhps-more-panel[data-rhps-panel="more"] {
    border-color:#dfe4e9!important;
    background:#f3f5f7!important;
    color:#18212b!important;
}
html[data-rh-theme="dark"] body .rhps-popover.rhps-more-panel[data-rhps-panel="more"] :where(.rhps-filter-section,.rhps-extra-features,.rhps-mobile-location,.rhps-mobile-location-content) {
    border-color:#e0e5ea!important;
    background:#fff!important;
    color:#18212b!important;
    box-shadow:0 2px 8px rgba(17,31,49,.035)!important;
}
html[data-rh-theme="dark"] body .rhps-popover.rhps-more-panel[data-rhps-panel="more"] :where(.rhps-panel-title,.rhps-filter-label,.rhps-radio-row,label,span,strong,small,summary) {
    color:#18212b!important;
    -webkit-text-fill-color:#18212b!important;
}
html[data-rh-theme="dark"] body .rhps-popover.rhps-more-panel[data-rhps-panel="more"] :where(.rhps-minmax input,.rhps-location-search input,input[type="text"],input[type="search"],input[type="number"],select,textarea) {
    border-color:#dce2e8!important;
    background:#f6f8fa!important;
    color:#18212b!important;
    -webkit-text-fill-color:#18212b!important;
    box-shadow:none!important;
}
html[data-rh-theme="dark"] body .rhps-popover.rhps-more-panel[data-rhps-panel="more"] :where(input[type="text"],input[type="search"],input[type="number"],textarea)::placeholder {
    color:#65717e!important;
    -webkit-text-fill-color:#65717e!important;
    opacity:1!important;
}

/* v1.0.12: full-width, readable empty state on the search-results page. */
body.rh-search-results-redesign .rhas-results-shell:has(> .rhas-empty-state),
body.rh-search-results-redesign .rhas-results-row:has(.rhas-empty-state) {
    display:block!important;
}
body.rh-search-results-redesign .rhas-results-shell:has(> .rhas-empty-state) {
    width:100%!important;
}
body.rh-search-results-redesign .rhas-results-row:has(.rhas-empty-state) {
    width:min(1200px,calc(100% - 48px))!important;
    margin-right:auto!important;
    margin-left:auto!important;
}
body.rh-search-results-redesign .rhas-empty-state {
    grid-column:1 / -1!important;
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:24px!important;
    width:min(100%,900px)!important;
    max-width:900px!important;
    min-width:0!important;
    min-height:220px!important;
    margin:24px auto 72px!important;
    padding:34px 38px!important;
    border:1px solid #e2e6ea!important;
    border-radius:18px!important;
    background:#fff!important;
    box-sizing:border-box!important;
    box-shadow:0 7px 22px rgba(18,30,44,.06)!important;
}
body.rh-search-results-redesign .rhas-empty-state > * {
    min-width:0!important;
}
body.rh-search-results-redesign .rhas-empty-state__copy {
    width:auto!important;
    max-width:520px!important;
}
body.rh-search-results-redesign .rhas-empty-state__copy :where(h1,h2,h3,p) {
    width:auto!important;
    max-width:none!important;
    margin-right:0!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    white-space:normal!important;
}
body.rh-search-results-redesign .rhas-empty-state__copy h2 {
    margin-bottom:10px!important;
    font-size:clamp(24px,2.3vw,34px)!important;
    line-height:1.12!important;
}
body.rh-search-results-redesign .rhas-empty-state__copy p {
    margin:0!important;
    font-size:14px!important;
    line-height:1.65!important;
}
body.rh-search-results-redesign .rhas-empty-state :where(.rhas-empty-state__actions,.rhas-empty-actions,[class*="empty-state__action"]) {
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
    width:180px!important;
    min-width:180px!important;
}
body.rh-search-results-redesign .rhas-empty-state :where(a,button) {
    white-space:nowrap!important;
}
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-empty-state {
    border-color:#34404d!important;
    background:#171f29!important;
    color:#f4f6f8!important;
    box-shadow:0 7px 22px rgba(0,0,0,.18)!important;
}
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-empty-state__copy h2 {color:#f4f6f8!important}
html[data-rh-theme="dark"] body.rh-search-results-redesign .rhas-empty-state__copy p {color:#bdc6d1!important}

@media (max-width:700px) {
    body.rh-search-results-redesign .rhas-results-row:has(.rhas-empty-state) {
        width:calc(100% - 28px)!important;
    }
    body.rh-search-results-redesign .rhas-empty-state {
        grid-template-columns:1fr!important;
        justify-items:center!important;
        row-gap:18px!important;
        width:calc(100% - 24px)!important;
        min-height:0!important;
        margin:18px auto 48px!important;
        padding:28px 22px!important;
        text-align:center!important;
    }
    body.rh-search-results-redesign .rhas-empty-state__copy {
        max-width:440px!important;
    }
    body.rh-search-results-redesign .rhas-empty-state :where(.rhas-empty-state__actions,.rhas-empty-actions,[class*="empty-state__action"]) {
        width:100%!important;
        min-width:0!important;
    }
}

/* Prevent expensive site-wide transitions while the palette flips. */
html.rh-theme-switching *,html.rh-theme-switching *::before,html.rh-theme-switching *::after {
    transition:none!important;
    animation:none!important;
}

@media (max-width:767px) {
    .rh-theme-toggle {width:34px;height:34px}
    .rh-theme-toggle svg {width:17px;height:17px}
}

@media (prefers-reduced-motion:reduce) {
    .rh-theme-toggle {transition:none}
}
