:root {
  --bg: #f0ece3;
  --panel: rgba(255, 250, 242, 0.88);
  --ink: #14213d;
  --muted: #52606d;
  --accent: #cc5c2e;
  --accent-2: #1f6f78;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(204, 92, 46, 0.22), transparent 28%),
    radial-gradient(circle at right 20%, rgba(31, 111, 120, 0.16), transparent 24%),
    linear-gradient(180deg, #efe6d3, var(--bg));
}

.shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent-2);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  max-width: 12ch;
  margin-bottom: 14px;
}

.lede,
.status,
.purpose,
.context,
.aircraft-meta,
.empty-state {
  color: var(--muted);
}

.lede {
  max-width: 56ch;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  background: var(--ink);
  color: #fffdf8;
  cursor: pointer;
}

button.ghost {
  background: rgba(20, 33, 61, 0.08);
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.panel,
.card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel {
  border-radius: 28px;
  overflow: hidden;
}

.map-panel {
  min-height: 70vh;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 70vh;
}

.user-pin-icon {
  background: transparent;
  border: 0;
}

.user-pin {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(180deg, #e06c3d, #cc5c2e);
  border: 2px solid #14213d;
  box-shadow: 0 10px 18px rgba(20, 33, 61, 0.22);
}

.user-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff7ef;
}

.sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  border-radius: 22px;
  padding: 18px;
}

.standout {
  background:
    linear-gradient(135deg, rgba(204, 92, 46, 0.15), rgba(255, 250, 242, 0.92)),
    var(--panel);
}

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

.pill {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.12);
  color: var(--accent-2);
  font-size: 0.85rem;
}

.context {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.reasons {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--ink);
}

.reasons li {
  margin-bottom: 8px;
}

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

.stats div {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.stats dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.stats dd {
  margin: 6px 0 0;
  font-size: 1rem;
}

.aircraft-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aircraft-item {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.aircraft-item.active {
  outline: 2px solid rgba(204, 92, 46, 0.35);
}

.aircraft-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.aircraft-name {
  font-size: 1rem;
}

.aircraft-role {
  color: var(--accent);
  font-size: 0.86rem;
}

.empty-state {
  padding: 18px 0 6px;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-panel,
  #map {
    min-height: 54vh;
  }
}
