.map-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: calc(100vw - 400px);
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    margin-left: 400px;
}

#loadingOverlay {
    width: 100%;
    height: calc(100% - 100px);
    position: fixed;
    top: 100px;
    background-color: var(--main-content-background);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: flex;
}

#loadingOverlay svg {
    width: calc(100% - 40px);
    max-width: 300px;
}

#loadingOverlay svg path {
    stroke: var(--text-color);
}


.booking-listings {    
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.hotel-listings-container {
    margin: 20px;
}


.item-link {
    text-decoration: none;
}

.item-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    width: calc(100% - 40px);
    margin: 0 !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.item-card {
    min-width: 250px;
    max-width: 715px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-image-wrapper {
    position: relative;
}

.all-inclusive-tag,
.discount-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #0cd01c;
    color: white;
    padding: 10px;
    font-size: 0.9em;
    border-bottom-right-radius: 20px;
	border-top-left-radius: 20px;
    z-index: 9;
}


.discount-tag {
    left: unset;
    right: 0;
    background-color: #0d55ff;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
	border-top-left-radius: 0;
}

.noUi-connect {
    background: #007BFF !important;
}

.item-image {
	width: 100%;
	height: 280px;
	border-radius: 20px;
	object-fit: cover;
	display: block;
	background-color: white;
}

.item-info {
    margin-top: 10px;
    display: flex;
    text-decoration: none;
    justify-content: flex-start;
    flex-direction: column;
}

.item-name {
    font-size: 19px;
    color: var(--text-color);
    margin: 0;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-type {
    color: var(--dim-text-color);
    font-size: 0.9em;
    margin: 0;
}

.item-area {
    color: var(--dim-text-color);
    font-size: 0.9em;
    margin: 0;
    display: flex;
}

/* Hover effect for car cards */
.item-card:hover {
    transform: translateY(-5px);
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dim-text-color);
    font-size: 0.9em;
    margin: 0;
}


/* Styles for the attributes and price inside car cards */
.item-attributes {
    display: flex;
    justify-content: flex-start;
    font-size: 15px;
    color: var(--dim-text-color);
    margin: 0;
    align-items: flex-end;
}

/* Styles for the attributes and price inside car cards */
.custom-icons {
    height: 15px;
    /* Adjust as necessary */
    margin-right: 5px;
    margin-left: 5px;

}

.item-price {
    font-size: 15px;
    margin: 0;
}


/* Use a separate container for the filters */

.filter-inputs {
    display: flex;
    align-items: center;
}

.filter-inputs button {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    background-color: skyblue;
    color: white;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.filter-label {
    flex: 1;
    /* Makes the label take up all available space */
}

.filter-group2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

h2 {
    text-align: center;
}

.filter h4 {
    margin-bottom: 10px;
    margin-top: 0px;
}

.filter label {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
}

.filter input[type="range"] {
    width: 100%;
}

.filter-group output {
    display: block;
    text-align: center;
    margin-top: 5px;
}

.filter-inputs-number {
    width: 38px;
    text-align: center;
    border: none;
    margin: 0;
    background: none;
    display: flex;
    align-content: center;
    justify-content: center;
    touch-action: manipulation;
    font-size: 18px;
}

.filter-group button {
    padding: 5px 10px;
    margin: 0 5px;
}

/* Add custom slider styles */
.custom-slider {
    position: relative;
    height: 10px;
    margin-top: 10px;
}



.price-slider-track,
.length-slider-track {
    /* Your existing styles */
    touch-action: none;
    /* Add this line to prevent browser handling of touch events */
}


.filter-dropdown {
    width: fit-content;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #007BFF;
    font-size: 17px;
    margin-bottom: 10px;
}



.filter-row {
    display: flex;
    flex-direction: column;
    /* Default: stack filters vertically */
}


/* Adjustments for better look */
.bi-chevron-compact-down {
    position: relative;
    top: -2px;
}


.hidden-item {
    display: none !important;
}

.filter-button {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: none;
    background-color: var(--text-color);
    color: var(--text-color-inverse);
    justify-content: center;
    align-items: center;
    font-size: 19px;
    gap: 5px;
    cursor: pointer;
    border: 1px solid;
}

.filter-button-accommodation {
    width: calc(100% - 60px);
}

.accommodation-map-button {
    height: 100%;
    border-radius: 10px;
    border: none;
    z-index: 11;
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    width: 50px;
    cursor: pointer;
}


#mobile-filters-header {
    display: none;
}



.filter-section {
    position: fixed;
    bottom: 30px;
    height: 50px;
    width: calc(100% - 60px);
    display: none;
    justify-content: center;
    gap: 10px;
    z-index: 15;
}

.filters-sidebar.show {
    bottom: 0;
    overflow-y: auto;
    scrollbar-width: none;
}


.modal-open {
    overflow: hidden !important;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007BFF;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin-right: 5px;
}

input[type="checkbox"]:checked {
    background-color: #007BFF;
}

#pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100px;
    align-items: center;
}

