*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 1rem 1rem 0.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #c9a227;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

nav a {
  display: inline-block;
  padding: 0.4rem 1rem;
  color: #8899aa;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s;
}

nav a:hover {
  color: #c9a227;
  border-color: #c9a227;
}

nav a.nav-active {
  color: #c9a227;
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #c9a227;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.subtitle {
  font-size: 0.9rem;
  color: #8899aa;
  margin-top: 0.25rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

#map {
  flex: 1;
  z-index: 1;
}

.actions {
  text-align: center;
  padding: 1rem;
  background: #16213e;
  border-top: 1px solid #2a2a4a;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

#appBtn {
  background: #c9a227;
  color: #1a1a2e;
}

#appBtn:hover {
  background: #e0b830;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.download-btn {
  background: #2e7d32;
  color: #fff;
  margin-top: 1rem;
}

.download-btn:hover {
  background: #388e3c;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background: #1e1e3a;
  border: 1px solid #c9a227;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  color: #8899aa;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-content h2 {
  color: #c9a227;
  margin-bottom: 1rem;
}

.modal-content ol {
  text-align: left;
  padding-left: 1.25rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.note {
  font-size: 0.8rem;
  color: #667788;
  margin-top: 0.75rem;
}

footer {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #556677;
  background: #0f0f23;
}

.about-content {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1.5rem 2rem;
  line-height: 1.7;
}

.about-content section {
  margin-bottom: 2rem;
}

.about-content h2 {
  color: #c9a227;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #2a2a4a;
}

.about-content p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #ccc;
}

.about-content ol {
  padding-left: 1.25rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.about-content strong {
  color: #c9a227;
}

#toMapBtn {
  background: #c9a227;
  color: #1a1a2e;
}

#toMapBtn:hover {
  background: #e0b830;
}

.leaflet-tile-pane {
  filter: brightness(0.85) saturate(0.6) contrast(1.1);
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-popup-content-wrapper {
  background: #1e1e3a !important;
  color: #e0e0e0 !important;
  border: 1px solid #c9a227;
  border-radius: 8px !important;
}

.leaflet-popup-tip {
  background: #1e1e3a !important;
  border: 1px solid #c9a227;
}

.popup-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

.popup-content strong {
  color: #c9a227;
}

.popup-qr {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #2a2a4a;
  border-radius: 4px;
  font-size: 0.8rem;
  text-align: center;
}

.popup-install-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c9a227;
  border-radius: 4px;
  background: transparent;
  color: #c9a227;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.popup-install-btn:hover {
  background: #c9a227;
  color: #1a1a2e;
}
