/* styles.css */

body, html {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Overlay for popup */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  position: relative;
  background: white;
  padding: 30px 40px 40px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.3);  /* a bit softer & bigger shadow */
  width: 420px;  /* slightly wider */
  max-width: 90%;
  font-family: Calibri, sans-serif;
  text-align: center;
}

/* Popup title */
.popup-title {
  color: #298A08;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 15px;
  font-family: Calibri, sans-serif;
}

/* Popup description */
.popup-desc {
  font-size: 16px;
  margin-bottom: 25px;
  color: #333;
  line-height: 1.5;
}

/* Popup logo */
.popup-logo {
  width: 300px;  /* increased from 180px */
  margin: 20px auto 30px auto;
  display: block;
}

/* Close buttons */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  color: #298A08;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}
.popup-close:hover {
  color: #1f6205;
  text-shadow: 0 0 5px #1f6205;
}

.popup-close-btn {
  background-color: #298A08;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.popup-close-btn:hover {
  background-color: #1f6205;
}

 /* Base Styles */
  .map-layer-selector {
    position: absolute;
    top: 50px; /* below the header */
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #298A08;
    border-radius: 5px;
    padding: 5px 10px;
    display: flex;
    gap: 15px;
    font-family: Arial, sans-serif;
    z-index: 1000;
    user-select: none;
    cursor: move; /* indicate draggable */
    touch-action: none; /* help with mobile dragging */
  }

  .map-layer-selector label {
    cursor: pointer;
    font-weight: bold;
    color: #298A08;
    font-size: 14px;
  }

  .map-layer-selector input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
  }

  /* Popup Table */
  .popup-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
  }

  .popup-table th,
  .popup-table td {
    border: 1px solid #bbb;
    padding: 5px 8px;
    text-align: left;
    vertical-align: top;
  }

  .popup-table th {
    background-color: #f0f0f0;
  }

  /* Photo Thumbnails */
  .popup-photos {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .popup-photos img.thumb {
    width: 130px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  /* ===== MOBILE STYLES ===== */
  @media (max-width: 600px) {
    .map-layer-selector {
      padding: 5px;
      gap: 8px;
      font-size: 10px;
      top: 30px;
      right: 5px;
    }

    .map-layer-selector label {
      font-size: 10px;
    }

    .popup-table {
      font-size: 10px;
    }

    .popup-table th,
    .popup-table td {
      padding: 2px 4px;
    }

    .popup-photos img.thumb {
      width: 80px;
      height: 50px;
    }
  }
/* Emoji icon style */
 .emoji-icon { font-size: 18px; text-align: center; line-height: 30px; }
 
 
  #header-banner {
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 2px solid #298A08;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .header-logo,
  .header-app-logo {
    flex: 0 0 auto;
    margin: 5px;
  }

  .header-logo img,
  .header-app-logo img {
    height: 50px;
    max-width: 100%;
  }

  .header-title {
    flex: 1;
    text-align: center;
  }

  .header-title h1 {
    margin: 0;
    font-size: 26px;
    color: #298A08;
    font-family: Calibri, sans-serif;
  }

  /* Responsive for small screens */
  @media (max-width: 600px) {
    .header-container {
      /* flex-direction: column; */
      align-items: center;
      text-align: center;
    }

    .header-logo img,
    .header-app-logo img {
      height: 40px;
    }

    .header-title h1 {
      font-size: 20px;
      margin: 10px 0;
    }
  }




    /* Wrapper div */
  .stats-btn {
    position: absolute;
    top: 160px;
    left: 10px;
    z-index: 1001;
  }

  /* Button styling */
  .stats-btn button {
    padding: 10px 16px;
    background: #298A08;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
  }

  .stats-btn button:hover {
    background: #1f6a06;
  }

  /* Tablet screens */
  @media (max-width: 992px) {
    .stats-btn {
      top: 160px;
      left: 8px;
    }

    .stats-btn button {
      font-size: 13px;
      padding: 9px 14px;
    }
  }

  /* Mobile screens */
  @media (max-width: 600px) {
    .stats-btn {
      top: 152px;
      left: 5px;
    }

    .stats-btn button {
      font-size: 12px;
      padding: 8px 12px;
      max-width: 90%;
      white-space: normal; /* wrap text on small screens */
    }
  }

  /* Very small phones */
  @media (max-width: 400px) {
    .stats-btn {
      top: 150px;
      left: 5px;
    }
  .header-title h1{
	  font-size:18px !important;
	 
    .stats-btn button {
      font-size: 11px;
      padding: 7px 10px;
    }
  }
  

  
  @media screen and (max-width: 768px) {
	  .isro_logo,
.header-logo,
  
  .header-app-logo:first-of-type {
    display: none;
  }
  .header-sm-logo{
	  display:block !important;
  }
  .header-sm-logo-img{
	  margin-top: 6px;
    margin-right: 2px;
    width: 40px;
    height: 40px;
  }
    .header-title h1{
	  font-size:24px;
	  
}
	  
  }