/* General layout */
body {
  font-family: system-ui, sans-serif;
  background: #ffffff;
  color: #111;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Page container */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  color: #666;
  font-size: 0.85rem;
}

/* Homepage layout */
h1 {
  font-size: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.homepage-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.homepage-links a {
  background: #00a3c4;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s ease;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.homepage-links a:hover {
  background: #007c98;
}

/* Mobile menu toggle */
.menu-icon {
  display: none;
  font-size: 1.2rem;
  padding: 1rem;
  cursor: pointer;
  background: #f0f0f0;
  text-align: center;
}

#menu-toggle {
  display: none;
}

/* NAVIGATION — Grok hover fix + visual cleanup */
nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  position: relative;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #111;
  background: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-link:hover {
  background-color: #e0f7fa;
}

/* Dropdown menu styling */
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  min-width: 160px;
  display: none;
  transition: opacity 0.2s ease;
  opacity: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown-menu {
  display: block;
  opacity: 1;
}

/* Map Grid Styles */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.map-card {
  display: block;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.map-card h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #333;
}

/* Responsive: Mobile layout */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-icon {
    display: block;
    width: 100%;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  #menu-toggle:checked + .menu-icon + .nav {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.75rem 1rem;
  }

  .dropdown-menu li {
    margin: 0.25rem 0;
  }
}
