/**
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License version 3.0
* that is bundled with this package in the file LICENSE.md
* It is also available through the world-wide-web at this URL:
* https://opensource.org/license/osl-3-0-php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to support@qloapps.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your needs
* please refer to https://store.webkul.com/customisation-guidelines for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
*/

.layered_filter_cont
{
	background-color: #fff;
    border: 1px solid #e6e6e6;
    margin-top: 20px;
}

.layered_filter_cont div.layered_filter_heading
{
	padding: 10px;
}
.layered_filter_cont div.layered_filter_heading div.lf_headingmain_wrapper span
{
	color: #333;
    font-size: 16px;
    font-weight: 400;
    display: block;
}

.layered_filter_cont div.layered_filter_heading span.clear_filter
{
	cursor: pointer;
	color: #a9a9a9 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    text-decoration: underline;
}

.lf_sub_cont
{
	padding: 10px;
	max-height: 200px;
    overflow-y: auto;
    padding: 0 10px 10px;
}

.layered_filt
{
	margin-bottom: 5px;
}

.filters_name, .price_filter_subcont span
{
	font-size: 16px;
	color: #555555;
	font-weight: 400;
}

.layered_filt div.checker
{
	display: inline-block;
}

#filter_price_silder
{
	margin-top: 15px;
}

#filter_price_silder .ui-slider-range
{
	background-color: #379BF0;
    background-image: none;
}

#filter_price_silder .ui-slider-handle
{
	background-color: #FFFFFF;
    background-image: none;
    border-color: #bebbbb;
    border-radius: 50%;
    outline: none;
}

#filter_price_silder.ui-widget-content {
	border: none;
}

/* ==========================================================================
   Mobile Bottom Sheet Filter Modal
   ========================================================================== */
.mobile_filter_backdrop,
.mobile_sheet_drag_bar,
.mobile_sheet_header,
.mobile_sheet_footer {
    display: none;
}

@media (max-width: 767px) {
    body.mobile_sheet_body_lock {
        overflow: hidden !important;
    }

    .mobile_filter_backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(22, 12, 6, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }
    .mobile_filter_backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #left_column {
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        border: none !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        clear: both !important;
        float: none !important;
        width: 100% !important;
    }

    #filter_results {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        background: #ffffff !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.28) !important;
        z-index: 999999 !important;
        transform: translateY(105%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: none !important;
    }
    #filter_results.mobile_sheet_open {
        transform: translateY(0%) !important;
    }

    .mobile_sheet_drag_bar {
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 12px 0 6px;
        width: 100%;
        background: #ffffff;
    }
    .mobile_sheet_drag_bar .drag_handle_pill {
        display: block;
        width: 44px;
        height: 5px;
        background: #d8c8ba;
        border-radius: 3px;
    }

    .mobile_sheet_header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 8px 20px 14px;
        border-bottom: 1px solid #f0e4d8;
        background: #ffffff;
    }
    .mobile_sheet_title {
        font-size: 17px;
        font-weight: 700;
        color: #2c1a0e;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile_sheet_title i {
        color: #a05a2c;
        font-size: 16px;
    }
    .mobile_sheet_title .mobile_filter_pill {
        display: none;
        background: #f3ece4;
        color: #a05a2c;
        font-size: 12px;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 12px;
    }
    .mobile_sheet_title .mobile_filter_pill.has_active_filters {
        display: inline-block;
        background: #a05a2c;
        color: #ffffff;
    }
    .mobile_sheet_close_btn {
        background: #f5ede4;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #5c4738;
        font-size: 15px;
        cursor: pointer;
        outline: none;
    }

    .mobile_sheet_scroll_body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 18px 20px !important;
        max-height: calc(85vh - 135px);
    }
    .mobile_sheet_scroll_body .layered_filter_cont {
        background: #ffffff;
        border: 1px solid #ede1d4;
        border-radius: 14px;
        margin-top: 0;
        margin-bottom: 16px;
        padding: 14px 16px;
        box-shadow: 0 2px 8px rgba(50, 28, 14, 0.03);
    }
    .mobile_sheet_scroll_body .layered_filter_heading {
        padding: 0 0 10px 0 !important;
    }
    .mobile_sheet_scroll_body .lf_headingmain_wrapper span {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #2c1a0e !important;
    }
    .mobile_sheet_scroll_body .theme-text-underline {
        display: none !important;
    }
    .mobile_sheet_scroll_body .clear_filter {
        font-size: 12px !important;
        color: #a05a2c !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }

    .mobile_sheet_scroll_body .lf_sub_cont {
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Price Section */
    .price_filter_subcont {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px !important;
        margin-top: 4px !important;
    }
    .price_filter_subcont span#filter_price_from,
    .price_filter_subcont span#filter_price_to {
        background: #faf5ee;
        border: 1px solid #e8dbcd;
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 14px;
        font-weight: 700;
        color: #a05a2c;
    }
    #filter_price_silder {
        height: 8px;
        background: #ebdccf;
        border-radius: 4px;
        border: none;
        margin: 10px 8px 14px 8px;
    }
    #filter_price_silder .ui-slider-range {
        background: linear-gradient(90deg, #a05a2c, #d4a359) !important;
        border-radius: 4px;
    }
    #filter_price_silder .ui-slider-handle {
        width: 24px;
        height: 24px;
        top: -8px;
        background: #ffffff !important;
        border: 3px solid #a05a2c !important;
        box-shadow: 0 2px 8px rgba(50, 28, 14, 0.25) !important;
        border-radius: 50% !important;
        outline: none !important;
        cursor: pointer;
    }

    /* Amenities Chips 2-Column Grid */
    .filter_section_amenities .lf_sub_cont {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .filter_section_amenities .layered_filt {
        display: flex !important;
        align-items: center !important;
        background: #faf7f2;
        border: 1.5px solid #ebdccf;
        border-radius: 10px;
        padding: 8px 10px;
        margin-bottom: 0 !important;
        cursor: pointer;
        gap: 8px;
        transition: all 0.2s ease;
    }
    .filter_section_amenities .layered_filt.active_chip {
        background: #fcf4ec !important;
        border-color: #a05a2c !important;
        box-shadow: 0 2px 6px rgba(160, 90, 44, 0.12) !important;
    }
    .filter_section_amenities .layered_filt .filters_name {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #3e2717 !important;
        margin: 0 !important;
        cursor: pointer;
    }
    .filter_section_amenities .layered_filt.active_chip .filters_name {
        font-weight: 700 !important;
        color: #a05a2c !important;
    }
    .filter_section_amenities .layered_filt input[type="checkbox"] {
        accent-color: #a05a2c;
        width: 17px;
        height: 17px;
        margin: 0 !important;
        cursor: pointer;
    }

    /* Footer */
    .mobile_sheet_footer {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        background: #ffffff;
        border-top: 1px solid #f0e4d8;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    }
    .mobile_btn_clear {
        flex: 1 1 35%;
        height: 44px;
        background: #faf6ef;
        border: 1.5px solid #ebdccf;
        border-radius: 10px;
        color: #5c4738;
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .mobile_btn_apply {
        flex: 2 1 65%;
        height: 44px;
        background: linear-gradient(135deg, #a05a2c 0%, #c47d3e 100%);
        border: none;
        border-radius: 10px;
        color: #ffffff;
        font-size: 14.5px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(160, 90, 44, 0.3);
    }
}