/* Offcanvas width aligned with main mobile menu */
#hz-offcanvas-mobile-filter.offcanvas {
    --bs-offcanvas-width: 70vw;
    transition: transform .28s ease;
    background-color: #fff;
}

#hz-offcanvas-mobile-filter .offcanvas-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

#hz-offcanvas-mobile-filter .offcanvas-title {
    font-size: 16px;
    font-weight: 600;
}

/* Ensure inner mobile form stretches nicely */
#hz-offcanvas-mobile-filter .overlay-search-advanced-module {
    margin: 0;
    position: static !important;
    height: auto !important;
    top: auto !important;
    z-index: auto !important;
}

#hz-offcanvas-mobile-filter .overlay-search-advanced-module .search-title {
    display: none;
}

/* Chips (compact) */
#hz-offcanvas-mobile-filter .azr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px
}

#hz-offcanvas-mobile-filter .azr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #00115e;
    border: 1px solid #cfd6ff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2
}

#hz-offcanvas-mobile-filter .azr-chip .azr-chip-x {
    font-size: 14px;
    line-height: 1;
    opacity: .8
}

#hz-offcanvas-mobile-filter .azr-chip-more {
    cursor: default;
    background: #f6f8ff
}

/* Field labels on mobile (same spacing as desktop) */
#hz-offcanvas-mobile-filter .azr-field-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 6px;
}

/* ===== Basic layout inside offcanvas ===== */
#hz-offcanvas-mobile-filter .offcanvas-body {
    padding: 12px;
    overflow-y: auto;
}

#hz-offcanvas-mobile-filter #mobile-search-form .row {
    margin: 0;
}

#hz-offcanvas-mobile-filter #mobile-search-form .row>[class^="col"],
#hz-offcanvas-mobile-filter #mobile-search-form .row>[class*=" col"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#hz-offcanvas-mobile-filter #mobile-search-form .form-group {
    margin-bottom: 12px;
}

/* Inputs look (only inputs, NOT selects) */
#hz-offcanvas-mobile-filter #mobile-search-form input[type="number"],
#hz-offcanvas-mobile-filter #mobile-search-form input[type="text"] {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid #dce0e0 !important;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    box-sizing: border-box;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Focus state: blue border as на десктопе */
#hz-offcanvas-mobile-filter #mobile-search-form input[type="number"]:focus,
#hz-offcanvas-mobile-filter #mobile-search-form input[type="text"]:focus {
    border-color: #00115e !important;
    box-shadow: 0 0 0 2px rgba(0, 17, 94, .07) inset !important;
}

/* Highlight when has value */
#hz-offcanvas-mobile-filter #mobile-search-form input.azr-has-value[type="number"],
#hz-offcanvas-mobile-filter #mobile-search-form input.azr-has-value[type="text"] {
    border-color: #00115e !important;
    box-shadow: 0 0 0 2px rgba(0, 17, 94, .07) inset !important;
}

/* CRITICAL: Hide original select elements completely */
#hz-offcanvas-mobile-filter select.bs-select-hidden,
#hz-offcanvas-mobile-filter .bootstrap-select select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

/* Bootstrap-select container must be 100% width */
#hz-offcanvas-mobile-filter .bootstrap-select {
    width: 100% !important;
    display: block !important;
}

/* Remove outer "form-control" capsule on bootstrap-select wrapper */
#hz-offcanvas-mobile-filter .bootstrap-select.form-control,
#hz-offcanvas-mobile-filter .bootstrap-select.form-control:not(.input-group-btn) {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
}

/* Bootstrap-select button - clean single border like desktop */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 52px;
    height: 52px;
    max-height: 52px;
    border: 1px solid #dce0e0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    padding-right: 40px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: 0 !important;
    box-sizing: border-box;
    text-align: left;
    position: relative;
    line-height: 1.2;
}

/* Force height constraint on all children */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle * {
    line-height: 1.2 !important;
}

/* Proper vertical centering */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle {
    line-height: normal;
}

#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner-inner {
    line-height: 1.2 !important;
}

/* Remove any inner pseudo-elements that create double borders */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle::before,
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle::after {
    display: none !important;
}

/* Remove caret */
#hz-offcanvas-mobile-filter .bootstrap-select .bs-caret {
    display: none !important;
}

