/* Base font */

/* Navbar tweaks */
.navbar-dark {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar-logo {
  height: 50px;
  width: auto;
}
.navbar-nav .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffc107;
  transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffc107;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  left: 25%;
  width: 50%;
}

/* Footer tweaks */
footer {
  font-size: 0.9rem;
}
.footer-link {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
.footer-link:hover {
  color: #fff;
  transform: translateY(-2px);
}
footer .fab {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
footer .fab:hover {
  transform: scale(1.2);
}


/* Expertise Section */
#expertise {
  background-color: #f8f9fa;
}

#expertise h2 {
  color: #151f28;
}

.expertise-item .img-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item .img-container:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.expertise-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.expertise-card h3 {
  color: #151f28;
}

.expertise-card p {
  color: #495057;
  line-height: 1.6;
}

#expertise .bg-dark {
  background-color: #151f28 !important;
}


/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #151f28;
  margin-bottom: 1.5rem;
}

/* Projects Cards – One by One */
.project-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Image container – fixed aspect ratio */
.project-img-container {
  width: 100%;
  max-width: 40%;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Body flex layout */
.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-body h3 {
  font-size: 1.5rem;
  color: #0d6efd;
  margin-bottom: 0.75rem;
}
.project-body p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Button at bottom */
.project-btn {
  background-color: #0d6efd;
  color: #fff !important;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: background-color 0.3s;
  text-decoration: none;
}
.project-btn:hover {
  background-color: #0b5ed7;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-card {
    flex-direction: column;
  }
  .project-img-container {
    max-width: 100%;
    height: 240px;
  }
}
@media (max-width: 576px) {
  .project-img-container {
    height: 200px;
  }
}


/* Interior Finish */
#interior-finish {
  position: relative;
  overflow: hidden;
}
.overlay-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  pointer-events: none;
}
.finish-text {
  background: rgba(255, 255, 255, 0.85);
}
.finish-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #151f28;
}
.finish-text p {
  color: #495057;
  line-height: 1.6;
}

/* Services Boxes */
.service-box {
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}
.service-icon {
  font-size: 3rem;
  color: #0d6efd;
}
.service-box h4 {
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.service-box p {
  color: #6c757d;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .project-img { height: 180px; }
}


/* Interior Finish Section */
#interior-finish {
  position: relative;
  background: url('../images/interior_finish.jpeg') center/cover no-repeat fixed;
  min-height: 70vh;
}
#interior-finish .overlay-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    rgba(21,31,40,0.7),
    rgba(13,104,243,0.3)
  );
  z-index: 1;
}
#interior-finish .z-2 {
  position: relative;
  z-index: 2;
}
.finish-text h3 {
  font-size: 2rem;
  color: #ffc107;
}
.finish-text p {
  font-size: 1rem;
  color: #f1f1f1;
  line-height: 1.6;
}
#interior-finish .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
}
#interior-finish .btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}
@media (max-width: 992px) {
  #interior-finish {
    background-attachment: scroll;
    padding: 4rem 0;
  }
}


/* Hero Section Carousel */
#hero-image {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-slide {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  height: 100%;
}

/* Text inside hero */
#hero-image h1,
#hero-image p {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-slide {
    height: 40vh;
  }
  #hero-image h1 {
    font-size: 2rem;
  }
  #hero-image p {
    font-size: 1rem;
  }
}


/* Hero/Banner */
  #properties-hero {
    position: relative;
    background: url("{% static 'images/city_drone.jpg' %}") center/cover no-repeat;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    color: #fff;
  }
  #properties-hero .overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
  }
  #properties-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
  }
  #properties-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  }

  #properties-hero img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}


  /* Listing Cards */
  #appartments .listing-preview {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  #appartments .listing-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  }
  #appartments .listing-preview .card-img-top {
    height: 200px;
    object-fit: cover;
  }
  #appartments .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  #appartments .listing-heading h4 {
    margin-bottom: .5rem;
  }
  #appartments .price {
    background: rgba(13,110,253,0.9);
    color: #fff;
    font-size: 1.25rem;
    padding: .5rem 1rem;
    border-radius: .75rem;
  }

  /* “More Info” button pinned to bottom */
  #appartments .card-body .main-btn {
    margin-top: auto;
    background-color: #0d6efd;
    color: #fff !important;
    border-radius: 50px;
    padding: .5rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .3s;
  }
  #appartments .card-body .main-btn:hover {
    background-color: #0b5ed7;
  }

  /* Responsive */
  @media (max-width: 576px) {
    #properties-hero h1 { font-size: 2rem; }
    #appartments .listing-preview .card-img-top { height: 150px; }
  }



/* Disable pointer events on the overlay so buttons remain clickable */
#appartments .card-img-overlay {
  pointer-events: none;
}

