/* /css/mobile-css/mobile-filter.css */

/* Yalnız mobil üçün */
@media (max-width: 767px) {
  /* Arxa fon overlay + panel konteyneri */
  .m-filter-panel {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 72px 12px 12px; /* yuxarıdakı navbar üçün boşluq + kənar margin */
    background: rgba(15, 23, 42, 0.55); /* tünd şəffaf overlay */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .m-filter-panel.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Panelin öz “kart” hissəsi */
  .m-filter-panel-content {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 96px);
    overflow: hidden;
  }

  .m-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
  }

  .m-filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }

  .m-filter-close {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    color: #6b7280;
  }

  .m-filter-close:active {
    transform: scale(0.96);
  }

  .m-filter-body {
    padding: 10px 14px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .m-filter-group {
    margin-bottom: 10px;
  }

  .m-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
  }

  .m-filter-group input,
  .m-filter-group select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
  }

  .m-filter-group input:focus,
  .m-filter-group select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
  }

  .m-filter-row--2 {
    display: flex;
    gap: 8px;
  }

  .m-filter-row--2 .m-filter-group {
    flex: 1;
  }

  .m-filter-group--inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .m-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
  }

  .m-filter-checkbox input {
    width: 16px;
    height: 16px;
  }

  .m-filter-footer {
    padding: 8px 12px 10px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }

  .m-filter-btn {
    flex: 1;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .m-filter-btn--ghost {
    background: #e5e7eb;
    color: #374151;
  }

  .m-filter-btn--primary {
    background: #0ea5e9;
    color: white;
  }

  .m-filter-btn--primary:active {
    transform: scale(0.98);
  }

  /* Panel açıq olanda arxanı scroll etməmək üçün */
  body.no-scroll {
    overflow: hidden;
    touch-action: none;
  }
}
