/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;500;600&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap");

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Default Hero Section (desktop) */
/* Hero Section */
.hero {
  position: relative;
  background: url("/images/Banner.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 30px 50px;
  border-radius: 12px;
  color: #000;
  font-family: "Montserrat", sans-serif;
  max-width: 600px;
}

.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Button Style */
.btn-hero {
  display: inline-block;
  padding: 12px 28px;
  background: #a52a2a; /* Brownish red to match brand */
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background: #8b1e1e;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 576px) {
  .hero {
    height: 70vh;
    display: flex;
    align-items: center; /* center vertically */
    justify-content: center; /* center horizontally */
    padding: 0 10px; /* some horizontal padding */
    text-align: center; /* center text inside */
  }

  .hero-content {
    max-width: 90%; /* restrict width */
    padding: 10px 15px;
    border-radius: 8px; /* optional rounded box */
  }

  .hero-content h1 {
    font-size: 1.5rem; /* smaller text */
    line-height: 1.3; /* better spacing */
  }

  .btn-hero {
    padding: 8px 16px; /* smaller button */
    font-size: 0.85rem; /* smaller font */
  }
}

/* About Section */
.about-section {
  padding: 80px 20px;
  /* background: #fff; */
  font-family: "Open Sans", sans-serif;
}

.about-section h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-section p {
  line-height: 1.7;
  font-family: "Open Sans", sans-serif;
}

.about-img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

/* Services Section */
.services-section {
  background: #f3f3f3;
  padding: 80px 20px;
  font-family: "Poppins", sans-serif;
}

.services-section h2 {
  font-family: "Montserrat", sans-serif;
  color: #000;
  font-weight: bold;
  margin-bottom: 40px;
  font-size: 2rem;
  letter-spacing: 1px;
}

.service-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  height: 100%;
  transition: all 0.3s ease;
  text-align: left; /* keep content left-aligned */
  cursor: pointer;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Keep your existing CSS and just add this */

.icon-box {
  border-radius: 12px;
  background: #000; /* optional: remove if you don’t want black bg */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden; /* ensures image doesn’t spill outside */
}

.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes sure image scales well */
  border-radius: 12px;
}

/* Title */
.service-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  font-family: "Poppins", sans-serif;
}

/* Description */
.service-box p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  font-family: "Open Sans", sans-serif;
}

/* Properties Section */
.properties-section {
  background: #fff;
  padding: 40px 20px;
  font-family: "Poppins", sans-serif;
}

.properties-section h2 {
  font-family: "Montserrat", sans-serif;
  color: #000;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Property Card */
.property-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(159, 159, 159, 0.1);
  cursor: pointer;
  background: #fff;
}

.property-img {
  width: 100%;
  height: 275px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
  will-change: transform; /* prevents lag */
}

.property-card:hover .property-img {
  transform: scale(1.1);
}

/* Overlay Info Box */
.property-info {
  position: absolute;
  left: 50%;
  bottom: -100%;
  width: 90%;
  background: #ffffff;
  padding: 20px;
  transition: all 0.4s ease;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  text-align: left;
  transform: translateX(-50%);
}

.property-card:hover .property-info {
  bottom: 10px;
}

.property-info h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.property-info p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Action Buttons */
.property-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1eb346;
}

.btn-more {
  color: #007bff;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-more:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* See more link */
.see-more-link {
  font-weight: 500;
  color: #007bff;
  text-decoration: none;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

.see-more-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

.modal-body h4 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 15px;
}

/* Fix for image reset after modal close */
.modal img {
  object-fit: cover;
  max-height: 300px;
}


/* ========== Responsive Styling ========== */

/* Small devices (max-width: 576px) */
@media (max-width: 576px) {
  /* Section title */
  .properties-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  /* Property card adjustments */
  .property-card {
    border-radius: 10px;
  }

  .property-img {
    height: 200px;
    border-radius: 10px;
  }

  .property-info {
    padding: 15px;
  }

  .property-info h5 {
    font-size: 0.95rem;
  }

  .property-info p {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  /* Buttons */
  .property-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-whatsapp,
  .btn-more {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  /* See more link */
  .see-more-link {
    font-size: 0.9rem;
  }
}

/* Medium devices (max-width: 768px) */
@media (max-width: 768px) {
  .properties-section h2 {
    font-size: 1.6rem;
  }

  .property-info h5 {
    font-size: 1rem;
  }

  .property-info p {
    font-size: 0.85rem;
  }
}

/* Mobile Fix: Always show property-info without overflow */
@media (max-width: 576px) {
  .property-info {
    position: relative;
    bottom: 0 !important;
    transform: none !important;
    left: 0;
    width: 100%; /* Full width */
    margin: 0;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
    padding: 15px; /* Slightly smaller padding for mobile */
  }

  .property-card {
    overflow: visible;
    border: 1px solid #ddd; /* 👈 border only on small devices */
    border-radius: 12px;
    background: #fff;
  }

  .property-card:hover .property-info {
    bottom: 0; /* Disable hover slide on mobile */
  }

  .property-info h5 {
    font-size: 0.95rem;
  }

  .property-info p {
    font-size: 0.8rem;
  }

  .btn-whatsapp,
  .btn-more {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .property-card:hover .property-img {
    transform: none !important;
  }
}
