.invista-theme-switch {
  --toggle-surface: #fffef7;
  --toggle-text: #3b3931;
  --toggle-border: #837960;
  --toggle-active: #ece5d3;
  display: inline-flex;
  flex: none;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--toggle-border);
  border-radius: 8px;
  background: var(--toggle-surface);
  color: var(--toggle-text);
}

.invista-theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 51px;
  min-height: 30px;
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.invista-theme-switch button:is([aria-pressed="true"], :hover) {
  background: var(--toggle-active);
  box-shadow: none;
}

.invista-theme-switch button:focus-visible {
  outline: 2px solid var(--toggle-text);
  outline-offset: -2px;
}

@media (min-width: 961px) {
  header[data-invista-theme-desktop] .invista-design-brand > .invista-theme-switch {
    display: none;
  }

  .header-option-layout .header-option-actions:has(.invista-theme-switch) {
    gap: clamp(6px, .65vw, 12px);
  }
}

@media (max-width: 960px) {
  header .invista-design-brand > .invista-theme-switch {
    margin-inline-start: auto;
    order: 1;
  }

  header .invista-design-brand:has(> .invista-theme-switch) > .navbar-toggle {
    order: 2;
  }

  .invista-theme-switch button {
    min-height: 44px;
    min-width: 41px;
  }
}

@media (max-width: 480px) {
  header .invista-design-brand:has(> .invista-theme-switch) {
    column-gap: 8px;
  }

  header .invista-design-brand:has(> .invista-theme-switch) > .invista-site-logo {
    min-width: 0;
  }

  header .invista-design-brand:has(> .invista-theme-switch) .invista-site-logo img {
    max-width: 100%;
    height: auto;
  }

  header .invista-design-brand > .invista-theme-switch {
    gap: 0;
    padding: 1px;
  }

  header .invista-design-brand > .invista-theme-switch button {
    min-width: 44px;
    padding-inline: 4px;
    font-size: 11px;
  }

  header .invista-design-brand > .invista-theme-switch .fa {
    display: none;
  }
}

@media (max-width: 360px) {
  .invista-theme-switch button {
    padding-inline: 5px;
  }
  .invista-theme-switch button .fa {
    display: none;
  }
}

html[data-invista-design=v1][data-invista-theme=dark]:root,
html[data-invista-theme-surface=blog][data-invista-theme=dark]:root {
  color-scheme: dark;
  --theme-anthracite: #20282f;
  --theme-surface: #292f34;
  --theme-raised: #332f29;
  --theme-cream: #ebe1c5;
  --theme-text: #c7cac8;
  --theme-gold: #d6c9ab;
  --theme-bronze: #61533b;
  --theme-bronze-hover: #746344;
  --theme-line: #5b615f;
  --theme-edge: #ada084;
  --invista-preview-canvas: var(--theme-anthracite);
  --warm-paper: var(--theme-surface);
  --warm-tint: var(--theme-raised);
  --warm-line: var(--theme-line);
  --warm-ink: var(--theme-cream);
  --warm-muted: var(--theme-text);
  --warm-accent: var(--theme-gold);
  --warm-hover: var(--theme-bronze-hover);
  --light-action: var(--theme-bronze);
  --light-action-hover: var(--theme-bronze-hover);
  --light-action-edge: var(--theme-edge);
  --invista-ink: var(--theme-cream);
  --invista-muted: var(--theme-text);
  --invista-accent: var(--theme-gold);
  --invista-line: var(--theme-line);
  --invista-soft: var(--theme-surface);
  --invista-page-background: var(--theme-anthracite);
  --invista-search-border: var(--theme-line);
  --half-map-line: var(--theme-line);
  --classic-action-fill: var(--theme-bronze);
  --classic-action-hover: var(--theme-bronze-hover);
  --classic-action-ink: #fff7e8;
  --classic-action-edge: var(--theme-edge);
  --classic-action-neutral: var(--theme-surface);
  --classic-action-neutral-hover: #343c41;
  --classic-action-neutral-ink: var(--theme-text);
  --classic-action-neutral-edge: var(--theme-line);
  background: var(--theme-anthracite);
}

html[data-invista-theme=dark] .invista-theme-switch {
  --toggle-surface: #262d32;
  --toggle-text: #ebe1c5;
  --toggle-border: #a6987b;
  --toggle-active: #61533b;
}

html[data-invista-theme=dark] :is(body, #wrapper, #home, .resultsAdverts) {
  background-color: var(--theme-anthracite);
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-design] :is(.invista-design-hero, .invista-team-strip) {
  background-color: var(--theme-anthracite);
}

html[data-invista-design=v1][data-invista-theme=dark] :is(#invista-design-home-title, #invista-category-title, .invista-design-section-heading, .invista-design-card h4 a, .invista-card-fact, .invista-footer-contact h2, .invista-footer-nav h2, .invista-team-intro h2) {
  color: var(--theme-cream);
}

html[data-invista-design=v1][data-invista-theme=dark] header .invista-design-navigation .navbar-nav a.aToHover,
html[data-invista-design=v1][data-invista-theme=dark] :is(.invista-category-total, .invista-design-view-all, .invista-design-card .code, .invista-design-card .info, .invista-design-card .price, .invista-team-intro p, .invista-footer-hotel-copy, .invista-footer-legal) {
  color: var(--theme-text);
}

html[data-invista-design=v1][data-invista-theme=dark] :is(.header-option-panel, .header-option-details[open] summary, .dropdown-menu, #buyForm .compact-home-search-price-fields, #buyForm dialog, #buyForm .compact-home-search-dialog-header, #buyForm .compact-home-search-dialog-footer, #buyForm .compact-home-search-section, #buyForm .compact-home-search-subtype-dropdown, #buyForm .compact-home-search-subtype-dropdown summary, #buyForm .compact-home-search-type-groups, #buyForm .form-control:not(button), #buyForm .compact-home-search-filter[role], #buyForm summary.compact-home-search-filter) {
  border-color: var(--theme-line);
  background-color: var(--theme-surface);
  color: var(--theme-text);
}

html[data-invista-theme=dark] #buyForm :is(.form-control, .compact-home-search-filter, button) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] #buyForm :is(.compact-home-search-field-icon, .compact-home-search-chevron, .compact-home-search-section h3, .compact-home-search-type-group legend, .compact-home-search-dialog-header h2),
html[data-invista-theme=dark] :is(.invista-design-card .agent a, .invista-design-view-all:hover) {
  color: var(--theme-gold);
}

html[data-invista-theme=dark] #buyForm .form-control::placeholder {
  opacity: 1;
  color: var(--theme-text);
}

html[data-invista-design=v1][data-invista-theme=dark] :is(.invista-design-card .adType, .invista-design-card [data-invista-exclusive]) {
  background: var(--theme-bronze);
  border-color: var(--theme-edge);
  color: #fff7e8;
}

html[data-invista-theme=dark] .invista-design-card .propImg {
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] :is(.invista-team-strip::before, .invista-team-arrow) {
  background-color: #20282f;
}

