@charset "UTF-8";

/* ---------------------
   Global Styles
---------------------- */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  scroll-behavior: smooth;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ---------------------
   Side Navigation
---------------------- */
.navbar {
  width: 3rem;
  min-width: 3rem;
  background: linear-gradient(90deg, #34504a, #88cd85);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0;
  transition: width 0.3s ease;
  overflow: hidden;
  position: relative;
}

.menu-toggle {
  padding-bottom: 2rem;
  color: #fff;
  font-size: 1.5rem;
  position: fixed;
  top: 1rem;
  left: 0.7rem;
  z-index: 505;
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: -250px;
  width: 300px;
  height: 100%;
  background: linear-gradient(0deg, #34504a, #88cd85);
  transition: left 0.3s ease;
  z-index: 500;
  padding-top: 4rem;
}

.sidebar-nav.show {
  left: 0;
}


/* Default: hide everywhere first */
.menu-toggle-icons {
  display: none;
}

.hidden {
  display: none !important;
}

/* Show on desktop only and only when sidebar is closed */
@media (min-width: 768px) {
  .menu-toggle-icons {
    display: block;
    position: fixed;
    top: 4rem;
    left: 0;
    padding: 0.5rem;
    z-index: 1000;
    background: transparent;
    pointer-events: auto;
  }

  .sidebar-open .menu-toggle-icons {
    display: none;
  }

  .menu-toggle-icons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle-icons li {
    display: flex;
    justify-content: center;
    align-items: left;
  }

  .nav-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .nav-icon:hover {
    transform: scale(1.1);
  }
}



/* ---------------------
   Nav Links & Submenus
---------------------- */
.sidebar-nav .nav-links,
.popup-content .nav-links {
  list-style: none;
  padding-left: 1rem;
}

.nav-links li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 6px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  display: inline-block;
  padding: 0.5rem;
  white-space: nowrap;
  text-align: left;
}

.nav-links a:hover,
.nav-links li ul.submenu li a:hover {
  color: #4f4f4f;
}

.nav-links a.active,
.popup-content .nav-links a.active {
  color: #fff !important;
  text-decoration: underline;
  font-weight: bold;
}

/* Nested submenu */
.nav-links li ul.submenu {
  margin-top: 6.1px;
  display: block;
}

/* Default: mobile-first (smaller screens) */
.dropdown-arrow {
  font-size: 1em;
  margin-left: 0.1em;
  user-select: none;
  color: #ffffff;
}

/* For larger screens (48rem = 768px and up), reduce margin */
@media (min-width: 48rem) {
  .dropdown-arrow {
    margin-left: 6em;
  }
}

/* ---------------------
   Content Layout
---------------------- */
.main-content {
  display: flex;
  flex: 1;
  height: 100vh;
}

.text-panel {
  width: 35vw;
  height: 100vh;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-panel h1 {
  font-size: 2rem;
}

.text-panel .pop-info {
  text-align: center;
}

.text-panel .pop-info h2 {
  color: #13ab55;
  font-size: 1.7rem;
  padding-top: 0.4rem;
}

.text-panel .pop-info h3 {
  font-size: 1rem;
}

.text-panel p,
.text-panel ul li {
  font-size: 0.85rem;
  line-height: 2;
  text-align: justify;
  text-justify: inter-word;
}

/* Scrollable text content */
.text-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem 2rem 2rem;
  box-sizing: border-box;
}

/* Navigation buttons under text */
.text-nav-buttons {
  height: 3rem;
  background: #fff;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border-top: 1px solid #ccc;
}

.text-nav-buttons button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.text-nav-buttons button:hover {
  background: #eee;
  border-radius: 0.3rem;
}

/* "More Info" button styling */
.more-info-btn {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.more-info-btn button {
  padding: 0.6rem 1.5rem;
  background-color: #ddd;
  border: none;
  border-radius: 1rem;
  font-size: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: background-color 0.2s ease;
}

.more-info-btn button:hover {
  background-color: #bbb;
}

/* ---------------------
   Downloads Button
---------------------- */
.heading-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.download-btn {
  background-color: #545454;
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.65rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #adadad;
}


/* ---------------------
  Explore Button
---------------------- */
.explore-btn {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #34504a;
  color: #fff;
  font-weight: bold;
  font-size: 0.65rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.explore-btn:hover {
  background-color: #88cd85;
  color: #000;
}



/* ---------------------
   Map Section
---------------------- */
#map {
  flex: 1;
  height: 100vh;
}

/* ---------------------
   Page Loader Animation
---------------------- */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.loader-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #34504a, #88cd85);
  transform: translateX(0%);
  transition: transform 1s ease-in-out;
  z-index: 9998;
}

#page-loader.fade-out .loader-panel {
  transform: translateX(-100%);
}

