/* Schulman Team: styles for iHomefinder output, loaded INSIDE iHomefinder's sealed container.

   iHomefinder draws its listings inside a shadow root, which the site's own stylesheets cannot reach.
   assets/js/idx-embed.js adds this file to each of those containers on the page. Design tokens
   (var(--...)) are inherited from the page, so no colour values are written here.

   Covered: the listings slider ("Active Listings" on the homepage); the search (filter bar, filter
   panels, results cards, List and Map switch, Sort, page numbers); the logo on listing cards (hidden);
   the single property page (/homes-for-sale-details/... and /homes-for-sale-sold-details/...).
   Not covered yet: sign-up and contact forms. See 05-wordpress/idx/idx-stylesheet.css.

   Selectors. iHomefinder scrambles the class names of its slider on every build, so the rules hook
   onto what it keeps stable: its own .ihf-* and .ui-* names, the slider buttons' labels, and the
   order of the elements. Recheck after an Optima Express update.

   Layout of the slider, from the outside in:
     .ihf-gallery-slider-container > .ihf-gallery-slider > div > div   the slider frame
       > button[aria-label="previous slide"]
       > div > ul > li > .ui-grid-container > .ihf-gallery-slider-cell > .ihf-listing-result-cell
       > button[aria-label="next slide"]
   On phones the two buttons are not in the frame. They come first, in
     .ihf-gallery-slider-container > .ui-grid-item (the one without .ihf-gallery-slider). */

/* ---- Slider frame -------------------------------------------------------------------------- */
/* The cards take the full width of the page container. The two round controls sit in a row under
   the cards, and move out beside the cards where the page margin is wide enough (see the end). */
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-3);
  overflow: visible;
}
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > div {
  order: 1;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Previous and next: the design's round control, charcoal disc with a light icon.
   On wider containers iHomefinder prints the two buttons inside the slider frame. On narrow ones
   (phones) it prints them in a row of their own before the slider. Both are covered. */
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button,
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) button {
  order: 2;
  flex: none;
  position: static;
  width: var(--touch-target);
  height: var(--touch-target);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--charcoal);
  color: var(--off-white);
  box-shadow: none;
  transition: background-color .2s ease;
}
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button:hover,
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) button:hover {
  background: var(--charcoal-700);
}
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button:focus-visible,
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button svg,
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) button svg {
  width: 24px;
  height: 24px;
}

/* Phones: the row of controls goes under the cards, centred. */
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) {
  order: 2;
  margin-top: var(--space-6);
}
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) > .ui-grid-container {
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
}
.shadow-root .ihf-gallery-slider-container > .ui-grid-item:not(.ihf-gallery-slider) .ui-grid-item {
  flex: none;
  padding: 0;
}

/* ---- Row of cards -------------------------------------------------------------------------- */
/* The first and last card sit flush with the edges of the page container. */
.shadow-root .ihf-gallery-slider-container li > .ui-grid-container {
  align-items: stretch;
  width: calc(100% + var(--space-6));
  margin: 0 calc(var(--space-6) / -2);
  padding: 0;
}
.shadow-root .ihf-gallery-slider-container .ihf-gallery-slider-cell {
  padding: 0 calc(var(--space-6) / 2);
}