html[data-invista-theme=dark] .invista-team-strip::before {
  background: linear-gradient(180deg, #20282fdb, #20282fef);
}

html[data-invista-theme=dark] .invista-footer-hotel-media {
  isolation: auto;
}
html[data-invista-theme=dark] .invista-footer-hotel-media::after {
  --vista-fade-color: var(--theme-surface);
  background: linear-gradient(
    to bottom,
    var(--vista-fade-color) 12px,
    color-mix(in srgb, var(--vista-fade-color) 82%, transparent) 28%,
    color-mix(in srgb, var(--vista-fade-color) 42%, transparent) 43%,
    transparent 62%
  );
}
html[data-invista-design=v1] .invista-footer-hotel-logo {
  content: url("/classic-assets/vista-suites-logo-b7b74bd3.png");
  aspect-ratio: 868 / 399;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  filter: drop-shadow(0 .4px .7px #161a243b);
}

html[data-invista-design=v1][data-invista-theme=dark] .invista-footer-hotel-logo {
  filter: drop-shadow(0 -.3px .9px #f5e8cf75);
}

html[data-invista-theme=dark] .invista-footer-refresh {
  --footer-background: #292f34;
  --footer-line: #5b615f;
  --footer-ink: #ebe1c5;
  --footer-muted: #c7cac8;
}

html[data-invista-design=v1][data-invista-theme=dark] .invista-footer-refresh {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-design=v1][data-invista-theme=dark] .invista-footer-refresh :is(h2, h3, .invista-footer-phone) {
  color: var(--theme-cream);
}

html[data-invista-design=v1][data-invista-theme=dark] .invista-footer-refresh :is(.invista-footer-social a, .invista-footer-legal, .invista-footer-hotel-media) {
  border-color: var(--theme-line);
}

@supports (mask-image: url("/classic-assets/683c6a57a6756f14b42ef70384fdc4f9.png")) {
  html[data-invista-design=v1][data-invista-theme=dark] :is(.header-option-logo, .invista-site-logo > a, .invista-footer-logo) {
    position: relative;
  }

  html[data-invista-design=v1][data-invista-theme=dark] :is(.header-option-logo, .invista-site-logo > a, .invista-footer-logo) > img {
    clip-path: polygon(0 0, 100% 0, 100% 43.84%, 32.76% 43.84%, 32.76% 100%, 0 100%);
  }

  html[data-invista-design=v1][data-invista-theme=dark] :is(.header-option-logo, .invista-site-logo > a, .invista-footer-logo)::after {
    position: absolute;
    inset: 0;
    clip-path: inset(43.84% 0 0 32.76%);
    mask: url("/classic-assets/683c6a57a6756f14b42ef70384fdc4f9.png") center / 100% 100% no-repeat;
    background: var(--theme-cream);
    pointer-events: none;
    content: "";
  }

  html[data-invista-design=v1][data-invista-theme=dark] .header-option-logo::after {
    inset: 8px 12px;
  }
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services {
  --motion-cream: var(--theme-cream);
  --services-line: #b2a28370;
  background: var(--theme-anthracite);
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services :is(.motion-copy, .service-copy, .services-overview a, .services-mobile-toggle) {
  color: var(--theme-text);
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services #invista-services-heading {
  color: var(--theme-gold);
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services :is(.services-overview a[aria-current=step], .services-overview a:hover, .services-mobile-toggle) {
  color: var(--theme-gold);
  border-color: var(--theme-edge);
  background: var(--theme-surface);
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services .service-link {
  color: #fff7e8;
  border-color: var(--theme-edge);
  background: var(--theme-bronze);
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services .service-link:is(:hover, :focus-visible) {
  background: var(--theme-bronze-hover);
}

html[data-invista-design=v1][data-invista-theme=dark] :is(#invista-category-title, .invista-design-section-heading, .invista-design-section-heading span),
html[data-invista-design=v1][data-invista-theme=dark] #home [data-invista-widget=recent] > section > div > h2 {
  color: var(--theme-cream) !important;
}

html[data-invista-design=v1][data-invista-theme=dark] :is(.invista-category-total, .invista-design-card .adDetails .code, .invista-design-card .invista-card-agent span) {
  color: var(--theme-text) !important;
}

html[data-invista-design=v1][data-invista-theme=dark] footer.invista-footer-refresh {
  background-color: var(--theme-surface) !important;
}

html[data-invista-design=v1][data-invista-theme=dark] .invista-footer-social a {
  background-color: var(--theme-anthracite) !important;
  color: var(--theme-gold) !important;
}

html[data-invista-design=v1][data-invista-theme=dark] .invista-footer-social a:hover {
  background-color: var(--theme-bronze) !important;
  color: var(--theme-cream) !important;
}

html[data-invista-design=v1][data-invista-theme=dark] #home > #invista-services {
  --sidebar-bg: var(--theme-anthracite);
  --sidebar-ink: var(--theme-cream);
  --sidebar-title: var(--theme-gold);
  --sidebar-muted: var(--theme-text);
  --sidebar-active: var(--theme-surface);
  --sidebar-line: var(--services-line);
  --sidebar-marker: var(--theme-edge);
}

@supports (mask-image: url("/classic-assets/683c6a57a6756f14b42ef70384fdc4f9.png")) {
  html[data-invista-theme=dark][data-header-preview=photo] .header-option-layout[data-option=photo] .header-option-logo > img {
    clip-path: polygon(0 0, 100% 0, 100% 43.84%, 32.76% 43.84%, 32.76% 100%, 0 100%) !important;
  }

  html[data-invista-theme=dark][data-header-preview=photo] .header-option-layout[data-option=photo] .header-option-logo::after {
    content: "" !important;
  }
}

html[data-invista-design=v1][data-invista-design-page=home] .invista-design-photo > .invista-night-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
  pointer-events: none;
  opacity: 0;
}

/* Map the 16:9 day crop to the same portion (466, 1 to 1733, 714) of the wide night frame. */
@supports (width: 1cqw) {
  @media (width <= 2000px) {
    html[data-invista-design=v1][data-invista-design-page=home] .invista-design-photo {
      container-type: size;
    }

    html[data-invista-design=v1][data-invista-design-page=home] .invista-design-photo > .invista-night-hero {
      --day-frame-height: 56.25cqw;
      --day-rendered-height: max(100cqh, var(--day-frame-height));
      --day-position-y: .48;
      --night-rendered-height: calc(var(--day-rendered-height) * 1.0157138);
      inset: auto;
      top: calc(min(0px, (100cqh - var(--day-frame-height)) * var(--day-position-y)) - var(--day-rendered-height) * .0014029);
      left: calc(50% - var(--day-rendered-height) * 1.5426487);
      width: calc(var(--night-rendered-height) * 3);
      height: var(--night-rendered-height);
      object-fit: fill;
    }
  }

  @media (768px <= width <= 2000px) {
    html[data-invista-design=v1][data-invista-design-page=home] .invista-design-photo > .invista-night-hero {
      --day-position-y: .31;
    }
  }
}

html[data-invista-theme=dark][data-invista-night-ready] .invista-design-photo > .invista-night-hero {
  opacity: 1;
}

html[data-invista-design=v1][data-invista-design-page=home] .invista-design-photo::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, #20282f73, #20282f40 45%, #20282fa8);
  opacity: 0;
  pointer-events: none;
  content: "";
}

html[data-invista-design-page=home][data-invista-theme=dark]:not([data-invista-night-ready]) .invista-design-photo::before {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-invista-theme-interacted] .invista-design-photo > .invista-night-hero,
  html[data-invista-theme-interacted] .invista-design-photo::before {
    transition: opacity 2.5s cubic-bezier(.37, 0, .26, 1);
  }

  html[data-invista-theme-interacted] :is(body, .invista-design-hero, header .light-bg, .invista-search-panel, .invista-classic-search, .invista-design-card, .invista-design-card .adDetails, #invista-services, .invista-footer-refresh, .invista-theme-switch, .invista-theme-switch button) {
    transition-property: background-color, color, border-color;
    transition-duration: 260ms;
    transition-timing-function: ease;
  }

  html[data-invista-theme-interacted] #invista-design-home-title {
    transition: color 260ms ease;
  }
}

/* Shared header and live controls. */
html[data-invista-theme=dark] .compact-home-search-panel {
  --compact-home-search-ink: var(--theme-text);
  --compact-home-search-line: var(--theme-line);
  --compact-home-search-primary: var(--theme-bronze);
  --compact-home-search-hover: var(--theme-bronze-hover);
}

html[data-invista-theme=dark] .compact-home-search-panel :is(
  .compact-home-search-modes-row .invista-search-modes,
  .compact-home-search-modes-row .invista-search-modes button,
  .compact-home-search-code,
  .compact-home-search-code input[name=code],
  .compact-home-search-code button[type=submit],
  #buyForm .compact-home-search-transaction > li > a,
  #buyForm .compact-home-search-region .select2-container .select2-selection--multiple,
  #invista-ai-search .compact-home-ai-form textarea
) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] .compact-home-search-panel :is(
  .compact-home-search-modes-row .invista-search-modes button[aria-pressed=true],
  .compact-home-search-modes-row .invista-search-modes button:hover,
  .compact-home-search-code button[type=submit]:hover
) {
  background-color: var(--theme-bronze);
  color: #fff7e8;
}

html[data-invista-theme=dark] .compact-home-search-panel :is(input, textarea)::placeholder {
  color: var(--theme-text);
  opacity: 1;
}

html[data-invista-theme=dark] .compact-home-search-panel :is(.compact-home-search-link, #invista-ai-search .compact-home-ai-form small) {
  color: var(--theme-text);
}

@media (max-width: 960px) {
  html[data-invista-design=v1] .invista-design-navigation #mh2 {
    padding: 0 !important;
  }

  html[data-invista-design=v1] .invista-design-navigation #mh2 > div,
  html[data-invista-design=v1] .invista-design-navigation #mh2 > a.d-styleli > .fa {
    display: none !important;
  }

  html[data-invista-design=v1] .invista-design-navigation #mh2 > a.d-styleli {
    display: flex !important;
    align-items: center;
    top: auto !important;
    bottom: auto;
    width: 100%;
    min-height: 50px;
    height: auto !important;
    padding: 0 12px;
    font-size: 0 !important;
    line-height: 1;
    color: #2e2d28 !important;
  }

  html[data-invista-design=v1] .invista-design-navigation #mh2 > a.d-styleli > span {
    margin: 0 !important;
    padding: 0;
    font-size: 15px;
    line-height: 1.3;
    color: inherit;
  }

  html[data-invista-design=v1] .invista-design-navigation #mh2 > a.d-styleli::after {
    content: "";
    position: static;
    display: block !important;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-inline-start: auto;
    background: transparent;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }

  html[data-invista-design=v1] .invista-design-navigation #mh2 > a.d-styleli[aria-expanded=true]::after {
    transform: translateY(2px) rotate(225deg);
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  html[data-invista-design=v1][data-invista-theme=dark] .invista-design-navigation #mh2 > a.d-styleli {
    color: var(--theme-cream) !important;
  }
}
html[data-invista-theme=dark] :is(header, header .light-bg, header .invista-design-navigation, header #navbar-collapse, header .dropdown-menu) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(header .invista-design-utility, header .invista-design-utility a, header .invista-design-phone, header .red.text-right, header .header-option-phone) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] header .invista-design-utility {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] :is(header .header-option-row, header .header-option-row a, header .header-option-row summary, header #navbar-collapse a, header .dropdown-menu a) {
  color: var(--theme-cream);
}

