/* =========================================================
   FILTERS.CSS — left sidebar filters (price, beds, baths, type)
   ========================================================= */

.filters {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-thumb {
  background: #dbe3e1;
  border-radius: 8px;
}

/* ---------- HEAD ---------- */
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.filters-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.clear-all {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 7px;
  transition: .15s;
}
.clear-all:hover { background: var(--accent-soft); }

/* ---------- GROUP ---------- */
.fgroup {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.fgroup:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.fgroup h3 {
  margin: 0 0 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- PRICE ROW ---------- */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-row select {
  flex: 1;
  min-width: 0;
  padding: 9px 26px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink);
  outline: 0;
  transition: .15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7b7a' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.price-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,122,107,.12);
}
.price-row span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- PILLS ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pill {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: .15s;
}
.pill:hover {
  border-color: #c3d2cf;
  background: #fafcfb;
}
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---------- CHECKBOX GROUP ---------- */
.checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: .15s;
}
.check:hover { background: #f4f8f7; }

.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #c8d4d2;
  border-radius: 5px;
  margin: 0;
  flex-shrink: 0;
  transition: .15s;
  position: relative;
  cursor: pointer;
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.check span.count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}