/* Reset and base styles - High priority override */
.idx-property-slider,
.idx-property-slider * {
    box-sizing: border-box !important;
}

/* WordPress theme reset - Prevent inheritance issues */
.idx-property-slider .idx-small-image-wrapper,
.idx-property-slider .idx-main-image-wrapper {
    all: unset !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Reapply our specific styles after reset */
.idx-property-slider .idx-small-image-wrapper {
    width: 318px !important;
    height: 310px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

.idx-property-slider .idx-main-image-wrapper {
    width: 619px !important;
    height: 645px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Force image sizing - Override WordPress/theme styles - WITH PROPER LOADING */
.idx-property-slider .idx-main-image-container img,
.idx-property-slider .idx-small-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    opacity: 1 !important;
}

/* Image loaded state - NO LOADERS - Always visible */
.idx-property-slider .idx-main-image-container img,
.idx-property-slider .idx-small-image-container img {
    opacity: 1 !important;
}

/* Specific targeting for small images that are showing half */
.idx-property-slider .idx-small-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    vertical-align: top !important;
    opacity: 1 !important;
}

/* Google Fonts - importing the exact fonts from design */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;700;800&family=Space+Grotesk:wght@700&family=Red+Hat+Display:wght@700&display=swap');

.idx-property-slider .idx-property-title {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    color: #293056;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.idx-property-slider .idx-property-subtitle {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #293056;
    letter-spacing: -0.03em;
    text-decoration: underline;
    display: flex;
    align-items: center;
}

.idx-property-slider .idx-actions-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.idx-property-slider .idx-share-wrapper {
    position: relative;
}

.idx-property-slider .idx-share-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 24px;
    gap: 10px;
    min-width: 95px;
    height: 33px;
    background: white;
    border: 1px solid #717680;
    border-radius: 10px;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #252B37;
    letter-spacing: -0.03em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.idx-property-slider .idx-share-btn:hover {
    background-color: #f9fafb;
}

.idx-property-slider .idx-favourite-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 24px;
    gap: 8px;
    min-width: 99px;
    height: 33px;
    background: white;
    border: 1px solid #717680;
    border-radius: 10px;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #252B37;
    letter-spacing: -0.03em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.idx-property-slider .idx-favourite-btn:hover {
    background-color: #f9fafb;
}

.idx-property-slider .idx-heart-icon {
    width: 14px;
    height: 16px;
}

.idx-property-slider .idx-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 17px;
    width: 1280px;
    height: 645px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 0 auto;
}

/* Images section following Frame 1171276279 */
.idx-property-slider .idx-images-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 17px;
    width: 954px; /* 619px + 17px gap + 318px */
    height: 645px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Main large image container - Rectangle 185 specifications */
.idx-property-slider .idx-main-image-container {
    position: relative;
    width: 619px;
    height: 645px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.idx-property-slider .idx-main-image-wrapper {
    position: absolute;
    width: 619px;
    height: 645px;
    left: 0px;
    top: 0px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    cursor: pointer;
}

.idx-property-slider .idx-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    opacity: 1;
}

.idx-property-slider .idx-main-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

/* Small images column following Frame 1171276297 */
.idx-property-slider .idx-small-images-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    width: 318px;
    height: 645px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Hide mobile navigation on desktop */
.idx-property-slider .idx-mobile-only {
    display: none !important;
}

.idx-property-slider .idx-desktop-only {
    display: block !important;
}

/* Ensure background images work properly for small image wrappers */
.idx-property-slider .idx-small-image-wrapper {
    cursor: pointer;
}

.idx-property-slider .idx-small-image-wrapper:hover {
    transform: scale(1.02);
}

