  .page-title { text-align: center; margin: 1.8rem auto; }
  .page-title h1 { font-size: 1.8rem; color: #2c3e50; }
  .page-title p { color: #666; margin-top: .4rem; }

  /* ——— Filters panel ——— */
  .filters-section { margin-bottom: 1.5rem; }
  .filters-form { margin: 0; }

  .filters-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255,255,255,0.8) inset;
    overflow: hidden;
  }

  .filters-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.12) 0%, rgba(33, 118, 255, 0.06) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

  .filters-panel__title {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: right;
  }

  .filters-panel__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #D4AF37, #c9a227);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  }

  .filters-panel__heading {
    margin: 0 0 0.2rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
  }

  .filters-panel__hint {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 28rem;
  }

  .filters-panel__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
  }

  .btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: inherit;
  }

  .btn-filter--primary {
    background: linear-gradient(135deg, #2176ff 0%, #155dcc 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(33, 118, 255, 0.28);
  }

  .btn-filter--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(33, 118, 255, 0.35);
    color: #fff;
  }

  .btn-filter--ghost {
    background: #fff;
    color: #475569;
    border: 2px solid #e2e8f0;
  }

  .btn-filter--ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
  }

  .btn-filter--block {
    width: 100%;
  }

  .filters-mobile-toggle { border: 0; margin: 0; padding: 0; }
  .filters-mobile-toggle__summary {
    list-style: none;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: #334155;
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
  }
  .filters-mobile-toggle__summary::-webkit-details-marker { display: none; }
  .filters-mobile-toggle__summary i {
    transition: transform 0.2s ease;
  }
  .filters-mobile-toggle:not([open]) .filters-mobile-toggle__summary i {
    transform: rotate(-90deg);
  }

  .filters-body {
    padding: 1.15rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .filter-section {
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed #e2e8f0;
  }
  .filter-section:last-of-type { border-bottom: none; padding-bottom: 0; }

  .advanced-filters-inner .filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .filters-body > .filter-section.filter-section--basic:last-of-type {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 1.1rem;
    margin-bottom: 0;
  }

  .filter-section--basic .filter-grid + .filter-grid {
    margin-top: 0.85rem;
  }

  .filter-section__label {
    margin: 0 0 0.75rem 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  .filter-section__label i {
    color: #D4AF37;
    font-size: 0.95rem;
  }

  .filter-grid {
    display: grid;
    gap: 0.85rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .filter-grid--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .filter-grid--3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .filter-grid--4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

  .filter-field--wide { grid-column: 1 / -1; }

  .filter-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
  }

  .filter-field input,
  .filter-field select {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
  }

  .filter-field input:focus,
  .filter-field select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  }

  .filter-field input::placeholder { color: #94a3b8; }

  /* Amenity chips */
  .amenity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .amenity-chip {
    position: relative;
    cursor: pointer;
    margin: 0;
  }

  .amenity-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .amenity-chip__face {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    background: #fff;
    border: 2px solid #e2e8f0;
    transition: all 0.15s ease;
  }

  .amenity-chip__face i { color: #94a3b8; }

  .amenity-chip:hover .amenity-chip__face {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .amenity-chip.is-on .amenity-chip__face,
  .amenity-chip input:checked + .amenity-chip__face {
    background: linear-gradient(135deg, rgba(33, 118, 255, 0.12), rgba(212, 175, 55, 0.15));
    border-color: #2176ff;
    color: #1e40af;
  }

  .amenity-chip.is-on .amenity-chip__face i,
  .amenity-chip input:checked + .amenity-chip__face i {
    color: #2176ff;
  }

  .filters-advanced-trigger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0 0.9rem;
    border-bottom: 1px dashed #e2e8f0;
  }

  .filters-advanced-trigger .btn-filter--ghost:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  }

  .advanced-filters-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  }

  .advanced-filters-wrap.advanced-filters--open {
    max-height: 4800px;
  }

  #advanced-filters-chevron {
    transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
  }

  #advanced-filters-toggle[aria-expanded='true'] #advanced-filters-chevron {
    transform: rotate(-180deg);
  }

  .advanced-filters-wrap .advanced-filters-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0.15rem;
  }

  .filters-active-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.15rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.05rem;
    border-bottom: 1px dashed #e2e8f0;
  }

  .filter-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.45rem 0.72rem;
    padding-inline-start: 0.92rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    background: #fff;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    font-family: inherit;
    line-height: 1.2;
    max-width: 100%;
  }

  .filter-active-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
  }

  .filter-active-chip__remove {
    display: grid;
    place-items: center;
    width: 1.36rem;
    height: 1.36rem;
    margin-inline-end: -0.15rem;
    border-radius: 50%;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.75;
  }

  .filter-active-chip:hover .filter-active-chip__remove {
    opacity: 1;
    color: #c2410c;
  }

  .filters-footer-bar {
    padding-top: 0.25rem;
    display: none;
  }

  .results-header { display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0 .6rem; }
  .results-header h2 { margin: 0; font-size: 1.2rem; color: #2c3e50; }
  .results-count { color: #666; font-size: .95rem; }

  .empty-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #e2e8f0;
  }
  .empty-results i {
    font-size: 2.75rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    display: block;
  }
  .empty-results p { color: #64748b; margin-bottom: 1rem; }

  .apartment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
  .apartment-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.06); display: flex; flex-direction: column; height: 100%; max-height: 650px; }
  .card-image { position: relative; aspect-ratio: 16/10; flex-shrink: 0; min-height: 200px; max-height: 250px; overflow: hidden; }
  .card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .wishlist-btn { position: absolute; top: 10px; right: 10px; background: #fff; border: 0; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; color: #e74c3c; box-shadow: 0 6px 18px rgba(0,0,0,.15); z-index: 20; cursor: pointer; visibility: visible !important; opacity: 1 !important; }
  .card-badge { position: absolute; bottom: 10px; left: 10px; background: #27ae60; color: #fff; padding: .25rem .6rem; border-radius: 8px; font-size: .75rem; font-weight: 600; white-space: nowrap; display: inline-block; height: auto; line-height: 1.2; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

  .card-content { padding: .9rem .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; }
  .card-content-inner { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .5rem; }
  .card-header { display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; }
  .card-header h3 { font-size: 1.05rem; margin: 0; color: #2c3e50; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; max-height: 2.8em; }
  .price { background: #f3f7ff; color: #2176ff; padding: .25rem .6rem; border-radius: 10px; font-weight: 800; font-size: .95rem; align-self: flex-start; }
  .card-meta { color: #6b7a90; font-size: .9rem; flex-shrink: 0; overflow: hidden; }
  .card-meta .gender { padding: .15rem .5rem; border-radius: 999px; font-weight: 700; font-size: .8rem; }
  .gender.male { background: #e7f2ff; color: #1976d2; }
  .gender.female { background: #fde7ef; color: #e91e63; }

  .card-details { display: flex; flex-direction: column; gap: .5rem; color: #546e7a; font-size: .9rem; flex-shrink: 1; min-height: 0; }
  .detail-item { display: flex; align-items: center; gap: .35rem; min-width: 0; overflow: hidden; }
  .detail-item > span { white-space: nowrap; }
  .detail-item-full { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
  .detail-item-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
  .beds-available { color: #27ae60; font-weight: 700; }
  .beds-booked { color: #e67e22; font-weight: 700; }

  .amenities-list { display: flex; gap: .4rem .7rem; flex-wrap: wrap; margin-top: .1rem; max-height: 3.5em; overflow: hidden; flex-shrink: 0; padding-bottom: 75px; }
  .amenity { background: #f7f9fb; border: 1px solid #eef2f6; color: #557; padding: .25rem .55rem; border-radius: 999px; font-size: .85rem; }

  .card-actions { margin-top: auto; padding-top: .4rem; flex-shrink: 0; position: relative; z-index: 10; }
  .view-details-btn { display: inline-block; width: 100%; text-align: center; background: #2176ff; color: #fff; text-decoration: none; padding: .55rem .9rem; border-radius: 12px; font-weight: 800; transition: .18s; }
  .view-details-btn:hover { background: #1a5dd6; box-shadow: 0 10px 22px rgba(33,118,255,.25); }

  .pagination { margin-top: 1.2rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
  .page-btn { background: #fff; border: 1px solid #e8edf4; border-radius: 10px; padding: .45rem .75rem; cursor: pointer; text-decoration: none; color: #333; display: inline-block; }
  .page-btn:hover { background: #f5f7fa; }
  .page-btn.active { background: #2176ff; color: #fff; border-color: #2176ff; }
  .page-btn.disabled { opacity: 0.5; cursor: not-allowed; }
  .page-btn.next { display: inline-flex; align-items: center; gap: .35rem; }

  @media (max-width: 768px) {
    .filters-mobile-toggle__summary { display: flex; }
    .filters-panel__cta .btn-filter--primary { display: none; }
    .filters-footer-bar { display: block; }
    .filters-panel__hint { display: none; }
  }

  @media (max-width: 640px) {
    .filter-grid--4 { grid-template-columns: 1fr 1fr; }
    .filters-panel__head { flex-direction: column; }
    .filters-panel__cta { width: 100%; }
    .btn-filter--ghost { flex: 1; }
  }
