@media (max-width: 560px) {
  html[data-invista-mobile-results-preview] header > .invista-design-utility {
    position: absolute;
    inset: 0 60px auto auto;
    z-index: 2;
    width: auto;
    margin: 0;
    background: transparent;
  }

  html[data-invista-mobile-results-preview] .invista-design-utility :is(.container, .row) {
    width: auto;
    margin: 0;
    padding: 0;
  }

  html[data-invista-mobile-results-preview] .invista-design-utility .text-right {
    min-height: 58px;
    padding: 0;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
  }

  html[data-invista-mobile-results-preview] .invista-design-utility .text-right > a:not([href^="/favorites.php"]) {
    display: none;
  }

  html[data-invista-mobile-results-preview] .invista-design-utility a[href^="/favorites.php"] {
    display: grid;
    width: 38px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    color: #17213e;
    font-size: 0;
  }

  html[data-invista-mobile-results-preview] .invista-design-utility a[href^="/favorites.php"] .fa-heart {
    color: #17213e !important;
    font-size: 18px;
  }

  html[data-invista-mobile-results-preview] .invista-design-utility a[href^="/favorites.php"] .fa-heart::before {
    content: "\f08a";
  }

  html[data-invista-mobile-results-preview] header .invista-design-utility .langs {
    margin: 0;
    padding: 0 0 0 8px;
    border: 0;
    border-left: 1px solid #dfe3ec;
  }

  html[data-invista-mobile-results-preview] header .invista-design-utility .langs > button {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    margin: 0;
    padding: 0 8px;
    color: #17213e;
    font-size: 13px;
  }

  html[data-invista-mobile-results-preview] header .langs > button::before { content: "EL"; }
  html[data-invista-mobile-results-preview]:lang(en) header .langs > button::before { content: "EN"; }
  html[data-invista-mobile-results-preview] header .langs > button > img {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    clip-path: inset(50%);
  }

  html[data-invista-mobile-results-preview] header .light-bg > .container { width: calc(100% - 24px); }
  html[data-invista-mobile-results-preview][data-invista-design] .invista-design-header-main {
    min-height: 58px;
    padding-block: 0;
  }

  html[data-invista-mobile-results-preview] .invista-design-brand { min-height: 58px; }
  html[data-invista-mobile-results-preview][data-invista-design] header .invista-site-logo { width: 116px; }
  html[data-invista-mobile-results-preview][data-invista-design] .invista-design-brand .navbar-toggle {
    width: 42px;
    height: 40px;
    padding: 9px 11px;
    border-radius: 6px;
    background: #29358d;
    border-color: #29358d;
  }

  html[data-invista-mobile-results-preview][data-invista-design] .invista-design-brand .navbar-toggle .icon-bar {
    width: 18px;
    height: 1.5px;
  }

  html[data-invista-mobile-results-preview] .invista-design-navigation .invista-mobile-results-utility-item {
    display: block !important;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards { gap: 12px; }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adv {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #d9deeb;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .propImg {
    width: auto;
    height: auto;
    aspect-ratio: 2 / 1;
    margin: 10px 10px 0;
    border-radius: 7px;
  }

  html[data-invista-mobile-results-preview] #results .propImg .image { position: relative; }
  html[data-invista-mobile-results-preview] #results .propImg .image img { object-fit: cover; }
  html[data-invista-mobile-results-preview] #results .propImg .image:has(.invista-mobile-photo-type) img { object-position: 50% 59%; }

  /* The legacy full-height arrow strip overlaps the favorite button. */
  html[data-invista-mobile-results-preview] #results .propImg .slick-arrow {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    z-index: 20;
  }

  html[data-invista-mobile-results-preview] #results .invista-mobile-photo-type {
    position: absolute;
    display: block !important;
    z-index: 1;
    bottom: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #29358d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adv > .adType {
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
  }

  html[data-invista-mobile-results-preview] #results .adv.invista-mobile-has-floor-plan > .adType { display: none; }
  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adv:not(.invista-mobile-has-floor-plan) > .adType + div:not([class]) {
    top: 41px !important;
    left: 16px !important;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adDetails {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 7px 12px 5px;
    border-top: 0;
  }

  html[data-invista-mobile-results-preview] #results .adDetails > :is(h4, .code, .info, .invista-mobile-card-summary) {
    grid-column: 1 / -1;
  }

  html[data-invista-mobile-results-preview] #results .adDetails:has(> .invista-mobile-card-summary) > :is(h4, .code, .info, .invista-card-price) {
    display: none;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adDetails > .invista-card-price {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adDetails > .invista-card-price,
  html[data-invista-mobile-results-preview] #results .invista-mobile-card-price {
    margin: 0 0 4px;
    color: #283590;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 700;
  }

  html[data-invista-mobile-results-preview] #results .invista-mobile-card-summary {
    display: block !important;
    min-width: 0;
    margin: 0 0 8px;
    color: #17213e;
  }

  html[data-invista-mobile-results-preview] #results .invista-mobile-card-summary > .invista-mobile-card-price { display: block; }

  html[data-invista-mobile-results-preview] #results .invista-mobile-card-summary > a {
    display: block;
    color: inherit;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  html[data-invista-mobile-results-preview] #results .invista-mobile-card-summary > :is(p:not(.invista-mobile-card-price), .invista-mobile-card-facts) {
    margin: 2px 0 0;
    color: #505971;
    font-size: 13px;
    line-height: 1.35;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .adDetails > .price {
    position: static;
    grid-column: 1;
    align-self: stretch;
    min-height: 36px;
    margin: 0;
    padding: 3px 0 0;
    border-top: 1px solid #e1e5ed;
  }

  html[data-invista-mobile-results-preview] #results .adDetails > .price > .pull-right { position: static; }

  html[data-invista-mobile-results-preview] #results .price .set-fav {
    position: absolute;
    z-index: 21;
    top: 13px;
    right: 13px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #dce1ea;
    border-radius: 50%;
    background: #fff;
    color: #17213e;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .price .invista-card-agent img {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  html[data-invista-mobile-results-preview][data-invista-results-preview] #results .sample-cards .price .invista-card-agent span {
    color: #505971;
    font-size: 11px;
    line-height: 1.25;
  }

  html[data-invista-mobile-results-preview] #results .adDetails > .invista-card-actions {
    grid-column: 2;
    align-self: stretch;
    min-height: 36px;
    margin: 0;
    border-top: 1px solid #e1e5ed;
  }

  html[data-invista-mobile-results-preview][data-invista-design] #results .invista-card-actions button {
    display: grid;
    width: 35px;
    min-height: 35px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17213e;
    font-size: 0;
  }

  html[data-invista-mobile-results-preview] #results .invista-card-actions button[aria-pressed="true"] {
    background: #edf0fc;
    color: #283590;
  }

  html[data-invista-mobile-results-preview] #results .invista-card-actions button .fa {
    margin: 0;
    font-size: 17px;
  }
}
