.fav-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fav-icon i {
    color: #999;
    font-size: 16px;
}

.fav-icon i.fa-solid {
    color: red;
}

.listing-card {
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
    border-radius: 12px;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.text-hover-underline:hover {
    text-decoration: underline !important;
}

.listing-img-wrapper {
    height: 100%;
}

.price-slider {
    position: relative;
    width: 100%;
    height: 30px;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: #ff6f3c;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.listing-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px 0 0 8px;
}

@media (max-width: 767px) {
    .listing-img {
        border-radius: 8px 8px 0 0;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 20px;
}

.slider-track {
    width: 100%;
    height: 4px;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    border-radius: 5px;
    background-color: #efa811ed;
    z-index: 0;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #007bff;
    cursor: pointer;
    pointer-events: auto;
    margin-top: -8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    background-color: #007bff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 2-COLUMN GRID FOR CHECKBOXES - DESKTOP ONLY ==================== */

/* Desktop - 2 columns for checkboxes */
@media (min-width: 1200px) {
    .filter-checkbox-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
    }

    .filter-checkbox-grid .checkbox.wt-radio-checkbox {
        margin-bottom: 0;
    }
}

/* Tablet and Mobile - Single column (default stacking) */
@media (max-width: 1199px) {
    .filter-checkbox-grid {
        display: block;
    }

    .filter-checkbox-grid .checkbox.wt-radio-checkbox {
        margin-bottom: 8px;
    }
}

/* ==================== MOBILE FILTER SHEET ==================== */

@media (max-width: 1199px) {
    .mobile-filter-sheet {
        position: fixed;
        inset: 10% 0 0 0;
        background: #fff;
        z-index: 1050;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        padding-bottom: 80px;
    }

    .mobile-filter-sheet .side-bar {
        box-shadow: none;
        padding: 20px;
    }

    /* Prevent double-scroll hell */
    .mobile-filter-sheet .amenities-wrapper,
    #amenities-wrapper {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Sticky footer */
    .mobile-filter-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 12px;
        z-index: 1060;
        display: flex;
        gap: 10px;
    }

    .mobile-filter-footer button {
        flex: 1;
    }
}

/* =================== MOBILE FILTER HAMBURGER =================== */
.mobile-filter-toggle {
    position: fixed;
    top: 250px;
    right: 16px;
    z-index: 999;
    background: #f96b39;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: #d96328;
    transform: scale(1.05);
}

.mobile-filter-toggle i {
    font-size: 20px;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #f4f2ee;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
}

.mobile-filter-drawer.active {
    right: 0;
}

.mobile-filter-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid #d4d2ce;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-filter-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.mobile-filter-content {
    padding: 0;
}

.mobile-filter-content .side-bar {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 16px;
    margin: 0;
}

.mobile-filter-content .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
}

.mobile-filter-content .wt-separator {
    margin: 8px 0 16px;
}

.mobile-filter-content .form-control,
.mobile-filter-content .form-select {
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #d4d2ce;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-filter-content .form-control:focus,
.mobile-filter-content .form-select:focus {
    border-color: #f96b39;
    box-shadow: 0 0 0 2px rgba(249, 107, 57, 0.1);
}

.mobile-filter-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.mobile-filter-content .checkbox {
    padding-left: 1.75em;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.mobile-filter-content .checkbox input {
    float: left;
    margin-left: -1.75em;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    cursor: pointer;
}

.mobile-filter-content .checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
}

.mobile-filter-content .btn-primary {
    background: #f96b39;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 107, 57, 0.2);
    transition: all 0.2s;
}

.mobile-filter-content .btn-primary:hover {
    background: #d96328;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 107, 57, 0.3);
}

.mobile-filter-content .btn-warning {
    font-size: 12px;
    padding: 6px 12px;
}

@media (max-width: 1199px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .desktop-filter-sidebar {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .mobile-filter-toggle,
    .mobile-filter-overlay,
    .mobile-filter-drawer {
        display: none !important;
    }
}
.listing-img-wrapper {
    height: 210px;
    overflow: hidden;
}
/* Filter Count Badge */
.mobile-filter-toggle {
    overflow: visible;
}

.filter-count-badge {
    display: none;
    background: #0a66c2;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* Clear All link in drawer header */
.mobile-clear-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #f96b39;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #f96b39;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-clear-all-link:hover {
    background: #f96b39;
    color: #fff;
}

/* Reset link below Apply */
.reset-link {
    display: block;
    text-align: center;
    color: rgba(0, 0, 0, 0.64);
    font-size: 14px;
    margin-top: 6px;
    text-decoration: none;
    font-weight: 700;
}

.reset-link:hover {
    color: #f96b39;
}
