/* ============================================
   FANCY GAP MOUNTAIN TRAVEL REPORT
   Complete stylesheet — dark/light themes,
   condition states, responsive breakpoints
   ============================================ */

/* ==========================================================================
   1. CSS Custom Properties — Base
   ========================================================================== */

:root {
  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;

  /* Layout */
  --max-width: 72rem;
  --content-width: 56rem;
  --narrow-width: 42rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-theme: 0.4s ease;
  --transition-atmospheric: 1.5s ease;

  /* Base state colors (overridden by theme classes) */
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
}

/* ==========================================================================
   2. Dark Theme (.theme-dark)
   ========================================================================== */

.theme-dark {
  --bg-primary: #0f1419;
  --bg-secondary: #0a0e12;
  --bg-card: #171e26;
  --bg-card-hover: #1c2530;
  --text-primary: #d8dde6;
  --text-secondary: #8a96a8;
  --text-muted: #556070;
  --text-white: #ffffff;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --accent: #7fa0c4;
  --accent-dim: rgba(127,160,196,0.08);
  --green: #4ade80;
  --green-dim: rgba(74,222,128,0.08);
  --green-border: rgba(74,222,128,0.12);
  --green-glow: rgba(74,222,128,0.15);
  --amber: #fbbf24;
  --amber-dim: rgba(251,191,36,0.08);
  --amber-border: rgba(251,191,36,0.12);
  --amber-glow: rgba(251,191,36,0.15);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.08);
  --red-border: rgba(248,113,113,0.12);
  --camera-bg: #0d1117;
  --camera-label: rgba(255,255,255,0.7);
  --modal-bg: rgba(0,0,0,0.85);
  --shadow: none;
  --toggle-bg: rgba(255,255,255,0.06);
  --toggle-hover: rgba(255,255,255,0.1);
}

/* ==========================================================================
   3. Light Theme (.theme-light)
   ========================================================================== */

.theme-light {
  --bg-primary: #f5f0e8;
  --bg-secondary: #ebe5db;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f5;
  --text-primary: #2c3830;
  --text-secondary: #5a6860;
  --text-muted: #8a9490;
  --text-white: #2c3830;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.12);
  --accent: #4a7c6f;
  --accent-dim: rgba(74,124,111,0.08);
  --green: #16a34a;
  --green-dim: rgba(22,163,74,0.06);
  --green-border: rgba(22,163,74,0.15);
  --green-glow: rgba(22,163,74,0.1);
  --amber: #d97706;
  --amber-dim: rgba(217,119,6,0.06);
  --amber-border: rgba(217,119,6,0.15);
  --amber-glow: rgba(217,119,6,0.1);
  --red: #dc2626;
  --red-dim: rgba(220,38,38,0.05);
  --red-border: rgba(220,38,38,0.12);
  --camera-bg: #e8e3db;
  --camera-label: rgba(0,0,0,0.6);
  --modal-bg: rgba(0,0,0,0.75);
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --toggle-bg: rgba(0,0,0,0.05);
  --toggle-hover: rgba(0,0,0,0.08);
}

/* ==========================================================================
   4. Condition State Overlays — body::before atmospheric gradients
   ========================================================================== */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  transition: background var(--transition-atmospheric);
}

/* Clear — no overlay */
body.state-clear::before {
  background: none;
}

/* Caution — amber atmospheric gradient */
body.state-caution::before {
  background: linear-gradient(
    180deg,
    rgba(251,191,36,0.03) 0%,
    transparent 40%,
    rgba(251,191,36,0.02) 100%
  );
}

/* Danger — red atmospheric gradient */
body.state-danger::before {
  background: linear-gradient(
    180deg,
    rgba(248,113,113,0.04) 0%,
    transparent 30%,
    rgba(248,113,113,0.03) 70%,
    rgba(248,113,113,0.02) 100%
  );
}

/* Light theme condition overlays */
.theme-light body.state-caution::before,
body.state-caution.theme-light::before {
  background: linear-gradient(
    180deg,
    rgba(217,119,6,0.03) 0%,
    transparent 40%,
    rgba(217,119,6,0.02) 100%
  );
}

