/* ==========================================================================
   Tab 2: Map Dashboard Layout
   ========================================================================== */
.map-layout {
  display: grid;
  /* 420px matches the old map popup's minWidth — a width already proven to render
     mono NOTAM text without hard wrapping. The card replaced that popup. */
  grid-template-columns: 420px 1fr;
  width: 100%;
  height: 100%;
  gap: 1rem;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

.sidebar-section {
  padding: 1rem;
}

.flex-scroll-section {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 0; /* the sticky .notam-meta-row provides the top spacing instead */
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.sidebar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.notam-textarea {
  width: 100%;
  height: 120px;
  background: #020304;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.5rem;
  color: var(--text-main);
  font-size: 0.75rem;
  line-height: 1.4;
  resize: none;
  margin-bottom: 0.5rem;
  outline: none;
}

.notam-textarea:focus {
  border-color: var(--color-accent);
}

.primary-btn {
  width: 100%;
  background: var(--color-accent);
  color: #050608;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  box-shadow: 0 4px 12px rgba(180, 255, 50, 0.3);
  opacity: 0.9;
}

/* Solid colour-coded dot, no text — reads at a glance on both desktop and mobile. */
.notam-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.notam-source-dot.live { background: #22c55e; }
.notam-source-dot.offline { background: #ef4444; }

/* NOTAM empty / error state */
.notam-empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.notam-empty-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.notam-empty-sub {
  font-size: 0.72rem;
  opacity: 0.8;
  line-height: 1.4;
}
.notam-empty-sub a {
  color: var(--color-accent);
  text-decoration: none;
}
.notam-empty-sub a:hover {
  text-decoration: underline;
}

