.slider-container {
    position: fixed;
    bottom: 0;
    left: 75px;
    width: calc(100% - 65px);
    background: #00000024;
    padding: 1px 0;
    z-index: 9;
    display: none;
    transition: bottom 0.4s ease;
}

.slider-toggle {
    position: absolute;
    margin-top: -30px;
    margin-left: 10px;
    text-align: center;
    width: 100vw;
    background: #00000024;
    /* background: #000000b3; */
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;

    box-shadow: 0 4px 12px #00000066;
    backdrop-filter: blur(6px);
    background-size: 100% 1px;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 90%);
}


.slider-toggle svg {
    transition: transform 0.4s ease;
    transform: rotate(180deg);
}

.slider-toggle svg.rotated {
    transform: rotate(0deg);
}

.card-slider_1 {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 0 10px 10px 11px;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

.slider-container ::-webkit-scrollbar {
    display: none;
}

.card-wrapper {
    flex: 0 0 300px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.719);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background: #000000a3;
    transition:
        transform 0.3s ease,
        height 0.3s ease,
        border-color 1.3s ease,
        box-shadow 0.3s ease;
}

.card-wrapper:hover {
    transform: scale(1.01);
    z-index: 12;
    border: none;
}

.top-label-box {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #a39161;
    border: 1px solid white;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.card_1 {
    color: white;
    border-radius: 8px;
}

.card_1 img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.details_1 {
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    background-size: 100% 1px;
    background-position: 0px 0px, 0px 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgb(255, 255, 255) 50%, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 90%), linear-gradient(90deg, rgba(255, 255, 255, 0) 10%, rgb(255, 255, 255) 50%, rgb(255, 255, 255) 50%, rgba(255, 255, 255, 0) 90%);

}

.details_1 h4 {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 0px;
}

.property-info_1 {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-item_1 {
    display: flex;
    flex-direction: column;
}

.label_1 {
    color: #acacac;
}

.value {
    font-weight: 500;
}

/* Tablet Portrait (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
    .slider-container {
        left: 75px;
        width: calc(100% - 60px);
        padding: 10px 0;
    }

    /* .slider-toggle {
        margin-top: -50px;
        height: 50px;
    } */

    .card-wrapper {
        flex: 0 0 180px;
    }

    .card_1 img {
        height: 100px;
    }

    .details_1 h4 {
        font-size: 16px;
    }

    .property-info_1 {
        font-size: 13px;
    }
}

/* iPad Landscape */
@media only screen and (min-device-width: 760px) and (max-device-width: 1194px) and (min-device-height: 450px) and (orientation: landscape) {
    .slider-container {
        left: 75px;
        padding: 10px 0;
    }

    .card-wrapper {
        flex: 0 0 200px;
    }

    .card_1 img {
        height: 100px;
    }

    .details_1 h4 {
        font-size: 14px;
    }

    .property-info_1 {
        font-size: 12px;
    }
}

/* Mobile Landscape (481px - 767px) */
@media screen and (max-width: 767px) and (min-width: 481px) and (orientation: landscape) {
    .slider-container {
        left: 50px;
        width: calc(100% - 50px);
        bottom: 5px;
        padding: 1px 0;
    }

    .card-slider_1 {
        padding: 0 8px 8px 8px;
        gap: 8px;
    }

    .card-wrapper {
        flex: 0 0 240px;
        border-radius: 6px;
    }

    .card_1 img {
        height: 120px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
    }

    .details_1 {
        padding: 8px 12px;
        border-radius: 6px;
    }

    .details_1 h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .property-info_1 {
        font-size: 12px;
    }

    .top-label-box {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 4px;
    }
}

/* Landscape orientation adjustments for small screens */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .slider-container {
        bottom: -2px;
        left: 45px;
    }

    .fullscreen .slider-container {
        bottom: -2px;
        left: 70px;
    }

    .card-wrapper {
        flex: 0 0 160px;
    }

    .card_1 img {
        height: 50px;
    }

    .details_1 {
        padding: 4px 8px;
    }

    .details_1 h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .details_1 aside {
        font-size: 12px;
    }

    .property-info_1 {
        font-size: 9px;
    }

    .top-label-box {
        top: 4px;
        left: 4px;
        padding: 1px 4px;
        font-size: 9px;
    }
}

/* Mobile Portrait (320px - 480px) */
@media screen and (max-width: 480px) {
    .slider-container {
        left: 52px;
        width: 100%;
        bottom: 0;
        padding: 2px 0;
        background: rgba(0, 0, 0, 0.1);
    }

    .card-slider_1 {
        padding: 0 5px 10px 0px;
        gap: 6px;
    }

    .card-wrapper {
        flex: 0 0 200px;
        border-radius: 6px;
    }

    .card_1 {
        border-radius: 6px;
    }

    .card_1 img {
        height: 100px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
    }

    .details_1 {
        padding: 6px 10px;
        border-radius: 6px;
    }

    .details_1 h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .details_1 aside {
        font-size: 12px;
    }

    .property-info_1 {
        font-size: 11px;
        flex-direction: column;
        gap: 2px;
    }

    .info-item_1 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .top-label-box {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 3px;
    }

    .card-wrapper:hover {
        transform: scale(1.02);
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media screen and (max-width: 360px) {
    .card-wrapper {
        flex: 0 0 180px;
    }

    .card_1 img {
        height: 90px;
    }

    .details_1 h4 {
        font-size: 13px;
    }

    .details_1 aside {
        font-size: 12px;
    }

    .property-info_1 {
        font-size: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-wrapper:hover {
        transform: none;
    }

    .card-wrapper:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .card-slider_1 {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .card-wrapper {
        scroll-snap-align: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .card_1 img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}