html[data-invista-theme=dark] header #navbar-collapse .navbar-nav > li > a span {
  color: inherit;
}

html[data-invista-theme=dark] header .header-option-layout:not([data-option=photo]) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] :is(header .header-option-panel, header .dropdown-menu) :is(a:hover, a:focus-visible) {
  background-color: var(--theme-raised);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(.select2-dropdown, .select2-container--default .select2-selection--multiple, .select2-container--default .select2-selection--single, .select2-search__field) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.select2-container--default .select2-selection__rendered, .select2-container--default .select2-results__option) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.select2-container--default .select2-results__option--highlighted, .select2-container--default .select2-results__option--selected, .select2-container--default .select2-selection__choice) {
  background-color: var(--theme-bronze);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(.invista-classic-search .form-control, .invista-classic-search .select2-container--default .select2-selection--multiple) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.invista-classic-search .SumoSelect > .CaptionCont, .invista-classic-search .SumoSelect > .optWrapper, .invista-classic-search .ms-drop) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

/* Results, property details, and the property enquiry dialogs. */
html[data-invista-theme=dark][data-invista-design-page=results] {
  --results-filter-ink: var(--theme-text);
  --results-filter-blue: var(--theme-gold);
  --results-filter-hover: var(--theme-cream);
  --results-filter-line: var(--theme-line);
  --results-filter-surface: var(--theme-surface);
  --half-map-line: var(--theme-line);
}

html[data-invista-theme=dark] :is(#results_filters_desc, #results_filters_desc #filters_bar, #results_filters_desc form[data-half-map-search], .results-filter-panel, .half-map-mode, #half-map-map, .half-map-map-status, #c_Modal .c_modal_header, #c_Modal .c_modal_body, #property-summary, .invista-design-property-section, .detPage .rightCol > .info, .detPage .leftCol .box > h4) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(#filters_bar, .half-map-mode, #c_Modal) :is(.form-control:not([type=submit]), .CaptionCont, .select2-selection, summary, .SumoSelect > .optWrapper) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(#results_filters_desc #c_modal_Btn, .half-map-mode button, .half-map-map-status > button, .mobile-results-chip, .mobile-results-chip:hover, #filters_bar .select2-selection__choice) {
  background-color: var(--theme-raised);
  border-color: var(--theme-line);
  color: var(--theme-gold);
}

html[data-invista-theme=dark] :is(#results_filters_desc .more_filters, #results_filters_desc .results-filter-done) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(#results_filters_desc .results-filter-panel legend, #results_filters_desc .results-save-search a) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.advs .adv, .advs .adDetails, .advs .adDetails .price, #results .sample-cards .adv, .invista-v1-shortcuts a) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.advs .adDetails .current, .advs .adDetails h4 a, .invista-card-price, .invista-card-fact-value, #results h2, #results [data-mobile-result-count], #property-summary h1, #property-summary .blue, .detPage .leftCol .box .blue, .detPage .rightCol .info h4) {
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(.advs .adDetails .code, .invista-card-agent span, .detPage .leftCol .box .options, .half-map-field-label) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.advs .adv > .adType, #results .sample-cards .adv > .adType) {
  background-color: var(--theme-bronze) !important;
  color: #fff7e8;
}

html[data-invista-theme=dark] :is(.ip-mosaic, .ip-gallery .ip-tile, #results .sample-cards .propImg, .advs .propImg) {
  background-color: var(--theme-anthracite);
}

