/* More Filters Modal Overlay */
:root {
  --primary-color: #2563eb;
}
.more-filters-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 2000;
  align-items: flex-start;
  justify-content: flex-end;
}

/* More Filters Modal Sidebar */
.more-filters-modal {
  background: #fff;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -2px 0 16px rgba(0,0,0,0.12);
  padding: 32px 28px 24px 28px;
  position: relative;
  animation: slideInRight 0.2s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.close-more-filters {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.38rem;
  color: #888;
  cursor: pointer;
}

.more-filters-list {
  margin-top: 18px;
}
.more-filter-section {
  margin-bottom: 32px;
}
  
.more-filter-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.more-filter-btn {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: #444;
  font-weight: 600;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
  margin-bottom: 8px;
}
.more-filter-btn.selected,
.more-filter-btn:hover {
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: #f0e7ff;
}
.property-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  /* border-radius: 10px; */
  box-shadow: 0 2px 12px rgba(30, 64, 175, 0.10); /* Use primary blue with some opacity */
  padding: 18px 24px;
  margin: 65px 0 0px 0;
  position: relative;
  z-index: 100;
  overflow: visible;
}

/* Filter Dropdown Container */
.filter-dropdown {
  position: relative;
}

.property-filter-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 18px;
  font-size: 0.75rem; /* reduced ~3px */
  color: #444;
  font-weight: 600;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  min-width: 120px;
  white-space: nowrap;
}

.property-filter-pill.selected,
.property-filter-pill:hover {
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
  color: var(--primary-color);
}

.property-filter-pill.active {
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}

.property-filter-pill .fa-star {
  color: #ffd600;
  font-size: 0.98em;
}

.property-filter-pill .fa-info-circle {
  color: #aaa;
  font-size: 0.98em;
}

/* Dropdown Menu */
.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.filter-dropdown-menu.active {
  display: block;
}

.filter-option {
  padding: 12px 20px;
  font-size: 0.83rem;
  color: #444;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.filter-option.selected {
  background: #f0e7ff;
  color: var(--primary-color);
  font-weight: 600;
}

.property-filters-bar .reset-filters {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 18px;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
  background: none;
  border: none;
  transition: color 0.2s;
}

.property-filters-bar .reset-filters:hover {
  color: #5a1fb8;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .property-filters-bar {
    padding: 12px 14px;
    gap: 8px;
    margin: 55px 0 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .property-filters-bar::-webkit-scrollbar { display: none; }
  .property-filter-pill {
    font-size: 0.78rem;
    padding: 7px 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .more-filters-modal {
    width: 100vw;
    max-width: 100vw;
    padding: 24px 18px 20px;
  }
}

@media (max-width: 480px) {
  .property-filters-bar { padding: 10px 12px; }
  .property-filter-pill { font-size: 0.74rem; padding: 6px 10px; }
}
