/* ═══════════════════════════════════════════════════════════════════
   resale.center — homes.css
═══════════════════════════════════════════════════════════════════ */

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

/* ══ FILTERS BAR ════════════════════════════════════════════════════ */
.filters-bar {
  background: var(--black);
  padding: calc(var(--nav-h) + 24px) 24px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.filters-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 10px 16px;
  flex: 1;
  min-width: 180px;
  transition: border-color 0.2s;
}
.filter-search:focus-within {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
}
.filter-search svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.filter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
}
.filter-input::placeholder { color: rgba(255,255,255,0.35); }

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.filter-chips {
  display: flex;
  gap: 4px;
}
.chip {
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.chip:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.chip--active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  font-weight: 600;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}
.price-select {
  appearance: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.price-select:focus { border-color: rgba(255,255,255,0.4); }
.price-select option { background: #1a1a1a; color: var(--white); }

/* ══ RESULTS SECTION ════════════════════════════════════════════════ */
.results-section {
  background: var(--off-white);
  padding: 32px 24px 80px;
  min-height: 60vh;
}
.results-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.results-meta p:first-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.results-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey-3);
}

/* ══ LISTINGS GRID ══════════════════════════════════════════════════ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

/* ══ LISTING CARD ═══════════════════════════════════════════════════ */
.listing-card {
  background: var(--white);
  border: 1px solid var(--grey-1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Photo */
.card-photo {
  position: relative;
  height: 200px;
  background: var(--grey-1);
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.listing-card:hover .card-photo img { transform: scale(1.04); }
.card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-3);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
}

/* Badges on photo */
.card-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  line-height: 1;
}
.card-badge--verified {
  top: 12px; left: 12px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.card-badge--age {
  bottom: 10px; left: 12px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  backdrop-filter: blur(6px);
}

/* Card body */
.card-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.2;
  margin: 0;
}
.card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin: 0;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--grey-3);
  margin: 0;
}
.card-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-specs span {
  font-size: 11px;
  font-weight: 500;
  color: var(--grey-4);
  background: var(--off-white);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--grey-1);
  white-space: nowrap;
}
.card-desc {
  font-size: 13px;
  color: var(--grey-3);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--grey-1);
}
.card-views {
  font-size: 11px;
  color: var(--grey-3);
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.btn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--grey-1);
  border-radius: 8px;
  background: var(--white);
  color: var(--grey-3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.btn-save:hover { color: #e11d48; border-color: #fda4af; background: #fff1f2; }
.btn-save--saved { color: #e11d48; border-color: #fda4af; background: #fff1f2; }

/* No results */
.no-results {
  padding: 64px 24px;
  text-align: center;
  color: var(--grey-3);
  font-size: 15px;
}
.no-results a { color: var(--black); font-weight: 600; }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }
}
@media (max-width: 768px) {
  .filters-bar { padding: calc(var(--nav-h) + 16px) 16px 16px; }
  .filters-inner { gap: 8px; }
  .filter-search { min-width: 120px; }
  .filter-label { display: none; }
  .results-section { padding: 20px 16px 60px; }
  .listings-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-price { font-size: 18px; }
}
@media (max-width: 480px) {
  .filters-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters-inner::-webkit-scrollbar { display: none; }
  .filter-group { flex-shrink: 0; }
}

.btn-chat-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0a0a0a;
  color: #fff;
  border: 1.5px solid #0a0a0a;
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-chat-main:hover {
  background: #333;
  border-color: #333;
}