/* Contact, services, and legal pages. */
html[data-invista-theme=dark] :is(.invista-terms, .assignment-page, #mortgage-contact, .classic-contact-office, .classic-contact-message, .classic-contact-gallery) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is(.invista-terms .invista-terms-header, .invista-terms-nav, .invista-terms-sections > section, .classic-contact-message, .classic-office-gallery__stage, .assignment-page, .assignment-page .assignment-benefit, .assignment-form-slot, #page > #mortgage-contact, #mortgage-contact .invista-mortgage-contact-form) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] :is(.classic-contact-office, .classic-contact-message, .classic-contact-gallery, .assignment-page, .invista-terms, .invista-design-property-section, #mortgage-contact) :is(h1, h2, h3, strong, dt, legend) {
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(.classic-contact-office, .classic-contact-message, .invista-terms, .assignment-page, #mortgage-contact) :is(p, label, address, dd, time) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] .assignment-page .assignment-form-slot fieldset label {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] .assignment-page .assignment-form-slot fieldset label:has(input:checked) {
  background-color: var(--theme-bronze);
  border-color: var(--theme-edge);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(.invista-terms, .classic-contact-office, .classic-contact-message, .assignment-page, #mortgage-contact) a {
  color: var(--theme-gold);
}

html[data-invista-theme=dark] :is(#page [data-invista-widget="form"], .assignment-form-slot, #mortgage-contact) :is(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"]), select, textarea) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is(#page [data-invista-widget="form"], .assignment-form-slot, #mortgage-contact, #filters_bar) :is(input, textarea)::placeholder {
  opacity: 1;
  color: var(--theme-text);
}

/* Preserve contrast on live filter widgets whose enhanced styles set opaque white surfaces. */
html[data-invista-theme=dark][data-invista-results-preview=half-map][data-invista-results-filters] #results_filters_desc #filters_bar :is(
  select.form-control:not(.select2-hidden-accessible),
  .select2-container--default .select2-selection--multiple,
  .results-filter-dropdown > summary,
  .results-filter-panel,
  .results-filter-panel .form-control,
  [data-mobile-save-search]
) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] #filters_bar .select2-search__field::placeholder,
html[data-invista-theme=dark] .compact-home-search-panel :is(.compact-home-search-code input[name=code], #buyForm .select2-search__field)::placeholder {
  color: var(--theme-text) !important;
  opacity: 1;
}

html[data-invista-theme=dark] .compact-home-search-modes-row .invista-search-modes button[aria-pressed=true] {
  background-color: var(--theme-bronze) !important;
  color: #fff7e8 !important;
}

html[data-invista-theme=dark][data-invista-results-preview=half-map][data-invista-results-filters] #filters_bar [data-mobile-save-search]:is(:hover, [aria-pressed=true]) {
  background-color: var(--theme-bronze);
  border-color: var(--theme-edge);
  color: var(--theme-cream);
}

/* Reuse the night photograph in the Contact feature and keep the day image as a fallback. */
.contact-location__feature[data-invista-day-href] {
  position: relative;
  isolation: isolate;
}

.contact-location__feature > .invista-night-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  pointer-events: none;
  opacity: 0;
}

@supports (width: 1cqw) {
  .contact-location__feature[data-invista-day-href] {
    container-type: size;
  }

  .contact-location__feature > .invista-night-hero {
    --day-frame-height: 56.25cqw;
    --day-rendered-height: max(100cqh, var(--day-frame-height));
    --night-rendered-height: calc(var(--day-rendered-height) * 1.0157138);
    inset: auto;
    top: calc(min(0px, (100cqh - var(--day-frame-height)) * .5) - var(--day-rendered-height) * .0014029);
    left: calc(50% - var(--day-rendered-height) * 1.5426487);
    width: calc(var(--night-rendered-height) * 3);
    height: var(--night-rendered-height);
    object-fit: fill;
  }
}

html[data-invista-theme=dark][data-invista-night-ready] .contact-location__feature > .invista-night-hero {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-invista-theme-interacted] .contact-location__feature > .invista-night-hero {
    transition: opacity 2.5s cubic-bezier(.37, 0, .26, 1);
  }
}

/* Search dialogs use separate controls from the closed search bars. */
html[data-invista-theme=dark] .compact-home-search-panel #buyForm .compact-home-search-details :is(
  .compact-home-search-type-group,
  .compact-home-search-options label,
  .compact-home-search-slider,
  .compact-home-search-paired label:has([data-year-new-build]),
  #buyextra .checkbox label,
  [data-search-clear],
  [data-search-close]
) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] .compact-home-search-panel #buyForm .compact-home-search-details :is(
  .compact-home-search-options label:hover,
  .compact-home-search-options label:has(input:checked),
  .compact-home-search-paired label:has([data-year-new-build]:checked),
  #buyextra .checkbox label:hover,
  #buyextra .checkbox label:has(input:checked),
  [data-search-clear]:hover,
  [data-search-close]:hover
) {
  background-color: var(--theme-raised);
  border-color: var(--theme-edge);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] .compact-home-search-details .compact-home-search-ticks,
html[data-invista-theme=dark] #invista-ai-search .compact-home-ai-form label {
  color: var(--theme-text);
}

html[data-invista-theme=dark] #invista-ai-search .compact-home-ai-form textarea::placeholder,
html[data-invista-theme=dark] #c_Modal .results-advanced-group .form-control::placeholder {
  color: var(--theme-text);
  opacity: 1;
}

html[data-invista-theme=dark][data-invista-results-preview=half-map][data-invista-results-filters] #c_Modal :is(
  .c_modal_content, .results-advanced-group, .half-map-extra-field
) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-results-preview=half-map][data-invista-results-filters] #c_Modal .c_close:hover {
  background-color: var(--theme-raised);
}

html[data-invista-theme=dark] .compact-home-search-panel #buyForm .compact-home-search-dialog-footer .compact-home-search-dialog-submit,
html[data-invista-theme=dark][data-invista-results-preview=half-map][data-invista-results-filters] :is(
  #filters_bar .results-filter-done, #c_Modal .half-map-show-results
) {
  background-color: var(--theme-bronze);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] .compact-home-search-panel #buyForm .compact-home-search-dialog-footer .compact-home-search-dialog-submit:hover,
html[data-invista-theme=dark][data-invista-results-preview=half-map][data-invista-results-filters] :is(
  #filters_bar .results-filter-done, #c_Modal .half-map-show-results
):hover {
  background-color: var(--theme-bronze-hover);
  color: #fff;
}

html[data-invista-theme=dark][data-invista-mobile-results-preview] #results_filters_desc .SumoSelect > :is(.CaptionCont, .optWrapper) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-mobile-results-preview] #results_filters_desc .SumoSelect .opt:hover {
  background-color: var(--theme-raised);
  color: var(--theme-cream);
}