/* Show mobile navigation on small screens and tablets */
@media (max-width: 1024px) {
    .idx-property-slider .idx-mobile-only {
        display: block !important;
    }
    
    .idx-property-slider .idx-desktop-only {
        display: none !important;
    }
    
    /* Mobile Gallery Styles */
    .idx-property-slider .idx-mobile-gallery {
        position: relative;
        width: 100%;
        height: 350px;
        overflow: hidden;
        border-radius: 12px;
    }
    
    .idx-property-slider .idx-mobile-image-container {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .idx-property-slider .idx-mobile-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        pointer-events: none;
    }
    
    .idx-property-slider .idx-mobile-slide.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .idx-property-slider .idx-mobile-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        opacity: 1 !important;
    }
    
    .idx-property-slider .idx-mobile-nav-left,
    .idx-property-slider .idx-mobile-nav-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .idx-property-slider .idx-mobile-nav-left {
        left: 16px;
    }
    
    .idx-property-slider .idx-mobile-nav-right {
        right: 16px;
    }
    
    .idx-property-slider .idx-mobile-counter {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 500;
        z-index: 10;
    }
}

/* Small image containers - Rectangle 186 specifications */
.idx-property-slider .idx-small-image-container {
    width: 318px;
    height: 310px;
    flex: none;
    flex-grow: 0;
    position: relative;
    overflow: hidden !important;
}

.idx-property-slider .idx-small-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    cursor: pointer;
}

.idx-property-slider .idx-small-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.idx-property-slider .idx-small-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

/* See all photos button following Frame 1171276295 */
.idx-property-slider .idx-see-all-button-container {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 100;
}

