/*home page styling*/
*{
    margin: 0%; 
    padding: 0%;
    box-sizing: border-box;
}

body{
    
    font-family: poppins;
    
}
/* header styling */
header {
    border-bottom: 2px solid brown;
    background-color: white;
}

.navbar-brand img {
    width: 100px;
}

.navbar-nav .nav-link {
    color: #000;
    font-weight: 500;
}

/* Remove default Bootstrap dropdown hover behavior for desktop */
.navbar .dropdown-menu {
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    display: none;

}

/* Remove hover-based dropdown opening, JS will handle it */


/* Mega dropdown positioning */
.dropdown-mega {
    position: static;
}

/* --- Mega menu fix: keep gap and allow selection --- */


/* Show mega menu when parent has .show or menu has .show */
.nav-item.dropdown.show .dropdown-menu.megamenu,
.dropdown-menu.megamenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Also ensure all dropdown-menus are selectable when .show is present */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.megamenu .col-md-3 {
    margin-bottom: 1rem;
}

.megamenu .icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #b00;
}

.nav-link {
    font-weight: 500;
}

.dropdown-item.active, .dropdown-item:active {
    color:#722525 !important;
}

.dropdown-item:focus, .dropdown-item:hover {
    color:#722525 !important;
    background: transparent !important;
}

.megamenu a:hover {
  color: #b71c1c !important; 
}


.dropdown-mega:hover > .dropdown-menu {
  display: block;
  margin-top: 0; /* removes gap so it doesn’t disappear */
}

/* Make sure mega menu aligns properly */
.dropdown-menu.megamenu {
  left: 0;
  right: 0;
  top: 100%;
  border-radius: 0;
   background: #ddd;
 background: #ddd;
    border: 1px solid #ddd;
    box-shadow: none;

}

.newbutton {
    /* background-color: #722525; */
    border: none;
    color: white;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    background: linear-gradient(5deg, #722525, #9B3232, #E58383);
}

.enquirenow .text {
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    #mainNavbar {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .dropdown-menu.dropdown-row {
        white-space: nowrap;
        padding: 10px 15px;
    }

    .dropdown-menu.dropdown-row li {
        display: inline-block;
        margin-right: 10px;
    }

    .dropdown-menu.dropdown-row .dropdown-item {
        display: inline-block;
        padding: 10px 15px;
        text-align: center;
    }
}

/* Remove hover-based dropdown for desktop, JS will handle it */
@media (min-width: 992px) {
    
    .navbar .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
}


/* breadcrumb styling */
.breadcrumb-item + .breadcrumb-item::before {
      content: " > ";
    }
    .main-items {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
    .status-buttons button {
      border-radius: 15px;
      padding-left: 15px;
      padding-right: 15px;
    }
/* Toggle Buttons */
.toggle-buttons {
  text-align: center;
  margin: 20px 0;
}
.toggle-buttons button {
  border: none;
  padding: 8px 20px;
  margin: 0 5px;
  font-weight: 600;
  border-radius: 5px;
}

/* Available button style */
.btn-success {
  background-color: #6DA77F !important;
  border: 1px solid #6DA77F !important;
  color: #fff !important;
}

/* SOLD OUT styles */
.btn-soldout-custom {
  background-color: #90979D !important;
  border: 1px solid #90979D!important;
  color: #fff !important;
}
.btn-soldout-outline {
  background-color: transparent !important;
  border: 1px solid #90979D !important;
  color: #90979D !important;
}

/* Carousel Wrapper */
/* ================================
   CAROUSEL STRUCTURE
================================ */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 15px);
  margin: 0 7.5px;
}

.carousel-hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .carousel-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .carousel-card {
    flex: 0 0 98%;
  }
}

/* ================================
   PREMIUM PREV / NEXT BUTTONS
================================ */

.carousel-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  z-index: 10;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(114, 37, 37, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #722525;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  margin-left: 5px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.35s ease;
}

.carousel-btn:hover {
  background: #722525;
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev {
  left: 5px;
}

.carousel-btn.next {
  right: 5px;
}

/* ================================
   PREMIUM REAL ESTATE CARD
================================ */

.card {
  position: relative;
  isolation: isolate;
  border-radius: 28px !important;
  overflow: hidden;
  border: 1px solid rgba(118, 82, 54, 0.18) !important;
  background: #ffffff;
  /* box-shadow:
    0 22px 55px rgba(42, 24, 16, 0.12),
    0 8px 24px rgba(114, 37, 37, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95); */
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
}

/* Inner premium border */
.card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 3;
  pointer-events: none;
  border-radius: 23px;
  /* border: 1px solid rgba(255, 255, 255, 0.65); */
}

/* Smooth luxury shine */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.18) 48%,
      rgba(222, 190, 145, 0.16) 52%,
      transparent 64%,
      transparent 100%
    );
  transform: translateX(-145%);
  transition: transform 1.35s ease;
}

