/* =========================================
   CoHome SG — Room List Page
   ========================================= */

/* ── Page Hero ── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b2a 100%);
  padding: 100px 24px 50px;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c8a96e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.page-breadcrumb a { color: var(--accent); }
.page-breadcrumb span { color: rgba(255,255,255,0.5); }
.page-breadcrumb .material-icons { font-size: 1rem; color: rgba(255,255,255,0.4); }
.page-hero-content h1 { color: var(--white); margin-bottom: 12px; }
.page-hero-content p { color: rgba(255,255,255,0.65); font-size: 1.05rem; }

/* ── Layout ── */
.room-list-main { padding: 40px 0 80px; }

.room-list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Filters Panel ── */
.filters-panel {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-grey);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-grey);
}
.filters-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}
.filters-header h3 .material-icons { color: var(--accent); font-size: 1.2rem; }
.filters-reset {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}
.filters-reset:hover { color: var(--accent); }

.filter-group {
  border-bottom: 1px solid var(--light-grey);
  padding: 16px 0;
}
.filter-group:first-of-type { padding-top: 0; }
.filter-group:last-of-type { border-bottom: none; padding-bottom: 0; }

.filter-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color var(--transition);
}
.filter-group-title:hover { color: var(--primary); }

.filter-chevron {
  font-size: 1.1rem !important;
  transition: transform 0.25s ease;
}
.filter-group-title[aria-expanded="false"] .filter-chevron {
  transform: rotate(-90deg);
}

.filter-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 500px;
  opacity: 1;
  padding-top: 12px;
}
.filter-body.collapsed {
  max-height: 0;
  opacity: 0;
}

.filter-options { display: flex; flex-direction: column; gap: 8px; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.filter-option:hover { background: var(--light-grey); }
.filter-option.active,
.filter-option:has(input:checked) {
  background: var(--accent-light);
  border-color: rgba(200,169,110,0.4);
  color: var(--primary);
  font-weight: 600;
}
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Price Range */
.price-range-wrapper { padding-top: 4px; }
.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
.range-track {
  position: relative;
  height: 6px;
  background: var(--light-grey);
  border-radius: 3px;
  margin: 0 0 8px;
}
.range-fill {
  position: absolute;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
  pointer-events: none;
}
.range-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: all;
  z-index: 2;
}

/* ── Results ── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.results-count strong { color: var(--primary); font-weight: 700; }
.results-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.results-sort select {
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  background: var(--white);
  transition: var(--transition);
}
.results-sort select:focus { border-color: var(--accent); }

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--border-radius-pill);
  background: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 16px;
  transition: var(--transition);
}
.mobile-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-filter-btn .material-icons { font-size: 1.1rem; }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rooms-grid .room-card {
  width: 100%;
  flex: unset;
}

.room-card-skeleton {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--light-grey);
}

.no-results {
  text-align: center;
  padding: 80px 40px;
  grid-column: 1/-1;
}
.no-results .material-icons { font-size: 3.5rem; color: var(--mid-grey); margin-bottom: 16px; }
.no-results h3 { margin-bottom: 8px; }
.no-results p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Mobile Filter Drawer ── */
.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  backdrop-filter: blur(4px);
}
.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0 24px 32px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-drawer.open {
  transform: translateY(0);
}
.filter-drawer-overlay.open { display: block; }
.filter-drawer-header {
  position: sticky;
  top: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--light-grey);
  margin-bottom: 20px;
  z-index: 1;
}
.filter-drawer-header h3 { font-size: 1.1rem; }
.filter-drawer-header button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .room-list-layout { grid-template-columns: 1fr; }
  .filters-panel { display: none; }
  .mobile-filter-btn { display: flex; }
}
@media (max-width: 600px) {
  .rooms-grid { grid-template-columns: 1fr; }
}
