body {
  margin: 0;
  padding: 0;
  overflow: auto;
  /* overflow: hidden; */
  /* background-color: aquamarine; */
}
#map {
  position: fixed;

  top: 100px; /* <-- this creates the top gap */
  left: 0;
  width: 100%;
  height: calc(100vh - 60px); /* reduce height to keep map from overflowing */
}

@media (max-width: 768px) {
  #map {
    top: 80px;
    /* top: 500; */
  }
}

/* ADJUST TO MY SCREENS */

.legend {
  background: white;
  padding: 10px;
  line-height: 18px;
}

.legend i {
  width: 18px;
  height: 20px;
  float: left;
  margin-right: 8px;
  margin-top: -4px; /* Moves the icon up a little */
  opacity: 0.8;
}

/* 3INDEX SEARCH BUTTON */
.leaflet-control-geosearch input {
  padding-right: 40px;
  font-size: 14px;
  height: 30px;
}

.leaflet-control-geosearch .results {
  font-size: 14px;
}


/* ALERT BUTTON DESIGN */
/* .popup {
  background: white;
  padding: 20px 30px;
  width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  text-align: center;
  
} */

.popup {
  background: white;
  padding: 20px 30px;
  width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: fixed;                /* Changed from absolute to fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 99999;                  /* Added this to place it above Leaflet */
}


.btn-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .btn-close {
    right: 1rem !important; /* force override */
    top: 1px;
    
  }
}
  

.header .logo {
  max-width: 100px;
  margin: 10px 0;
}

h2 {
  font-size: 20px;
  margin: 15px 0;
}

p {
  font-size: 14px;
  color: #333;
  text-align: justify;
}

.button-group {
  margin-top: 20px;
}

button.start-btn,
button.about-btn {
  padding: 10px 20px;
  border: none;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.start-btn {
  background-color: #364f6b;
  color: white;
}

.about-btn {
  background-color: #a7bcd4;
  color: white;
}

/* FOR SMALLER SCREENS */
@media screen and (max-width: 768px) {
  .popup {
    margin-top: 1rem;
      width: 80%;         /* Make the popup almost full width */
      padding: 15px 20px; /* Reduce padding for smaller screens */
      font-size: 14px;    /* Slightly smaller text */
  }

  .popup .header .logo {
      max-width: 90px;    /* Shrink the logo for mobile view */
  }

  .popup h2 {
      font-size: 18px;    /* Slightly smaller heading */
  }

  .popup p {
      font-size: 13px;    /* Make paragraph text smaller for better fit */
  }

  .button-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: center;
  }

  .button-group button {
      width: 100%;
      padding: 12px 0;
      font-size: 14px;
  }
}


/* NAVIGATION BAR 
 */
 .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 8px 20px;
    /* position: fixed; */
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
}

.logo {
  height: 20px;
  margin-right: 8px;
}

.nav-text {
  color: white;
  font-weight: bold;
  font-size: 12px;
  padding-bottom: 2px;
}


.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}

/* STYLES FOR THE  HAMBURGER CONTROL PANEL*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #005f73;
  color: white;
}

/* Z CODE TO MAKE IT OVERFLOW  */
/* .navbar, .menu {
  position: absolute;
  z-index: 1000;
} */


.nav-text {
  font-weight: bold;
}

.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 3px;
}
/* CORRECTED NOT SURE */
.menu {
  margin-top: 3.5rem;
  display: none;
  background-color: #e0fbfc;
  padding: 1rem;
  position: fixed; /* Stays in place and doesn't affect layout */
  top: 0;
  right: 0;
  height: 100vh;
  width: 33.3333%; /* 1/3 of the screen */
  z-index: 9999; /* Stays above all other content */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow for depth */
}

.menu.active {
  display: block;
}

@media (max-width: 768px) {
  .menu {
    width: 50%; /* Half the screen on smaller devices */
  }
}

/* END */

.menu h2 {
  margin-top: 0;
}

/* .menu ul {
  list-style: none;
  padding-left: 0;
} */

/* .details {
  list-style: none;
  padding-left: 0;
}

.menu ul li {
  margin: 0.5rem 0;
} */

/* NAV  */

/* Responsive Adjustments */

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #005f73;
  padding: 1rem;
  color: white;
  border-radius: 8px;
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  width: 100%;
  /* z-index: 999; */
}

.nav-text {
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .nav-text {
    font-size: 1rem;
  }
}


/* NEW BAR */
/* Product Section Layout */
.product-section {
  display: inline-block;
  margin-left: 10px;
  margin-top: 10px;
  z-index: 10000;
  /* background: white; */
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
}

/* Row container */
.product-section-row {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10000;
  
}

/* .label style as requested */
.label {

  gap: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #00008B;
  cursor: pointer;
  z-index: 10000;
  position: relative; /* Allows movement using top/left/right/bottom */
  top: -1px; /* Moves the element 10 pixels upward */
}

/* NAVIGATION ALL */
.nav-All {
  background-color: #E0FFFF;

}

/* .allTopNav {
  position: fixed;
  width: 100%;
} */



/* Circle Button Styling */
.circle-button {
  background: #333;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.circle-button:hover {
  background: #555;
}

/* Hidden Content Section */
.product-info {
  /* display: none; */
  margin-top: 0rem;
  padding: 0rem;
  border-radius: 8px;
  /* background: #f4f4f4; */
}

.product-info.active {
  display: block;
}
/* Rotate arrow inside the button when active */
.circle-button.rotate {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}


