/*
Template:       classima
Theme Name:     Classima Child
Theme URI:      http://radiustheme.com/demo/wordpress/classima
Author:         RadiusTheme
Author URI:     https://www.radiustheme.com
Description:    Classima is a clean and modern WordPress Theme best suited for Classified Listing. This theme comes with all necessary features and pages for a Classified Listing website.
Version:        1.0
Text Domain:    classima
Tags:           two-columns, three-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, blog
License:        Envato split License
License URI:    https://themeforest.net/licenses/terms/regular
*/


/* Video Thumbnail Aspect Ratio Container */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: #000; /* Keeps a dark background placeholder before load */
}

/* Smooth fade loading animation for lazy loading elements */
.video-thumbnail-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    animation: fadeInVideo 0.5s ease-in-out;
}

@keyframes fadeInVideo {
    from { opacity: 0; }
    to { opacity: 1; }
}

.standard-grid-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Single Listing Main Slider Image - Full Frame Fit */
.classima-listing-single .classima-single-details .rtin-slider-box,
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper,
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-slider,
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .swiper-wrapper,
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-slider-item,
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-listing-single-image {
    width: 100% !important;
    max-width: 100% !important;
    background-color: transparent !important;
}

.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-slider-item img:not(.zoomImg),
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-listing-single-image img:not(.zoomImg),
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper img.rtcl-responsive-img:not(.zoomImg) {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 540px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px !important;
}

/* Allow jQuery Zoom hover image to expand and move freely */
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-slider-item img.zoomImg {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    object-fit: none !important;
    border-radius: 0 !important;
}

/* Thumbnail Navigation Bar Match */
.classima-listing-single .classima-single-details .rtin-slider-box #rtcl-slider-wrapper .rtcl-slider-nav {
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================================================
   2-Tier Store Profile & Listing Enhancements (Huntown Architecture)
   ========================================================================== */

/* Store Profile Tabs */
.huntown-store-nav-tabs .nav-link {
    background: #fdf2f4;
    border: 1px solid #ebdce3 !important;
    border-bottom: none !important;
    color: #64748b !important;
    transition: all 0.25s ease-in-out;
}

.huntown-store-nav-tabs .nav-link:hover {
    color: #470024 !important;
    background: #fff5f7;
}

.huntown-store-nav-tabs .nav-link.active {
    background: #ffffff !important;
    color: #470024 !important;
    border-color: #ebdce3 #ebdce3 #ffffff !important;
    border-top: 3px solid #470024 !important;
    box-shadow: 0 -2px 6px rgba(71, 0, 36, 0.03);
}

.huntown-store-tab-content {
    background: transparent;
    min-height: 350px;
}

/* Branch Cards */
.huntown-branch-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.huntown-branch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(71, 0, 36, 0.08) !important;
}

/* Listing Page - Offered by Store Badge Widget */
.huntown-store-seller-widget .huntown-store-sidebar-logo img {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ebdce3 !important;
}

.huntown-view-store-cta:hover {
    background: #470024 !important;
    color: #ffffff !important;
    border-color: #470024 !important;
    box-shadow: 0 4px 10px rgba(71, 0, 36, 0.25);
}

/* Posting As Switcher Cards in Add Listing */
.huntown-radio-card:hover {
    border-color: #ff4464 !important;
}

.huntown-radio-card.active {
    border-color: #470024 !important;
    background: #fdf2f4 !important;
}


/* ==========================================================================
   Local Dev Environment Badge (Huntown Dev Settings)
   ========================================================================== */
#custom-dev-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: #ffffff;
    padding: 8px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#custom-dev-badge:hover {
    transform: scale(1.05);
}

#custom-dev-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ==========================================================================
   Homepage Blog Section Slider (Swiper) Styles
   ========================================================================== */
.huntown-slider-container {
    position: relative;
    padding: 0;
    width: 100%;
    margin-bottom: 25px;
}
.huntown-blog-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.huntown-blog-slider .post-each-main {
    margin-bottom: 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.huntown-blog-slider .post-each-main .post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.73 !important;
    object-fit: cover !important;
    display: block !important;
}
.huntown-blog-slider-prev,
.huntown-blog-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 50px;
    background: #470024; /* Theme burgundy color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    border-radius: 4px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.huntown-blog-slider-prev:hover,
.huntown-blog-slider-next:hover {
    background: #ff4464; /* Theme hover pink */
    color: #ffffff;
}
.huntown-blog-slider-prev {
    left: 15px;
}
.huntown-blog-slider-next {
    right: 15px;
}
.huntown-blog-slider-prev.swiper-button-disabled,
.huntown-blog-slider-next.swiper-button-disabled {
    opacity: 0.2;
    pointer-events: none;
}
.button-explore-more {
    border: 2px solid #ff4464 !important;
    color: #ff4464 !important;
    background: transparent !important;
    padding: 12px 36px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    margin-top: 15px;
}
.button-explore-more:hover {
    background: #ff4464 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(255, 68, 100, 0.3) !important;
    transform: translateY(-2px) !important;
    border-color: #ff4464 !important;
}

/* ==========================================================================
   Custom Resources Context Container Width & Fullbleed Styles
   ========================================================================== */