.theme-light body.state-danger::before,
body.state-danger.theme-light::before {
  background: linear-gradient(
    180deg,
    rgba(220,38,38,0.04) 0%,
    transparent 30%,
    rgba(220,38,38,0.03) 70%,
    rgba(220,38,38,0.02) 100%
  );
}

/* ==========================================================================
   5. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background var(--transition-theme), color var(--transition-theme);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   6. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

.container--narrow {
  max-width: var(--narrow-width);
}

/* ==========================================================================
   7. Header
   ========================================================================== */

.travel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  transition: border-color var(--transition-theme);
}

.travel-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.travel-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.travel-logo__white {
  color: var(--text-white);
  transition: color var(--transition-theme);
}

.travel-logo__blue {
  color: var(--accent);
  transition: color var(--transition-theme);
}

.travel-header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.travel-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
}

.travel-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-theme);
}

.travel-nav a:hover {
  color: var(--text-secondary);
}

.travel-nav a.active,
.travel-nav .active {
  color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-theme);
}

.theme-toggle:hover {
  background: var(--toggle-hover);
  border-color: var(--border-strong);
}

/* ==========================================================================
   8. Mobile Nav
   ========================================================================== */

.travel-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.travel-menu-toggle__bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile navigation — hidden by default */
.travel-mobile-nav {
  display: none;
}

/* ==========================================================================
   9. NWS Alert Bar
   ========================================================================== */

/* ==========================================================================
   8b. Travel Intro
   ========================================================================== */

.travel-intro {
  padding: var(--space-lg) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-theme);
}

.travel-intro__lead {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: var(--space-md) auto var(--space-xs);
  max-width: 100%;
  line-height: 1.5;
  transition: color var(--transition-theme);
}

.travel-intro__body {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 100%;
  margin: 0 auto var(--space-sm);
  transition: color var(--transition-theme);
}

.travel-intro .voice-line {
  border-bottom: none;
  padding: 0 0 var(--space-sm);
}

/* ==========================================================================
   9. NWS Alert Bar
   ========================================================================== */

.nws-alert {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.nws-alert__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.nws-alert__text {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 500;
  transition: color var(--transition-theme);
}

.nws-alert__detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.6;
  transition: color var(--transition-theme);
}

.nws-alert__toggle {
  display: inline;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.7rem;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  margin-left: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nws-alert__toggle:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   10. Status Banner
   ========================================================================== */

.status-banner {
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-theme);
}

.status-card {
  flex: 1;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease, border-color 0.6s ease;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* Clear variant */
.status-clear {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
}

.status-clear::before {
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

/* Caution variant */
.status-caution {
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
}

.status-caution::before {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
}

/* Danger variant */
.status-danger {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
}

.status-danger::before {
  background: var(--red);
  box-shadow: 0 0 8px rgba(220,38,38,0.1);
}

.status-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  transition: color var(--transition-theme);
}

.status-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.6s ease;
}

.status-clear .status-value { color: var(--green); }
.status-caution .status-value { color: var(--amber); }
.status-danger .status-value { color: var(--red); }

.status-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  transition: color var(--transition-theme);
}

/* ==========================================================================
   11. Pulse Animation
   ========================================================================== */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.35rem;
  position: relative;
  top: -1px;
  animation: pulse 2s ease-in-out infinite;
}

.status-clear .status-pulse {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.status-caution .status-pulse {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

.status-danger .status-pulse {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

/* ==========================================================================
   11b. Weather Link
   ========================================================================== */

.weather-link {
  text-align: right;
  padding: var(--space-xs) 0;
}

.weather-link a {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.weather-link a:hover {
  color: var(--accent);
}

/* ==========================================================================
   12. Voice Line
   ========================================================================== */

.voice-line {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: center;
  transition: color var(--transition-theme), border-color var(--transition-theme);
}

/* ==========================================================================
   13. Weather Strip
   ========================================================================== */

.weather-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-theme);
}

.weather-cell {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: border-color var(--transition-theme);
}

.weather-cell:last-child {
  border-right: none;
}

.weather-cell__label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  transition: color var(--transition-theme);
}

.weather-cell__value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color var(--transition-theme);
}

