/*
 Theme Name: Real Estate Realtor Child
 Theme URI: https://example.com/
 Description: Child theme for Real Estate Realtor by Buywptemplates
 Author: Your Name
 Author URI: https://example.com/
 Template: real-estate-realtor
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: real-estate-realtor-child
*/

/* Place your custom CSS below. These styles load after the parent theme. */

.ask-about-rentals {
	display: block;
	width: fit-content;
	margin: 0px auto 40px auto;
    background: #000000c2;
    padding: 15px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 0 0 4px rgb(0 0 0 / 34%);
}

.ask-about-rentals a {
	color: #ffffff
}

#sidebar .search-form .search-submit:hover {
    background: #333; /* or any shade */
    color: #fff !important;
}

#searchForm .form-control {
  height: calc(2.25rem + 2px);
  display: flex;
  align-items: center;
}

/* ----------------------------------------
   SLIDER STRUCTURE FIXES
---------------------------------------- */

/* Remove parent theme restrictions */
.feature-box.rental-slider {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  overflow: hidden !important;
  position: relative;
  margin-bottom: 40px;
}

/* Main slider container */
.rental-slider.swiper {
  width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
}

/* Slides */
.rental-slider .swiper-slide {
  height: 100%;
}

/* Images */
.rental-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* ----------------------------------------
   PAGINATION (VERTICAL DOTS ON THE RIGHT)
---------------------------------------- */

.rental-slider .swiper-pagination {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rental-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #aaa;
  opacity: 0.6;
}

.rental-slider .swiper-pagination-bullet-active {
  background: #000;
  opacity: 1;
}

/* ----------------------------------------
   NAVIGATION ARROWS
---------------------------------------- */

.swiper-button-next,
.swiper-button-prev {
  background-color: white;
  border-radius: 50%;
  color: #000;
  width: 25px;
  height: 25px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 15px;
}

/* Move next arrow slightly left so it doesn't overlap bullets */
.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}
/* FORCE SWIPER TO BE HORIZONTAL */
.feature-box.rental-slider.swiper {
    /* remove accidental vertical class */
    writing-mode: horizontal-tb !important;
}

.feature-box.rental-slider .swiper-wrapper {
    flex-direction: row !important;
    display: flex !important;
}

/* Ensure all slides align horizontally */
.feature-box.rental-slider .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Prevent overlap on small screens */
@media (max-width: 480px) {
  .rental-slider {
    height: 320px;
  }
  .swiper-button-next {
    right: 35px;
  }
}

/* Remove parent theme's VERTICAL margins */
.feature-box.rental-slider .swiper-slide {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

/* Force horizontal scrolling layout */
.feature-box.rental-slider .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
/*     transform: translate3d(0px, 0px, 0px) !important; */
}

/* Disable theme's swiper-vertical behavior */
.feature-box.rental-slider.swiper {
    overflow: hidden !important;
    position: relative !important;
}

.feature-box.rental-slider .swiper-button-next,
.feature-box.rental-slider .swiper-button-prev {
    z-index: 99999 !important;
    pointer-events: auto !important;
    position: absolute !important;
}

.swiper-wrapper {
	height: auto !important
}