/* =============================================
   ELEGANT GALLERY SIDEBAR DESIGN
   Modern, Clean, Spacious Filter Sidebar
   ============================================= */

/* Main Filter Container */
.filter-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 28px 24px;
    position: sticky;
    top: 20px;
}

/* Search Section */
.filter-search {
    margin-bottom: 32px;
}

.filter-search p {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filter-search .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-search input.form-control {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-right: none;
    transition: all 0.3s ease;
}

.filter-search input.form-control:focus {
    border-color: #3498db;
    box-shadow: none;
    outline: none;
}

.filter-search button.btn.btn-secondary {
    background: #3498db;
    border: 1px solid #3498db;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.filter-search button.btn.btn-secondary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: scale(1.02);
}

.filter-search button.btn.btn-secondary i {
    font-size: 16px;
}

/* Filter By Title */
.filter-by {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-by p {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Accordion Cards */
.myaccordion .card {
    margin-bottom: 16px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    transition: all 0.3s ease;
}

.myaccordion .card:hover {
    background: #f5f5f5;
}

.myaccordion .card-header {
    padding: 0;
    background: transparent;
    border: none;
}

.myaccordion .card-header button {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

.myaccordion .card-header button:after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #7f8c8d;
}

.myaccordion .card-header button:not(.collapsed):after {
    transform: translateY(-50%) rotate(-180deg);
    color: #3498db;
}

.myaccordion .card-header button:hover {
    color: #3498db;
}

.myaccordion .card-header button:focus {
    outline: none;
    box-shadow: none;
}

/* Card Body - Checkbox Lists */
.myaccordion .card-body {
    padding: 8px 20px 20px;
    max-height: 280px;
    overflow-y: auto;
}

.myaccordion .card-body::-webkit-scrollbar {
    width: 6px;
}

.myaccordion .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.myaccordion .card-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.myaccordion .card-body::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

.myaccordion .card-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.myaccordion .card-body li {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Enhanced Checkboxes */
.check_Box {
    display: flex;
    align-items: center;
}

.check_Box .css-checkbox {
    position: absolute;
    opacity: 0;
}

.check_Box .css-label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    user-select: none;
    line-height: 20px;
}

.check_Box .css-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.check_Box .css-label:after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 12px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.check_Box .css-checkbox:checked + .css-label:before {
    background: #3498db;
    border-color: #3498db;
}

.check_Box .css-checkbox:checked + .css-label:after {
    opacity: 1;
    transform: scale(1);
}

.check_Box .css-checkbox:checked + .css-label {
    color: #2c3e50;
    font-weight: 600;
}

.check_Box .css-label:hover {
    color: #3498db;
}

.check_Box .css-label:hover:before {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Price Range Section */
.rangVal {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rangVal label {
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    margin: 0 8px;
}

.rangVal input.box {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.rangVal input.box:focus {
    border-color: #3498db;
    outline: none;
}

/* Range Slider */
.range-slide {
    margin: 24px 0;
}

.sliderValues {
    margin-top: 12px;
}

.sliderValues .example-val {
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    padding: 4px 12px;
    background: #e3f2fd;
    border-radius: 6px;
}

/* Reset Button */
.reset-filter-btn-desk {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.reset-filter-btn-desk .enquiry-btn a {
    display: block;
    padding: 14px 24px;
    background: #ecf0f1;
    color: #2c3e50;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reset-filter-btn-desk .enquiry-btn a:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Mobile Filter Enhancements */
.filter-title-mobile {
    display: none;
}

@media (max-width: 991px) {
    .filter-section {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
        padding: 24px;
        border-radius: 0;
        transition: left 0.3s ease;
    }

    .filter-section.active {
        left: 0;
    }

    .filter-title-mobile {
        display: block;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 2px solid #f0f0f0;
    }

    .filter-title-mobile p {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 16px;
    }

    .close-sidebar {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: #7f8c8d;
        transition: color 0.3s ease;
    }

    .close-sidebar:hover {
        color: #e74c3c;
    }
}

/* Smooth Animations */
* {
    -webkit-tap-highlight-color: transparent;
}

.card,
.card-header button,
.css-label,
.enquiry-btn a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
