﻿/*V2 - similiar style for text in checkboxlist items as a <label> */
/* ===========================
   RANGE SLIDER (PRICE)
   =========================== */

.dragRangeSlider .rslSelectedregion {
    cursor: pointer;
}

/* Taller slider to give room for labels + bar */
.RadSlider.dragRangeSlider.rslHorizontal {
    height: 70px; /* adjust 65–80px to taste */
}

/* Base label styling */
.RadSlider.dragRangeSlider .rslLargeTick span {
    position: relative;
    display: block;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
}

    /* Row 1: nicely above the bar */
    .RadSlider.dragRangeSlider .rslLargeTick span.tick-label-row-1 {
        top: -28px !important;
    }

    /* Row 2: nicely below the bar */
    .RadSlider.dragRangeSlider .rslLargeTick span.tick-label-row-2 {
        top: 18px !important;
    }

/* Space between "Price (...)" label and slider */
.price-range-label {
    display: block;
    margin-bottom: 10px;
}

/* ===========================
   SEARCH BUTTON + RESET LINK
   =========================== */

.msotw_footer.search-actions {
    margin-top: 1rem;
}

/* Make the RadButton full width and primary blue */
.search-btn-primary.rbButton {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #007bff !important; /* primary blue */
    border-color: #007bff !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
}

    /* Ensure the inner text is white as well */
    .search-btn-primary.rbButton .rbText {
        color: #ffffff !important;
    }

    /* Hover / focus states for search button */
    .search-btn-primary.rbButton:hover,
    .search-btn-primary.rbButton:focus {
        background-color: #0056b3 !important;
        border-color: #0056b3 !important;
    }

/* Reset link styled as a full-width secondary button */
.reset-filters-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #6c757d; /* secondary grey */
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
}

    /* Icon spacing inside reset link */
    .reset-filters-link i {
        margin-right: 0.35rem;
    }

    /* Hover / focus states for reset button */
    .reset-filters-link:hover,
    .reset-filters-link:focus {
        background-color: #5a6268;
        color: #ffffff;
        text-decoration: none;
    }

/* ===========================
   AMENITIES CHECKBOX LIST
   ===========================
   Goal:
   - Always 2 columns in the sidebar (desktop)
   - Text starts next to checkbox icon
   - Long ES/DE labels wrap inside the column
   - No overlap with the next column
   - Text styling matches .listsearch-input-item label
*/
#filters-column .listsearch-input-item .filter-tags {
    margin-top: 0;
}

/* Treat the whole amenities RadCheckBoxList as a flex container */
#filters-column .RadCheckBoxList.amenities-list.RadCheckBoxList_Bootstrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}

    /* Flatten Telerik's column wrapper so its children (buttons) become flex items */
    #filters-column .RadCheckBoxList.amenities-list.RadCheckBoxList_Bootstrap .rbVerticalList {
        display: contents;
        float: none !important;
    }

    /* Each checkbox button is a flex item that takes half the width */
    #filters-column .RadCheckBoxList.amenities-list.RadCheckBoxList_Bootstrap .RadCheckBox {
        flex: 0 0 50%;
        max-width: 50%;
        box-sizing: border-box;
        /*play with this to tighten or loosen list^/
        /*margin-bottom: 0.25rem;*/
        /*this is quite tight*/
        margin-bottom: 0.09rem;
        padding-right: 0.5rem; /* small horizontal gap between columns */
        text-align: left;
        /* Make the button visually similar to text with an icon, not a pill button */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0.5rem;
        cursor: pointer;
        /* layout inside the button: icon + label side-by-side */
        display: flex;
        align-items: flex-start;
        /* allow text inside to wrap instead of forcing button wider */
        white-space: normal !important;
    }

    /* Checkbox icon: fixed, small block on the left */
    #filters-column .RadCheckBoxList.amenities-list.RadCheckBoxList_Bootstrap .rbIcon {
        flex: 0 0 auto;
        margin-right: 0.35rem;
        margin-top: 0.1rem; /* small visual align tweak */
    }

    /* Label text: flexible area that wraps inside the 50% column
   Styled to match .listsearch-input-item label:
   - font-size: 13px;
   - font-weight: 500;
   - color: #70778b;
   - left-aligned
*/
    #filters-column .RadCheckBoxList.amenities-list.RadCheckBoxList_Bootstrap .rbText {
        display: block;
        flex: 1 1 auto;
        min-width: 0; /* critical so flexed text can shrink and wrap */
        font-size: 13px; /* match label font size */
        font-weight: 500; /* match label weight */
        color: #70778b; /* match label colour */
        /* change this to increase or decrease space between lines of text (especially when wrapped) - this looks OK though */
        line-height: 1.3;
        text-align: left;
        white-space: normal; /* allow wrapping */
        word-wrap: break-word; /* older syntax */
        overflow-wrap: break-word; /* modern syntax */
    }

/* Small screens: stack to one column */
@media (max-width: 576px) {
    #filters-column .RadCheckBoxList.amenities-list.RadCheckBoxList_Bootstrap .RadCheckBox {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
}