@media (max-width: 560px) {
  /* The compact results header already reserves its first row for the utility links. */
  html[data-invista-mobile-results-preview] header .invista-design-brand:has(> .invista-theme-switch) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(58px, auto) auto;
    row-gap: 0;
  }

  html[data-invista-mobile-results-preview] header .invista-design-brand > .invista-site-logo {
    grid-area: 1 / 1;
  }

  html[data-invista-mobile-results-preview] header .invista-design-brand > .navbar-toggle {
    grid-area: 1 / 2;
  }

  html[data-invista-mobile-results-preview] header .invista-design-brand > .invista-theme-switch {
    grid-area: 2 / 1 / 3 / 3;
    justify-self: end;
    margin: 0 0 6px;
  }

  html[data-invista-theme=dark][data-invista-mobile-results-preview] header > .invista-design-utility {
    background: transparent;
  }

  html[data-invista-theme=dark][data-invista-mobile-results-preview] header .invista-design-utility :is(a[href^="/favorites.php"] .fa-heart, .langs > button) {
    color: var(--theme-cream) !important;
  }

  html[data-invista-theme=dark][data-invista-mobile-results-preview] #results .invista-mobile-card-summary,
  html[data-invista-theme=dark][data-invista-mobile-results-preview][data-invista-design] #results .invista-card-actions button {
    color: var(--theme-cream);
  }

  html[data-invista-theme=dark][data-invista-mobile-results-preview] #results .invista-mobile-card-summary > :is(p:not(.invista-mobile-card-price), .invista-mobile-card-facts) {
    color: var(--theme-text);
  }

  html[data-invista-theme=dark][data-invista-mobile-results-preview] #results .invista-card-actions button[aria-pressed=true] {
    background-color: var(--theme-bronze);
    color: var(--theme-cream);
  }

  html[data-invista-theme=dark][data-invista-mobile-results-preview] #results .sample-cards .adDetails > :is(.price, .invista-card-actions) {
    border-color: var(--theme-line);
  }
}

html[data-invista-theme=dark] #c_Modal #results-advanced-code::placeholder,
html[data-invista-theme=dark] #invista-ai-search .compact-home-ai-form textarea::placeholder {
  color: var(--theme-text) !important;
  opacity: 1;
}

html[data-invista-theme=dark] #c_Modal .half-map-show-results {
  --classic-action-neutral: var(--theme-bronze);
  --classic-action-neutral-hover: var(--theme-bronze-hover);
  --classic-action-neutral-ink: var(--theme-cream);
  --classic-action-neutral-edge: var(--theme-edge);
}

html[data-invista-theme=dark] #results .invista-page-list :is(li > a, .invista-page-current) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] #results .invista-page-list :is(li > a:hover, .invista-page-current) {
  background-color: var(--theme-bronze);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] #results .invista-card-actions button:not([aria-pressed=true]) {
  color: var(--theme-cream);
}

@media (max-width: 560px) {
  html[data-invista-theme=dark][data-invista-mobile-results-preview] header > .invista-design-utility {
    background-color: transparent !important;
  }
}

/* Property details and gallery. */
html[data-invista-design=v1][data-invista-theme=dark] :is(
  #property-summary .sharelinks :is(a, .invista-property-save, .invista-property-print, .invista-property-summary-compare button),
  .adv:not(#page.invista-favorites *) :is(.invista-card-tools > .set-fav, .invista-card-compare button)
):not(:disabled, [aria-disabled=true]) {
  background-color: transparent;
  color: var(--theme-cream);

  &:is(:hover, :focus-visible) {
    background-color: var(--theme-raised);
  }

  &[aria-pressed=true] {
    --classic-action-neutral: var(--theme-bronze);
    --classic-action-neutral-hover: var(--theme-bronze-hover);
    --classic-action-neutral-ink: #fff7e8;
    --classic-action-neutral-edge: var(--theme-edge);
    --classic-action-edge: var(--theme-edge);
    background-color: var(--classic-action-neutral);
    color: var(--classic-action-neutral-ink);
    box-shadow: inset 0 -2px var(--theme-edge);
  }

  &[aria-pressed=true]:is(:hover, :focus-visible) {
    background-color: var(--classic-action-neutral-hover);
  }

  &.set-fav[aria-pressed=true] .fa-heart {
    color: #ffb6ab !important;
  }

  &:focus-visible {
    outline: 3px solid var(--theme-edge) !important;
    outline-offset: -3px !important;
  }
}

html[data-invista-theme=dark] #page.detPage #characteristics .itemBrd :is(dt, dd) {
  color: var(--theme-cream);
}
html[data-invista-theme=dark] #page.detPage #characteristics .itemBrd {
  border-color: var(--theme-line);
}
html[data-invista-theme=dark] #property-summary :is(.invista-property-summary-location, .price small),
html[data-invista-theme=dark] #similar > h3 {
  color: var(--theme-text);
}
html[data-invista-theme=dark] #page.detPage .invista-property-description-more > summary,
html[data-invista-theme=dark] .ip-mosaic .ip-all {
  background: var(--theme-surface);
  color: var(--theme-cream);
  border-color: var(--theme-line);
}
html[data-invista-theme=dark] #page.detPage .invista-property-description-more > summary:is(:hover, :focus-visible),
html[data-invista-theme=dark] #page.detPage .invista-property-description-more[open] > summary,
html[data-invista-theme=dark] .ip-mosaic .ip-all:is(:hover, :focus-visible) {
  background: var(--theme-bronze);
  color: #fff7e8;
  border-color: var(--theme-edge);
}

/* Property contact and visit forms. */
html[data-invista-theme=dark] [data-invista-widget=property-contact] > section {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
  box-shadow: none;
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] > section > :is([role=tablist], div:has(> div > a[href^="tel:"])) {
  background: var(--theme-anthracite);
  border-color: var(--theme-line);
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] > section > div:has(> div > a[href^="tel:"]) > div > span,
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] :is(p, label, legend, small) {
  color: var(--theme-text);
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] > section :is(strong, a, a .fa),
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] button[aria-expanded] {
  color: var(--theme-cream);
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] :is(input:not([type=hidden], [type=checkbox], [type=radio]), select, textarea),
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] button[aria-pressed],
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tablist] > button,
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] :is([role=status], [role=alert]) {
  background: var(--theme-anthracite);
  border-color: var(--theme-line);
  color: var(--theme-text);
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] [aria-invalid=true] {
  border-color: #f0a79b;
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] :is([role=alert], [id$="-error"]) {
  color: #f0a79b;
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] :is(input, textarea)::placeholder {
  color: var(--theme-text);
  opacity: 1;
}
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tabpanel] :is(button[aria-pressed=true], button[type=submit]),
html[data-invista-theme=dark] [data-invista-widget=property-contact] [role=tablist] > button[aria-selected=true],
html[data-invista-theme=dark] [data-invista-widget=property-contact] :is([role=tablist] > button, button[aria-pressed]):hover {
  background: var(--theme-bronze);
  color: #fff7e8;
  border-color: var(--theme-edge);
}

