@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 60%, #f8fafc 100%);
  background-attachment: fixed;
  color: #0f172a;
  min-height: 100vh;
}

/* ── Header ── */
header {
  text-align: center;
  padding: 52px 30px 44px;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow in header */
header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

header p {
  margin-top: 10px;
  opacity: 0.88;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ── Loading ── */
.loadingContainer {
  width: 90%;
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
}

.loadingTrack {
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  height: 6px;
  overflow: hidden;
}

#loadingBar {
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  border-radius: 8px;
  transition: width 0.4s ease;
}

#loadingText {
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* ── Map ── */
#map {
  height: 440px;
  width: 90%;
  margin: 22px auto;
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 10px 30px rgba(37,99,235,0.12),
    0 20px 50px rgba(0,0,0,0.08);
  position: relative;
  border: 2px solid rgba(255,255,255,0.85);
  overflow: hidden;
}

/* ── Info Box ── */
.infoBox {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,0.10);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(37,99,235,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.infoBox:hover {
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 16px 40px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.infoBox p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  font-weight: 400;
}

.infoBox p:empty { display: none; }

/* ── Buttons ── */
button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}

/* GPS Main Button */
.mainGPSBtn {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16,185,129,0.28);
}

.mainGPSBtn:hover {
  background: #059669;
  box-shadow: 0 6px 16px rgba(16,185,129,0.38);
}

/* ── Chart Box ── */
.chartBox {
  width: 90%;
  max-width: 900px;
  margin: 24px auto;
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,0.10);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(37,99,235,0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.chartBox:hover {
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 16px 40px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

/* ── SEO Content Section ── */
.seo {
  width: 90%;
  max-width: 900px;
  margin: 24px auto 40px;
  background: #ffffff;
  padding: 36px 40px;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,0.10);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(37,99,235,0.08);
  line-height: 1.75;
}

.seo h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.seo h2:first-child { margin-top: 0; }

.seo h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 24px;
  margin-bottom: 8px;
}

.seo p, .seo li {
  color: #475569;
  font-size: 0.93rem;
}

.seo ul, .seo ol {
  padding-left: 1.4em;
  margin: 8px 0 16px;
}

.seo li { margin-bottom: 4px; }

.seo a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.seo a:hover { text-decoration: underline; }

/* ── GPS Control (Leaflet top-right) ── */
.gpsControl button {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
  transition: all 0.2s ease;
}

.gpsControl button:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.45);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 24px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.87rem;
  margin-top: 0;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: #e2e8f0; }

/* ── Ad Unit ── */
.adUnit {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 24px;
  min-height: 90px;
}

/* ── Cookie Banner ── */
#cookieBanner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.22);
}

#cookieBanner p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  min-width: 220px;
  line-height: 1.5;
  color: #cbd5e1;
}

.cookieBtnGroup {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

#cookieLearnMore {
  color: #93c5fd;
  font-size: 0.85rem;
  text-decoration: underline;
  white-space: nowrap;
}

#cookieLearnMore:hover { color: #bfdbfe; }

.cookieDeclineBtn {
  background: transparent !important;
  border: 1px solid #475569 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  font-size: 0.85rem;
  padding: 8px 14px;
}

.cookieDeclineBtn:hover {
  background: #1e293b !important;
  border-color: #64748b !important;
  transform: none !important;
  box-shadow: none !important;
}

#cookieAccept {
  font-size: 0.85rem;
  padding: 8px 18px;
}

@media (max-width: 600px) {
  #cookieBanner { flex-direction: column; align-items: flex-start; }
  .cookieBtnGroup { width: 100%; justify-content: flex-end; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  header { padding: 36px 20px 30px; }
  header h1 { font-size: 1.85rem; }
  header p { font-size: 0.9rem; }

  #map { height: 340px; }

  .infoBox, .chartBox { padding: 18px 16px; }

  .seo { padding: 24px 20px; }

  button { width: 100%; }
}
