:root {
  --bg: #dfe6df;
  --sidebar: rgba(248, 246, 240, 0.94);
  --map-frame: rgba(255, 255, 255, 0.6);
  --line: rgba(18, 37, 31, 0.1);
  --text: #10221c;
  --muted: #607269;
  --accent: #c44324;
  --accent-deep: #7a220f;
  --active: #14392c;
  --shadow: 0 20px 60px rgba(24, 45, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 67, 36, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(20, 57, 44, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f6f0 0%, var(--bg) 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.sidebar,
.map-stage {
  min-height: 0;
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  background: var(--sidebar);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-head h1 {
  margin: 0;
  font-family: "DIN Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.7rem, 3vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.status-pill,
.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill {
  color: var(--active);
}

.sidebar-controls {
  display: flex;
}

.ghost-button {
  appearance: none;
  border: 1px solid rgba(122, 34, 15, 0.18);
  background: rgba(196, 67, 36, 0.09);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.vehicle-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.vehicle-list::-webkit-scrollbar {
  width: 10px;
}

.vehicle-list::-webkit-scrollbar-thumb {
  background: rgba(16, 34, 28, 0.14);
  border-radius: 999px;
}

.vehicle-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.vehicle-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 57, 44, 0.24);
}

.vehicle-card.is-active {
  background: linear-gradient(180deg, rgba(20, 57, 44, 0.98), rgba(17, 35, 29, 0.94));
  border-color: rgba(20, 57, 44, 0.9);
  color: #f6f7f3;
}

.vehicle-card.is-active p,
.vehicle-card.is-active span,
.vehicle-card.is-active dd {
  color: rgba(246, 247, 243, 0.86);
}

.vehicle-card.is-active dt {
  color: rgba(247, 208, 185, 0.94);
}

.vehicle-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.vehicle-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.vehicle-card p,
.vehicle-card span {
  margin: 3px 0 0;
  color: var(--muted);
}

.vehicle-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 12px 0 0;
}

.vehicle-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent-deep);
}

.vehicle-card dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.map-stage {
  padding: 10px;
  background: var(--map-frame);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.map-shell {
  width: 100%;
  height: calc(100vh - 38px);
  min-height: 620px;
  border-radius: 22px;
  overflow: hidden;
  background: #f5f5f5;
}

.empty-state {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    grid-template-rows: auto auto auto;
  }

  .vehicle-list {
    max-height: 320px;
  }

  .map-shell {
    height: 68vh;
    min-height: 420px;
  }
}
