@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600&family=Space+Grotesk:wght@400;500;600&family=Spectral:wght@400;600&display=swap");

:root {
  --ink: #0f172a;
  --muted: #5b6b7d;
  --sand: #f6f1ea;
  --clay: #d3b89b;
  --storm: #1d4ed8;
  --storm-dark: #0f2c6e;
  --panel: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: #0b1222;
}

html,
body {
  height: 100%;
}

.map-screen {
  min-height: 100vh;
  overflow: hidden;
}

.map-full {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(16px, 3vw, 36px);
  z-index: 10;
  pointer-events: none;
}

.panel {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 20px;
  display: grid;
  gap: 16px;
  width: min(1200px, 96vw);
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-panel {
  padding: 20px;
  width: min(360px, 92vw);
  max-height: calc(100vh - clamp(32px, 6vw, 72px));
  overflow: auto;
  display: grid;
  gap: 14px;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--storm-dark);
  margin: 0 0 10px;
}

h1 {
  font-family: "Spectral", serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 0 0 8px;
}

.logo-wordmark {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--storm-dark);
  font-weight: 600;
}

.logout-link {
  color: var(--storm-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.logout-link:hover {
  text-decoration: underline;
}

.search {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(120px, 1fr)) minmax(120px, 0.7fr);
  align-items: end;
  background: transparent;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
}

button {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: var(--storm);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.25);
}

button:hover {
  background: #2563eb;
}

.status {
  margin: 0;
  color: var(--storm-dark);
  font-size: 0.9rem;
}

.list-panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--border);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.legend-label {
  white-space: nowrap;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fffaf4, #ffffff 60%);
  display: grid;
  gap: 6px;
}

.event-card h3 {
  margin: 0;
  font-size: 1rem;
}

.event-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.event-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 0.9rem;
}

.event-time {
  font-weight: 600;
  color: var(--storm-dark);
}

.event-sep {
  color: var(--muted);
}

.event-type {
  color: var(--muted);
}

.splash-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top, #f8fafc, #dbeafe 55%, #93c5fd);
  display: flex;
  align-items: stretch;
}

.splash-shell {
  width: min(1100px, 92vw);
  margin: auto;
  padding: clamp(24px, 6vw, 72px);
  display: grid;
  gap: clamp(24px, 6vw, 48px);
}

.splash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.splash-logo {
  height: 36px;
}

.splash-tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.splash-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.splash-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

.splash-content p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
}

.splash-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.splash-button {
  text-decoration: none;
  color: white;
  background: var(--storm);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.25);
}

.splash-button:hover {
  background: #2563eb;
}

.splash-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.splash-link:hover {
  text-decoration: underline;
}

.splash-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.9rem;
}

.auth-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #f8fafc, #e2e8f0 45%, #cbd5f5);
  color: var(--ink);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(24px, 6vw, 64px);
}

.auth-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.auth-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--storm-dark);
}

.auth-form {
  display: grid;
  gap: 20px;
  align-content: start;
  max-width: 420px;
  width: 100%;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.auth-fields {
  display: grid;
  gap: 14px;
}

@media (max-width: 900px) {
  .overlay {
    flex-direction: column;
    align-items: stretch;
  }

  .list-panel {
    max-height: 40vh;
  }

  .search {
    grid-template-columns: 1fr;
  }

  .splash-header,
  .splash-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