/* Embedded mortgage calculator. Keep brand artwork on its own light tiles. */
html[data-invista-theme=dark] #mortgage > h2,
html[data-invista-theme=dark] #mortgage [data-invista-widget=mortgage] > div {
  background: var(--theme-surface);
  color: var(--theme-cream);
  border-color: var(--theme-line);
  box-shadow: none;
}
html[data-invista-theme=dark] #mortgage :is([role=status], dl, [id$="-settings"], [id$="-equity-info"], [data-field] > span, input:not([type=hidden]), button[aria-expanded]) {
  background: var(--theme-anthracite);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html[data-invista-theme=dark] #mortgage :is([role=status] :is(p, span), [data-field] strong, dl :is(dt, dd), [id$="-settings"] label) {
  color: var(--theme-cream);
}
html[data-invista-theme=dark] #mortgage :is(p, [data-field] > div span, [id$="-hint"]) {
  color: var(--theme-text);
}
html[data-invista-theme=dark] #mortgage :is([data-field], [id$="-settings"] > div:first-child, [data-invista-widget=mortgage] > div > div:last-child) {
  border-color: var(--theme-line);
}
html[data-invista-theme=dark] #mortgage input[aria-invalid=true] {
  border-color: #f0a79b;
}
html[data-invista-theme=dark] #mortgage [aria-live=polite]:is([id$="-hint"]) {
  color: #f0a79b;
}
html[data-invista-theme=dark] #mortgage :is([id$="-equity-info"] a, button[aria-expanded]:hover) {
  color: var(--theme-cream);
}
html[data-invista-theme=dark] #mortgage a[href*="topic=mortgage"] {
  background: var(--theme-bronze);
  color: #fff7e8;
  border-color: var(--theme-edge);
}
html[data-invista-theme=dark] #mortgage a[href*="topic=mortgage"]:is(:hover, :focus-visible) {
  background: var(--theme-bronze-hover);
}

/* Secondary property and calculator details. */
html[data-invista-design=v1][data-invista-theme=dark] .detPage [data-invista-widget=property-contact] [role=tabpanel] :is(input, textarea)::placeholder {
  color: var(--theme-text) !important;
  opacity: 1;
}
html[data-invista-design=v1][data-invista-theme=dark] .detPage [data-invista-widget=property-contact] [role=tablist] > button[aria-selected=true],
html[data-invista-design=v1][data-invista-theme=dark] .detPage [data-invista-widget=property-contact] [role=tabpanel] button[aria-pressed=true] {
  background-color: var(--theme-bronze);
  color: #fff7e8;
  border-color: var(--theme-edge);
}
html[data-invista-theme=dark] #mortgage > h2 .fa {
  color: var(--theme-gold);
}
html[data-invista-theme=dark] .detPage .reference-map,
html[data-invista-theme=dark] .detPage .reference-map .leaflet-container {
  background-color: var(--theme-anthracite);
}
html[data-invista-theme=dark] .results-filter-panel .results-filter-done {
  background-color: var(--theme-bronze);
  color: #fff7e8;
  border-color: var(--theme-edge);
}

@media (min-width: 751px) {
  /* Clip horizontal overflow without trapping the sticky summary inside body. */
  html[data-invista-design-page=request] > body {
    overflow-x: clip;
  }

  .invista-request-page [data-invista-widget="form"] aside {
    position: sticky;
    inset-block-start: 20px;
    max-block-size: calc(100dvh - 40px);
    overflow-y: auto;
  }
}

/* Request is a React form with local tokens and explicit light surfaces. */
html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] > div {
  color-scheme: dark;
  --request-ink: var(--theme-cream);
  --request-muted: var(--theme-text);
  --request-accent: var(--theme-bronze);
  --request-accent-dark: var(--theme-cream);
  --request-line: var(--theme-line);
  --request-soft: var(--theme-raised);
  --invista-brand-soft: var(--theme-raised);
  background: var(--theme-anthracite);
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] > div :is(section:has(> form), aside, input:not([type=checkbox], [type=radio]), select, textarea, button[type=button]:not([aria-pressed])) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-cream);
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] :is(input, textarea)::placeholder {
  color: var(--theme-text);
  opacity: 1;
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] :is(fieldset label:has(input), button[aria-pressed]) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] :is(fieldset label:has(input:checked), button[aria-pressed=true]) {
  background-color: var(--theme-raised);
  border-color: var(--theme-edge);
  color: var(--theme-cream);
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] li:not([aria-current=step]) > span {
  background: var(--theme-raised);
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] :is(button[type=submit], li[aria-current=step] > span) {
  background-color: var(--theme-bronze);
  color: #fff7e8;
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] button[type=submit]:hover {
  background-color: var(--theme-bronze-hover);
}

html[data-invista-theme=dark][data-invista-design-page=request] .invista-request-page [data-invista-widget="form"] [role=alert] {
  color: #ffb8af;
  background-color: #482f2d;
}

html[data-invista-theme=dark][data-invista-design-page=career] #page.career-layout {
  background-color: var(--theme-anthracite);
}

html[data-invista-theme=dark][data-invista-design-page=career] #page .career-card {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-design-page=career] #page .career-card h2,
html[data-invista-theme=dark][data-invista-design-page=career] #page .career-card label {
  color: var(--theme-cream);
}

html[data-invista-theme=dark][data-invista-design-page=career] #page #career-application form {
  color: var(--theme-text);
}

html[data-invista-theme=dark][data-invista-design-page=career] #page .career-hero .career-action {
  background-color: var(--theme-bronze);
  color: #fff7e8;
}

html[data-invista-theme=dark][data-invista-design-page=career] #page .career-hero .career-action:is(:hover, :focus) {
  background-color: var(--theme-bronze-hover);
}

html[data-invista-theme=dark] #page .assignment-page .assignment-benefit h3,
html[data-invista-theme=dark][data-invista-design-page=company] #page .mainCont .invista-heading-as-h2 {
  color: var(--theme-cream);
}

html[data-invista-theme=dark][data-invista-design-page=company] #page #office-gallery h3 > span {
  background-color: var(--theme-anthracite);
  color: var(--theme-cream);
}

/* Broker profile, mortgage, and utility pages use independent surfaces. */
html[data-invista-theme=dark] .broker-profile :is(.broker-hero, .broker-contact-link, .broker-filters, .broker-stats dl > div, .broker-filters input, .broker-filters select) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] .broker-profile :is(.broker-intro h1, .broker-stats h2, .broker-stats dd, .broker-listings-heading h2, .broker-contact-link strong) {
  color: var(--theme-cream);
}

html[data-invista-theme=dark] .broker-profile :is(.broker-role, .broker-office, .broker-stats dt, .broker-contact-link small, .broker-listings-heading span, .broker-empty, .broker-filter-field, .broker-filter-range legend) {
  color: var(--theme-text);
}

html[data-invista-theme=dark] .broker-profile .broker-contact-link:is(:hover, :focus-visible) {
  border-color: var(--theme-edge);
  color: var(--theme-gold);
}

html[data-invista-theme=dark] .broker-profile .broker-stats {
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] .broker-profile .broker-filters input::placeholder {
  color: var(--theme-text);
  opacity: 1;
}

html[data-invista-theme=dark] #page.invista-mortgage-service {
  background-color: var(--theme-anthracite);
  color: var(--theme-text);
}

html[data-invista-theme=dark] #page.invista-mortgage-service .pm-hero {
  --pm-dark: var(--theme-anthracite);
  background: radial-gradient(ellipse at 90% 100%, var(--theme-surface), transparent 66%), var(--pm-dark);
}

html[data-invista-theme=dark] #mortgage-contact .invista-mortgage-contact-intro {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
}

html[data-invista-theme=dark] #mortgage-contact .invista-mortgage-contact-form :is(label, legend) {
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is([data-invista-widget=comparison], [data-invista-widget=recent]) div:has(> .button-link):has(> :is(.fa-balance-scale, .fa-history)),
html[data-invista-theme=dark] [data-invista-widget=saved-search-manager] :is(form, [data-saved-search-card], div > section, dialog),
html[data-invista-theme=dark] dialog:has(> a[href^="/saved-searches.php"]) {
  background-color: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}