/* ---------------------
   Popup Navigation (Mobile)
---------------------- */
@media (min-width: 48rem) {
  .popup-nav {
    display: none !important;
  }
}

@media (max-width: 48rem) {
  .app-container {
    flex-direction: column;
  }

  .sidebar-nav {
    display: none;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3rem;
    padding: 0 1rem;
    background: linear-gradient(90deg, #34504a, #88cd85);
    z-index: 1000;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    font-size: 1.2rem;
    padding: 3rem 0;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1001;
  }
  
  .popup-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 1050;
    display: none;
  }

  .popup-nav.show {
    display: flex;
  }

  .popup-content {
    background: linear-gradient(0deg, #34504a, #88cd85);
    padding: 2rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 350px;
    position: relative;
    text-align: center;
  }

  .popup-content .nav-links {
    list-style: none;
    padding: 0;
  }

  .popup-content .nav-links li {
    line-height: 1px;
    margin: 1rem 0;
  }

  .popup-content .nav-links a {
    font-size: 0.7rem;
  }

  .close-btn {
    position: absolute;
    color: white;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .main-content {
    flex-direction: column;
    padding-top: 3rem;
    height: 100vh;
  }

  .text-panel {
    width: 100vw;
    height: 40vh;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    margin: 0;
    justify-content: space-between;
  }

  .main-content .text-panel .text-scroll-area iframe{
    height: 210px;
  }

  .text-panel h1 {
    font-size: 1.5rem;
  }

  .text-panel p {
    font-size: 0.7rem;
  }

  .text-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem 2rem 2rem;
    box-sizing: border-box;
  }

  .more-info-btn {
    margin-top: 1.5rem;
    justify-content: center;
  }

  .more-info-btn button {
    font-size: 0.5rem;
  }

  .map {
    height: 60vh;
    width: 100vw;
    margin: 0;
  }
}


/* ---------------------
  Open Space Index Card
---------------------- */
.open-space-card {
  background-color: #e6f4ea;
  padding: 0.7rem 1rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.open-space-card h3 {
  font-size: 0.8rem;
  color: #1b5e20;
  margin-bottom: 0.5rem;
}

.open-space-card ul {
  /* list-style-type: '- '; */
  padding-inline-start: 20px
}

.open-space-card ul li {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 48rem) {
  .open-space-card h3 {
    font-size: 0.8rem;
    color: #1b5e20;
    margin-bottom: 0.5rem;
  }

  .open-space-card ul li {
    font-size: 0.7rem;
    color: #333;
    line-height: 1.5;
  }
}



/* ---------------------
  Legends
---------------------- */
.iframe-legend-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap; 
}

.landuse-iframe {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border: none;
  flex: 1;
}

.legend-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-buttons button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 0.3rem;
  padding: 8px 12px;
  background-color: transparent;
  font-size: 0.7rem;
  border: none;
}

.legend-buttons button:has(a[href]:hover) {
  background-color: #eaeaea;
  cursor: pointer;
}

.legend-buttons a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.legend-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: none;
}

.legend-color.civic { background-color: #FFA6A6; }
.legend-color.commercial { background-color: #FF7F78; }
.legend-color.educational { background-color: #F6A56C; }
.legend-color.hotel { background-color: #53728B; }
.legend-color.industrial { background-color: #BFA8D7; }
.legend-color.knowledge { background-color: #6FAAB5; }
.legend-color.municipal { background-color: #B2B2B2; }
.legend-color.office { background-color: #AFDDED; }
.legend-color.green { background-color: #9ED7AE; }
.legend-color.port { background-color: #E6D5CC; }
.legend-color.religious { background-color: #FCDADA; }
.legend-color.residential { background-color: #FFDFAE; }
.legend-color.sports { background-color: #E3E8C1; }
.legend-color.transport { background-color: #E1E1E1; }
.legend-color.water { background-color: #97DBf2; }
.legend-color.mixuse { background-color: #E5B6D1; }


/* DESKTOP */
@media (min-width: 1024px) {
  .iframe-legend-wrapper {
    flex-direction: row;
  }

  .legend-buttons {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  .landuse-iframe {
    flex: 1;
    min-width: 0;
  }
}

/* TABLETS */
@media (min-width: 768px) and (max-width: 1023px) {
  .iframe-legend-wrapper {
    flex-direction: column;
  }

  .legend-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 10px;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .iframe-legend-wrapper {
    flex-direction: column;
  }

  .legend-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 10px;
  }
}