/* ─── Filter Overlay Backdrop ───────────────────────── */
#filter-overlay.overlay {
    background: rgba(0, 15, 30, 0.7);
    backdrop-filter: blur(10px);
  }
  
  /* ─── Filter Container (Content Box) ───────────────── */
  .filter-content {
    max-width: 500px;
    width: 90%;
    background: #1e293b;              /* dark slate background */
    color: #dff6ff;                   /* light text */
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.15);
    position: relative;
    animation: fadeSlideIn 0.4s ease-out;
  }
  
  /* Title */
  .filter-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #00d4ff;
    font-size: 1.75rem;
    font-weight: 700;
  }
  
  /* Close “×” */
  #filter-overlay .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
  }
  #filter-overlay .close-btn:hover {
    color: #fff;
    transform: scale(1.1);
  }
  
  /* Form grid */
  .filter-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin-top: 1rem;
  }
  
  /* Full-width rows */
  .filter-form .filter-group.full,
  .filter-form .filter-group.type {
    grid-column: 1 / -1;
  }
  
  /* Standard fields */
  .filter-form .filter-group {
    display: flex;
    flex-direction: column;
  }
  .filter-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #cbe9ff;
  }
  
  /* Inputs with green glow on focus */
  .filter-form input,
  .filter-form select {
    padding: 0.6rem 0.8rem;
    border: 1px solid #435569;
    border-radius: 8px;
    font-size: 1rem;
    background: #2e3a4b;
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .filter-form input:hover,
  .filter-form input:focus,
  .filter-form select:hover,
  .filter-form select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  }
  
  /* Home Type tabs */
  .filter-type-tabs {
    display: flex;
    gap: 0.5rem;
  }
  .filter-type-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    background: #2e3a4b;
    border: 1px solid #435569;
    border-radius: 8px;
    color: #cbe9ff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  .filter-type-tab:hover {
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  }
  .filter-type-tab.active {
    background: #16a34a;
    color: #001d16;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3);
  }
  
  /* Apply/Clear buttons */
  .filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
  }
  .apply-btn,
  .clear-btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
  }
  .apply-btn {
    background: #16a34a;
    color: #fff;
    margin-right: 0.5rem;
  }
  .apply-btn:hover {
    background: #13863e;
    transform: translateY(-2px);
  }
  .clear-btn {
    background: #ef4444;
    color: #fff;
    margin-left: 0.5rem;
  }
  .clear-btn:hover {
    background: #d11f2b;
    transform: translateY(-2px);
  }
  
  /* Responsive */
  @media (max-width: 480px) {
    .filter-form {
      grid-template-columns: 1fr;
      gap: 0.75rem 1rem;
    }
  }
  