/* --- ADMIN STYLES --- */
.obs-slide-row {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
}

.obs-slide-handle {
    cursor: move;
    font-size: 20px;
    color: #999;
}

.obs-slide-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 120px;
}

.obs-slide-content-wrapper {
    flex-grow: 1;
}

.obs-slide-content-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.obs-slide-content-wrapper input {
    width: 100%;
}


/* --- FRONTEND STYLES --- */
.office-box-slider-container {
    display: flex;
    width: 100%;
    /* Adjust as needed */
    margin: 0 auto;
    height: 500px;
    /* Fixed height for the slider area */
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 20px;
}

/* Main Slider (Left) */
.obs-main-slider {
    width: 75%;
    height: 100%;
    border-radius: 20px;
}

.obs-main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.obs-main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* Thumbs Slider (Right) */
.obs-thumbs-slider {
    width: 25%;
    height: 100%;
    box-sizing: border-box;
    /* Add padding to top and bottom for arrows */
    padding: 30px 0;
    background: #fff;
    position: relative;
    /* For absolute positioning of arrows */
}

.obs-thumbs-slider .swiper-slide {
    width: 100%;
    height: auto !important;
    /* Let content dictate height, or fix it */
    opacity: 0.6;
    cursor: pointer;
    transition: 0.3s;
    /* border-bottom: 1px solid #ddd; */
}

.obs-thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
    background-color: #f7f7f7;
    /* border-left: 4px solid #0056b3; */
    /* Highlight active */
}

.obs-thumbs-slider .thumb-inner {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.obs-thumbs-slider .thumb-img {
    width: 80px;
    height: 80px;
    /* 5:4 aspect ratio approx */
    object-fit: cover;
    flex-shrink: 0;
}

.obs-thumbs-slider .thumb-text h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
}


/* Navigation Buttons - Top and Bottom */
.obs-thumbs-slider .obs-prev-btn,
.obs-thumbs-slider .obs-next-btn {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    background-color: rgba(240, 240, 240, 0.95);
    z-index: 20;
    /* Higher Z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
}

.obs-thumbs-slider .obs-prev-btn {
    top: 0;
    /* border-bottom: 1px solid #ddd; */
}

.obs-thumbs-slider .obs-next-btn {
    bottom: 0;
    /* border-top: 1px solid #ddd; */
}

/* SVG Arrows */
.obs-thumbs-slider .obs-prev-btn svg,
.obs-thumbs-slider .obs-next-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
    display: block;
}

/* Hover state */
.obs-thumbs-slider .obs-prev-btn:hover,
.obs-thumbs-slider .obs-next-btn:hover {
    background-color: #e0e0e0;
}

.obs-thumbs-slider .obs-prev-btn:hover svg,
.obs-thumbs-slider .obs-next-btn:hover svg {
    color: #000;
}

.obs-main-slider .swiper-pagination {
    display: none;
}
.obs-main-slider .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .office-box-slider-container {
        flex-direction: column;
        height: auto;
    }

    .obs-main-slider {
        width: 100%;
        /* height: 300px; */
        /* aspect-ratio: 25 / 9; */
         aspect-ratio: 3 / 4; 
         /* was 3/4 */
        border-radius: 20px;
    }

    .obs-thumbs-slider {
        width: 100%;
        height: 100px;
        display: none;
        /* Often hidden on mobile or converted to standard dots */
    }


       .obs-main-slider .swiper-pagination {
        display: block;
        bottom: 20px;
    }

    .swiper-pagination-bullet {
        background: #000;
        opacity: 0.5;
    }

    .swiper-pagination-bullet-active {
        opacity: 1;
        background: #0056b3;
    }
}

@media (max-width: 480px) {
   
}

/* --- OVERLAY STYLES --- */
.obs-slide-overlay {
    /* position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 10;
    text-align: left; */
    position: absolute;
    top: 50%;
    left: 20px;
    color: #fff;
    z-index: 10;
    text-align: left;
    width: 38%;
    transform: translate(0%, -50%);
}
.obs-slide-overlay-inner {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    width: auto;
    /* width: 60%; */
}
a.obs-inner-link-wrapper {
    background-color: #2563EB;
    color: white !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
    text-align: center;
    width: max-content !important;
    text-transform: uppercase;
    margin-top: 20px;
    /* float: right; */
}

.obs-slide-desc {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 500;
}

.obs-slide-price-box {
    display: inline-block;
    color: #ffffff;
    padding: 10px 0px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 32px;
}
div#obs-repeater-container .obs-slide-image-wrapper {
    width: 15%;
}

/* Responsive Overlay */
@media (max-width: 768px) {
    .obs-slide-overlay {
        /* left: 50%;
        bottom: 0;
        transform: translate(-50%, -15%);
        width: 95%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; */
        left: 50%;
        top: 0;
        transform: translate(-50%, 2%);
        width: 95%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 92%;
        justify-content: space-between;
    }

    .obs-slide-overlay-inner {
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
                border-radius: 20px;
    }
    .obs-slide-desc {
        font-size: 18px;
        line-height: 26px;
        text-align: left;
        margin-bottom: 0;
    }
    .obs-slide-price-box {
        padding: 5px 0 0 0px;
        font-size: 20px;
        line-height: 34px;
    }
    a.obs-inner-link-wrapper {
        margin-top: 15px;
        height: auto !important;
    }
}

/* --- MOBILE IMAGE TOGGLE --- */
.obs-mobile-img {
    display: none;
}

@media (max-width: 768px) {
    .obs-desktop-img.obs-has-mobile {
        display: none;
    }
    .obs-mobile-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top !important;

    }
}