/* LandAI CSS owner: Base layout, shared tokens, body reset, and fixed map canvas. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  color-scheme: light;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --accent: #16a34a;
  --accent-muted: rgba(22, 163, 74, 0.12);
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --left-rail-width: 100px;
  --mobile-tabbar-height: 78px;
  --premium-banner-offset: 0px;
}

html {
  color-scheme: light;
  background: var(--bg-page);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.app-startup-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(20, 184, 166, 0.11), transparent 34rem),
    #f3f4f6;
  color: #111827;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.is-app-starting .app-startup-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-startup-content {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}

.app-startup-brand {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-startup-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(15, 118, 110, 0.18);
  border-top-color: #0f766e;
  border-radius: 999px;
  animation: landai-startup-spin 800ms linear infinite;
}

.app-startup-copy {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
}

@keyframes landai-startup-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-startup-gate {
    transition: none;
  }

  .app-startup-spinner {
    animation: none;
  }
}

#map {
  position: fixed;
  top: var(--premium-banner-offset);
  right: 0;
  bottom: 0;
  left: var(--left-rail-width);
  width: calc(100vw - var(--left-rail-width));
  height: calc(100vh - var(--premium-banner-offset));
}

/* Feature hide list (see js/feature-flags.js): elements tagged data-prod-hidden
   are hidden in production and when a developer enables release preview. */
html.landai-hide-prod-features [data-prod-hidden] {
  display: none !important;
}
