/*
 Theme Name:   Listingpro Child
 Theme URI:    http://studio.cridio.com/listingpro/
 Description:  Listingpro Child Theme
 Author:       cridio team
 Author URI:   http://cridio.com/
 Template:     listingpro
 Version:      1.0.0
 Tags:         listingpro, directory, listing, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  listingpro
*/

/* 🌐 Global Background for All Pages */
html, body,
.wrapper,
.lp-content,
#content,
.main-content-area,
.elementor-section,
.elementor-container,
.elementor-column,
.lp-page-content,
.lp-main-content,
.single-listing,
.listing-page-container,
.lp-listing,
.lp-blog,
.blog,
.single-post,
.tax-listing-category,
.tax-listing-location,
.tax-listing-feature,
.archive,
#listing-page,
.content-area,
.content-wrapper,
.page-content,
.listing,
.page-template,
.post,
.page {
  background-color: #f9f9f9 !important;
}

/* ✅ Call-to-Action Button Styling */
.custom-cta-btn a.elementor-button {
  background-color: #28a745 !important;
  border-radius: 8px;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
  padding: 14px 28px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.custom-cta-btn a.elementor-button:hover {
  background-color: #218838 !important;
  transform: scale(1.05);
}

.custom-cta-btn a.elementor-button .elementor-button-text,
.custom-cta-btn a.elementor-button:hover .elementor-button-text {
  color: #ffffff !important;
}

/* 📦 AdSense Box Styling */
.adsense-box {
  width: 100%;
  height: 100%;
  max-height: 260px;
  background: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.adsense-box ins.adsbygoogle {
  width: 100% !important;
  max-width: 300px !important;
  max-height: 250px !important;
  display: block !important;
}

/* 🔲 Uniform Box Styling for All Grid Sections */
.uniform-box {
  height: 260px;
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 📱 Responsive Adjustments for .uniform-box */
@media (max-width: 1024px) {
  .uniform-box {
    flex: 0 0 30%;
  }
}

@media (max-width: 768px) {
  .uniform-box {
    flex: 0 0 48%;
  }
}

@media (max-width: 480px) {
  .uniform-box {
    flex: 0 0 46%;
    max-width: 46%;
  }
}

/* 📰 Blog Card Styling */
.blog-card {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* === 🔖 Custom Ad Slot Styles === */

/* Top of Page Banner Ad */
.custom-ad-slot-top {
    text-align: center;
    margin: 30px 0;
    padding: 10px 0;
    background-color: #f7f7f7;
    border: 1px dashed #ccc;
}

/* In-content Ad (e.g., below post title or before related posts) */
.custom-ad-slot-mid {
    text-align: center;
    margin: 40px 0;
    padding: 15px 0;
    background-color: #fff9f0;
    border: 1px dashed #e0b96c;
}

/* Bottom of Page Ad (before footer or after comments) */
.custom-ad-slot-bottom {
    text-align: center;
    margin: 40px 0 20px 0;
    padding: 15px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Sidebar Ad Slot */
.custom-ad-slot-sidebar {
    margin-bottom: 25px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .custom-ad-slot-top,
    .custom-ad-slot-mid,
    .custom-ad-slot-bottom,
    .custom-ad-slot-sidebar {
        padding: 10px 5px;
        margin: 20px 0;
    }
}
