:root {
  --header-teal: #2a6f80;
  --primary: #0b5fd7;
  --primary-dark: #083f9f;
  --accent: #ff4f6d;
  --accent-dark: #e73355;
  --bg: #f5f8fd;
  --text: #1a2234;
  --muted: #647089;
  --card: #ffffff;
  --line: #e4e9f2;
  --shadow: 0 18px 45px rgba(16, 42, 84, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1200px 450px at 20% -10%, #dbe8ff 0, transparent 60%),
    radial-gradient(900px 350px at 110% -15%, #ffe2e8 0, transparent 60%),
    var(--bg);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(
    95deg,
    rgba(42, 111, 128, 0.8),
    rgba(42, 111, 128, 0.7)
  );
  color: #fff;
  padding: 16px 22px 14px;
  border-bottom: 3px solid rgba(128, 128, 128, 0.5);
  box-shadow: 0 4px 20px rgba(7, 29, 58, 0.3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(5, 27, 56, 0.28);
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 0.82rem;
  opacity: 0.9;
}

.tag {
  font-size: 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

nav button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

nav button.active {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

main {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 20px 22px 28px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.cards {
  display: grid;
  gap: 12px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero {
  margin-bottom: 14px;
  background: linear-gradient(140deg, #ffffff, #f3f8ff);
  border: 1px solid #d9e6ff;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mt12 {
  margin-top: 12px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-step {
  background: #fff;
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.timeline-step .meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-step .state {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--primary-dark);
  font-size: 0.8rem;
  margin-top: 6px;
}

.stack {
  display: grid;
  gap: 8px;
}

.stack-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

#public-map {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.map-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#map-overlay-markers {
  position: absolute;
  inset: 0;
}

.mock-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.mock-marker.restaurant {
  background: #0b5fd7;
}

.mock-marker.tip {
  background: #ff4f6d;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.93rem;
}

input,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.primary {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(229, 35, 61, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(229, 35, 61, 0.35);
}

.ghost {
  border: 1px solid var(--line);
  background: #f8faff;
  border-radius: 10px;
  padding: 9px 11px;
  transition: all 0.2s ease;
}

.ghost:hover {
  background: #eef4ff;
  border-color: #cfdaf0;
}

.status-chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.status-chip.warning {
  background: #fff3d8;
  color: #885c00;
}

.status-chip.qa {
  background: #e8f1ff;
  color: #13479f;
}

@media (max-width: 980px) {
  .cards.two,
  .cards.four,
  .stats,
  .split {
    grid-template-columns: 1fr;
  }
}