.idx-property-slider .idx-see-all-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 18px;
    gap: 10px;
    width: 129px;
    height: 40px;
    background: #000000;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.idx-property-slider .idx-see-all-text {
    width: 93px;
    height: 24px;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.idx-property-slider .idx-details-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    box-shadow: 0px 0px 16.3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.idx-property-slider .idx-details-content {
    display: flex;
    align-items: center;
    padding: 0px;
    height: 501px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* SOLD FOR section following Frame 1171276277 */
.idx-property-slider .idx-price-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 8px;
    height: 71px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.idx-property-slider .idx-price-header {
    display: flex;
    gap: 12px;
}

/* SOLD FOR text container */
.idx-property-slider .idx-price-for-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 20px;
    width: 118px;
    height: 34px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.idx-property-slider .idx-price-for-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
    width: 118px;
    height: 34px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

.idx-property-slider .idx-price-for-text {
    width: 118px;
    height: 34px;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #93370D;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price container */
.idx-property-slider .idx-price-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 20px;
    width: 138px;
    height: 34px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.idx-property-slider .idx-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 4px;
    width: 138px;
    height: 34px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

.idx-property-slider .idx-price-text {
    height: 34px;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    text-align: right;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #93370D;
    flex: none;
    order: 0;
    flex-grow: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Listed price */
.idx-property-slider .idx-listed-price {
    width: 261px;
    height: 21px;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    letter-spacing: -0.03em;
    color: #535862;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Divider */
.idx-property-slider .idx-divider {
    width: 261px;
    height: 1px;
    border: 1px solid #D5D7DA;
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
}

/* Properties details section following Frame 1300192500 */
.idx-property-slider .idx-properties-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.idx-property-slider .idx-properties-title {
    width: 261px;
    height: 30px;
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    display: flex;
    align-items: center;
    letter-spacing: -0.03em;
    color: #252B37;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idx-property-slider .idx-details-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.idx-property-slider .idx-detail-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-height: 26px;
}

.idx-property-slider .idx-detail-label-container {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}



.idx-property-slider .idx-detail-label-container span,
.idx-property-slider .idx-detail-row > div:last-child span {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    color: #252B37;
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.idx-property-slider .idx-detail-row > div:last-child span {
    text-align: right;
}

/* Call us button following Button specifications */
.idx-property-slider .idx-call-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 8px;
    height: 44px;
    background: #000000;
    border-radius: 100px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.idx-property-slider .idx-call-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    gap: 8px;
    width: 261px;
    height: 56px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.idx-property-slider .idx-call-button-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.idx-property-slider .idx-call-button-text {
    width: 54px;
    height: 24px;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SIMPLE MODAL STYLES - NO LOADERS */
.idx-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    overflow: hidden;
}

.idx-modal-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.idx-modal-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 10;
}

.idx-modal-title {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.idx-property-address {
    font-weight: 600;
    font-size: 14px;
}

.idx-slide-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.idx-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.idx-modal-btn {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.idx-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.idx-image-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.idx-slide-btn {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
}

.idx-slide-btn:hover {
    background: white;
}

.idx-slide-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.idx-prev-btn {
    left: 12px;
}

.idx-next-btn {
    right: 12px;
}

.idx-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 60px;
}

.idx-image-slider {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.idx-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.idx-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}

.idx-thumbnail-list {
    display: flex;
    gap: 8px;
    padding: 0 16px;
}

.idx-thumbnail {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    flex-shrink: 0;
}

.idx-thumbnail:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.4);
}

.idx-thumbnail.active {
    border-color: #3b82f6;
    opacity: 1;
}

.idx-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .idx-property-slider .idx-details-list{
        margin-bottom: 30px;
    }
    .idx-image-container {
        padding: 0 40px;
    }
    
    .idx-slide-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .idx-thumbnail img {
        width: 60px;
        height: 50px;
    }
    
    .idx-property-slider .idx-property-header {
        margin-bottom: 20px;
    }
    
    .idx-property-slider .idx-property-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .idx-property-slider .idx-property-subtitle {
        font-size: 14px;
        line-height: 20px;
    }
    
    .idx-property-slider .idx-actions-container {
        gap: 8px;
    }
    
    .idx-property-slider .idx-share-btn,
    .idx-property-slider .idx-favourite-btn {
        padding: 4px 12px;
        font-size: 12px;
        min-width: auto;
        height: 28px;
    }
    
    .idx-property-slider .idx-small-images-column {
        display: none !important;
    }
    
    .idx-property-slider .idx-see-all-button-container {
        display: none !important;
    }
    
    .idx-property-slider .idx-details-card {
        width: 100%;
        height: auto;
        margin-top: 70px;
        order: 2;
    }
    
    .idx-property-slider .idx-images-section {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .idx-property-slider .idx-main-image-container {
        width: 100%;
        height: 300px !important;
    }
    
    .idx-property-slider .idx-main-image-wrapper {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .idx-property-slider .idx-main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    .idx-property-slider .idx-detail-label,
    .idx-property-slider .idx-detail-value {
        width: auto;
        font-size: 13px;
        word-break: break-word;
    }
}

/* Mobile responsive styles */
@media (max-width: 1300px) {
    .idx-property-slider .idx-container {
        width: 100%;
        max-width: 1280px;
        padding: 0 20px;
    }
    
    .idx-property-slider .idx-property-header {
        max-width: 1280px;
    }
}

@media (max-width: 968px) {
    .idx-property-slider .idx-container {
        flex-direction: column;
        height: auto;
        gap: 20px;
        width: 100%;
        padding: 0;
    }
    
    .idx-property-slider .idx-details-card {
        width: 100%;
        height: auto;
        order: 2;
    }
}

@media (max-width: 1024px) {
    .idx-property-slider .idx-property-header {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    .idx-property-slider .idx-price-section{
        justify-content: space-between;
    }
    .idx-property-slider .idx-price-header {
     
        justify-content: space-between;
        width: 100%;
    }
    .idx-property-slider .idx-property-info {
        padding-right: 0;
    }
    
    .idx-property-slider .idx-property-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .idx-property-slider .idx-property-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
    
    .idx-property-slider .idx-actions-container {
        align-self: flex-end;
    }
    
    .idx-property-slider .idx-container {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    
    .idx-property-slider .idx-images-section {
        height: auto;
        flex-direction: column;
        gap: 10px;
    }
    
    .idx-property-slider .idx-small-images-column {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 10px;
    }
    
    .idx-property-slider .idx-small-image-container {
        width: calc(50% - 5px);
        height: 200px;
    }
    
    .idx-property-slider .idx-details-card {
        width: 100%;
        height: auto;
    }
    
    .idx-property-slider .idx-details-card-inner {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
    
    .idx-property-slider .idx-details-content {
        width: 100%;
        height: auto;
    }
    
    .idx-property-slider .idx-sold-section,
    .idx-property-slider .idx-sold-header,
    .idx-property-slider .idx-listed-price,
    .idx-property-slider .idx-divider,
    .idx-property-slider .idx-properties-details,
    .idx-property-slider .idx-properties-title,
    .idx-property-slider .idx-details-list,
    .idx-property-slider .idx-detail-row,
    .idx-property-slider .idx-call-button-container,
    .idx-property-slider .idx-call-button {
        width: 100%;
    }
}

/* Touch/Swipe Support */
.idx-property-slider .idx-mobile-slider,
.idx-property-slider .idx-image-slider {
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when modal is open */
.idx-property-slider body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Ensure carousel and thumbnails don't show blue border */
.idx-property-slider .idx-carousel-item,
.idx-property-slider .idx-thumbnail {
    -webkit-tap-highlight-color: transparent !important;
}

.idx-property-slider .idx-carousel-item:focus,
.idx-property-slider .idx-thumbnail:focus {
    outline: none !important;
}

/* Enhanced navigation button styles */
.idx-slide-btn {
    transition: all 0.3s ease !important;
}

.idx-slide-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: scale(0.95) !important;
}

.idx-slide-btn:not(:disabled):hover {
    background: white !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure slide counter is always visible and properly styled */
.idx-slide-counter {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

/* Force update animation for counter */
.idx-slide-counter.updating {
    color: #fff !important;
    transform: scale(1.05) !important;
    transition: all 0.1s ease !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .idx-property-slider .idx-mobile-slider,
    .idx-property-slider .idx-image-slider,
    .idx-property-slider .idx-main-image,
    .idx-property-slider .idx-small-image {
        transition: none !important;
    }
    
    .idx-property-slider .idx-slide-btn,
    .idx-property-slider .idx-modal-btn,
    .idx-property-slider .idx-thumbnail,
    .idx-property-slider .idx-mobile-nav-left,
    .idx-property-slider .idx-mobile-nav-right {
        transition: none !important;
    }
  
    
    .idx-thumbnail.active {
        transform: none !important;
    }
}

/* ================================
   GALLERY MODAL SCROLLBAR FIX
   ================================ */


/* Hide WebKit scrollbars (Chrome, Safari, Opera) */
.idx-photo-modal *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Prevent body scrolling when modal is open - Enhanced */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}


/* Ensure modal wrapper doesn't overflow */
.idx-modal-wrapper {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* Ensure image area doesn't create scrollbars */
.idx-image-area {
    overflow: hidden !important;
}

/* Ensure image container doesn't overflow */
.idx-image-container {
    overflow: hidden !important;
}

/* Make sure image slider doesn't create horizontal scrollbar */
.idx-image-slider {
    overflow: visible !important; /* Allow transform transitions */
}

/* Prevent text selection and dragging in modal */
.idx-photo-modal {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile specific scrollbar fixes */
@media (max-width: 768px) {
    .idx-photo-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

}


/* Accessibility - Ensure focus indicators are visible */
.idx-thumbnail:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

.idx-slide-btn:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}


/* Enhanced thumbnail active state */
.idx-thumbnail.active {
    border-color: #3b82f6 !important;
    opacity: 1 !important;
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Improved thumbnail hover state */
.idx-thumbnail:hover {
    opacity: 0.9 !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.02) !important;
    transition: all 0.2s ease !important;
}

/* Ensure thumbnails are properly spaced for scrolling calculations */
.idx-thumbnail-list {
    display: flex !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    cursor: grab !important;
    position: relative !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    /* Enhanced scrollbar styling */
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1) !important;
}

.idx-thumbnail-list::-webkit-scrollbar {
    height: 6px !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.idx-thumbnail-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 3px !important;
}

.idx-thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.idx-thumbnail-list:active {
    cursor: grabbing !important;
}

/* Visual feedback for scroll zones */
.idx-thumbnail-list::before,
.idx-thumbnail-list::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.idx-thumbnail-list::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}

.idx-thumbnail-list::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.4), transparent);
}

.idx-thumbnail-list:hover::before,
.idx-thumbnail-list:hover::after {
    opacity: 1;
}
