/* Property Slider Styles */
.property-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.property-slider.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.property-slider.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Swiper Container */
.property-swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    height: auto;
}

/* Property Slide */
.property-slide {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* background: #f5f5f5; */
}

/* Property Images Section */
.property-images {
    position: relative;
    width: 100%;
    height: 476px;
    max-height: 476px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}


.feature-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* SJH */
@media (min-width: 1080px) {
  .additional-images {
    width: 800px !important;
    left: unset !important;
    margin-left: -200px
  }
  /*
  .additional-image {
    border: 6px solid white !important;
  }
  */
}


/* Additional Images Overlay */
.additional-images {
    position: absolute;
    bottom: 30px;
    left: 3vw;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.additional-image {
    height: 180px;
    width: 350px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.additional-image-1 {
    border-radius: 15px 15px 0 0!important;
    border-bottom: 6px solid #fff;
}

.additional-image-2 {
    border-top: 6px solid #fff;
    border-radius: 0 0 15px 15px !important;
}

/* When only one additional image, give it full rounded corners */
.additional-images:has(.additional-image-1):not(:has(.additional-image-2)) .additional-image-1 {
    border-radius: 8px;
    border-bottom: 2px solid #fff;
}

.additional-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media Count Overlay */
.media-count-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25%;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border: 1px solid #666;
    border-radius: 2px;
    font-size: 9px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.camera-icon,
.video-icon {
    font-size: 8px;
    margin-right: 2px;
}

.photo-count,
.video-count {
    display: flex;
    align-items: center;
}

.separator {
    color: #666;
    font-weight: normal;
}

/* Property Gap */
.property-gap {
    height: 10px;
    background: #fff;
    flex-shrink: 0;
}

/* Property Details Section */
.property-details {
    padding: 16px 0;
    background: #ddd;
    border-top: 1px solid #e0e0e0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.property-info {
    max-width: 800px !important;
    width: 800px !important;
    margin: 0 auto;
    padding: 0 80px;
}

.property-detail {
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.6;
}

.property-label {
    font-weight: bold;
    font-style: italic;
    color: #D70929;
    margin-right: 5px;
}

.property-value {
    color: #000;
}

/* Property Type - Special Styling */
.property-detail:first-child .property-label {
    text-transform: uppercase;
}

/* Find Out More Link */
.property-link {
    margin-top: 20px;
}

.property-link a,
.property-link .find-out-more-btn {
    display: inline-block;
    color: #fff;
    font-style: italic;
    text-decoration: underline;
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.property-link a:hover,
.property-link .find-out-more-btn:hover {
    opacity: 0.8;
}

/* Navigation Buttons - Reset Swiper defaults and position within image */
.swiper-button-prev,
.swiper-button-next {
    width: 25px;
    height: 80%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0;
    color: #333;
    top: 10%;
    bottom: auto;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.3;
    z-index: 10;
    margin-top: 0;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

/* Show buttons more prominently when hovering over the image area */
.property-swiper:hover .swiper-button-prev,
.property-swiper:hover .swiper-button-next {
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

/* Empty State */
.property-slider-empty {
    padding: 60px 20px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .property-details {
        padding: 16px 0;
    }
    
    .property-info {
        /* padding: 0 25px; */
        padding: 0 100px !important;
    }
}

/* SJH 
@media (max-width: 1024px) {
    .property-info {
        padding: 0 100px !important;
    }
}

 SJH */

@media (max-width: 1024px) and (min-width: 769px) {
    .additional-image {
        /* width: 200px;
        height: 133px; */
        width: 300px;
        height: 154px;
    }
}

@media (max-width: 768px) {
    .property-images {
        height: 400px;
        max-height: 400px;
    }
    
    .additional-images {
        bottom: 10px;
        left: 10px;
        gap: 0;
    }
    
    .additional-image {
        /* width: 160px;
        height: 107px; */
        width: 272px !important;
        height: 140px !important;
    }
    
    .media-count-overlay {
        font-size: 7px;
        padding: 1px 4px;
        gap: 2px;
        bottom: 5px;
        right: 5px;
        width: 30%;
    }
    
    .camera-icon,
    .video-icon {
        font-size: 6px;
        margin-right: 1px;
    }
    
    .property-details {
        padding: 20px 0;
    }
    
    .property-info {
        padding: 0 20px;
    }
    
    .property-detail {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 12px;
        height: 80%;
        top: 10%;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 14px;
    }
    
    .swiper-button-prev {
        left: 0;
    }
    
    .swiper-button-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .property-images {
        height: 300px;
        max-height: 300px;
    }
    
    .additional-images {
        display: none; /* Hide overlay images on very small screens */
    }
    
    .property-link a,
    .property-link .find-out-more-btn {
        display: block;
        text-align: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .additional-images {
        left: 20px !important;
    }
}

/* Editor Styles */
.editor-styles-wrapper .property-slider {
    margin: 0;
}

.editor-styles-wrapper .property-slider.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}



