:root {
  --list-navy: #173d53;
  --list-ink: #19364a;
  --list-blue: #315c7c;
  --list-orange: #df7837;
  --list-paper: #fbfaf8;
  --list-line: #d7e0e5;
  --list-muted: #637789;
}

.property-list-page {
  overflow-x: hidden;
  color: var(--list-ink);
  background: var(--list-paper);
}

.property-list-page .visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.property-list-breadcrumb {
  padding: 15px 0 0;
  position: relative;
  z-index: 1;
}

.property-list-breadcrumb .breadcrumbs {
  margin: 0;
}

.property-list-breadcrumb .breadcrumbs,
.property-list-breadcrumb .breadcrumbs a {
  color: #173d53;
}

.property-list-search {
  padding: 0 0 12px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--list-navy);
  background: #bfe5fa;
}

.property-list-search::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("../images/property-list/property-search-scenic-bg-v2.webp?v=20261016-1");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.property-list-search::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(255,255,255,.42) 0%,rgba(255,255,255,.18) 29%,rgba(255,255,255,0) 58%);
}

.property-list-search__inner {
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.property-list-search h1 {
  margin: 0;
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: clamp(38px,4vw,56px);
  font-weight: 500;
  letter-spacing: .06em;
}

.property-list-search__lead {
  margin: 10px 0 32px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
}

.property-list-filter {
  padding: 24px 28px;
  color: var(--list-ink);
  background: rgba(255,255,255,.97);
  border: 1px solid #e0eaf1;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(20,53,83,.10),inset 0 1px 0 #fff;
}

.property-list-filter fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.property-list-filter legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

.property-list-filter legend small {
  margin-left: 10px;
  color: var(--list-muted);
  font-size: 11px;
  font-weight: 500;
}

.property-list-filter__types > div {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.property-list-filter__types button {
  min-height: 60px;
  padding: 9px;
  color: var(--list-ink);
  background: linear-gradient(180deg,#fff,#f7f9fa);
  border: 1px solid var(--list-line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff,0 3px 9px rgba(20,57,74,.07);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s,border-color .2s,box-shadow .2s,transform .2s;
}

.property-list-filter__types button:hover,
.property-list-filter__types button:focus-visible {
  background: #f1f6f8;
  border-color: #a2b6c1;
}

.property-list-filter__types button.is-selected {
  color: #fff;
  background:
    linear-gradient(180deg,rgba(255,255,255,.66) 0%,rgba(255,255,255,.16) 22%,rgba(255,255,255,0) 42%),
    linear-gradient(180deg,#ffae54 0%,#f58a2e 48%,#dc641d 100%);
  border-color: #d86a24;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78),inset 0 -3px 5px rgba(126,49,9,.18),0 7px 16px rgba(173,81,25,.27);
  text-shadow: 0 1px 1px rgba(100,41,8,.22);
}

.property-list-filter__types button.is-selected:hover,
.property-list-filter__types button.is-selected:focus-visible {
  background:
    linear-gradient(180deg,rgba(255,255,255,.76) 0%,rgba(255,255,255,.20) 24%,rgba(255,255,255,0) 44%),
    linear-gradient(180deg,#ffba68 0%,#fa9134 48%,#e36a20 100%);
  border-color: #d9631d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86),inset 0 -3px 5px rgba(126,49,9,.16),0 9px 19px rgba(173,81,25,.32);
  transform: translateY(-1px);
}

.property-list-filter__types button:active {
  transform: translateY(1px);
}

.property-list-filter__selects {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.property-list-filter__selects label {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}

.property-list-filter__selects label > span {
  display: block;
}

.property-list-filter__selects select {
  width: 100%;
  height: 57px;
  margin-top: 9px;
  padding: 0 42px 0 18px;
  color: var(--list-ink);
  background: #fff;
  border: 1px solid var(--list-line);
  border-radius: 6px;
  outline: 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.property-list-filter__selects select:focus {
  border-color: #6d8999;
  box-shadow: 0 0 0 3px rgba(49,92,124,.12);
}

.property-list-filter__selects select:disabled {
  color: #8b9aa5;
  background: #f3f5f6;
  cursor: not-allowed;
}

.property-list-filter__hint {
  margin: 14px 0 0;
  color: #738ca1;
  font-size: 13px;
  font-weight: 700;
}

.property-list-results {
  padding: 36px 0 78px;
  background: #fff;
  scroll-margin-top: 78px;
}

.property-list-results__header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e2e8e9;
}

.property-list-results__header h2 {
  margin: 0 0 14px;
  color: var(--list-ink);
  font-family: "Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: 37px;
  letter-spacing: .04em;
}

.property-list-results__header p {
  margin: 0;
  color: #435d70;
  font-size: 16px;
}

.property-list-results__header p strong {
  margin-left: 9px;
  color: var(--list-orange);
  font: 800 37px/1 Arial,sans-serif;
}

.property-list-results__header p span {
  margin-left: 5px;
}

.property-list-results__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #274c5e;
  font-size: 15px;
  font-weight: 700;
}

.property-list-results__controls select {
  min-height: 46px;
  padding: 8px 42px 8px 16px;
  color: var(--list-ink);
  background: #fff;
  border: 1px solid #bdcbd4;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
}

.property-list-results__description {
  margin: 0 0 18px;
  color: #526c7a;
  font-size: 14px;
}

.property-list-active-filters {
  min-height: 29px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.property-list-active-filters span {
  padding: 5px 10px;
  color: #456079;
  background: #f5f8fa;
  border: 1px solid #dce5eb;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.property-list-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: 17px;
}

.property-list-card {
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(17,34,51,.12);
  transition: transform .2s,box-shadow .2s,border-color .2s;
}

.property-list-card:hover {
  border-color: #bdccd4;
  box-shadow: 0 12px 26px rgba(22,56,74,.14);
  transform: translateY(-3px);
}

.property-list-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.property-list-card__link:focus-visible {
  outline: 3px solid #6b91a7;
  outline-offset: -3px;
}

.property-list-card__media {
  height: 196px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #edf1f2;
}

.property-list-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: filter .2s,transform .3s;
}

.property-list-card__media img.is-contain {
  padding: 5px;
  object-fit: contain;
  background: #f5f6f3;
}

.property-list-card:hover .property-list-card__media img:not(.is-contain) {
  transform: scale(1.02);
}

.property-list-card__labels {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.property-list-card__labels b,
.property-list-card__labels em {
  padding: 6px 9px;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(7,28,39,.16);
}

.property-list-card__labels b {
  background: #ff7417;
}

.property-list-card__labels em {
  background: #1c5277;
}

.property-list-card__no-image {
  display: grid;
  justify-items: center;
  color: #36596b;
}

.property-list-card__no-image b {
  font: 600 19px Georgia,serif;
  letter-spacing: .12em;
}

.property-list-card__no-image small {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: .14em;
}

.property-list-card__body {
  min-width: 0;
  flex: 1;
  padding: 16px 15px 14px;
  display: flex;
  flex-direction: column;
}

.property-list-card__name {
  min-height: 3.1em;
  display: -webkit-box;
  overflow: hidden;
  color: #17394d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.property-list-card__price {
  margin-top: 7px;
  color: #f26a21;
  font: 800 23px/1.3 Arial,sans-serif;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.property-list-card__details {
  margin-top: 8px;
  display: grid;
  gap: 5px;
  color: #526a7b;
  font-size: 11px;
  line-height: 1.48;
}

.property-list-card__access,
.property-list-card__layout {
  display: block;
  overflow-wrap: anywhere;
}

.property-list-card__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 5px;
}

.property-list-card__areas b {
  color: #36566a;
  font-weight: 800;
}

.property-list-card__areas i {
  color: #9aabb5;
  font-style: normal;
}

.property-list-card__more {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #1c526c;
  border-top: 1px solid #edf1f4;
  font-size: 12px;
  font-weight: 800;
}

.property-list-card__details + .property-list-card__more {
  margin-top: 10px;
}

.property-list-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.property-list-pagination:empty {
  display: none;
}

.property-list-pagination button {
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--list-ink);
  background: #fff;
  border: 1px solid #dbe4eb;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}

.property-list-pagination button:hover:not(:disabled),
.property-list-pagination button:focus-visible {
  color: #fff;
  background: #315c7c;
  border-color: #315c7c;
}

.property-list-pagination button.is-current {
  color: #fff;
  background: var(--list-navy);
  border-color: var(--list-navy);
}

.property-list-pagination button:disabled {
  opacity: .35;
  cursor: default;
}

.property-list-empty {
  grid-column: 1/-1;
  margin: 0;
  padding: 50px 20px;
  color: var(--list-muted);
  background: #f4f6f6;
  border: 1px solid var(--list-line);
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 950px) {
  .property-list-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 768px) {
  .property-list-search {
    padding-bottom: 18px;
  }

  .property-list-search::before {
    background-image: url("../images/property-list/property-search-scenic-responsive-v2.webp?v=20261016-1");
    background-position: 68% top;
  }

  .property-list-search__inner {
    padding-top: 34px;
  }

  .property-list-filter {
    padding: 18px;
  }

  .property-list-filter__selects {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .property-list-filter__selects label:last-child {
    grid-column: 1/-1;
  }

  .property-list-results {
    padding-top: 34px;
  }

  .property-list-results__header {
    align-items: flex-start;
  }

  .property-list-results__controls {
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .property-list-breadcrumb {
    padding-top: 10px;
  }

  .property-list-search {
    padding-bottom: 20px;
  }

  .property-list-search::before {
    background-position: 73% top;
    background-size: cover;
  }

  .property-list-search::after {
    background: linear-gradient(90deg,rgba(255,255,255,.42),rgba(255,255,255,.08) 78%);
  }

  .property-list-search__inner {
    padding-top: 32px;
  }

  .property-list-search h1 {
    font-size: 35px;
  }

  .property-list-search__lead {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .property-list-filter {
    padding: 16px;
  }

  .property-list-filter__types > div {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }

  .property-list-filter__types button {
    min-height: 51px;
    padding-inline: 4px;
    font-size: 15px;
  }

  .property-list-filter__selects {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .property-list-filter__selects label:last-child {
    grid-column: auto;
  }

  .property-list-filter__selects select {
    height: 53px;
    font-size: 16px;
  }

  .property-list-filter__hint {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.6;
  }

  .property-list-results {
    padding: 32px 0 58px;
  }

  .property-list-results__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-list-results__header h2 {
    font-size: 27px;
  }

  .property-list-results__header p {
    font-size: 13px;
  }

  .property-list-results__header p strong {
    font-size: 31px;
  }

  .property-list-results__controls {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
    font-size: 12px;
  }

  .property-list-results__controls select {
    min-height: 42px;
    padding-inline: 10px 32px;
    font-size: 12px;
  }

  .property-list-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .property-list-card__media {
    height: 220px;
  }

  .property-list-card__labels {
    top: 7px;
    left: 7px;
  }

  .property-list-card__labels b,
  .property-list-card__labels em {
    padding: 5px 6px;
    font-size: 9px;
  }

  .property-list-card__body {
    padding: 14px 12px 12px;
  }

  .property-list-card__name {
    min-height: 3.1em;
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .property-list-card__price {
    margin-top: 6px;
    font-size: 21px;
  }

  .property-list-card__details {
    gap: 5px;
    font-size: 12px;
    line-height: 1.5;
  }

  .property-list-card__more {
    min-height: 38px;
    padding-top: 10px;
    font-size: 11px;
  }

  .property-list-pagination {
    gap: 6px;
  }

  .property-list-pagination button {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-list-card,
  .property-list-card__media img,
  .property-list-filter__types button {
    transition: none;
  }

  .property-list-card:hover {
    transform: none;
  }
}
