/* Core layout reset and structure */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

/* Geolapis Map height fix */
#map {
  flex-grow: 1;
  width: 100%;
  height: calc(100vh - 300px); /* Leaves space for featured and footer */
}

/* Country selector bar */
#selectContainer {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 11px;
}

#countrySelect {
  width: 200px;
  margin: 0 auto;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #001c40; /* Geolapis deep blue */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; 
  opacity: 1; 
  transition: opacity 0.5s ease; 
}

#preloader.fade-out {
  opacity: 0; 
}

#loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #FFD700; /* Geolapis Gold */
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Intro modal */
#introModalContent {
  background-color: #003f87 !important; /* Geolapis dark blue */
  border-radius: 0.5rem;
}

#introModalContent .modal-header,
#introModalContent .modal-body {
  color: #fff;
}

.btn-close-white {
  filter: invert(1) opacity(0.8);
}

#introModalContent .modal-header {
  display: flex !important;
  justify-content: center;
  position: relative;
}

#introModalContent .modal-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

#introModalContent .modal-title {
  width: 100%;
  margin: 0;
  text-align: center;
}

footer .nav-link {
  color: #FFD700; /* Geolapis gold */
  font-weight: 500;
  padding: 0 0.5rem;
  font-size: 0.875rem;
}

footer .nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer p {
  margin: 0;
  font-size: 0.75rem; /* Slightly smaller copyright text */
}

#lapisaiTrigger {
  margin-left: 2rem; /* Adjust spacing as needed */
}

