#jsf-date-range-wrap {
    display: none !important;
}

/* Stable homepage filter shell. Elementor template 1396 has invalid 1%/1100%
 * clear-button widths, so keep the source fields but own this small layout here. */
.cbnb-home-filter-shell,
.e-con-inner:has(> #main-filter-listing) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(100%, 1140px);
    min-height: 136px;
    margin: 0 auto 30px;
    padding: 8px 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(177, 182, 190, 0.24);
}

#main-filter-listing {
    display: grid !important;
    grid-template-columns: minmax(276px, 1fr) minmax(250px, .85fr);
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0;
    min-height: 116px;
    margin: 0 !important;
    padding: 10px !important;
    box-shadow: none !important;
}

#main-filter-listing > .elementor-element-dc0e7d3,
#main-filter-listing > .elementor-element-83a64ad {
    --width: auto;
    width: auto !important;
    min-width: 0;
    padding: 0 18px;
}

#main-filter-listing > .elementor-element-dc0e7d3 {
    border-right: 1px solid #c7c7c7;
}

#main-filter-listing .elementor-element-e7cf177,
#main-filter-listing .elementor-element-9508d58,
#main-filter-listing .elementor-element-bd896c7,
#main-filter-listing .elementor-element-a1a2bf3 {
    --container-widget-width: 100%;
    width: 100% !important;
    max-width: 100% !important;
}

#main-filter-listing .elementor-element-e7cf177,
#main-filter-listing .elementor-element-bd896c7 {
    --icon-box-icon-margin: 12px !important;
}

#main-filter-listing .elementor-icon-box-title {
    margin-block-end: 8px !important;
}

#main-filter-listing .elementor-icon-box-content,
#main-filter-listing .elementor-icon-box-title {
    text-align: left !important;
}

#main-filter-listing .elementor-icon-box-title,
#main-filter-listing .elementor-icon-box-title span {
    font-size: 16px !important;
    line-height: 1.35 !important;
}

#main-filter-listing .jet-select__control,
#main-filter-listing .custom-date-range-input-wrap input {
    min-height: 44px;
    font-size: 16px !important;
}

#main-filter-listing .jet-select__control {
    width: 100%;
    padding: 10px 12px !important;
}

#main-filter-listing + .elementor-element {
    --width: auto;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
}

#main-filter-listing + .elementor-element,
#main-filter-listing + .elementor-element .elementor-widget-html,
#main-filter-listing + .elementor-element .elementor-widget-container,
#main-filter-listing + .elementor-element .custom-date-range-field,
#main-filter-listing + .elementor-element .custom-date-range-button-wrap {
    max-width: none !important;
}

/* The homepage filter already owns the canonical clear action. */
.home-main-map #cbnb-clear-btn {
    display: none !important;
}

.custom-date-range-field {
    width: 100%;
}

/* Label */
.custom-date-range-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

/* Іконка */
.custom-date-range-icon {
    font-size: 16px;
    line-height: 1;
}

/* Обгортка input */
.custom-date-range-input-wrap {
    position: relative;
    width: 100%;
}

/* Clear button */
#custom-date-range-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .2s, color .2s, transform .2s;
}

.custom-date-range-input-wrap input,
.custom-date-range-input-wrap .flatpickr-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: none;
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    color: #333333;
}

.custom-date-range-input-wrap input::placeholder,
.custom-date-range-input-wrap .flatpickr-input::placeholder {
    color: #333333;
    opacity: 1;
}

@media (max-width: 900px) {
    .cbnb-home-filter-shell,
    .e-con-inner:has(> #main-filter-listing) {
        grid-template-columns: 1fr;
        gap: 8px;
        width: calc(100% - 24px);
        min-height: 188px;
        padding: 10px;
    }

    #main-filter-listing + .elementor-element {
        width: 100% !important;
    }

    #custom-date-range-clear {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .cbnb-home-filter-shell,
    .e-con-inner:has(> #main-filter-listing) {
        min-height: 290px;
    }

    #main-filter-listing {
        grid-template-columns: 1fr;
        min-height: 226px;
        padding: 6px 10px !important;
    }

    #main-filter-listing > .elementor-element-dc0e7d3,
    #main-filter-listing > .elementor-element-83a64ad {
        padding: 10px 4px;
    }

    #main-filter-listing > .elementor-element-dc0e7d3 {
        border-right: 0;
        border-bottom: 1px solid #c7c7c7;
    }
}
