.search-page {
  padding-top: calc(12px + var(--safe-top));
}

.compact-header {
  position: sticky;
  z-index: 20;
  top: 0;
  margin: 0 -18px;
  padding: 8px 18px;
  background: rgba(247,247,249,.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.search-input-wrap {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 5px 20px rgba(15,15,20,.05);
}

.search-input-wrap svg {
  width: 19px;
  height: 19px;
}

.search-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-pills {
  display: flex;
  gap: 8px;
  margin: 13px -18px 0;
  padding: 0 18px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-pills button {
  min-width: max-content;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 750;
}

.filter-pills button.is-active {
  color: white;
  background: #18181b;
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 25px 0 18px;
}

.results-heading h1 {
  font-size: 30px;
}

.results-heading > span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #ececef;
  font-size: 11px;
  font-weight: 750;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.property-card {
  position: relative;
  min-width: 0;
}

.property-card__image-wrap {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #e9e9ec;
}

.property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.property-card:active .property-card__image {
  transform: scale(.985);
}

.property-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 18px rgba(15,15,20,.09);
  font-size: 12px;
  font-weight: 850;
}

.heart-button {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(20,20,24,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.heart-button svg {
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

.heart-button.is-saved svg,
.floating-icon.is-saved svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.property-card__body {
  width: 100%;
  padding: 12px 5px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.property-card__title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.property-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.02em;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
}

.rating svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.property-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.property-card__price {
  color: var(--text) !important;
  font-weight: 850;
}

.property-card__price span {
  color: var(--muted);
  font-weight: 500;
}

.property-card--compact .property-card__image-wrap {
  aspect-ratio: 1.04 / 1;
  border-radius: 22px;
}

.property-card--compact h3 {
  font-size: 15px;
}

.property-card--compact .property-card__meta {
  display: none;
}

@media (min-width: 620px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
