/* Search page layout */
.search-page {
  display: flex;
  padding-top: 72px;
  min-height: 100vh;
}

/* Filter panel */
.filter-panel {
  width: 280px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--cream);
  padding: 24px;
  overflow-y: auto;
  height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filter-header h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.filter-close {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
}

.filter-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream);
}
.filter-section:last-of-type {
  border-bottom: none;
}
.filter-section > label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.filter-section input[type="text"],
.filter-section input[type="month"],
.filter-section select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}
.filter-section input:focus,
.filter-section select:focus {
  outline: none;
  border-color: var(--gold);
}

.zip-row {
  display: flex;
  gap: 8px;
}
.zip-row input { flex: 1; }
.zip-row select { width: 80px; flex-shrink: 0; }

.date-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-row span { font-size: 12px; color: var(--text-muted); }
.date-row input { flex: 1; }

.fee-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fee-slider-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}
.fee-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  min-width: 48px;
  text-align: right;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* check-label styles in style.css */

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Results area */
.results-area {
  flex: 1;
  padding: 24px;
  max-width: 100%;
  overflow: hidden;
}

.results-header {
  margin-bottom: 24px;
}
.results-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.results-count {
  flex: 1;
  font-size: 14px;
  color: var(--text-soft);
}
.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}
.sort-select select {
  padding: 6px 12px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  background: var(--bg);
}

.search-bar-inline input {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  background: var(--white);
}
.search-bar-inline input:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-toggle { display: none; }

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.results-grid .listing-card {
  flex: none;
}
.results-grid .skeleton-card {
  height: 340px;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
}
.no-results h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 12px;
}
.no-results p {
  color: var(--text-soft);
  font-size: 15px;
}

/* Distance badge on cards */
.distance-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}

/* Mobile */
@media (max-width: 768px) {
  .filter-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 150;
    transition: left 0.3s;
    padding-top: 24px;
  }
  .filter-panel.open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }
  .filter-close { display: block; }
  .filter-toggle { display: inline-flex; }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .search-page {
    flex-direction: column;
  }
}
