.ps-page {
  color: #1f2937;
}

.ps-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.ps-panel {
  background: #ffffff;
  border: 1px solid #d6dde6;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ps-filter-panel {
  padding: 12px;
}

.ps-searchbar {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr 1fr 0.8fr 0.8fr auto;
  gap: 8px;
  align-items: stretch;
}

.ps-search-field {
  display: flex;
  border: 1px solid #d5dde8;
  border-radius: 999px;
  background: #ffffff;
  min-height: 50px;
}

.ps-search-field--query {
  border-radius: 999px;
}

.ps-search-field input,
.ps-search-field select {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: #0f172a;
  font-size: 16px;
  padding: 0 16px;
}

.ps-search-field select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.ps-search-btn {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid #0f7a3f;
  background: #0f7a3f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ps-search-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.ps-toolbar {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.ps-total {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.ps-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
}

.ps-sort-wrap select {
  border: 1px solid #d5dde8;
  border-radius: 8px;
  min-height: 36px;
  background: #fff;
  padding: 0 10px;
  outline: 0;
}

.ps-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(420px, 60%) minmax(0, 40%);
  gap: 12px;
  align-items: stretch;
}

.ps-map-pane {
  height: calc(100vh - 220px);
  min-height: 560px;
}

#psMap {
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border: 1px solid #d6dde6;
  overflow: hidden;
  position: relative;
  top: 0;
}

.ps-list-pane {
  height: calc(100vh - 220px);
  min-height: 560px;
  overflow-y: auto;
  padding-right: 2px;
}

.ps-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ps-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.ps-card--focus {
  box-shadow: 0 0 0 2px #0f7a3f;
}

.ps-card-image {
  background: #dce6f2;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
}

.ps-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-card-content {
  padding: 14px 16px;
}

.ps-card-price {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f4d2f;
}

.ps-card-address {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.25;
  color: #0f172a;
}

.ps-card-meta {
  margin-top: 8px;
  font-size: 14px;
  color: #526071;
}

.ps-card-facts {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #334155;
  font-size: 14px;
}

.ps-fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f6f9fc;
  border: 1px solid #dde5ef;
  border-radius: 999px;
  padding: 5px 11px;
}

.ps-fact-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: #0f7a3f;
}

.ps-fact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ps-loading,
.ps-empty {
  margin-top: 12px;
  border: 1px solid #d6dde6;
  border-radius: 0;
  background: #fff;
  color: #526071;
  padding: 12px 14px;
  text-align: center;
}

.ps-sentinel {
  height: 8px;
}

.ps-marker-label {
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .ps-searchbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ps-search-field--query {
    grid-column: span 4;
  }

  .ps-search-btn {
    justify-self: end;
  }

  .ps-layout {
    grid-template-columns: 1fr;
  }

  .ps-map-pane,
  .ps-list-pane {
    height: auto;
    min-height: 0;
  }

  .ps-list-pane {
    overflow: visible;
    padding-right: 0;
  }

  #psMap {
    height: 430px;
    min-height: 430px;
  }

  .ps-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ps-wrap {
    padding: 14px 10px 34px;
  }

  .ps-searchbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-search-field--query {
    grid-column: span 2;
  }

  .ps-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ps-map-pane {
    display: none;
  }

  .ps-cards {
    grid-template-columns: 1fr;
  }
}