.weather-cell__sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  transition: color var(--transition-theme);
}

/* ==========================================================================
   14. Section Blocks
   ========================================================================== */

.section-block {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-theme);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color var(--transition-theme);
}

.section-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: color var(--transition-theme);
}

/* ==========================================================================
   15. Incident Cards
   ========================================================================== */

.incident {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-theme);
}

.incident-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.incident-icon.warn {
  background: var(--amber-dim);
}

.incident-icon.danger {
  background: var(--red-dim);
}

.incident-title {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-theme);
}

.incident-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  transition: color var(--transition-theme);
}

/* ==========================================================================
   16. No Incidents
   ========================================================================== */

.no-incidents {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  transition: color var(--transition-theme);
}

/* ==========================================================================
   17. Parkway Segments
   ========================================================================== */

.parkway-segments {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.parkway-seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-theme);
}

.parkway-seg__name {
  color: var(--text-secondary);
  transition: color var(--transition-theme);
}

.parkway-seg__status {
  font-weight: 500;
  font-size: 0.75rem;
}

.parkway-seg__status.open {
  color: var(--green);
}

.parkway-seg__status.closed {
  color: var(--red);
}

/* ==========================================================================
   18. Camera Grid — Dashboard (3-col thumbnails)
   ========================================================================== */