.card:hover {
  transform: translateY(-9px);
  border: 1.5px solid rgba(114, 37, 37, 0.38) !important;
  /* box-shadow:
    0 32px 78px rgba(42, 24, 16, 0.17),
    0 14px 34px rgba(114, 37, 37, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95); */
}

.card:hover::after {
  transform: translateX(145%);
}

/* ================================
   CARD IMAGE
================================ */

.card > img:first-child,
.card-img-top {
  width: 100%;
  height: 454px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.035) saturate(1.055);
  transform-origin: center;
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s ease;
}

.card:hover > img:first-child,
.card:hover .card-img-top {
  transform: scale(1.048);
  filter: contrast(1.075) saturate(1.1) brightness(0.99);
}

/* ================================
   PROJECT NAME STRIP
================================ */

.card-header {
  position: relative;
  color: #151515;
  background:
    linear-gradient(135deg, #faf4eb 0%, #eadfd1 54%, #d7c5b2 100%) !important;
  border-bottom: 1px solid rgba(118, 82, 54, 0.16) !important;
  font-size: 25px;
  padding: 16px 18px !important;
}

.card-header::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 72px;
  height: 2px;
  background:
    linear-gradient(90deg, #722525, rgba(176, 137, 92, 0.8), transparent);
}

.Apartment-name,
.card-header h5,
.card-header p {
  margin: 0 !important;
  color: #17110e !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em;
}

/* ================================
   CARD BODY DETAILS
================================ */

.card-body {
  margin-top: 0 !important;
  padding: 26px 20px 36px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}

.card-body .row {
  row-gap: 20px;
}

.card-body .row > div {
  position: relative;
}

.card-body img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 12px;
  margin-top: 4px;
  opacity: 0.8;
  filter: sepia(0.22) saturate(0.85);
  transition: all 0.35s ease;
}

.card:hover .card-body img {
  opacity: 1;
  transform: translateY(-2px);
}

.card-body strong,
.card-body b,
.card-body h6 {
  display: block;
  color: #241712;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  margin-bottom: 5px;
}

