/* =========================================================
   Ansraj Realty - Custom Overrides
   Company: Ansraj Realty | Sector 49, Gurugram, Haryana 122101
========================================================= */

/* ---------- Logo (capped so a missing/broken image can't break the header) ---------- */
.main__logo--img{
  max-height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
}
.main__logo--link{ display: inline-flex; align-items: center; line-height: 1; }
@media (max-width: 575px){
  .main__logo--img{ max-height: 36px; }
}

/* ---------- Header layout safety (prevents overflow hiding the menu button) ---------- */
.main__header{ flex-wrap: nowrap; gap: 1rem; }
.main__header--right{ gap: 1.2rem; flex-shrink: 0; }
.header__section{ position: relative; z-index: 999; background: var(--color-background); }

/* ---------- Header phone + mega menu (Project dropdown) ---------- */
.header__phone--link{
  margin-right: 0;
  font-weight: 700;
  gap: .6rem;
  color: var(--color-foreground);
  white-space: nowrap;
}
.header__phone--link:hover{ color: var(--color-hover); }

.main__menu--items.has__mega{ position: relative; }
.main__menu--items.has__mega .mega__menu--wrapper{
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99;
  display: flex;
  gap: 3rem;
  width: 42rem;
  padding: 2.5rem;
  margin-top: 10px;
  background: var(--color-background);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.main__menu--items.has__mega:hover .mega__menu--wrapper{
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}
.mega__menu--col{ flex: 1; }
.mega__menu--title{
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--color-hover);
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--color-border);
}
.sub__menu--list li{ margin-bottom: 1rem; }
.sub__menu--list li:last-child{ margin-bottom: 0; }
.sub__menu--list .sub__menu--link{
  font-size: 1.45rem;
  color: var(--color-foreground-sub);
}
.sub__menu--list .sub__menu--link:hover{ color: var(--color-hover); }

/* =========================================================
   MOBILE / TABLET HAMBURGER BUTTON (3 bars) - FIX
========================================================= */
.mobile__menu--toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 4.2rem;
  height: 4.2rem;
  min-width: 4.2rem;
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  background: var(--color-background);
  padding: 0;
  cursor: pointer;
  z-index: 1000;
}
.mobile__menu--toggle__bar{
  display: block;
  width: 2.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-foreground);
  transition: var(--transition);
}
.mobile__menu--toggle:hover{
  background: var(--color-hover);
  border-color: var(--color-hover);
}
.mobile__menu--toggle:hover .mobile__menu--toggle__bar{
  background: var(--color-white);
}

/* Bootstrap's d-lg-none already hides/shows this at the 992px breakpoint,
   but we force display explicitly too so it never silently disappears
   if style.css load order changes. */
@media (max-width: 991.98px){
  .mobile__menu--toggle{ display: flex !important; }
  .main__menu{ display: none !important; }
}
@media (min-width: 992px){
  .mobile__menu--toggle{ display: none !important; }
}

/* =========================================================
   MOBILE / TABLET OFFCANVAS MENU (Bootstrap 5 offcanvas)
========================================================= */
.mobile__offcanvas{
  width: 300px;
  max-width: 85vw;
  background: var(--color-background);
  z-index: 1200;
}
@media (min-width: 480px){
  .mobile__offcanvas{ width: 340px; }
}

.mobile__offcanvas--header{
  padding: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile__offcanvas--logo img{
  max-height: 38px;
  width: auto;
}
.mobile__offcanvas--close{
  border: 0;
  background: var(--color-background-3);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-foreground);
}
.mobile__offcanvas--close:hover{
  background: var(--color-hover);
  color: var(--color-white);
}

.mobile__offcanvas--body{
  padding: 2rem;
  overflow-y: auto;
}

.mobile__menu--list{ margin: 0; padding: 0; list-style: none; }
.mobile__menu--list > li{
  border-bottom: 1px solid var(--color-border);
}
.mobile__menu--link{
  display: flex;
  align-items: center;
  padding: 1.4rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-foreground);
  text-transform: capitalize;
}
.mobile__menu--link.active,
.mobile__menu--link:hover{ color: var(--color-hover); }
.mobile__menu--caret{
  margin-left: auto;
  transition: transform .3s ease;
}
.mobile__menu--link[aria-expanded="true"] .mobile__menu--caret{
  transform: rotate(180deg);
}

.mobile__submenu{
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0 0 0 1rem;
}
.mobile__submenu--heading{
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-hover);
  padding: 1rem 0 .5rem;
}
.mobile__submenu li a{
  display: block;
  padding: .8rem 0;
  font-size: 1.45rem;
  color: var(--color-foreground-sub);
}
.mobile__submenu li a:hover{ color: var(--color-hover); }