.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.camera-thumb {
  aspect-ratio: 16/9;
  background: var(--camera-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.camera-thumb:hover {
  border-color: var(--border-strong);
}

.camera-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-thumb__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.theme-light .camera-thumb__gradient {
  background: linear-gradient(transparent, rgba(0,0,0,0.35));
}

.camera-thumb__label {
  position: absolute;
  bottom: 0.4rem;
  left: 0.5rem;
  font-size: 0.6rem;
  color: var(--camera-label);
  z-index: 1;
  transition: color var(--transition-theme);
}

.camera-thumb__live {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 0.5rem;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Camera landscape placeholder (design mockup) */
.camera-landscape {
  width: 70%;
  height: 60%;
  border-radius: 2px;
  opacity: 0.2;
  background: linear-gradient(180deg, #8a9a7a 0%, #6a7a5a 40%, #4a5a3a 100%);
  transition: opacity var(--transition-theme);
}

.theme-dark .camera-landscape {
  opacity: 0.15;
  background: linear-gradient(180deg, #2a3a4a 0%, #1a2530 40%, #0d1117 100%);
}

/* ==========================================================================
   19. View All Link
   ========================================================================== */

.view-all-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.view-all-link:hover {
  background: var(--bg-card);
  color: var(--accent);
}

/* ==========================================================================
   20. Camera Grid — Full Page (3-col cards)
   ========================================================================== */

.camera-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.camera-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.camera-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.camera-card__img {
  aspect-ratio: 16/9;
  background: var(--camera-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camera-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-card__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.camera-card__mm {
  position: absolute;
  bottom: 0.4rem;
  left: 0.6rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  z-index: 1;
}

.camera-card__dir {
  position: absolute;
  top: 0.4rem;
  left: 0.6rem;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  z-index: 1;
}

/* Direction badges — dark theme */
.dir-nb { background: rgba(74,222,128,0.2); color: #4ade80; }
.dir-sb { background: rgba(127,160,196,0.2); color: #7fa0c4; }
.dir-med { background: rgba(251,191,36,0.2); color: #fbbf24; }

/* Direction badges — light theme */
.theme-light .dir-nb { background: rgba(22,163,74,0.12); color: #16a34a; }
.theme-light .dir-sb { background: rgba(74,124,111,0.12); color: #4a7c6f; }
.theme-light .dir-med { background: rgba(217,119,6,0.12); color: #d97706; }

.camera-card__live {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  font-size: 0.5rem;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.camera-card__info {
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.camera-card__name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: color var(--transition-theme);
}

.camera-card__expand {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: color var(--transition-theme);
}

/* Camera landscape placeholder (design mockup — full page) */
.camera-landscape-placeholder {
  width: 80%;
  height: 50%;
  border-radius: 2px;
  opacity: 0.12;
  background: linear-gradient(180deg, #4a6a5a 0%, #2a4a3a 50%, #1a2a20 100%);
}

.theme-dark .camera-landscape-placeholder {
  background: linear-gradient(180deg, #2a3a4a 0%, #1a2530 40%, #0d1117 100%);
}

/* ==========================================================================
   21. Filter Bar
   ========================================================================== */

.filter-bar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  transition: border-color var(--transition-theme);
}

.filter-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill .count {
  font-size: 0.6rem;
  opacity: 0.6;
  margin-left: 0.2rem;
}

/* ==========================================================================
   22. Cameras Hero
   ========================================================================== */

.cameras-hero {
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-theme);
}

.cameras-hero h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  transition: color var(--transition-theme);
}

.cameras-hero p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 100%;
  transition: color var(--transition-theme);
}

.cameras-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color var(--transition-theme);
}

.cameras-hero__live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-weight: 500;
}

.cameras-hero__live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   23. Video Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease, background var(--transition-theme), border-color var(--transition-theme);
}

.modal-overlay.visible .modal-content {
  transform: scale(1);
}

.modal-video {
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-video__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
}

.modal-video__live {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-video__live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

.modal-info {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-info__left h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition-theme);
}

.modal-info__left p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  transition: color var(--transition-theme);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.modal-nav {
  padding: 0 1.25rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.modal-nav__btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.modal-nav__btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ==========================================================================
   23b. Video Embed & About Corridor
   ========================================================================== */

.corridor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-corridor {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  transition: color var(--transition-theme);
}

.about-corridor:last-child {
  margin-bottom: 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-credit {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 0;
  transition: color var(--transition-theme);
}

.video-credit a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-credit a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   24. Info Strip
   ========================================================================== */

.info-strip {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  font-size: 0.7rem;
}

.info-strip__title {
  font-weight: 600;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  transition: color var(--transition-theme);
}

.info-strip p {
  line-height: 1.5;
  margin: 0;
  color: var(--text-muted);
  transition: color var(--transition-theme);
}

/* ==========================================================================
   25. Footer
   ========================================================================== */

.travel-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  transition: border-color var(--transition-theme);
}

.travel-footer__brand {
  font-family: var(--font-serif);
  font-size: 0.8rem;
}

.travel-footer__brand .w {
  color: var(--text-white);
  transition: color var(--transition-theme);
}

.travel-footer__brand .b {
  color: var(--accent);
  transition: color var(--transition-theme);
}

.travel-footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: 0.5rem;
}

.travel-footer__link {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.travel-footer__link:hover {
  color: var(--accent);
}

.travel-footer__copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
  transition: color var(--transition-theme);
}

/* ==========================================================================
   26. Loading States
   ========================================================================== */

.travel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
  position: relative;
  z-index: 2;
}

.travel-loading__spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-lg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.travel-loading__text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
}

.source-warning {
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
  transition: background var(--transition-theme), border-color var(--transition-theme), color var(--transition-theme);
}

/* ==========================================================================
   27. Responsive — Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Two-column corridor section stacks */
  .corridor-row {
    grid-template-columns: 1fr;
  }

  /* Nav becomes hamburger */
  .travel-nav {
    display: none;
  }

  .travel-menu-toggle {
    display: flex;
  }

  /* Mobile nav full-screen overlay */
  .travel-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 99;
    padding: var(--space-3xl) var(--space-lg);
  }

  .travel-mobile-nav.is-open {
    display: block;
  }

  .travel-mobile-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .travel-mobile-nav__link {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
  }

  .travel-mobile-nav__link:hover {
    color: var(--accent);
  }

  /* Status banner stacks */
  .status-banner {
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
  }

  /* Weather strip 2x2 */
  .weather-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-cell:nth-child(2) {
    border-right: none;
  }

  .weather-cell:nth-child(1),
  .weather-cell:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  /* Camera grids 2-col */
  .camera-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .camera-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Info strip stacks */
  .info-strip {
    grid-template-columns: 1fr;
  }

  /* Cameras hero meta wraps */
  .cameras-hero__meta {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   27b. Responsive — Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* Camera grid full page 1-col */
  .camera-grid-full {
    grid-template-columns: 1fr;
  }
}
