.filter-mobile {
    position: relative;
}
.category-container {
  margin-bottom: 5px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.category-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  padding: 0px;
}

.amenity-item.hidden {
  display: none;
  /* Ẩn hoàn toàn item */
}

.amenity-item input {
  margin-right: 8px;
  position: relative;
  margin-top: -8px;
}

.amenity-item label {
  font-size: 14px;
  color: #555;
}
.price-range {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}


.slider-container-custom {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 5px;
  margin-top: 10px;
}

.slider-range-custom {
  position: absolute;
  height: 8px;
  background: #ff5733;
  border-radius: 5px;
}

.slider-handle-custom {
  width: 18px;
  height: 18px;
  background: #ff5733;
  border: 2px solid #fff;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
}

.price-values {
  display: block;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
  margin-top: 10px;
}
/* Giữ cố định phần "Giá mỗi đêm" khi cuộn */
.filter-mobile .filter-box {
    position: sticky;
    top: 0px; /* khoảng cách so với đỉnh khi dính */
    z-index: 10;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
}
.slider-container-custom, 
.slider-handle-custom {
  user-select: none;
}

.toggle-btn {
  display: block;
  margin-top: 0px;
  padding: 3px 5px;
  background: #fff;
  color: #0f1d53;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}
/* Ẩn icon filter trên desktop */
@media (min-width: 992px) {
    .filter-toggle-btn {
        display: none !important;
    }
    .filter-close-btn {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .filter-mobile {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease-in-out;
        padding: 0px 5px 5px 5px;
    }
    
    
    .filter-mobile.active {
        left: 0;
    }

    /* Icon filter nổi bên trái */
    .filter-toggle-btn {
        position: fixed;
        top: 157px;
        right: 15px;
        opacity:0.8;
        background-color: #002057;
        opacity:0.6;
        color: #fff;
        border-radius: 3px;
        border:1px solid #fff;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        cursor: pointer;
        transition: all 0.2s;
    }
    .filter-toggle-btn .la-filter {
        font-size: 18px;
    }
    .filter-toggle-btn:hover {
        background-color: #0056b3;
    }

    /* Nút đóng filter */
    .filter-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #ff4d4f;
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Khi filter mở, chặn scroll nền */
    body.filter-open {
        overflow: hidden;
    }
}
/* --- Cố định phần Apply filter ở cuối sidebar --- */
@media (max-width: 991px) {
    .filter-mobile .apply-filter {
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 20;
        padding: 0px 5px 0px 5px;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        border-top: 1px solid #ddd;
        margin-bottom: 0px;
    }
    
    .filter-mobile .apply-filter .btn {
        font-weight: 600;
        border-radius: 6px;
    }
}

