/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f9f9f9;
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Push footer to bottom when content is short */
#footer {
  margin-top: auto;
}

.menu-toggle,
.menu-close {
  display: none;
}

/* ===== TITLE ===== */
h2 {
  margin: 20px;
  text-align: center;
  color: #2f6f3e;
}

/* ===== MAP ===== */
.map-container {
  position: relative;
  width: 900px;
  margin: auto;
}

.map-container img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
}

/* ===== HOVER AREAS ===== */
.district {
  position: absolute;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  width: 40px;
  height: 40px;
}

.district:hover {
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.7);
  background: rgba(0, 255, 0, 0.3);
}

/* ===== DISTRICT POSITIONS ===== */
.begusarai {
  top: 35%;
  left: 40%;
  width: 40px;
  height: 40px;
}

.bahraich {
  top: 32%;
  left: 33%;
  width: 40px;
  height: 40px;
}

.virudhunagar {
  top: 74%;
  left: 29%;
  width: 40px;
  height: 40px;
}

/* ===== IMAGE PREVIEW ===== */
.preview-container {
  position: absolute;
  top: 120px;
  right: 50px;
}

.map-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

/* positions */
.left {
  right: 40px;
  top: 40%;
}

.right {
  right: 30px;
  top: 40%;
}

.bottom {
  right: 30px;
  top: 40%;
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
  float: right;
  cursor: pointer;
  font-weight: bold;
  color: red;
}

.preview-card {
  position: absolute;
  display: none;
  text-align: center;
}

.preview-img {
  width: 320px;
  border-radius: 10px;
  background: white;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* View button */
.view-btn {
  margin-top: 10px;
  padding: 8px 18px;
  background: #2f6f3e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.view-btn:hover {
  background: #1e4e2b;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

#caption {
  margin-top: 10px;
  color: #fff;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* TOOLTIP */
.tooltip {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f6f3e;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #2f6f3e transparent transparent transparent;
}

.district:hover .tooltip {
  opacity: 1;
}

/* COVERAGE STATS */
.coverage-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stat-box img {
  width: 40px;
  height: 40px;
}

.stat-box:nth-child(1) {
  background: #e8f1e6;
}
.stat-box:nth-child(2) {
  background: #f2e7df;
}
.stat-box:nth-child(3) {
  background: #e8f1e6;
}
.stat-box:nth-child(4) {
  background: #f2e7df;
}
.stat-box:nth-child(5) {
  background: #e8f1e6;
}

p {
  text-align: right;
  padding: 10px 0px;
  font-size: 16px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: #555;
  font-weight: 500;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  .map-container {
    width: 100%;
    padding: 0 10px;
  }
  .preview-container {
    position: static;
    margin-top: 20px;
    text-align: center;
  }
  .preview-card {
    position: static;
    display: none;
  }
  .preview-img {
    width: 100%;
    max-width: 320px;
  }
  .coverage-stats {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .stat-box {
    width: 90%;
  }
  p {
    text-align: center;
  }
}
