/* ===========================================
   RESET & BASE STYLES
   =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #111;
  line-height: 1.5;
}
/* Container for consistent width */
.container {
  width: 100%;
  padding: 0 10%;
}
/* ===========================================
   NAVBAR
   =========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #ffffff;
  position: relative;
}
.navbar-content {
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo-img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  margin-left: auto;
}
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.nav-links li a:hover {
  opacity: 0.5;
}
.nav-links li:last-child a:hover {
  background-color: #25D366;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}
/* ===========================================
   HEADER
   =========================================== */
.header {
  position: relative;
  background: #333 url('Background.jpeg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 200px 0;
  transition: background-image 1s ease-in-out;
}
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.header-content {
  position: relative;
  z-index: 2;
}
.header-content h1 {
  font-size: 40px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.header-content p {
  font-size: 18px;
  opacity: 0.85;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.contact-btn {
  margin-top: 30px;
  display: inline-block;
  padding: 12px 24px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.contact-btn:hover {
  background-color: #1EBE54;
}
/* ===========================================
   WHATSAPP FLOATING BUTTON
   =========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  z-index: 100;
}
.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover img {
  transform: scale(1.1);
}
/* ===========================================
   PROPERTIES SECTION
   =========================================== */
.properties-section {
  padding: 30px 0 10px 0;
  margin-bottom: 40px; /* Add space between sections */
}
.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.section-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}
.sort-dropdown {
  position: relative;
}
.sort-button {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.sort-button:hover {
  opacity: 0.5;
}
.sort-options {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 200px;
  z-index: 100;
  display: none;
}
.sort-options button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: opacity 0.3s ease;
}
.sort-options button:hover {
  opacity: 0.5;
}
.sort-options button:not(:last-child) {
  border-bottom: 1px solid #eee;
}
/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns for consistency */
  gap: 15px;
  align-items: stretch;
}
/* Responsive adjustments for the grid */
@media (max-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}
.property-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.property-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}
.property-card h2 {
  font-size: 16px;
  margin-bottom: 32px;
  color: #000000;
  font-weight: bold;
}
.property-card .title {
  font-size: 20px;
  margin-bottom: 8px;
  color: #000000;
  font-weight: normal;
}
.property-card .specs {
  font-size: 12px;
  margin-bottom: 24px;
  color: #000000;
  font-weight: thin;
  opacity: 1;
}
.property-card .description {
  font-size: 12px;
  color: #000000;
  font-weight: thin;
  line-height: 1.5;
  opacity: 0.5;
  flex-grow: 1;
}
/* Property Links */
.property-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* NEW: Placeholder card styles */
.placeholder-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.placeholder-card .placeholder-icon {
  font-size: 40px;
  color: #999;
  margin-bottom: 15px;
}
.placeholder-card h2 {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}
.placeholder-card p {
  font-size: 14px;
  color: #888;
}
/* ===========================================
   PROPERTY DETAILS PAGE
   =========================================== */
.property-details {
  padding: 60px 0;
}
.property-details .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0; /* Set to 0 for desktop */
}
.property-details h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
/* Image Container Layout */
.image-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  height: 450px;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}
/* Main/Hero Image */
.pic-a {
  width: 627px;
  height: 450px;
  background-size: cover;
  background-position: center;
  border-radius: 20px 0 0 20px;
  flex-shrink: 0;
}
/* Right Column Container */
.right-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 613px;
  height: 100%;
}
/* Individual Thumbnail Images */
.pic-b, .pic-c, .pic-d, .pic-e {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
/* Specific border radius for each thumbnail */
.pic-b {
  border-radius: 0 0 0 0;
}
.pic-c {
  border-radius: 0 20px 0 0;
}
.pic-d {
  border-radius: 0 0 0 0;
}
.pic-e {
  border-radius: 0 0 20px 0;
}
/* Property Info */
.property-info .specs {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}
.property-info .description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}
/* ===========================================
   MAP CONTAINER
   =========================================== */
.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #f9f9f9;
  padding: 10px;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}
/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background-color: #ffffff;
  color: #000000;
  padding: 30px 0 20px 0;
  margin-top: 40px;
  border-left: 1px solid #555;
  border-right: 1px solid #555;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000000;
  text-align: center;
}
.footer-section p {
  font-size: 13px;
  margin-bottom: 5px;
  line-height: 1.5;
  text-align: left;
}
.footer-logo-container {
  text-align: center;
  flex-shrink: 0;
  margin: 0 auto;
}
.footer-logo {
  height: 40px;
  width: auto;
}
.services-section {
  text-align: center;
}
.services-section p {
  text-align: left;
}
.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
/* ===========================================
   MOBILE SLIDER STYLES
   =========================================== */
.mobile-only {
  display: none;
}
.desktop-only {
  display: block;
}
.mobile-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 30px;
  overflow: hidden;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.slider-image {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}
.left-arrow {
  left: 15px;
}
.right-arrow {
  right: 15px;
}
.slider-counter {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}
/* ===========================================
   DESKTOP STYLES
   =========================================== */
@media (min-width: 769px) {
  .footer-logo {
    height: 140px;
    padding: 40px 0;
  }
  
  /* Office section gradient background for desktop */
  .office-section {
    background: linear-gradient(to bottom, #f9f9f9, #f9f9f9);
    border-radius: 10px;
    padding: 40px 0;
  }
}
/* ===========================================
   MOBILE STYLES
   =========================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: calc(100% - 40px);
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .container {
    padding: 0 5%;
  }
  
  /* Add this rule for property details container on mobile only */
  .property-details .container {
    padding: 0 5%; /* Only apply padding on mobile */
  }
  
  /* Add space between sections for mobile */
  .properties-section {
    margin-bottom: 30px; /* Adjust space for mobile */
  }
  
  .properties-header {
    flex-direction: row; /* Changed from column to row for side-by-side layout */
    align-items: center; /* Ensures vertical centering */
    justify-content: space-between; /* Maintains spacing between title and sort controls */
  }
  
  .sort-controls {
    align-self: auto; /* Removed flex-end to allow natural alignment in row */
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  /* Mobile Slider Activation */
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  /* Mobile footer layout */
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .footer-logo-container {
    order: -1;
    grid-column: span 2;
    margin-bottom: 10px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .services-section {
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 18px;
  }
  
  .footer-section p {
    font-size: 14px;
  }
  
  /* Mobile property details styles */
  .property-details h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .property-info .specs {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .property-info .description {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Mobile slider adjustments */
  .slider-container {
    height: 250px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .left-arrow {
    left: 10px;
  }
  
  .right-arrow {
    right: 10px;
  }
  
  .slider-counter {
    bottom: 15px;
    left: 15px;
    padding: 6px 11px;
    font-size: 12px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .nav-links {
    right: 10px;
    top: 65px;
    width: calc(100% - 20px);
  }
  
  .sort-options {
    right: auto;
    left: 0;
  }
  
  .footer-section p {
    font-size: 12px;
  }
  
  .footer-content {
    gap: 15px;
  }
  
  /* Mobile office section styles */
  .office-grid {
    flex-direction: column;
  }

  .office-text-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .text-card {
    width: 100%;
  }

  .office-image-container {
    aspect-ratio: auto;
    height: 300px;
    margin-top: 15px;
  }
}

/* ===========================================
   OFFICE SECTION
   =========================================== */
.office-section {
  padding: 30px 0;
}

.office-grid {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.office-text-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.office-image-container {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.office-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