/* Filter option text styling - AGGRESSIVE RESET */
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner-inner {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
}

#hz-offcanvas-mobile-filter .bootstrap-select .filter-option {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    flex: 1;
}

#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    flex: 1;
}

#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    color: #484848;
}

/* Dropdown menu styling */
#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-menu {
    border: 1px solid #dce0e0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08) !important;
    margin-top: 4px;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    transform: none !important;
}

/* Inner scrollable container */
#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-menu .inner {
    max-height: 180px !important;
    overflow-y: auto !important;
    padding: 4px;
}

/* Menu items */
#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-menu li a {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    margin: 2px 0;
}

#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-menu li.selected a,
#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-menu li a:hover {
    background: #f0f2f5 !important;
}

/* Actions box (Select All / Deselect All buttons) */
#hz-offcanvas-mobile-filter .bootstrap-select .bs-actionsbox {
    padding: 8px !important;
    border-bottom: 1px solid #eee;
}

#hz-offcanvas-mobile-filter .bootstrap-select .bs-actionsbox .btn {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 13px;
}



/* Buttons */
#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap .btn {
    flex: 1 1 0%;
    width: 100%;
}

#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap .btn,
#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap .btn.btn-secondary,
#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap .btn.reset-search-btn,
#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap .btn.btn-grey-outlined {
    background-color: #00115e !important;
    border-color: #00115e !important;
    color: #f7f8f9 !important;
}

#hz-offcanvas-mobile-filter #mobile-search-form .half-map-buttons-wrap .btn:hover {
    filter: brightness(1.05);
    color: #ece3a4 !important;
}

@media (max-width:360px) {
    #hz-offcanvas-mobile-filter.offcanvas {
        --bs-offcanvas-width: 90vw;
    }
}







/* === CRITICAL: Force visibility and reset overlay conflicts === */

/* Reset any overlay-specific hiding from search.mobile.css */
#hz-offcanvas-mobile-filter .advanced-search-half-map,
#hz-offcanvas-mobile-filter .advanced-search-half-map .container,
#hz-offcanvas-mobile-filter #overlay-search-advanced-module {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    top: auto !important;
    z-index: auto !important;
}

/* Force form visibility */
#hz-offcanvas-mobile-filter #mobile-search-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force form controls to be visible (but NOT dropdown-toggle - it needs flex) */
#hz-offcanvas-mobile-filter .form-group,
#hz-offcanvas-mobile-filter .form-control,
#hz-offcanvas-mobile-filter input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Bootstrap-select wrapper visibility (not dropdown-toggle itself) */
#hz-offcanvas-mobile-filter .bootstrap-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}



/* === CRITICAL: Remove inner "capsule" effect from bootstrap-select === */

/* Reset all inner containers - no extra padding, borders, backgrounds */
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner-inner {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Force text to sit naturally without extra containers */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle .filter-option {
    flex: 1;
    min-width: 0;
}

/* Force direct text children to have no extra styling */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle>* {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Remove any box styling from title attribute display */
#hz-offcanvas-mobile-filter .bootstrap-select .bs-ok-default::after {
    display: none !important;
}

/* Ensure placeholder text has no extra styling */
#hz-offcanvas-mobile-filter .bootstrap-select.bs-placeholder .filter-option-inner-inner {
    color: #999 !important;
    font-weight: 400 !important;
}

/* Remove the small "tick" icon that appears on selected items in button */
#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-toggle .filter-option .tick-icon,
#hz-offcanvas-mobile-filter .bootstrap-select .dropdown-toggle .filter-option::before {
    display: none !important;
}



/* === NUCLEAR OPTION: Force remove ALL internal styling from bootstrap-select button === */

/* Remove ALL possible internal elements that could create visual artifacts */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle .filter-option *,
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle>span,
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle>div {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Ensure no pseudo-elements create extra visuals */
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option::before,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option::after,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner::before,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner::after,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner-inner::before,
#hz-offcanvas-mobile-filter .bootstrap-select .filter-option-inner-inner::after {
    display: none !important;
    content: none !important;
}

/* Force single-line text display without containers */
#hz-offcanvas-mobile-filter .bootstrap-select>.dropdown-toggle {
    font-size: 15px;
    color: #484848;
}