/* ---- Listing card: the design's card (photo with large corners, text on the page ground) ---- */
/* Used for the cards in the slider and in the search results. */
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-cell {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-body);
  color: var(--charcoal);
  text-align: left;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-img-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-img-container > div {
  background-color: var(--mist);
  color: var(--ink-muted);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-info {
  flex-wrap: nowrap;
  width: 100%;
  margin: 0;
  padding: var(--space-4) 0 0;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-info > .ui-grid-item {
  padding-inline: 0;
}

.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-cell .ui-typography {
  font-family: var(--font-body);
  color: var(--charcoal);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-price .ui-typography {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}
/* Sold listings show two lines: the list price (small) and the sold price. */
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-price .ui-typography:not(:only-child) {
  font-size: 20px;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-price .ui-typography:first-child:not(:only-child) {
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-gallery-street-name .ui-typography {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-bed-bath-sq .ui-typography {
  font-size: 14px;
  font-weight: 400;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-bed-bath-sq svg {
  color: var(--blue-deep);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-prop-info-container .ui-typography {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
}

/* Status tag on the photo: the design's tag shape, white text on the deep blue (Isaiah, 2026-12-03).
   The deep blue is used because white on the bright brand blue measures 2.9:1 and the design system
   rules that pair out. White on the deep blue measures about 6.9:1. */
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-badges {
  top: var(--space-3);
  left: var(--space-3);
  padding: 0;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-status {
  height: auto;
  padding: 7px var(--space-3);
  border-radius: calc(var(--radius-lg) - var(--space-3));
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font-eyebrow);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-status .ui-chip-label {
  padding: 0;
  color: inherit;
}

/* Save (heart): a 44px tap area with a small dark disc, so the icon reads on any photo. */
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-badge-fav {
  top: var(--space-1);
  right: var(--space-1);
  padding: 0;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-badge-fav .ui-button {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: transparent;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-badge-fav .ui-button-label {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--scrim);
  color: var(--off-white);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-badge-fav svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

/* Photo arrows inside a card, and the note shown when a listing has no photo. */
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-arrows .ui-icon-button {
  padding: 9px;
  background: transparent;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-arrows .ui-icon-button-label {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--scrim);
  color: var(--off-white);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-arrows svg {
  width: 18px;
  height: 18px;
  color: inherit;
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-img-container .ui-typography {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
}

/* Logo on listing cards: not shown (Isaiah, 2026-12-03). This is iHomefinder's "Board logo" place on
   each card, in the slider and in search results. The picture set for it in the iHomefinder account is
   the team's own logo and its address is cut off, so it showed as a broken image. To show a logo
   again, delete this rule and correct the address in the iHomefinder account. */
.shadow-root .ihf-listing-result-mls-logo {
  display: none;
}

/* The whole card is one link. Its focus ring is drawn inside the card so the slider cannot clip it. */
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-cell > a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}
.shadow-root :is(.ihf-gallery-slider-container, .ihf-listing-search-results-container) .ihf-listing-result-cell button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Wide screens: controls in the page margin ---------------------------------------------- */
/* From 1340px the margin beside the page container is wide enough for a control. Each one sits just
   outside the cards, 16px from their edge, level with the middle of the cards. */
@media (min-width: 1340px) {
  .shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button {
    position: absolute;
    top: 50%;
    z-index: 1;
    margin-top: calc(var(--touch-target) / -2);
  }
  .shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button[aria-label="previous slide"] {
    left: calc(-1 * (var(--touch-target) + var(--space-4)));
  }
  .shadow-root .ihf-gallery-slider-container .ihf-gallery-slider > div > div > button[aria-label="next slide"] {
    right: calc(-1 * (var(--touch-target) + var(--space-4)));
  }
}

/* ==== Search (the Search properties page and iHomefinder's own search page) ==================== */
/* General look of iHomefinder's controls wherever they appear, including the filter panels, which
   iHomefinder draws in a second container (.ihf-overlay-container). */
.shadow-root {
  font-family: var(--font-body);
  color: var(--charcoal);
}
.shadow-root .ui-typography,
.shadow-root .ui-button,
.shadow-root .ui-input-base,
.shadow-root .ui-input-label,
.shadow-root li[role="menuitem"] {
  font-family: var(--font-body);
}
.shadow-root .ui-link,
.shadow-root [aria-label="Edit keywords"] {
  color: var(--blue-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---- Buttons ---------------------------------------------------------------------------------- */
.shadow-root .ui-button {
  border-radius: var(--radius-sm);
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}
/* Filter buttons (Status, Price, Beds and Baths, Property Type, More): the design's field look. */
.shadow-root .ui-button-outlined {
  min-height: var(--touch-target);
  padding: 0 var(--space-4);
  border: 2px solid transparent;
  background: var(--blue-100);
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.shadow-root .ui-button-outlined:hover {
  border-color: transparent;
  background: var(--blue-300);
}
/* Main action buttons: the design's button colours, from its own tokens. */
.shadow-root .ui-button-contained-primary {
  min-height: 40px;
  background: var(--schulman-blue);
  color: var(--on-button);
}
.shadow-root .ui-button-contained-primary:hover {
  background: var(--blue-shade-20);
}
/* Save Search: the design's button in full. */
.shadow-root .ihf-save-search .ui-button {
  min-height: var(--touch-target);
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Quiet buttons (Sort). */
.shadow-root .ui-button-text {
  min-height: 44px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
}
.shadow-root .ui-button-text:hover {
  background: var(--blue-100);
}
.shadow-root .ui-button:focus-visible,
.shadow-root .ui-icon-button:focus-visible,
.shadow-root .ui-link:focus-visible,
.shadow-root [role="button"]:focus-visible,
.shadow-root li[role="menuitem"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Text fields ------------------------------------------------------------------------------ */
.shadow-root .ui-outlined-input {
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--charcoal);
  font-size: 16px;
}
.shadow-root .ui-outlined-input .ui-outlined-input-notched-outline {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
}
.shadow-root .ui-outlined-input:focus-within {
  background: var(--white);
}
.shadow-root .ui-outlined-input:focus-within .ui-outlined-input-notched-outline {
  border-color: var(--blue-deep);
}
.shadow-root .ui-outlined-input .ui-input-base-input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}
/* Fields with a small label on their top edge (in the filter panels): white, with a pale edge. */
.shadow-root .ui-form-control:has(> .ui-input-label) .ui-outlined-input {
  background: var(--white);
}
.shadow-root .ui-form-control:has(> .ui-input-label) .ui-outlined-input-notched-outline {
  border-color: var(--blue-100);
}
.shadow-root .ui-form-control:has(> .ui-input-label) .ui-outlined-input:focus-within .ui-outlined-input-notched-outline {
  border-color: var(--blue-deep);
}
.shadow-root .ui-form-control .ui-input-label {
  color: var(--ink-muted);
}

/* ---- Filter panels and menus ------------------------------------------------------------------- */
.shadow-root [role="tooltip"] > div,
.shadow-root div:has(> ul[role="menu"]):not(.ui-grid) {
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-soft);
}
.shadow-root li[role="menuitem"] {
  min-height: 44px;
  font-size: 15px;
  font-weight: 400;
  color: var(--charcoal);
}
.shadow-root li[role="menuitem"]:hover {
  background: var(--blue-100);
}
/* Tick boxes and the beds and baths sliders. */
.shadow-root label .ui-icon-button {
  color: var(--charcoal-700);
}
.shadow-root label .ui-icon-button:has(input:checked),
.shadow-root span:has(> [role="slider"]) {
  color: var(--blue-deep);
}

/* ---- Results header: count, List and Map switch, Sort ----------------------------------------- */
.shadow-root .ihf-listings-search-side > .ui-grid-container > .ui-grid-item > div > .ui-typography {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.shadow-root .ihf-list-map-toggle-container {
  display: inline-flex;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--blue-100);
}
.shadow-root .ihf-list-map-toggle-container .ui-button {
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
}
.shadow-root .ihf-list-map-toggle-container .ui-button.ui-button-contained {
  background: var(--charcoal);
  color: var(--off-white);
}

/* ---- Map --------------------------------------------------------------------------------------- */
/* Not the results column: without a map (the Sold page) that column comes first, and clipping it
   would break the header row that stays in view while scrolling. */
.shadow-root .ihf-listings-search-map-container > .ui-grid-item:first-child:not(.ihf-listings-search-side) > div {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.shadow-root button[aria-label="map layer menu"] {
  width: var(--touch-target);
  height: var(--touch-target);
  background: var(--charcoal);
  color: var(--off-white);
  box-shadow: none;
}
.shadow-root button[aria-label="map layer menu"]:hover {
  background: var(--charcoal-700);
}

/* ---- Results grid ------------------------------------------------------------------------------ */
.shadow-root .ihf-listing-search-results-grid {
  width: calc(100% + var(--space-6));
  margin: 0 calc(var(--space-6) / -2);
}
.shadow-root .ihf-listing-search-results-grid > .ihf-listing-search-result-cell-container {
  padding: 0 calc(var(--space-6) / 2) var(--space-7);
}

/* ---- Page numbers ------------------------------------------------------------------------------ */
.shadow-root nav[aria-label="pagination navigation"] button {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}
.shadow-root nav[aria-label="pagination navigation"] button:hover {
  background: var(--blue-100);
}
.shadow-root nav[aria-label="pagination navigation"] button[aria-current="true"] {
  background: var(--charcoal);
  color: var(--off-white);
}
.shadow-root nav[aria-label="pagination navigation"] button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ==== Single property page ====================================================================== */
/* iHomefinder's listing detail page, shown inside the site header and footer. Its parts keep plain
   names (.listing-header, .listing-sidebar, .features and so on), so the rules hook onto those.
   Nothing is hidden: the listing number, the listing broker line and the MLS notice all stay. */

/* Side panel (tour dates and the request form): a white panel that stays in view while scrolling.
   It stops below the site header, which stays at the top of the window. */
.shadow-root .listing-sidebar > .ui-grid-container {
  top: calc(var(--space-10) + var(--space-4));
}
.shadow-root .listing-sidebar > .ui-grid-container > .ui-grid-item {
  box-sizing: border-box;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.shadow-root .listing-sidebar .ui-divider,
.shadow-root .features .ui-divider {
  background: var(--line);
}
.shadow-root .listing-sidebar .ui-typography {
  font-size: 15px;
  line-height: 1.5;
}
/* Tour dates: pale tiles, the chosen one in the deep blue with white text. */
.shadow-root .listing-sidebar [class*="schedule-tour-"][class*="-date"] .ui-button {
  min-width: 64px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
}
.shadow-root .listing-sidebar .schedule-tour-unselected-date .ui-button:hover {
  background: var(--blue-300);
}
.shadow-root .listing-sidebar [class*="schedule-tour-"].schedule-tour-selected-date .ui-button,
.shadow-root .listing-sidebar [class*="schedule-tour-"].schedule-tour-selected-date .ui-button:hover {
  background: var(--blue-deep);
}
.shadow-root .listing-sidebar .schedule-tour-selected-date .ui-typography {
  color: var(--white);
}
/* Schedule Tour and Request Info: the design's button, full width. */
.shadow-root .listing-sidebar .ui-button-contained-primary {
  width: 100%;
  min-height: var(--touch-target);
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Top of the page: status, price, address, Share and Save. */
.shadow-root .listing-header [class*="listing-status-"] .ui-chip {
  height: auto;
  padding: 7px var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font-eyebrow);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.shadow-root .listing-header [class*="listing-status-"] .ui-chip-label {
  padding: 0;
  color: inherit;
}
.shadow-root .listing-header .list-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}
.shadow-root .listing-header .list-price > span:first-child {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.shadow-root .listing-header .list-price > span:last-child {
  /* iHomefinder sets a left margin on this element itself. */
  margin-left: 0 !important;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.shadow-root .listing-header .listing-address-1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.shadow-root .listing-header .listing-address-2 {
  font-size: 16px;
  color: var(--ink-muted);
}
.shadow-root .listing-actions .ui-grid-container {
  gap: var(--space-2);
}
.shadow-root .listing-actions .ui-button {
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--charcoal);
}
.shadow-root .listing-actions .ui-button:hover {
  background: var(--blue-300);
}

/* Photos: the design's large corners, and round controls that read on any photo. */
.shadow-root .listing-photo-carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.shadow-root .listing-photo-carousel .ui-typography {
  font-size: 15px;
  color: var(--ink-muted);
}
.shadow-root .listing-photo-carousel .ui-icon-button {
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  background: var(--scrim);
  color: var(--off-white);
}
.shadow-root .listing-photo-carousel .ui-icon-button svg {
  width: 24px;
  height: 24px;
  color: inherit;
}
.shadow-root .listing-number .ui-typography {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
}

/* Key facts: beds, baths, size, type. */
.shadow-root .listing-attributes {
  width: auto;
  margin: var(--space-4) var(--space-3) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shadow-root .listing-attributes > .ui-grid-item {
  padding: var(--space-3) var(--space-6) var(--space-3) 0;
}
.shadow-root .listing-attributes > .ui-grid-item > div > .ui-typography {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.shadow-root .listing-attributes > .ui-grid-item > .ui-typography {
  font-size: 14px;
  color: var(--ink-muted);
}
.shadow-root .listing-attributes svg {
  color: var(--blue-deep);
}

/* Section headings and text. */
.shadow-root .listing-detail .ui-typography-h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.shadow-root .listing-detail .ui-typography-h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.shadow-root .listing-description .ui-typography-body1 {
  font-size: 17px;
  line-height: 1.65;
}

/* Property features: a quiet label over the value. */
.shadow-root .features .feature-label .ui-typography {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-muted);
}
.shadow-root .features .feature-value .ui-typography {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* Map, schools and Walk Score. */
.shadow-root .listing-map .ui-grid-container > .ui-grid-item:last-child > div {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.shadow-root :is(.schools, .walk-score) iframe {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

/* Mortgage calculator: the monthly figure on a pale panel. */
.shadow-root .listing-detail .ihf-mortgage-calculator-container {
  box-sizing: border-box;
  width: auto;
  margin: 0 var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--blue-100);
}
.shadow-root .listing-detail .ihf-mortgage-amount .ui-typography:first-child {
  font-family: var(--font-display);
  font-weight: 700;
}
.shadow-root .listing-detail .ihf-mortgage-disclaimer .ui-typography {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Narrow screens: iHomefinder swaps the side panel for a bar with the two buttons. The bar is kept
   in the page, at the top, so it does not slide under the site header or cover the listing. */
.shadow-root .listing-detail .contact-forms-app-bar {
  position: static;
}
.shadow-root .listing-detail .contact-forms-app-bar > header {
  padding: 0 0 var(--space-3);
  background: transparent;
  box-shadow: none;
}
.shadow-root .listing-detail .contact-forms-app-bar .ui-button {
  min-height: var(--touch-target);
  white-space: nowrap;
}
/* iHomefinder's feature rows are a little wider than a phone screen. The spare width is empty. */
.shadow-root .listing-detail .features {
  overflow-x: clip;
}

/* Phones and narrow screens. */
@media (max-width: 720px) {
  .shadow-root .listing-header .list-price > span:last-child {
    font-size: 32px;
  }
  .shadow-root .listing-header .listing-address-1 {
    font-size: 22px;
  }
  .shadow-root .listing-detail .ui-typography-h2 {
    font-size: 26px;
  }
  .shadow-root .listing-detail .ui-typography-h3 {
    font-size: 20px;
  }
}

/* ---- Motion --------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .shadow-root ul,
  .shadow-root button {
    transition: none !important;
  }
}
