/**
 * Single Listing Template Styles
 * @package Classima
 */

/* Video Above Slider */
.rtin-video-above-section {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: relative;
    width: 100%;
}

.rtcl-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.rtcl-video-wrapper iframe,
.rtcl-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Half Height Slider - No Cropping */
.half-height-slider .rtcl-gallery,
.half-height-slider .rtcl-slider-wrapper,
.half-height-slider .slick-slider,
.half-height-slider .slick-list,
.half-height-slider .slick-track {
    height: auto !important;
    min-height: auto !important;
}

.half-height-slider .slick-slide {
    text-align: center !important;
    background: #f8f9fa;
}

.half-height-slider .slick-slide div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.gallery-image-no-crop,
.half-height-slider img,
.rtcl-gallery-slide img,
.rtcl-slider-item img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.half-height-slider .slick-dots {
    position: relative !important;
    bottom: auto !important;
    margin-top: 10px !important;
}

.half-height-slider .slick-prev,
.half-height-slider .slick-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}

/* Thumbnails Below Slider */
.rtcl-gallery-thumbnails-wrapper {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.thumb-item {
    flex: 0 0 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all .2s ease;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #007bff;
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain !important;
    display: block;
}

/* WhatsApp Notice */
.whatsapp-notification {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

.whatsapp-notification p {
    margin: 0;
}

.whatsapp-notification strong {
    color: #d39e00;
}

/* Sticky Bottom Bar */
.app-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-top: 1px solid #e0e0e0;
}

.rtcl-dual-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

/* WhatsApp Button - Green bg/white text */
.rtcl-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.rtcl-btn-whatsapp:hover {
    background: #ff8c00;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-1px);
}

/* Sell Button - Blue bg/white text */
.rtcl-btn-sell-now {
    background: #007bff;
    color: #ffffff;
}

.rtcl-btn-sell-now:hover {
    background: #ff8c00;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-1px);
}

/* Share Button - Black bg/white text */
.rtcl-btn-share {
    background: #000000;
    color: #ffffff;
}

.rtcl-btn-share:hover {
    background: #ffffff;
    color: #ff8c00;
    opacity: 1;
    transform: translateY(-1px);
}

.rtcl-btn-loading {
    opacity: .7;
    cursor: wait;
    pointer-events: none;
}

/* Tabs */
.nav-tabs .nav-item-whatsapp {
    margin-left: auto;
}

.whatsapp-tab-btn {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
}

.whatsapp-tab-btn:hover {
    background: #ff8c00 !important;
    color: #fff !important;
}

/* Specifications */
.rtin-spec-items {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rtin-spec-items li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.rtin-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.rtin-tags .tags-label {
    font-weight: 600;
    margin-right: 8px;
}

/* Accessibility */
.rtcl-dual-btn:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-content-block {
        padding-bottom: 80px;
    }
    
    .rtin-spec-items {
        grid-template-columns: 1fr;
    }
    
    .app-bottom-bar {
        padding: 10px 12px;
    }
    
    .rtcl-dual-btn {
        height: 44px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .thumb-item {
        flex: 0 0 60px;
    }
    
    .thumb-item img {
        max-height: 45px;
    }
    
    .gallery-image-no-crop {
        max-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .rtcl-dual-btn {
        height: 40px;
        font-size: 10px;
        padding: 0 8px;
        white-space: nowrap;
    }
    
    .rtcl-dual-btn span {
        font-size: 10px;
    }
    
    .rtcl-dual-btn i {
        font-size: 12px;
    }
    
    .thumb-item {
        flex: 0 0 50px;
    }
    
    .thumb-item img {
        max-height: 40px;
    }
    
    .gallery-image-no-crop {
        max-height: 200px !important;
    }
    
    /* Force single line text on mobile */
    .app-bottom-bar {
        gap: 8px;
        padding: 8px 10px;
    }
    
    .rtcl-dual-btn {
        flex-shrink: 1;
        min-width: 0;
    }
}

/* Print Styles */
@media print {
    .app-bottom-bar,
    .whatsapp-notification,
    .nav-tabs {
        display: none;
    }
    
    .site-content-block {
        padding-bottom: 0;
    }
   .container #rtcl-whatsapp-button-rtcl_3193 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}
}