@media all and (min-width: 1200px) {
    .huntown-resources-context .container {
        max-width: 1440px !important;
    }
    .huntown-resources-context .entry-content .elementor > .elementor-element,
    .huntown-resources-context .entry-content .elementor > .elementor-section,
    .huntown-resources-context .entry-content .elementor-section.elementor-section-boxed > .elementor-container,
    .huntown-resources-context .entry-content .elementor-container,
    .huntown-resources-context .entry-content .e-parent,
    .huntown-resources-context .entry-content .e-con-boxed {
        width: 100% !important;
        max-width: 100% !important;
        --width: 100% !important;
        --content-width: 100% !important;
        --container-widget-width: 100% !important;
        --container-max-width: 100% !important;
    }
}
@media all and (min-width: 1600px) {
    .huntown-resources-context .container {
        max-width: 1560px !important;
    }
    .huntown-resources-context .entry-content .elementor > .elementor-element,
    .huntown-resources-context .entry-content .elementor > .elementor-section,
    .huntown-resources-context .entry-content .elementor-section.elementor-section-boxed > .elementor-container,
    .huntown-resources-context .entry-content .elementor-container,
    .huntown-resources-context .entry-content .e-parent,
    .huntown-resources-context .entry-content .e-con-boxed {
        width: 100% !important;
        max-width: 100% !important;
        --width: 100% !important;
        --content-width: 100% !important;
        --container-widget-width: 100% !important;
        --container-max-width: 100% !important;
    }
}
/* Reset the HTML fullbleed breakout and width limits globally to match regular post widths */
body.single-post.huntown-resources-context #htw-sl-fullbleed {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: visible !important;
    position: relative !important;
}
body.single-post.huntown-resources-context #htw-sl-fullbleed #htw-sl-guide {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Store Layout and Logo Aspect Ratio Fixes */
.classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 4px !important;
    border: 1px solid #ebdce3 !important;
    /* Force proper box dimensions on desktop */
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

@media all and (max-width: 991.98px) {
    .classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-logo {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }
}

@media all and (max-width: 767.98px) {
    .classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-logo {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }
}

/* Ensure the image itself scales inside container and does not stretch or crop */
.classima-store-single .rtin-banner-wrap .rtin-banner-content .rtin-logo img,
.rt-el-listing-store-grid .rtin-item .rtin-logo img,
.rt-el-listing-store-grid .rtcl-store-link .rtin-logo img,
.rtcl-store-logo img,
.rtcl-store-thumbnail img {
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    margin: auto !important;
}

/* Store archive page loop / grid adjustments */
.rtcl-stores .rtcl-store-item .store-thumb {
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background-color: #fff !important;
}

.rtcl-stores .rtcl-store-item .store-thumb img {
    max-height: 80px !important;
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: auto !important;
}

/* ==========================================================================
   Store Grid Swiper Carousel Custom Styles
   ========================================================================== */

/* Navigation buttons burgundy-to-pink styling */
.rt-el-listing-store-grid .owl-custom-nav-area .owl-custom-nav .owl-prev,
.rt-el-listing-store-grid .owl-custom-nav-area .owl-custom-nav .owl-next {
    background-color: #470024 !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-el-listing-store-grid .owl-custom-nav-area .owl-custom-nav .owl-prev:hover,
.rt-el-listing-store-grid .owl-custom-nav-area .owl-custom-nav .owl-next:hover {
    background-color: #ff4464 !important;
}

/* Layout stability before Swiper initializes */
.rt-el-listing-store-grid .rtcl-carousel-slider:not(.swiper-initialized) {
    margin-right: -20px;
}

.rt-el-listing-store-grid .rtcl-carousel-slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow: hidden;
}

.rt-el-listing-store-grid .rtcl-carousel-slider:not(.swiper-initialized) .swiper-wrapper .swiper-slide {
    margin-right: 20px;
    flex: 0 0 calc(25% - 20px);
}

@media (max-width: 1199px) {
    .rt-el-listing-store-grid .rtcl-carousel-slider:not(.swiper-initialized) .swiper-wrapper .swiper-slide {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 991px) {
    .rt-el-listing-store-grid .rtcl-carousel-slider:not(.swiper-initialized) .swiper-wrapper .swiper-slide {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 575px) {
    .rt-el-listing-store-grid .rtcl-carousel-slider:not(.swiper-initialized) .swiper-wrapper .swiper-slide {
        flex: 0 0 100%;
    }
}

/* Hide ad count / number count from store cards */
.rtin-item .rtin-count,
.rtcl-store-meta {
    display: none !important;
}

/* Huntown Blog Fallback Notice Banner */
.huntown-fallback-notice {
    background-color: rgba(255, 68, 100, 0.05); /* Tint of theme accent color #ff4464 */
    border-left: 4px solid #ff4464; /* Theme pink highlight */
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.huntown-fallback-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.huntown-fallback-icon {
    color: #ff4464;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

.huntown-fallback-text {
    color: #470024; /* Theme burgundy color */
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.huntown-fallback-text strong {
    font-weight: 700;
    color: #ff4464;
}