/* Listing Cards */
#appartments .listing-preview {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  background: #fff;
}
#appartments .listing-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
#appartments .card-img-top {
  height: 200px;
  object-fit: cover;
}
#appartments .card-body {
  display: flex;
  flex-direction: column;
}
#appartments .listing-heading h4 {
  margin-bottom: .5rem;
}
#appartments .price {
  background: rgba(13,110,253,0.9);
  color: #fff;
  font-size: 1.25rem;
  padding: .5rem 1rem;
  border-radius: .75rem;
  pointer-events: auto;  /* keep badge clickable if needed */
}
#appartments .main-btn {
  margin-top: auto;
  background-color: #0d6efd;
  color: #fff !important;
  border-radius: 50px;
  padding: .5rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s;
  text-align: center;
}
#appartments .main-btn:hover {
  background-color: #0b5ed7;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  #appartments .card-img-top {
    height: 150px;
  }
}


/* Back-arrow inquiry button */
.btn-back {
  display: inline-block;
  margin-top: 2rem;        /* space above */
  padding: 0.6rem 1.2rem;  /* vertical & horizontal padding */
  background-color: #0d6efd;
  color: #fff !important;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-back:hover {
  background-color: #0b5ed7;
  transform: translateX(-3px); /* slight slide on hover */
}


/* ─────────────────────────────────────────────────────────────────────────
   Listing Detail Page
   ───────────────────────────────────────────────────────────────────────── */
#listing {
  background-color: #f8f9fa;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
#listing .container {
  max-width: 960px;
}

/* Back / Inquiry Button */
.btn-back {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #0d6efd;
  color: #fff !important;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}
.btn-back:hover {
  background-color: #0b5ed7;
  transform: translateX(-3px);
}

/* Title */
#listing h2.fw-bold {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #151f28;
}

/* Carousel */
.slider-img {
  height: 700px;
  object-fit: cover;
}
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
}
.carousel-indicators .active {
  background-color: #ffc107 !important;
}

/* Property Details Lists */
#listing .list-group-item {
  border: none;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 1rem;
  transition: background-color 0.3s;
}
#listing .list-group-item:hover {
  background-color: rgba(13,110,253,0.05);
}
#listing .list-group-item .fas {
  color: #0d6efd;
}
#listing .fs-5.fw-medium {
  font-size: 1rem;
  font-weight: 600;
  color: #151f28;
}
#listing .badge.bg-secondary {
  background-color: #6c757d !important;
  color: #fff;
}

/* Description */
#listing h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #151f28;
  margin-top: 2rem;
}
#listing .text-muted.fs-6 {
  color: #495057 !important;
  line-height: 1.8;
}

/* Mobile Tweaks */
@media (max-width: 767px) {
  .slider-img {
    height: 250px;
  }
}


/* More Dropdown Styling */
.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.navbar-nav .dropdown-menu {
  background-color: #151f28;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 9999;
}

.navbar-nav .dropdown-item {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

.navbar-nav .dropdown-item:hover {
  background-color: #0d6efd;
  color: #ffc107;
}

.navbar-nav .dropdown-item::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffc107;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .dropdown-item:hover::after {
  width: 50%;
  left: 25%;
}
.project-box {
  max-width: 1200px;
  width: 95%;
  background-color: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.project-box:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.project-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.01);
}

.btn-gradient {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 91, 187, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #0056b3, #004091);
  transform: translateY(-2px);
}

/* Project Card */
.project-card-modern {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.project-card-modern:hover {
  transform: translateY(-8px);
}

.project-carousel-img {
  height: 460px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* View Listings button */
.btn-gradient {
  background: linear-gradient(135deg, #007bff, #004aad);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #004aad, #00377c);
  transform: translateY(-2px);
}

/* Glassmorphic Arrows */
.glass-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.glass-arrow:hover {
  background: rgba(0,123,255,0.6);
  transform: translateY(-50%) scale(1.1);
}
.glass-arrow i {
  color: #fff;
  font-size: 1.25rem;
}

/* Positioning arrows */
.swiper-button-prev {
  left: -20px;
}
.swiper-button-next {
  right: -20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-carousel-img {
    height: 260px;
  }
  .swiper-button-prev, .swiper-button-next {
    display: none; /* Hide arrows for mobile (swipe instead) */
  }
}


.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.project-title:hover {
  transform: scale(1.05);
}

.card .status-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: #dc3545; /* Bootstrap's danger red */
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Desktop & tablet keep the original 50vh hero */
#properties-hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

#properties-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Overlay and text */
#properties-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

#properties-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}

/* --- Mobile override: full image visible, height adjusts automatically --- */
@media (max-width: 768px) {
  #properties-hero {
    height: auto; /* let the image dictate height */
    min-height: unset;
  }

  #properties-hero img {
    position: relative;   /* no absolute positioning */
    height: auto;         /* show full image */
    object-fit: contain;  /* ensure full image is visible */
    z-index: 1;
  }

  #properties-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
  }

  #properties-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
}