.card-body p,
.card-body span {
  color: #4a3c33;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

.location-text {
  line-height: 1.35;
  font-size: 0.875rem;
  color: #4a3c33;
}

/* ================================
   BOTTOM STATUS STRIP
================================ */

.available-btn {
  position: relative;
  border-radius: 0 0 24px 24px !important;
  background:
    linear-gradient(180deg, #c9efd4 0%, #72b282 42%, #315f3d 100%) !important;
  color: #ffffff;
  text-align: center;
  padding: 19px 17px !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08);
}

.available-btn::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.soldout-btn {
  position: relative;
  border-radius: 0 0 24px 24px !important;
  background:
    linear-gradient(180deg, #c5c8cb 0%, #8b9298 45%, #555d64 100%) !important;
  color: #ffffff;
  text-align: center;
  padding: 19px 17px !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ================================
   TOP FILTER BUTTONS
================================ */

.status-buttons .btn,
#availableBtnDesktop,
#soldOutBtnDesktop {
  border-radius: 999px !important;
  min-width: 112px;
  height: 36px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.35s ease;
}

#availableBtnDesktop {
  background:
    linear-gradient(180deg, #86c79a 0%, #3e774f 100%) !important;
  border: 1px solid rgba(63, 119, 79, 0.45) !important;
  color: #ffffff !important;
  box-shadow:
    0 12px 28px rgba(63, 119, 79, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#soldOutBtnDesktop {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(90, 98, 106, 0.38) !important;
  color: #69727a !important;
  box-shadow: none;
}

#availableBtnDesktop:hover,
#soldOutBtnDesktop:hover {
  transform: translateY(-2px);
}

/* =====================================================
   SMOOTH FADE-UP ANIMATION - NO BLUR
   JS adds .premium-reveal and .is-visible
===================================================== */

.card.premium-reveal {
  opacity: 0;
  transform: translate3d(0, 46px, 0) scale(0.992);
  transition:
    opacity 1.25s ease,
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.card.premium-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.card.premium-reveal.is-visible:hover {
  transform: translateY(-8px) scale(1);
}
/* CSS-only fallback - smooth, no blur */
/* @supports (animation-timeline: view()) {
  .card:not(.premium-reveal) {
    animation: smoothProjectReveal linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 26%;
  } */

  @keyframes smoothProjectReveal {
    from {
      opacity: 0;
      transform: translateY(38px) scale(0.99);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1199px) {
  .card > img:first-child,
  .card-img-top {
      height: 450px;

  }
}

@media (max-width: 991px) {
  .carousel-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 767px) {
  .card {
    border-radius: 18px !important;
  }

  .card::before {
    border-radius: 17px;
  }

  .card > img:first-child,
  .card-img-top {
    /* height: 260px; */
      height: 450px;

  }

  .card-header {
    padding: 14px 16px !important;
  }

  .Apartment-name,
  .card-header h5,
  .card-header p {
    font-size: 18px !important;
  }

  .card-body {
    padding: 22px 16px 32px !important;
  }

  .available-btn,
  .soldout-btn {
    border-radius: 0 0 18px 18px !important;
    padding: 16px !important;
    font-size: 13px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .carousel-card {
    flex: 0 0 98%;
  }

  .card > img:first-child,
  .card-img-top {
    /* height: 235px; */

      height: 450px;

  }

  .card-body .row {
    row-gap: 18px;
  }
}
/* footer styling */
footer {
    padding: 10px;
    border-top: solid 1px white;
    /* font-weight: 300; */
    font-size: 14px;
    background-color: #722525;
}


@media (max-width: 800px) {
    .Footer-elements {
        margin-top: 10px;
    }
}


.social-circle {
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-circle i {
  color: #ffffff;
  font-size: 18px;
  transition: 0.3s ease;
}

.Footer-elements {
  
  gap: 14px;
}

/* Hover Effect */
.social-circle:hover {
  border-color: #722525;
}






@media (min-width:100px) and (max-width:768px) {
  
  .social-circle{
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}
.location-circle {
  width: 45px;
  height: 45px;
  
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-circle i,
.location-circle i {
  color: #ffffff;
  font-size: 18px;
  transition: 0.3s ease;
}

/* Hover */
.social-circle:hover,
.location-circle:hover {
  border-color: #722525;
}

.social-circle:hover i,
.location-circle:hover i {
  color: #722525;
}

/* Small alignment fix for location icon */
.location-circle i {
  font-size: 20px;
  margin-top: 2px; 
}

}

/* .status-buttons{
  margin-right: 30px;
} */



html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content should take remaining space */
main {
  flex: 1 0 auto;
}

/* Footer stays at bottom on lg screens */
footer {
  flex-shrink: 0;
}

/* Optional: small padding for mobile stacked layout */
@media (max-width: 991.98px) {
  footer {
    position: relative;
  }
}


.card-img-top {
  width: 100%;
  height: 375px;        /* adjust if needed (220–260 ideal) */
  display: block;
}



.card-body {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  height: 160px;
}

/* Tablet & Mobile – remove fixed height */
@media (max-width: 991px) {
  .card-body {
    height: auto;
  }
}


.card-body .mb-4 {
  margin-bottom: 10px !important;
}

.card-body .mb-2 {
  margin-bottom: 6px !important;
}


#scrollToggle {
  position: fixed;
  bottom: 30px;
  right: 20px;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: #ffffff ;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
  animation: bounce 2.2s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#scrollToggle:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

/* Arrow direction */
.arrow {
  transition: transform 0.3s ease;
}

.arrow.down {
  transform: rotate(0deg);
}

.arrow.up {
  transform: rotate(180deg);
}

/* Elegant bounce */
@keyframes bounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(0); }
  40%  { transform: translateY(-7px); }
  60%  { transform: translateY(-3px); }
  80%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}


.btn-soldout-custom {
  background-color: #6da77b; /* same green tone */
  color: #ffffff;
  border: 1px solid #6da77b;
}

.btn-soldout-custom:hover {
  background-color: #5f986e;
  border-color: #5f986e;
}

.btn-soldout-outline {
  background-color: transparent;
  color: #6da77b;
  border: 1px solid #6da77b;
}



/* =========================================================
   STATUS BUTTONS – RESPONSIVE FIX
========================================================= */

.status-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Default button look */
.status-buttons .btn {
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===============================
   MOBILE (≤576px)
================================ */
@media (max-width: 576px) {
  .status-buttons {
    justify-content: flex-end;
    margin-top: 10px;
  }

  .status-buttons .btn {
    font-size: 12px;
    padding: 6px 14px;
  }
}

/* ===============================
   TABLET (577px – 991px)
================================ */
@media (min-width: 577px) and (max-width: 991px) {
  .status-buttons {
    justify-content: flex-end;
  }

  .status-buttons .btn {
    font-size: 13px;
    padding: 7px 16px;
  }
}

/* ===============================
   DESKTOP (≥992px)
================================ */
@media (min-width: 992px) {
  .status-buttons {
    justify-content: flex-end;
  }
}



/* =========================================================
   FIX TEXT CUT / HIDE ISSUE (MOBILE + TABLET)
========================================================= */

/* Allow text to wrap properly */
.carousel-card .location-text,
.carousel-card .fw-light {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Prevent flex from cutting text */
.carousel-card .d-flex {
  align-items: flex-start;
}

/* Ensure icon does not shrink text */
.carousel-card .d-flex img {
  flex-shrink: 0;
}

/* MOBILE: force full-width content */
@media (max-width: 575px) {
  .carousel-card .col-6 {
    width: 100%;
    max-width: 100%;
  }

  .carousel-card .ms-2 {
    min-width: 0;
  }
}