html[data-invista-theme=dark] :is([data-invista-widget=saved-search-manager], dialog:has(> a[href^="/saved-searches.php"])) :is(h2, h3, label) {
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is([data-invista-widget=saved-search-manager], dialog:has(> a[href^="/saved-searches.php"])) input:not([type=checkbox]) {
  background-color: var(--theme-anthracite);
  border-color: var(--theme-line);
  color: var(--theme-cream);
}

html[data-invista-theme=dark] :is([data-invista-widget=comparison], [data-invista-widget=recent]) div:has(> :is(.fa-balance-scale, .fa-history)) > .button-link,
html[data-invista-theme=dark] :is([data-invista-widget=saved-search-manager], dialog:has(> a[href^="/saved-searches.php"])) button[type=submit] {
  background-color: var(--theme-bronze);
  border-color: var(--theme-edge);
  color: #fff7e8;
}

html[data-invista-theme=dark] :is([data-invista-widget=saved-search-manager], dialog:has(> a[href^="/saved-searches.php"])) :is(a, button[type=button]) {
  color: var(--theme-gold);
}

html[data-invista-theme=dark] :is([data-invista-widget=saved-search-manager], dialog:has(> a[href^="/saved-searches.php"])) button[type=button]:not([aria-label]) {
  background-color: var(--theme-raised);
  border-color: var(--theme-line);
}

/* Standalone article and guide layouts use their own colour tokens. */
html[data-invista-theme-surface=blog][data-invista-theme=dark] {
  color-scheme: dark;
  --background: var(--theme-anthracite);
  --blog-surface: var(--theme-surface);
  --blog-raised: var(--classic-action-neutral-hover);
  --ink: var(--theme-cream);
  --muted: var(--theme-text);
  --rust: var(--theme-gold);
  --warm: var(--theme-edge);
  --line: var(--theme-line);
  --blog-action: var(--theme-bronze);
  --blog-action-hover: var(--theme-bronze-hover);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(.site-header, .site-footer, .hero-guides a, .search-form, .filter-bar select, .guide-card, .mobile-menu nav, .article-body, .article-action, .article-toc, .article-related a, .skip-link) {
  background-color: var(--blog-surface);
  border-color: var(--line);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] .hero {
  background: linear-gradient(150deg, var(--background) 20%, var(--blog-surface) 100%);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(.site-header, .site-footer) .brand {
  filter: brightness(0) invert(91%) sepia(18%);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(.hero-guides a, .intent-nav a, .questions a, .quiet-button, .guide-card, .guide-pagination a, .mobile-menu nav a, .article-related a):hover,
html[data-invista-theme-surface=blog][data-invista-theme=dark] .guide-list > li:target .guide-card {
  background-color: var(--blog-raised);
  border-color: var(--line);
  color: var(--ink);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(.primary-button, .guide-pagination [aria-current="page"], .article-action a) {
  background-color: var(--blog-action);
  border-color: var(--warm);
  color: #fff7e8;
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(.primary-button, .article-action a):hover {
  background-color: var(--blog-action-hover);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(.article-header .guide-category, .article-action > .icon, .guide-card-image, .article-cover img) {
  background-color: var(--blog-raised);
  color: var(--rust);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] .search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] .search-form button:hover {
  color: var(--ink);
}

html[data-invista-theme-surface=blog][data-invista-theme=dark] :is(a, button, input, select, summary):focus-visible {
  outline-color: var(--rust);
}

html[data-invista-theme-surface=blog] .header-inner:has(> .invista-theme-switch) {
  gap: clamp(.35rem, 1.3vw, 1.25rem);
}

html[data-invista-theme-surface=blog] .header-inner:has(> .invista-theme-switch) .desktop-nav {
  gap: clamp(.55rem, 1vw, 1.45rem);
}

html[data-invista-theme-surface=blog] .invista-theme-switch .fa {
  font-style: normal;
}

html[data-invista-theme-surface=blog] .invista-theme-switch .fa-sun-o::before { content: "☀"; }
html[data-invista-theme-surface=blog] .invista-theme-switch .fa-moon-o::before { content: "☾"; }

@media (max-width: 1000px) {
  html[data-invista-theme-surface=blog] .header-inner > .invista-theme-switch {
    order: 1;
    margin-inline-start: auto;
  }
  html[data-invista-theme-surface=blog] .header-inner:has(> .invista-theme-switch) .mobile-nav {
    order: 2;
    gap: clamp(.35rem, 2vw, 1rem);
  }
  html[data-invista-theme-surface=blog] .invista-theme-switch button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  html[data-invista-theme-surface=blog] .header-inner:has(> .invista-theme-switch) .brand {
    width: clamp(93px, 29vw, 142px);
  }
}

@media screen {
  html[data-invista-design=v1]:not([data-invista-theme=dark]) [data-invista-widget=comparison] > div:has(> p[role=status] + div),
  html[data-invista-design=v1]:not([data-invista-theme=dark]) [data-invista-widget=comparison] [role=region] :is(thead th:first-child, tbody th[scope=row]) {
    background-color: var(--light-action, #f3ead5);
  }

  html[data-invista-design=v1]:not([data-invista-theme=dark]) [data-invista-widget=comparison] [role=region] tbody tr:nth-child(even) td {
    background-color: var(--warm-tint, #f4efe2);
  }

  html[data-invista-design=v1]:not([data-invista-theme=dark]) [data-invista-widget=comparison] > div:has(> p[role=status] + div),
  html[data-invista-design=v1]:not([data-invista-theme=dark]) [data-invista-widget=comparison] [role=region],
  html[data-invista-design=v1]:not([data-invista-theme=dark]) [data-invista-widget=comparison] [role=region] :is(th, td) {
    border-color: var(--warm-line, #e3dccd);
  }
}


/* Buyer lists, empty states and comparison surfaces. */
html[data-invista-theme=dark] #page.invista-favorites {
  background-color: var(--theme-anthracite);
}
html[data-invista-theme=dark] #page.invista-favorites :is(.invista-favorites-categories a, .invista-favorites-print, .invista-search-state, .invista-favorite-photo-fallback),
html[data-invista-theme=dark] [data-invista-widget=comparison] > div:has(> h2, > p[role=status] + div),
html[data-invista-theme=dark] [data-invista-widget=recent] > section > div:has(> h2, > p[role=status]),
html[data-invista-theme=dark] [data-invista-widget=comparison-bar] aside {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-text);
}
html[data-invista-theme=dark] #page.invista-favorites .invista-favorites-categories a:is([aria-current], :hover),
html[data-invista-theme=dark] [data-invista-widget=recent] .button-link {
  background: var(--theme-bronze);
  color: #fff7e8;
  border-color: var(--theme-edge);
}
html[data-invista-theme=dark] :is([data-invista-widget=comparison], [data-invista-widget=recent]) :is(p, [role=status], [aria-live]),
html[data-invista-theme=dark] #page.invista-favorites :is(.invista-search-state p, .invista-favorites-count) {
  color: var(--theme-text);
}
html[data-invista-theme=dark] :is([data-invista-widget=comparison], [data-invista-widget=recent]) > :not([hidden]) .fa {
  color: var(--theme-gold);
}
html[data-invista-theme=dark] [data-invista-widget=comparison] [role=region] :is(table, th, td) {
  background: var(--theme-anthracite);
  border-color: var(--theme-line);
  color: var(--theme-text);
}
html[data-invista-theme=dark] [data-invista-widget=comparison] [role=region] :is(thead th, tbody th, tbody tr:nth-child(even) td) {
  background: var(--theme-surface);
  color: var(--theme-cream);
}
html[data-invista-theme=dark] [data-invista-widget=comparison] [role=region] :is(th, td) :is(a, span) {
  color: var(--theme-cream);
}
html[data-invista-theme=dark] [data-invista-widget=comparison] [role=region] td ul li,
html[data-invista-theme=dark] [data-invista-widget=comparison] :is(button, a:not(.button-link):not(:has(img))) {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  color: var(--theme-cream);
}
html[data-invista-theme=dark] [data-invista-widget=comparison-bar] aside :is(button, [role=status]) {
  background: var(--theme-anthracite);
  border-color: var(--theme-line);
  color: var(--theme-cream);
}
html[data-invista-theme=dark] [data-invista-widget=comparison-bar] aside :is(button, a):hover {
  color: #fff7e8;
  background-color: var(--theme-bronze);
}

/* Existing favorites and comparison layout selectors pin their surfaces. */
html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites {
  background-color: var(--theme-anthracite) !important;
}
html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .invista-favorites-categories a {
  background-color: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-line) !important;
}
html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .invista-favorites-categories a:is([aria-current], :hover) {
  background-color: var(--theme-bronze) !important;
  color: #fff7e8 !important;
  border-color: var(--theme-edge) !important;
}
html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .adDetails :is(
  .invista-card-tools > .set-fav,
  .invista-card-compare button,
  .invista-favorite-alert
) {
  background-color: var(--theme-anthracite);
  border: 1px solid var(--theme-line);
  color: var(--theme-cream);
}

html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .adDetails :is(
  .invista-card-tools > .set-fav,
  .invista-card-compare button,
  .invista-favorite-alert
):not(:disabled):hover {
  background-color: var(--theme-raised);
  border-color: var(--theme-edge);
  box-shadow: none;
}

html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .adDetails :is(
  .invista-card-tools > .set-fav,
  .invista-card-compare button
)[aria-pressed="true"] {
  background-color: var(--theme-bronze);
  border-color: var(--theme-edge);
  color: #fff7e8;
}

html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .adDetails .invista-card-compare button[aria-pressed="true"] {
  --classic-action-neutral: var(--theme-bronze);
  --classic-action-neutral-edge: var(--theme-edge);
  --classic-action-neutral-ink: #fff7e8;
  --classic-action-neutral-hover: var(--theme-bronze-hover);
}


html[data-invista-design=v1][data-invista-theme=dark] #page.invista-favorites .adDetails .set-fav[aria-pressed="true"] .fa-heart {
  color: inherit !important;
}


html[data-invista-design=v1][data-invista-theme=dark] #page [data-invista-widget=recent] > section > div:has(> h2, > p[role=status]),
html[data-invista-design=v1][data-invista-theme=dark] [data-invista-widget=comparison-bar] aside {
  background-color: var(--theme-surface) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
}

html[data-invista-theme=dark] dialog:has(> a[href^="/saved-searches.php"]) form > p {
  color: var(--theme-text);
}

html[data-invista-theme=dark] #contact-location #MapBox {
  background-color: var(--theme-surface);
}

/* Align the summary with the first property section's existing 2vh spacing. */
@media screen and (min-width: 992px) {
  html[data-invista-design=v1] #page.detPage > .mainCont > .row:has(> .leftCol > #characteristics:first-child) > .rightCol > #property-summary {
    margin-block-start: 2vh;
  }
}

/* Listing section headings share a band in Dark mode. */
@media screen {
  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage {
    --property-heading-inset: 24px;
  }

  @media (max-width: 767px) {
    html[data-invista-design=v1][data-invista-theme=dark] #page.detPage {
      --property-heading-inset: 18px;
    }
  }

  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage :is(
    .leftCol > :is(#characteristics, #general, #location) > .box > h4,
    .leftCol > #mortgage > h2,
    #similar > h3
  ) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-block-end: 1px solid rgb(214 201 171 / 23%);
    border-radius: 6px;
    background: linear-gradient(90deg, rgb(214 201 171 / 12%), rgb(214 201 171 / 4%)), var(--theme-surface);
    color: var(--theme-cream);
    font-size: clamp(19px, 1.7vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    text-align: start;
  }

  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage .leftCol > :is(#characteristics, #general) > .box > h4 {
    margin-block: calc(0px - var(--property-heading-inset)) 20px;
    margin-inline: calc(0px - var(--property-heading-inset));
    padding-inline: var(--property-heading-inset);
    border-radius: 9px 9px 0 0;
  }

  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage #characteristics { --property-heading-icon: "\f0ca"; }
  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage #general { --property-heading-icon: "\f0f6"; }
  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage #location { --property-heading-icon: "\f041"; }
  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage #similar { --property-heading-icon: "\f009"; }

  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage :is(
    .leftCol > :is(#characteristics, #general, #location) > .box > h4,
    #similar > h3
  )::before {
    content: var(--property-heading-icon) / "";
    font: normal normal normal 1em/1 FontAwesome;
  }

  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage :is(
    .leftCol > :is(#characteristics, #general, #location) > .box > h4,
    #similar > h3
  )::before,
  html[data-invista-design=v1][data-invista-theme=dark] #page.detPage #mortgage > h2 > .fa {
    flex: 0 0 1.15em;
    color: var(--theme-gold);
    text-align: center;
  }
}

/* Price amounts follow the search button blue with a readable shade on dark cards. */
@media screen {
  html[data-invista-design=v1] {
    --classic-property-price: #4c6b91;
  }

  html[data-invista-design=v1][data-invista-theme=dark] {
    --classic-property-price: #a6c5e8;
  }

  html[data-invista-design=v1] :is(
    .adv .adDetails > .invista-card-price,
    #results .invista-mobile-card-price,
    #property-summary > .invista-property-summary-heading > p.price,
    #page.detPage .invista-property-mobile-intro > p.price
  ) {
    color: var(--classic-property-price);
    font-weight: 700;
  }
}

/* Give the broker portrait and name more room in the shared card footer. */
@media screen {
  html[data-invista-design=v1] .advs .price > .invista-card-agent:where(:not(.invista-card-office)) {
    --classic-card-broker-portrait: 40px;
    --classic-card-broker-name: 15px;
  }

  html[data-invista-design=v1] .advs .price > .invista-card-agent:where(:not(.invista-card-office)) img {
    flex-basis: var(--classic-card-broker-portrait);
    width: var(--classic-card-broker-portrait);
    height: var(--classic-card-broker-portrait);
  }

  html[data-invista-design=v1] .advs .price > .invista-card-agent:where(:not(.invista-card-office)) > div > span {
    font-size: var(--classic-card-broker-name);
    line-height: 1.35;
  }

  @container classic-card (max-width: 288px) {
    html[data-invista-design=v1] .advs .price > .invista-card-agent:where(:not(.invista-card-office)) {
      --classic-card-broker-portrait: 34px;
      --classic-card-broker-name: 14px;
    }
  }
}