.pagination-button {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 17px;
    border-radius: 10px;
    width: 250px;
    justify-content: center;
}

@media (max-width: 1000px) {
    .item-listings-container {
        min-height: calc(100vh - 120px);
    }
}

/* Responsive behavior for the listings container */
@media (max-width: 768px) {
    .all-inclusive-tag {
        padding: 7px;
        border-bottom-right-radius: 15px;
    }
    .discount-tag {
        padding: 7px;
        border-bottom-left-radius: 15px;
    }

    .item-card {
        border-radius: 15px;
    }
    #mapButton2 {
        display: none !important;
    }

    .map-modal {
        margin: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .item-price {
        font-size: 14px;
        margin: 0;
    }

    .item-name {
        font-size: 16px;
    }
     
    .item-listings {
        margin-top: 20px !important;
        grid-template-columns: 1fr;
    }
    

    .hotel-listings-container {
        margin: 5px !important;
    }


    .filter-row {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: self-start;
    }


    .filters-sidebar {
        display: block;
        margin-left: 0px;
    }

    .filters-sidebar {
        bottom: -100%;
        left: 0;
        max-height: calc(100% - 200px);
        width: 100%;
        background-color: var(--main-content-background);
        z-index: 100;
        position: fixed;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.3s ease-in-out;
    }

    .filters-sidebar.show {
        bottom: 0;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .filter {
        margin-left: 20px;
        margin-right: 20px;
    }


    .filter-group {
        margin: 20px;
        margin-left: 35px;
        margin-right: 35px;
    }

    .filter-group2 {
        margin-left: 20px;
        margin-right: 20px;
    }

    .floating-bottom-btn-large {
        display: none;
    }

    /* CSS for the floating button */
    .floating-bottom-btn {
        display: flex;
        justify-content: center;
    }

    .floating-map-btn {
        display: block;
    }


    .item-image {
        height: 265px;
        /* Set a fixed height for the images on small screens */
        object-fit: cover;
        /* This will cover the area, might crop the image */
    }

    .item-card {
        height: auto;
        /* Adjust height automatically based on content */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Ensures that content uses all available space */
    }

    .item-listings-container {
        grid-template-columns: 1fr;
        /* Stack filters and listings on top of each other on smaller screens */
        margin: 20px 0;
        margin-top: 0px;
        width: 100%;
    }


    /* Show the sidebar when the hamburger menu is clicked */
    .filters-sidebar.active {
        display: block;
        height: calc(100% - 85px);
        width: 100%;
        top: 0;
        left: 0;
        background-color: white;
        z-index: 1000;
        /* High z-index to overlay on the rest of the content */

        position: fixed;
        overflow-y: auto;
        margin-top: 20px;
    }


    .filter-section {
        display: flex;
        justify-content: center;
    }

    #mobile-filters-header {
        display: unset;
    }

    .modal-header-sticky-parent {
        position: sticky;
        top: 0;
        height: 65px;
        z-index: 9;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 9999;

    }
    
    .modal-nav-bar-left {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 22px;
        font-weight: bold;
        cursor: pointer;
        color: var(--text-color);
        z-index: 10000;
    }
    
    span.modal-window-title {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: bold;
        background-color: var(--text-color-inverse);
        box-shadow: 1px 1px 5px 1px rgba(128, 128, 128, 0.2);
        border-radius: 20px 20px 0 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    .item-listings {
        width: calc(100% - 40px);
        gap: 45px;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}