/* --- extracted style block 1 from filter.php --- */
    :root {
      --primary: #c62828;
      --primary-dark: #8e0000;
      --primary-light: #ff5f52;
      --secondary: #1565c0;
      --muted: #f1f4f6;
      --card-bg: #eef0f3;
      --dark-text: #333;
      --light-text: #666;
      --white: #fff;
      --shadow: 0 4px 12px rgba(0,0,0,0.08);
      --transition: all 0.3s ease;
    }
    
    body {
      font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; 
      background:#fff;
      color: var(--dark-text);
      padding-bottom: 100px;
      max-width: 1200px;
      margin: 0 auto;
      box-shadow: 0 0 20px rgba(0,0,0,0.05);
    }
    
    a {
      text-decoration: none;
      color: inherit;
    }
    
    /* Header Styles */
    .site-header {
      background: var(--white);
      border-bottom: 1px solid #eee;
      padding: 12px 20px;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .brand {
      font-family: 'Montserrat';
      font-weight: 700;
      color: var(--primary);
      letter-spacing: 2px;
      font-size: 1.4rem;
    }
    
    .nav-icon {
      font-size: 1.2rem;
      color: #444;
      position: relative;
    }
    
    .nav-badge {
      position: absolute;
      top: 0px;
      right: 1px;
      background: var(--primary);
      color: white;
      border-radius: 50%;
      width: 16px;
      height: 16px;
      font-size: 0.6rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* Search Bar */
    .search-container {
      padding: 12px 20px;
      background: var(--muted);
      border-bottom: 1px solid #e5e5e5;
      position: relative;
    }
    
    .search-bar {
      background: white;
      border-radius: 50px;
      padding: 8px 20px;
      box-shadow: var(--shadow);
      border: 1px solid #e0e0e0;
      display: flex;
      align-items: center;
      cursor: pointer;
    }
    
    .search-input {
      border: none;
      outline: none;
      flex: 1;
      padding: 6px 0;
      background: transparent;
      cursor: pointer;
    }
    
    .search-input::placeholder {
      color: #999;
    }
    
    /* Location Tags */
    .location-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    
    .location-tag {
      background: var(--primary-light);
      color: white;
      border-radius: 20px;
      padding: 6px 12px;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .location-tag .remove {
      cursor: pointer;
      font-size: 0.8rem;
    }
    
    /* Location Dropdown */
    .location-dropdown {
      position: absolute;
      top: 100%;
      left: 20px;
      right: 20px;
      background: white;
      border-radius: 10px;
      box-shadow: var(--shadow);
      z-index: 1001;
      margin-top: 5px;
      display: none;
      max-height: 300px;
      overflow-y: auto;
    }
    
    .location-dropdown.active {
      display: block;
    }
    
    .location-search-input {
      border: none;
      border-bottom: 1px solid #eee;
      padding: 15px;
      width: 100%;
      outline: none;
      border-radius: 10px 10px 0 0;
    }
    
    .location-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .location-item {
      padding: 12px 15px;
      border-bottom: 1px solid #f5f5f5;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .location-item:hover {
      background: #f9f9f9;
    }
    
    .location-item.selected {
      background: #f0f7ff;
    }
    
    .location-item .checkmark {
      color: var(--primary);
      display: none;
    }
    
    .location-item.selected .checkmark {
      display: block;
    }
    
    /* Filter Section */
    .filter-section {
      padding: 15px 20px;
      background: var(--muted);
      border-bottom: 1px solid #e5e5e5;
    }
    
    .filter-title {
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--dark-text);
      font-size: 1.1rem;
    }
    
    .filter-group {
      margin-bottom: 20px;
    }
    
    .filter-label {
      font-weight: 600;
      margin-bottom: 8px;
      font-size: 0.95rem;
    }
    
    .filter-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .filter-option {
      background: white;
      border: 1px solid #ddd;
      border-radius: 20px;
      padding: 8px 15px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: var(--transition);
    }
    
    .filter-option:hover {
      background: #f5f5f5;
    }
    
    .filter-option.active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }
    
    .price-inputs {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .price-input {
      flex: 1;
      border: 1px solid #ddd;
      border-radius: 5px;
      padding: 8px 12px;
      font-size: 0.9rem;
      width: 50%;
    }
    
    /* Fixed Filter Buttons */
    .fixed-filter-buttons {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
      z-index: 1000;
      padding: 15px 20px;
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
    }
    
    .btn-clear {
      background: transparent;
      border: 1px solid var(--primary);
      color: var(--primary);
      padding: 12px 25px;
      border-radius: 8px;
      font-weight: 600;
      transition: var(--transition);
      flex: 1;
      margin-right: 10px;
    }
    
    .btn-clear:hover {
      background: #ffeaea;
    }
    
    .btn-apply {
      background: var(--primary);
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 8px;
      font-weight: 600;
      transition: var(--transition);
      flex: 1;
      margin-left: 10px;
    }
    
    .btn-apply:hover {
      background: var(--primary-dark);
    }
    
    /* Property Type Specific Filters */
    .type-specific-filters {
      background: white;
      padding: 15px;
      border-radius: 10px;
      margin-top: 15px;
      box-shadow: var(--shadow);
      display: none;
    }
    
    .type-specific-filters.active {
      display: block;
    }
    
    /* Loading Spinner */
    .loading-spinner {
      display: none;
      text-align: center;
      padding: 20px;
      color: var(--primary);
    }
    
    .loading-spinner.active {
      display: block;
    }
    
    /* Responsive adjustments */
    @media (max-width: 576px) {
      body {
        box-shadow: none;
        padding-bottom: 90px;
      }
      
      .brand {
        font-size: 1.4rem;
      }
      
      .fixed-filter-buttons {
        padding: 12px 15px;
      }
      
      .btn-clear, .btn-apply {
        padding: 12px 15px;
        font-size: 0.9rem;
      }
      
      .location-dropdown {
        left: 15px;
        right: 15px;
      }
    }
  
