* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "Open Sans", sans-serif;
  background-color: #fff;
}
:root {
  --blue-color: #435a7e;
  --light-blue-color: #6a90ca;
  --dark-blue-color: #212529;
}
.navbar-nav .nav-link {
  text-transform: uppercase;
  font-weight: 600;
}
.navbar-border {
  border-bottom: 3px solid var(--blue-color);
}
.logo-img {
  width: 224px;
}
/* default hidden state */
.dropdown-menu.dropdown-animate {
  display: block; /* force always block, so animation can run */
  opacity: 0;
  transform: translateY(15px);
  visibility: hidden;
  background-color: var(--dark-blue-color);
  border-radius: 0 !important;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* visible state when Bootstrap adds .show */
.dropdown-menu.dropdown-animate.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.dropdown-menu .dropdown-item {
  color: white;
}
.dropdown-item:focus,
.dropdown-item:hover {
  background-color: var(--light-blue-color) !important;
}
.custom-hover {
  position: relative;
  display: inline-block;
}

.custom-hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-bottom: 4px solid var(--light-blue-color); /* looks like border-bottom */
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.custom-hover:hover::after {
  width: 100%; /* expands like a border-bottom */
}
.property-search {
  background: var(--blue-color); /* matches screenshot */
}

.consultation {
  background-color: var(--blue-color) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
}

.consultation h3 {
  font-size: 1.6rem;
  line-height: 1.4;
}
.form-control {
  border-radius: 2px !important;
}
.form-select {
  border-radius: 2px !important;
}
.form-select:focus {
  box-shadow: none !important;
}
.form-control:focus {
  box-shadow: none !important;
}
.btn-primary {
  background-color: var(--light-blue-color);
  border-color: var(--light-blue-color) !important;
}
.btn-primary:hover {
  background-color: var(--blue-color);
}
.top-btn {
  background-color: var(--blue-color) !important;
  padding: 10px 10px;
}
.top-btn:hover {
  background-color: var(--dark-blue-color) !important;
}
.btn-clr {
  background-color: #ff0000a6 !important;
  color: white;
  border-color: #ff0000a6 !important;
}
.btn-clr:hover {
  background-color: #ff2f0073 !important;
  color: white;
}
.banner-heading {
  color: var(--blue-color);
  font-weight: 700;
}
.custom-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.custom-card-hover:hover {
  transform: translateY(-8px); /* moves up smoothly */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-section {
  background-color: var(--blue-color);
}
.property-card {
  cursor: pointer;
  height: 100%;
}
.property-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 15px;
}
.property-card:hover .overlay {
  opacity: 1;
}
footer {
  background-color: var(--dark-blue-color);
  color: #fff;
  padding: 40px 0;
  font-size: 14px;
}
footer a {
  color: #d1e0f0;
  text-decoration: none;
}
.footer-logo {
  width: 200px;
}
footer a:hover {
  text-decoration: underline;
}
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid white; /* border color */
  border-radius: 50%; /* makes it a circle */
  margin: 0 8px;
  font-size: 18px;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: white;
  color: var(--blue-color);
  text-decoration: none;
  transform: scale(1.1);
}

.property-card-grid {
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
}
.property-card-grid:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.property-image {
  position: relative;
  height: 305px;
}
.ribbon {
  position: absolute;
  top: 20px;
  left: -40px;
  width: 140px;
  background: #e63946;
  color: #fff;
  text-align: center;
  transform: rotate(-45deg);
  font-size: 14px;
  font-weight: bold;
}
.property-tag-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue-color); /* red, you can change */
  color: #fff;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 0;
}

.filter-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
}
.filter-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.property-info i {
  margin-right: 4px;
  color: #555;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .ribbon {
    font-size: 12px;
    width: 100px;
    left: -30px;
  }
  .property-info {
    flex-wrap: wrap;
  }
}
.border-left-custom {
  border-left: 5px solid var(--light-blue-color);
  background-color: var(--dark-blue-color) !important;
  color: white;
}

.carousel-img {
  height: 400px; /* fixed height for desktop */
  object-fit: cover; /* crop image but keep aspect ratio */
}

@media (max-width: 768px) {
  .carousel-img {
    height: 250px; /* smaller height for mobile */
  }
}
.breadcrumb .breadcrumb-item a {
  color: var(--blue-color) !important;
}
.breadcrumb .breadcrumb-item a:hover {
  color: var(--dark-blue-color) !important;
}
.responsive-img {
  max-width: 30%;
  height: max-content;
}
@media (max-width: 576px) {
  .responsive-img {
    max-width: 100%;
  }
}

.property-detail-slider {
  border: 4px solid var(--blue-color);
  border-radius: 10px;
}
.fixed-img {
  height: 220px;
  object-fit: cover;
}

.service-img {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .service-img {
    max-width: 200px;
    height: 150px;
  }
}

.award-img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .award-img {
    max-height: 250px;
  }
}

@media (max-width: 576px) {
  .award-img {
    max-height: 200px;
  }
}
#result {
  width: 100%;
  background: #fff;
  max-height: 200px;
  overflow-y: auto;
  top: 40px;
  position: absolute;
  z-index: 1;
  color: var(--color1)!important;
  box-sizing: border-box;
  box-shadow: 0px 0px 5px 0px #0000003b;
}

.filterdata {
  padding: 7px 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.filterdata:hover {
  background: #2B2D6C;
  color: white;
}
.autocomplete__input{
  position: relative !important;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
}





.prev-btn{
  -webkit-transform: rotate(-180deg) translate(0, 50%) !important;
  -moz-transform: rotate(-180deg) translate(0, 50%) !important;
  -ms-transform: rotate(-180deg) translate(0, 50%) !important;
  -o-transform: rotate(-180deg) translate(0, 50%) !important;
  transform: rotate(-180deg) translate(0, 50%);
}
.slick-next:before, .slick-prev:before{
  display: none;
}
.slick-next, .slick-prev{
  width: 42px !important;
  height: 42px !important;
}
.slick-prev{
  left: -38px !important;
}
.slick-next{
  right: -38px !important;
}


.tag {
  background: #b7b7b7;
  color: #333;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
}

.property-details .carousel-control-next-icon,
.property-details .carousel-control-prev-icon{
  background-color: var(--blue-color) !important;
  border: 1px solid var(--blue-color) !important;
  border-radius: 50% !important;
  background-size: 60% 60% !important;
}




.hero-section {
  height: 70vh !important;
  min-height: 500px !important;
  overflow: hidden !important;
}
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 2;
}

.search-overlay {
  top: 70%;
  transform: translateY(-50%);
  z-index: 3;
}

.search-form-wrapper {
  backdrop-filter: blur(5px);
  background-color: var(--blue-color);
  border: 1px solid var(--light-blue-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .search-form-wrapper {
    margin: 0 15px;
  }
  
  .video-wrapper iframe {
    height: 100vh;
    width: 178vh;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }
}

.category-img-container {
  overflow: hidden;
  position: relative;
}

.category-img-container .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: center; */
  transition: transform 0.3s ease;
}
.body-card{
  min-height: 300px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  
  .body-card {
    min-height: 280px;
  }

}

@media (max-width: 576px) {
  
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  .body-card {
    min-height: auto;
  }
}

/* Ensure equal heights for all cards in a row */
@media (min-width: 768px) {
  .row.g-4 {
    display: flex;
    flex-wrap: wrap;
  }
  
  .row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }
}