.mobile__offcanvas--footer{
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.mobile__offcanvas--phone{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-weight: 700;
  color: var(--color-hover);
  font-size: 1.6rem;
}
.mobile__offcanvas--address{
  font-size: 1.4rem;
  color: var(--color-foreground-sub);
}

/* =========================================================
   HERO SECTION - Attractive + Minimal Width Slider
========================================================= */
.ar__hero--section{
  background: linear-gradient(120deg,#101828 55%, #1c2536 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}
@media (min-width: 992px){
  .ar__hero--section{ padding: 8rem 0 7rem; }
}

.ar__hero--grid{
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}
@media (min-width: 992px){
  .ar__hero--grid{ padding: 0 6rem; }
}

.ar__hero--left{ width: 100%; }
@media (min-width: 992px){
  .ar__hero--left{ width: 58%; }
}

.ar__hero--badge{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(250,74,74,.15);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: 3rem;
  margin-bottom: 1.5rem;
}

.ar__hero--title{
  color: #fff;
  font-size: 2.6rem;
  line-height: 3.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px){
  .ar__hero--title{ font-size: 3.6rem; line-height: 4.4rem; }
}
@media (min-width: 1200px){
  .ar__hero--title{ font-size: 4.4rem; line-height: 5.2rem; }
}
.ar__hero--title span{ color: var(--color-hover); }

.ar__hero--desc{
  color: rgba(255,255,255,.75);
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  max-width: 55rem;
}

.ar__hero--search{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.2rem;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
}
.ar__hero--tabs{ gap: .8rem; margin-bottom: 1.5rem; }
.ar__hero--tab{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  font-size: 1.4rem;
  padding: .6rem 1.2rem;
  border-radius: .6rem;
}
.ar__hero--tab.active{ background: var(--color-hover); color: #fff; }
.ar__hero--search__form{ display: flex; flex-wrap: wrap; gap: 1rem; }
.ar__hero--input{
  flex: 1;
  min-width: 15rem;
  height: 4.6rem;
  border: 0;
  border-radius: .6rem;
  padding: 0 1.4rem;
  background: #fff;
  font-size: 1.4rem;
}
.ar__hero--btn{
  height: 4.6rem;
  padding: 0 2rem;
  border: 0;
  border-radius: .6rem;
  background: var(--color-hover);
  color: #fff;
  font-weight: 700;
}
.ar__hero--btn:hover{ background: #fff; color: var(--color-hover); }
.ar__hero--quote__btn{ display: inline-block; }

/* Minimal-width eye catching hero slider */
.ar__hero--right{ width: 100%; }
@media (min-width: 992px){
  .ar__hero--right{ width: 34%; }
}
.ar__hero--slider{
  max-width: 300px;
  margin: 0 auto;
  border-radius: 1.4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
@media (min-width: 480px){
  .ar__hero--slider{ max-width: 320px; }
}
.ar__hero--slide__card{
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  line-height: 1;
}
.ar__hero--slide__card img{
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.ar__hero--slide__info{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.8rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.ar__hero--slide__price{
  display: inline-block;
  background: var(--color-hover);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: .3rem 1rem;
  border-radius: 2rem;
  margin-bottom: .8rem;
}
.ar__hero--slide__info h3{
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: .4rem;
}
.ar__hero--slide__info p{
  color: rgba(255,255,255,.8);
  font-size: 1.3rem;
  margin: 0;
}
.ar__hero--slider .swiper-pagination{ bottom: 8px !important; }

/* =========================================================
   PROPERTY TYPE TABS
========================================================= */
.ar__property--tabs{ gap: 1.2rem; flex-wrap: wrap; }
.ar__property--tab{
  border: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 1rem 2.2rem;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 1.5rem;
}
.ar__property--tab.active,
.ar__property--tab:hover{
  background: var(--color-hover);
  color: #fff;
  border-color: var(--color-hover);
}

/* =========================================================
   FIND HOME BY LOCATION - Gurugram
========================================================= */
.ar__location--section{
  background: var(--color-background-4);
  position: relative;
}
.ar__location--subdesc{
  color: rgba(255,255,255,.7);
  max-width: 55rem;
  margin: 1rem auto 0;
}
.ar__location--grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px){
  .ar__location--grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px){
  .ar__location--grid{ grid-template-columns: repeat(4, 1fr); }
}
.ar__location--card{
  display: block;
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  height: 22rem;
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ar__location--card:hover{
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}
.ar__location--card.active,
.ar__location--card:hover{ outline: 2px solid var(--color-hover); }
.ar__location--card__media{ position: absolute; inset: 0; }
.ar__location--card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar__location--card__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15));
}
.ar__location--card__content{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem;
  z-index: 2;
}
.ar__location--card__content h3{
  font-size: 1.9rem;
  margin-bottom: .4rem;
  color: #fff;
}
.ar__location--card__content span{
  display: inline-block;
  background: var(--color-hover);
  padding: .2rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.ar__location--card__content p{
  margin: 0;
  font-size: 1.3rem;
  color: rgba(255,255,255,.8);
}


builder__partner--section {
    background: #F8F8FA;
}
 
.builder__partner--wrapper {
    padding: 0 40px;
}
 
.builder__partner--card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #EFEFEF;
    border-radius: 12px;
    padding: 25px 20px;
    height: 130px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
 
.builder__partner--card:hover {
    border-color: #F23B3B;
    box-shadow: 0 10px 30px rgba(242, 59, 59, 0.12);
    transform: translateY(-5px);
}
 
.builder__partner--logo {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.3s ease;
}
 
.builder__partner--card:hover .builder__partner--logo {
    filter: grayscale(0%);
    opacity: 1;
}
 
.builder__partner--wrapper .swiper-pagination {
    position: relative;
    margin-top: 30px;
}
 
.builder__partner--wrapper .swiper-pagination-bullet {
    background: #D9D9D9;
    opacity: 1;
}
 
.builder__partner--wrapper .swiper-pagination-bullet-active {
    background: #F23B3B;
}
 
.builder__partner--wrapper .swiper__nav--btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #EFEFEF;
    border-radius: 50%;
    color: #F23B3B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 2;
}
 
.builder__partner--prev { left: -10px; }
.builder__partner--next { right: -10px; }
 
@media (max-width: 768px) {
    .builder__partner--wrapper { padding: 0 30px; }
    .builder__partner--card { height: 100px; padding: 15px; }
    .builder__partner--logo { max-height: 45px; }
}
