/* GLOBAL */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 58px;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(6px);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;             /* <-- DIPERKECIL */
  z-index: 1000;
  box-sizing: border-box;
}

.header-left {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.header-right {
  display: flex;
  gap: 14px;                    /* <-- DIPERKECIL */
  white-space: nowrap;          /* <-- MENCEGAH TERPOTONG */
  overflow: hidden;
  flex-shrink: 1;
}

.header-right a {
  color: #e1e6ff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
}

/* HERO */
.hero {
  height: calc(100vh - 58px);
  margin-top: 58px;
  background: linear-gradient(180deg, #0f1b3d 0%, #162b57 35%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 20px;
}

/* TITLE */
.sub {
  color: #cfd6f3;
  font-size: 16px;
}

.title {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tagline {
  color: #eaefff;
  font-size: 15px;
}

/* PENELITI */
.research-info {
  margin-top: 16px;
  color: #f0f2ff;
  font-size: 15px;
}

.research-section {
  margin-top: 8px;
}

.research-title {
  font-weight: 700;
  text-decoration: underline;
  margin-bottom: 4px;
}

.research-item {
  opacity: 0.9;
  margin-top: 2px;
}

/* MAP WIDE */
.map-box {
  width: 95%;                /* HAMPIR PENUH KANAN–KIRI */
  max-width: 1300px;
  height: 200px;             /* TINGGI DIKURANGKAN */
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.preview-map {
  width: 100%;
  height: 100%;
}

.map-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: white;
  z-index: 999999999;
}

/* CTA BUTTON DI BAWAH PETA (OVERLAY) */
.map-cta {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 999999999999;
}

.map-cta:hover {
  background: #005fcc;
}

/* MOBILE */
@media (max-width: 480px) {

  .header {
    padding: 0 12px;
  }

  .header-right {
    gap: 10px;
    font-size: 13px;
  }

  .header-left {
    font-size: 16px;
  }

  .title {
    font-size: 26px;
  }

  .map-box {
    height: 160px;   /* KECILKAN PETA DI MOBILE */
  }

  .map-cta {
    font-size: 13px;
    padding: 8px 16px;
  }

  .hero {
    justify-content: flex-start;
    padding-top: 20px;
  }

  body {
    overflow: hidden; /* aman agar tidak terpotong */
  }
}

.loading-overlay {
  position: fixed;
  inset: 0; /* shorthand untuk top:0; right:0; bottom:0; left:0 */
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity .3s;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-box {
  background: white;
  padding: 20px 26px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-20px); /* bikin lebih center */
}

.spinner {
  margin: 0 auto 12px; /* pastikan spinner ada di tengah */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.3);
  border-top-color: #007bff;
  animation: spin 1s linear infinite;
}


@keyframes spin { to { transform: rotate(360deg); } }

/* Highlight effect */
@keyframes highlightFlash {
  0%   { background-color: rgba(255, 255, 0, 0.4); }
  100% { background-color: transparent; }
}

.highlight {
  animation: highlightFlash 1s ease-out;
  border-radius: 12px;
}
