.mobile-filter-btn,
.filter-drawer-overlay,
.filter-drawer {
  display: none;
}

@media (max-width: 880px) {
  .listing .filters {
    display: none;
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-filter-btn:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .mobile-filter-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
  }

  .mobile-filter-btn .mfb-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--amber-deep);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-filter-btn.has-filters .mfb-count {
    display: inline-flex;
  }

  .filter-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: rgba(21, 35, 58, 0.45);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
  }

  .filter-drawer-overlay.open {
    pointer-events: auto;
    opacity: 1;
  }

  .filter-drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 301;
    display: block;
    max-height: 88vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: 22px 22px 0 0;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
  }

  .filter-drawer.open {
    transform: translateY(0);
  }

  .filter-drawer-handle {
    width: 40px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: rgba(21, 35, 58, 0.18);
  }

  .filter-drawer-top {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .filter-drawer-top h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
  }

  .filter-drawer-top .fd-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--amber-deep);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
  }

  .filter-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
  }

  .filter-drawer-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--ink);
  }

  .filter-drawer-body {
    padding: 18px 22px 28px;
  }

  .filter-drawer-body .filter-group {
    margin-bottom: 24px;
  }

  .filter-drawer-body .filter-group:last-child {
    margin-bottom: 0;
  }

  .filter-drawer-body .fg-title {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
  }

  .filter-drawer-body .filter-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: #3a4253;
    font-size: 14px;
    cursor: pointer;
  }

  .filter-drawer-body .filter-opt input {
    width: 16px;
    height: 16px;
    accent-color: var(--amber-deep);
  }

  .filter-drawer-apply {
    position: sticky;
    bottom: 0;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--white);
  }

  .filter-drawer-apply button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
  }

  .filter-drawer-apply button:hover {
    background: var(--teal-deep);
  }
}