/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Header & Navigation */
header {
  background-color: #2c3e50;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #34495e;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-images img.active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #f39c12;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #e67e22;
}

/* Project Details */
.project-details {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.plot-map-container {
  position: relative;
  margin: auto;
  max-width: 100%;
}

.plot-map {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Popup Overlay */
.plot-info-popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}

.popup-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  position: relative;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #000;
  text-decoration: none;
}

/* Visual indicators for plot availability */
.plot-indicator {
  position: absolute;
  border: 2px solid;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
  background-color: rgba(255,255,255,0.5);
  padding: 2px 4px;
  border-radius: 4px;
}

.plot-indicator.available {
  border-color: green;
  background-color: rgba(0, 128, 0, 0.2);
  color: green;
}

.plot-indicator.booked {
  border-color: red;
  background-color: rgba(255, 0, 0, 0.2);
  color: red;
}

/* Make clickable areas show pointer */
area {
  cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .logo {
    margin-bottom: 10px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 5px 0;
  }
  .hero-content h1 {
    font-size: 2rem;
    padding: 0 10px;
  }
  /* Make popup content narrower on mobile */
  .popup-content {
    width: 90%;
    margin-top: 20%;
  }
  .hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
    position: relative;
  }
  .hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: #2c3e50;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu ul li a {
    font-size: 1.2rem;
    margin: 15px 0;
  }
}
/* Status Badge */
.status {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
}

.status.available {
  background: #e6f7ec;
  color: #0a8a3a;
}

.status.booked {
  background: #fdeaea;
  color: #b00020;
}