/* Responsive Text and Button */
@media (max-width: 768px) {
  .label {
    font-size: 0.7rem;
  }
  .circle-button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* TO MAKE CONTENTS SCROLLABLE */
.scrollable-product {
  max-height: 19vh;
  overflow: auto;
}



/* TO MAKE IT SHOW OVER THE LEAFLET MAP */
.custom-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000; /* Must be higher than the Leaflet map's controls, usually > 400 */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}


.product-info {
  display: none;
}

.product-info.active {
  display: block;
}

.circle-button .arrow-icon {
  transition: transform 0.3s ease;
}

.arrow-icon.rotated {
  transform: rotate(90deg);
}

.circle-button.rotate .arrow-icon {
  transform: rotate(0deg);
}

/* ADJUST MY LEAFLET CONTROL LAYER */

.leaflet-top.leaflet-right {
  top: 35px !important;
}


/* OPACITY CONTROL  */
.opacityControl {
  position: absolute;
        top: 15rem;
        right: 10px;
        z-index: 1000;
        background: white;
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* STYLING <P> IN MY Navigation Bar*/
.p-navstyle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  word-spacing: 0.3px;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

.p-navstyle-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  word-spacing: 0.3px;
  color: #333;
  max-width: 700px;
  margin: 10px auto 0 auto; /* top, right, bottom, left */

}




.p-title {
  position: relative;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center horizontally and vertically */
  
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  word-spacing: 0.3px;
  color: #333;
  max-width: 700px;
  text-align: center; /* Optional: Center the text itself */
}


.navTitle {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  word-spacing: 0.3px;
  color: #333;
  max-width: 700px;
  /* margin-top: 3rem; */
  /* margin: 1 auto; */
}

/* STYLE THE MENU DISPLAY IN THE NAV BAR */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent background */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.modal-content {
  background: white;
  color: black;
  padding: 20px;
  max-height: 80vh;
  width: 90%;
  max-width: 600px;
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);

}

@media (max-width: 768px){
  .modal-content{
    margin-top: 5.2rem;
    /* modified */
  }
  
}
@media (max-width: 400px){
  .modal-content{
    margin-top: 7.2rem;
    /* modified */
  }}
/* .fix-nav {
  position: fixed;
  width: 100%;
} */

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;}
/* }ADJUST NAVIGATION POSITION */
.nav-position {
  z-index: 10000;

}

/* LEAFLET LEGEND */
.leaflet-bottom .leaflet-control {
  margin-bottom: 3.0rem;
}
@media (max-width: 768px) {
  .leaflet-bottom .leaflet-control{
    margin-bottom: 4.0rem;
  }
}

/* FOOTER ELEMENT */
.copyRight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #b32b2b;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  box-sizing: border-box;
  z-index: 1000;
}

/* Make paragraph inside .copyRight responsive */
.copyRight p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

/* Link styling */
.copyRight a {
  color: white;
  text-decoration: none;
}

.copyRight a:hover {
  text-decoration: underline;
}

/* Responsive sizes */
@media (max-width: 768px) {
  .copyRight {
    font-size: 0.6rem;
    padding: 1rem 0.5rem 2rem rem 0.5rem; /* Top, Right, Bottom, Left */
  }
}


@media (max-width: 480px) {
  .copyRight {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
}



/* FOR PHONES WITH SMALLER SCREENS */
/* General tweaks for phones and small screens */
/* --- Responsive Fix for Small Screens (Phones, Tablets) --- */
@media (max-width: 768px) {

  /* General body and page adjustments */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  /* Navbar adjustments */
  .navbar {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
  }

  .navbar a {
    padding: 8px 0;
    text-align: center;
    width: 100%;
    font-size: 16px;
  }

  /* Map container adjustments */
  /* #map {
    width: 100%;
    height: 400px;
    padding: 0;
    box-sizing: border-box;
  } */

  /* Popups and modals */
  .popup, .modal {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
  }

  /* Buttons inside modals or popups */
  .popup button, .modal button {
    /* width: 100%; */
    padding: 10px;
    font-size: 16px;
    /* margin-top: 10px; */
  }

  /* Forms inside popups if any */
  .popup form, .modal form {
    width: 100%;
  }

  /* Ensure images and logos are responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Optional: Adjust footer if you have */
  .footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

}


/* VERY SMALL SCREEN */
@media (max-width: 480px){
  #map {
    top: 70px;
    /* top: 500; */
  }
  .nav-text{
    font-size: 0.7rem;
  }
  .popup, .modal {
    width: 100%;
    margin-top: 1rem;
    
  }

}

/* EMAIJJS  */
/* 
.contact-container {
  background: #ffffff;
  padding: 25px 25px;
  border-radius: 10px;

  max-width: 380px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 0 auto;
} */


/* Optional: adjust padding slightly for smaller screens */
/* @media (max-width: 400px) {
  .contact-container {
    padding: 20px 15px;

  }
} */

/* .contact-container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #000000;
}

form input,
form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #000000;
}
@media (max-width: 400px){
  form input,
form textarea{
  width: 95%;
}
}
@media (max-width: 600px){
  form input,
form textarea{
  width: 95%;
}
} */

/* 
form textarea {
  height: 120px;
  resize: vertical;
}


form button {

  padding: 12px;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #333333;
} */



      /* Responsive */
      /* @media (max-width: 480px) {
        .contact-container {
          padding: 20px 15px;
        }

        form button {
          font-size: 14px;
        }
      } */

      /* .leaflet-control-geosearch button.reset {
        color: white }
 */

      