/**
 * Theme Name:     Palace Child
 * Author:         Themeim
 * Template:       palace
 * Text Domain:    palace-child
 * Description:    Palace Child Theme with Gohar-safe frontend and dynamic unit customizations.
 */

/* -------------------------------------------------------
   Gohar Corporate Fixes - Child Theme Safe v4
   Parent theme untouched.
------------------------------------------------------- */

/* Carousel visibility / height fix */
.owl-carousel,
.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage,
.owl-carousel .owl-item {
    min-height: 1px !important;
}

.owl-carousel {
    display: block !important;
}

.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.owl-carousel .owl-item {
    opacity: 1 !important;
    visibility: visible !important;
}

.owl-carousel .owl-item img {
    display: block !important;
    width: 100% !important;
}

/* Prevent animated carousel sections from staying hidden after scroll */
.owl-carousel .wow,
.owl-carousel .animated,
.owl-carousel .fadeInUp,
.owl-carousel .fadeInDown,
.owl-carousel .fadeInLeft,
.owl-carousel .fadeInRight {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Slider container safety */
.properties-section,
.property-section,
.portfolio-section,
.testimonial-section,
.clients-section,
.team-section {
    overflow: visible !important;
}

/* Corporate portfolio/unit badge styles */
.gohar-badge-black .city-block_one-title,
.gohar-badge-black .city-block_one-content .badge,
.gohar-badge-black .property-count,
.gohar-badge-black .portfolio-count {
    background: rgba(0,0,0,.84) !important;
    color: #ffffff !important;
    border-left: 4px solid #C62828 !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .3px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
}

.gohar-badge-red .city-block_one-title,
.gohar-badge-red .city-block_one-content .badge,
.gohar-badge-red .property-count,
.gohar-badge-red .portfolio-count {
    background: #C62828 !important;
    color: #ffffff !important;
    border: 1px solid #C62828 !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(198,40,40,.22) !important;
}

.gohar-badge-white .city-block_one-title,
.gohar-badge-white .city-block_one-content .badge,
.gohar-badge-white .property-count,
.gohar-badge-white .portfolio-count {
    background: rgba(255,255,255,.94) !important;
    color: #111111 !important;
    border: 1px solid #C62828 !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.12) !important;
}

/* Default corporate treatment for common Palace badge/count pills */
.city-block_one-title small,
.city-block_one-content small,
.city-block_one .badge,
.city-block_one .property-count,
.city-block_one .portfolio-count {
    border-color: #C62828 !important;
}

/* Premium card overlay readability */
.city-block_one-content:before,
.city-block_one-inner:before {
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 100%) !important;
}

/* Hero search corporate spacing and border safety */
.banner-search,
.property-search,
.property-search-form,
.realestate-search {
    border-color: rgba(0,0,0,.14) !important;
}
