:root {
  /* Resend-Inspired Obsidian Black & Frosty Blue Hairline System */
  --bg-canvas: #000000;        /* Level 0: Pitch black Resend canvas */
  --bg-panel: #05070a;         /* Level 1: Deep obsidian panel surface */
  --bg-card: rgba(255, 255, 255, 0.03); /* Level 2: Frosted glass card surface */
  --bg-subtle: rgba(255, 255, 255, 0.06); /* Level 3: Hover & pill surface */
  --bg-inset: #080b10;         /* Level 4: Recessed telemetry surface */

  --border-light: rgba(214, 235, 253, 0.14);  /* Icy hairline border */
  --border-strong: rgba(214, 235, 253, 0.28); /* Focused/hover hairline border */
  --border-subtle: rgba(255, 255, 255, 0.07); /* Hairline divider lines */

  /* High-Contrast Typography */
  --text-dark: #ffffff;
  --text-body: #d4d4d8;
  --text-muted: #8a8f98;

  /* Brand Accents */
  --header-bg: rgba(0, 0, 0, 0.86);
  --header-border: rgba(214, 235, 253, 0.12);
  --accent-primary: #f59e0b;
  --accent-orange: #ea580c;
  --accent-green: #22c55e;
  --font-serif-display: "Instrument Serif", Georgia, serif;
  --font-mono-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Consistent Game Species Color System */
  --color-hog: #f97316;
  --color-deer: #22c55e;
  --color-waterfowl: #38bdf8;
  --color-dove: #c084fc;
  --color-small: #facc15;
  --color-fishing: #06b6d4;
}

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

html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  color-scheme: dark;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================================
   CINEMATIC LIVE-VIDEO LANDING PAGE OVERLAY
   ===================================================================== */
.landing-hero {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(1.5rem, env(safe-area-inset-top)) 3rem max(2.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #060b09;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.landing-hero.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

.video-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 30% 40%, #142e24 0%, #070d12 75%);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: contrast(1.08) saturate(1.1);
  transform: scale(1.04);
  animation: slowPanZoom 28s ease-in-out infinite alternate;
}

@keyframes slowPanZoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(6, 12, 16, 0.92) 0%,
    rgba(9, 20, 26, 0.78) 50%,
    rgba(6, 12, 16, 0.92) 100%
  );
}

.animated-topo-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(#38bdf8 1px, transparent 1px), radial-gradient(#f97316 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0, 24px 24px;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.skip-to-map-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skip-to-map-btn:hover {
  background: #38bdf8;
  color: #090d16;
  border-color: #38bdf8;
}

.landing-content-grid {
  max-width: 1320px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 430px;
  gap: 3.5rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-bottom: 1.15rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.hero-headline {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.15rem;
}

.text-gradient {
  background: linear-gradient(90deg, #ff8a3d 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  margin-bottom: 1.6rem;
}

.enter-map-primary-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 1.05rem 1.85rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enter-map-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.55);
}

.hero-quick-jumps {
  margin-bottom: 2rem;
}

.quick-jump-label {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.quick-jump-pills button {
  background: rgba(22, 34, 45, 0.85);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.quick-jump-pills button:hover {
  border-color: #f59e0b;
  background: #1f2a23;
  transform: translateY(-1px);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-box strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-box span {
  font-size: 0.82rem;
  color: #94a3b8;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
}

/* Landing Auth / Login Card */
.landing-auth-card {
  background: rgba(16, 24, 32, 0.88);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b1116;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 1.25rem;
  border: 1px solid #1e2d3b;
}

.auth-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: #1c2b38;
  color: #ffffff;
}

#auth-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

#auth-subtitle {
  font-size: 0.86rem;
  color: #94a3b8;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.form-field {
  margin-bottom: 0.85rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  background: #0b1116;
  border: 1.5px solid #263849;
  color: #ffffff;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
}

.form-field input:focus {
  border-color: #38bdf8;
}

.auth-submit-btn {
  width: 100%;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.82rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.25rem;
}

.auth-submit-btn:hover {
  background: #0369a1;
}

.auth-divider {
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #263849;
}

.auth-divider span {
  position: relative;
  background: #111a23;
  padding: 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
}

.guest-bypass-btn {
  width: 100%;
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.guest-bypass-btn:hover {
  background: #f97316;
  color: #ffffff;
}

.auth-perks {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 700;
}

/* =====================================================================
   DARK TACTICAL TOP NAVIGATION BAR
   ===================================================================== */
.top-nav {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: max(0.65rem, env(safe-area-inset-top)) 1.4rem 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1000;
  color: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-state {
  color: #f97316;
}

.free-badge {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.brand-sub {
  display: block;
  font-size: 0.76rem;
  color: #9ca3af;
  margin-top: 2px;
  font-weight: 500;
}

.shooting-light-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #141c17;
  border: 1px solid var(--border-light);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #f1f5f9;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.shooting-light-bar:hover {
  border-color: #f59e0b;
  background: #19241e;
}

.light-divider {
  color: #4b5563;
}

.nav-center {
  display: flex;
  align-items: center;
  background: #141c17;
  padding: 0.22rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  gap: 0.25rem;
}

.tab-btn {
  background: transparent;
  color: #9ca3af;
  border: none;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.phone-preview-btn {
  background: #141c17;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  padding: 0.46rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.phone-preview-btn:hover,
.phone-preview-btn.active {
  background: #f59e0b;
  color: #080b09;
}

.pro-cta-btn {
  background: #f97316;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ==========================================
   Dark Filter & Species Color Bar
   ========================================== */
.filter-bar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  padding: 0.42rem 1.2rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 900;
  overflow-x: auto;
}

.filter-bar.tab-hidden,
.filter-bar.mobile-open.tab-hidden {
  display: none !important;
}

.species-pills-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.species-pills-group::-webkit-scrollbar {
  display: none;
}

.species-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sp-pill {
  background: var(--bg-card);
  color: var(--text-body);
  border: 1.5px solid var(--border-light);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sp-pill:hover {
  border-color: var(--border-strong);
  color: #ffffff;
}

.sp-pill.active {
  background: #d97706;
  color: #ffffff;
  border-color: #fbbf24;
}

.sp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.filter-controls-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 800;
  white-space: nowrap;
}

.filter-select {
  background: var(--bg-card);
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  height: 30px;
}

.back-overview-btn {
  background: #17241a;
  border: 1px solid #2c4232;
  color: #4ade80;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.back-overview-btn:hover {
  background: #203124;
  border-color: #4ade80;
  color: #86efac;
}

.map-layer-toggle {
  display: flex;
  background: var(--bg-card);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.layer-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.layer-btn.active {
  background: #15803d;
  color: #ffffff;
}

/* ==========================================
   3-Column Dark Workspace
   ========================================== */
.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.workspace {
  display: grid;
  grid-template-columns: var(--info-panel-width, 495px) 1fr 365px;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.workspace.desktop-guide-collapsed {
  grid-template-columns: 0px 1fr 365px;
}

.workspace.desktop-guide-collapsed .info-panel {
  padding: 0;
  border-right: none;
  overflow: hidden;
  visibility: hidden;
}

.info-panel {
  position: relative;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.desktop-panel-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 35;
  background: transparent;
  transition: background 0.15s ease;
}

.desktop-panel-resizer:hover,
.desktop-panel-resizer.resizing {
  background: rgba(245, 158, 11, 0.45);
}

.zone-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.1rem;
}

/* 1-TAP "PICK A GATE & OPEN IN MAPS" LAUNCHER (DARK TACTICAL EDITION) */
.quick-gate-launcher {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.85rem;
  margin-top: 0.85rem;
}

.gate-launcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.gate-launcher-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gate-select-dropdown {
  width: 100%;
  background: #0b0e0c;
  color: #ffffff;
  border: 1.5px solid #22c55e;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  cursor: pointer;
  outline: none;
}

.gate-selected-note {
  font-size: 0.85rem;
  color: #e2e8f0;
  background: rgba(11, 14, 12, 0.72);
  border: 1px solid var(--border-light);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  line-height: 1.48;
}

.gate-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.gate-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 0.75rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.gate-nav-btn.google {
  background: #2563eb;
  color: #ffffff;
}

.gate-nav-btn.apple {
  background: #ea580c;
  color: #ffffff;
}

.gate-nav-btn.sub-action {
  background: #0b0e0c;
  color: #fde047;
  border: 1px solid #facc15;
  font-size: 0.8rem;
  padding: 0.48rem 0.65rem;
}

/* PROMINENT MANDATORY CHECK-IN & PERMIT BOX (DARK EDITION) */
.mandatory-permit-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.14) 0%, rgba(20, 28, 23, 0.98) 100%);
  border: 2px solid #eab308;
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.85rem;
}

.mandatory-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.mandatory-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #facc15;
}

.mandatory-badge {
  background: #eab308;
  color: #0b0e0c;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.permit-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.permit-step-wrapper {
  background: #0b0e0c;
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 10px;
  padding: 0.58rem 0.75rem;
}

.permit-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.permit-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.step-check-num {
  background: #eab308;
  color: #0b0e0c;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-i-btn {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.info-i-btn:hover {
  background: #d97706;
  color: #ffffff;
}

.info-expand-box {
  display: none;
  margin-top: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: #141c17;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.info-expand-box.open {
  display: block;
}

.info-expand-title {
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

/* Sub-Tabs inside Left Info Panel */
.panel-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  background: #0b0e0c;
  padding: 0.32rem;
  border-radius: 11px;
  margin-top: 0.9rem;
  border: 1px solid var(--border-light);
}

.subtab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.52rem 0.35rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtab-btn.active {
  background: #d97706;
  color: #ffffff;
}

.subtab-pane {
  display: none;
  margin-top: 0.85rem;
}

.subtab-pane.active {
  display: block;
}

/* Color-Coded Species Cards */
.species-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 6px solid var(--border-strong);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.7rem;
}

.species-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.species-name-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.species-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-body);
}

.detail-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.detail-label {
  font-weight: 800;
  color: #ffffff;
  min-width: 115px;
  flex-shrink: 0;
}

.drawer-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.05rem;
  margin-bottom: 0.85rem;
}

.drawer-section h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.8rem;
}

.qa-item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.qa-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.qa-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.28rem;
}

.qa-text {
  font-size: 0.9rem;
  line-height: 1.56;
  color: var(--text-body);
}

/* CENTER PANEL: Map & Floating Quick Gate Bar */
.map-container {
  position: relative;
  height: 100%;
  width: 100%;
}

#map {
  height: 100%;
  width: 100%;
  background: #080d11;
  touch-action: none;
}

.map-wheel-hint {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  z-index: 520;
  background: rgba(13, 19, 26, 0.92);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.map-wheel-hint.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.offline-status-banner {
  background: rgba(245, 158, 11, 0.14);
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 0.38rem 0.85rem;
  text-align: center;
  flex-shrink: 0;
  z-index: 40;
}

.gate-mini-btn.offline-ready {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
}

.gate-mini-btn.offline-ready:hover {
  background: rgba(34, 197, 94, 0.25);
  color: #ffffff;
}

.floating-gate-bar {
  position: absolute;
  top: 14px;
  left: 55px;
  right: 14px;
  max-width: 530px;
  background: rgba(17, 22, 19, 0.95);
  backdrop-filter: blur(10px);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  z-index: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-legend {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(17, 22, 19, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-strong);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  z-index: 500;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.legend-title {
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: #ffffff;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-body);
  font-weight: 600;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* RIGHT PANEL: Hunting Zones Directory */
.unit-sidebar {
  background: var(--bg-panel);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d120f;
}

.sidebar-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.sidebar-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}

.sort-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.unit-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.unit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.unit-card:hover {
  border-color: #4ade80;
  background: #1c2620;
}

.unit-card.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 4px 16px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(23, 31, 26, 0.98) 100%);
}

.unit-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.unit-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.drive-badge {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.unit-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.species-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-bottom: 0.55rem;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: #0b1116;
  border: 1.5px solid var(--border-light);
  color: #ffffff;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.mini-badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-weight: 800;
}

.badge-green {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-yellow {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-blue {
  background: rgba(163, 177, 138, 0.18);
  color: #ecfccb;
  border: 1px solid rgba(163, 177, 138, 0.42);
}

/* Modal Views */
.modal-view {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

.modal-view.active {
  display: block;
}

.modal-header-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.modal-header-box p {
  font-size: 1rem;
  color: var(--text-muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.35rem;
}

.faq-card h4 {
  color: #f59e0b;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.faq-card p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.58;
}

/* Mobile Bottom Nav & Phone Simulator (Sleek 4-Tab Layout) */
.mobile-bottom-nav {
  display: none;
  background: #090e0b;
  border-top: 1px solid #1e2c21;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom)) 0.5rem;
  z-index: 1200;
  flex-shrink: 0;
}

.m-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #869288;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.4rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s ease;
  user-select: none;
}

.m-nav-btn .m-icon-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.m-nav-btn:hover {
  color: #cbd5e1;
}

.m-nav-btn.active {
  color: #4ade80;
  background: #152218;
  border-color: rgba(74, 222, 128, 0.25);
}

body.phone-simulator-mode {
  background: #040709;
  align-items: center;
}

body.phone-simulator-mode .top-nav,
body.phone-simulator-mode .filter-bar,
body.phone-simulator-mode .app-shell {
  max-width: 430px;
  width: 100%;
  border-left: 2px solid #334155;
  border-right: 2px solid #334155;
}

body.phone-simulator-mode .shooting-light-bar,
body.phone-simulator-mode .nav-center,
body.phone-simulator-mode .brand-sub,
body.phone-simulator-mode .free-badge,
body.phone-simulator-mode .sort-pill {
  display: none !important;
}

@media (max-width: 980px) {
  .landing-hero {
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom)) 1.25rem;
  }
  .landing-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-headline {
    font-size: 2.15rem;
  }
  .shooting-light-bar,
  .nav-center,
  .brand-sub,
  .free-badge,
  .sort-pill,
  .phone-preview-btn {
    display: none !important;
  }
  .workspace {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
  }
  .map-container {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .filter-bar {
    padding: 0.35rem 0.65rem;
    gap: 0.4rem;
  }
  .filter-controls-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    width: 100%;
  }
  .filter-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
  }
  .filter-group .filter-label {
    font-size: 0.72rem;
    min-width: 54px;
    color: #94a3b8;
  }
  .filter-date-input,
  .filter-select {
    padding: 0.3rem 0.45rem;
    font-size: 0.76rem;
    height: 30px;
    width: 100%;
  }
  .map-layer-toggle {
    grid-column: span 2;
    display: flex;
    width: 100%;
  }
  .map-layer-toggle .layer-btn {
    flex: 1;
    padding: 0.28rem 0.45rem;
    font-size: 0.72rem;
    height: 28px;
  }
  .info-panel {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 38%;
    max-height: 90%;
    z-index: 20;
    background: #0d131a;
    border-top: 2px solid #2a3c4f;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.75);
    padding: 0;
    overflow: hidden;
    transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease;
    will-change: height, transform;
  }
  .info-panel.bottom-sheet-dragging {
    transition: none !important;
  }
  .info-panel.bottom-sheet-expanded {
    height: 88%;
  }
  .info-panel.bottom-sheet-peek {
    height: 68px;
  }
  .info-panel.bottom-sheet-peek .bottom-sheet-handle {
    min-height: 68px;
    border-bottom: none;
  }
  .info-panel.bottom-sheet-hidden {
    transform: translateY(115%);
    pointer-events: none;
  }
  .bottom-sheet-handle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    min-height: 48px;
    padding: 0.5rem 0.85rem 0.55rem 0.85rem;
    background: #0d131a;
    border-bottom: 1px solid rgba(42, 60, 79, 0.55);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .info-panel.bottom-sheet-dragging .bottom-sheet-handle {
    cursor: grabbing;
  }
  .bottom-sheet-pill {
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: #64748b;
    transition: background 0.15s ease, width 0.15s ease;
  }
  .bottom-sheet-handle:hover .bottom-sheet-pill,
  .info-panel.bottom-sheet-dragging .bottom-sheet-pill {
    background: #f59e0b;
    width: 56px;
  }
  .bottom-sheet-controls-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: 0.35rem;
  }
  .bottom-sheet-hint {
    font-size: 0.67rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .sheet-quick-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
  }
  .sheet-quick-btn {
    background: #141f2a;
    color: #cbd5e1;
    border: 1px solid #2a3c4f;
    border-radius: 7px;
    padding: 0.24rem 0.48rem;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.14s ease;
  }
  .sheet-quick-btn:hover,
  .sheet-quick-btn.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
    color: #fde047;
  }
  .desktop-panel-resizer,
  .map-desktop-only-pill {
    display: none !important;
  }
  #info-panel-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 0.65rem 0.85rem 1.25rem 0.85rem;
  }
  .info-panel.bottom-sheet-peek #info-panel-content {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .map-legend {
    bottom: 78px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
  .unit-sidebar {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    background: var(--bg-panel);
    flex-direction: column;
  }
  .unit-sidebar.mobile-active-pane {
    display: flex !important;
  }
  .mobile-bottom-nav {
    display: grid;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

body.phone-simulator-mode .workspace {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
}

body.phone-simulator-mode .map-container {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

body.phone-simulator-mode .filter-bar {
  padding: 0.35rem 0.65rem;
  gap: 0.4rem;
}

body.phone-simulator-mode .filter-controls-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  width: 100%;
}

body.phone-simulator-mode .filter-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}

body.phone-simulator-mode .filter-group .filter-label {
  font-size: 0.72rem;
  min-width: 54px;
  color: #94a3b8;
}

body.phone-simulator-mode .filter-date-input,
body.phone-simulator-mode .filter-select {
  padding: 0.3rem 0.45rem;
  font-size: 0.76rem;
  height: 30px;
  width: 100%;
}

body.phone-simulator-mode .map-layer-toggle {
  grid-column: span 2;
  display: flex;
  width: 100%;
}

body.phone-simulator-mode .map-layer-toggle .layer-btn {
  flex: 1;
  padding: 0.28rem 0.45rem;
  font-size: 0.72rem;
  height: 28px;
}

body.phone-simulator-mode .info-panel {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 38%;
  max-height: 90%;
  z-index: 20;
  background: #0d131a;
  border-top: 2px solid #2a3c4f;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.75);
  padding: 0;
  overflow: hidden;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease;
  will-change: height, transform;
}

body.phone-simulator-mode .info-panel.bottom-sheet-dragging {
  transition: none !important;
}

body.phone-simulator-mode .info-panel.bottom-sheet-expanded {
  height: 88%;
}

body.phone-simulator-mode .info-panel.bottom-sheet-peek {
  height: 68px;
}

body.phone-simulator-mode .info-panel.bottom-sheet-peek .bottom-sheet-handle {
  min-height: 68px;
  border-bottom: none;
}

body.phone-simulator-mode .info-panel.bottom-sheet-hidden {
  transform: translateY(115%);
  pointer-events: none;
}

body.phone-simulator-mode .bottom-sheet-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  min-height: 48px;
  padding: 0.5rem 0.85rem 0.55rem 0.85rem;
  background: #0d131a;
  border-bottom: 1px solid rgba(42, 60, 79, 0.55);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body.phone-simulator-mode .info-panel.bottom-sheet-dragging .bottom-sheet-handle {
  cursor: grabbing;
}

body.phone-simulator-mode .bottom-sheet-pill {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #64748b;
  transition: background 0.15s ease, width 0.15s ease;
}

body.phone-simulator-mode .bottom-sheet-handle:hover .bottom-sheet-pill,
body.phone-simulator-mode .info-panel.bottom-sheet-dragging .bottom-sheet-pill {
  background: #f59e0b;
  width: 56px;
}

body.phone-simulator-mode .bottom-sheet-controls-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

body.phone-simulator-mode .bottom-sheet-hint {
  font-size: 0.67rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

body.phone-simulator-mode .sheet-quick-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

body.phone-simulator-mode .sheet-quick-btn {
  background: #141f2a;
  color: #cbd5e1;
  border: 1px solid #2a3c4f;
  border-radius: 7px;
  padding: 0.24rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.14s ease;
}

body.phone-simulator-mode .sheet-quick-btn:hover,
body.phone-simulator-mode .sheet-quick-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fde047;
}

body.phone-simulator-mode .desktop-panel-resizer,
body.phone-simulator-mode .map-desktop-only-pill {
  display: none !important;
}

body.phone-simulator-mode #info-panel-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 0.65rem 0.85rem 1.25rem 0.85rem;
}

body.phone-simulator-mode .info-panel.bottom-sheet-peek #info-panel-content {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

body.phone-simulator-mode .map-floating-bar {
  top: 10px;
  left: 54px;
  right: 10px;
  max-width: calc(100% - 64px);
  flex-wrap: wrap;
  border-radius: 14px;
  gap: 0.3rem;
}

body.phone-simulator-mode .map-floating-pill {
  padding: 0.32rem 0.56rem;
  font-size: 0.7rem;
}

body.phone-simulator-mode .map-legend {
  bottom: 78px;
  left: 10px;
  max-width: calc(100% - 20px);
}

body.phone-simulator-mode .unit-sidebar {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  background: var(--bg-panel);
  flex-direction: column;
}

body.phone-simulator-mode .unit-sidebar.mobile-active-pane {
  display: flex !important;
}

body.phone-simulator-mode .mobile-bottom-nav {
  display: grid;
}

body.phone-simulator-mode .faq-grid {
  grid-template-columns: 1fr;
}


/* =====================================================================
   REVERTED CLICKABLE GATE CARDS LIST (SYNCHRONIZED WITH MAP)
   ===================================================================== */
.gate-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.gate-card:hover {
  border-color: #f59e0b;
  background: #1c2620;
}

.gate-card.active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(23, 31, 26, 0.98) 100%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 4px 18px rgba(0, 0, 0, 0.5);
}

.gate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-light);
}

#primary-gate-cards-list .gate-card:not(.expanded) .gate-card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.gate-card-body {
  display: none;
  cursor: default;
}

.gate-card.expanded .gate-card-body {
  display: block;
}

.gate-card-name {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.gate-card-notes {
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-left: 3.5px solid #f59e0b;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  margin: 0.6rem 0;
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.5;
}

.gate-card-notes-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gate-card-notes-body {
  color: #e2e8f0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.gate-card-source {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #94a3b8;
  border-top: 1px solid rgba(45, 63, 51, 0.7);
  padding-top: 0.35rem;
}

/* Tactical Timber Aesthetic: Expandable Boxes, Metrics Grids & Callout Banners */
.aws-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.95rem;
  margin-bottom: 0.85rem;
}

.aws-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.aws-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.regional-overview-card {
  display: flex;
  flex-direction: column;
}

details.aws-expandable {
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin: 0.5rem 0;
  overflow: hidden;
  transition: all 0.16s ease;
}

details.aws-expandable > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  user-select: none;
  background: #131c16;
  transition: all 0.15s ease;
}

details.aws-expandable > summary:hover {
  color: #ffffff;
  background: #1c2a21;
}

details.aws-expandable > summary::-webkit-details-marker {
  display: none;
}

details.aws-expandable .expand-icon {
  font-size: 0.72rem;
  color: #64748b;
  display: inline-block;
  transition: transform 0.2s ease;
}

details.aws-expandable[open] > summary .expand-icon {
  transform: rotate(90deg);
  color: #f59e0b;
}

details.aws-expandable .expand-content {
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
  background: var(--bg-inset);
}

.aws-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 0.4rem;
  margin: 0.45rem 0;
}

.aws-metric-box {
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  padding: 0.42rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.aws-metric-label {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.aws-metric-value {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aws-callout-banner {
  background: rgba(20, 83, 45, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-left: 3.5px solid #22c55e;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #d1fae5;
  font-size: 0.82rem;
  line-height: 1.48;
  margin: 0.55rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.aws-callout-banner.warning {
  background: rgba(180, 83, 9, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  border-left-color: #f59e0b;
  color: #fde68a;
}

.aws-callout-icon {
  font-size: 1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.grip-icon {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
}

.aws-info-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f59e0b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.aws-info-tag:hover {
  text-decoration: underline;
  color: #fbbf24;
}

.regional-prop-jump-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.16s ease;
  user-select: none;
}

.regional-prop-jump-btn:hover {
  background: #1c2a21;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.gate-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.gate-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.gate-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  padding: 0.42rem 0.68rem;
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: #e2e8f0;
  transition: all 0.15s ease;
  user-select: none;
}

.gate-mini-btn:hover {
  border-color: #f59e0b;
  background: #26352b;
  color: #ffffff;
}

.gate-mini-btn.primary {
  background: #d97706;
  border-color: #f59e0b;
  color: #ffffff;
}

.gate-mini-btn.primary:hover {
  background: #b45309;
  border-color: #fbbf24;
}

.gate-mini-btn.apple,
.gate-mini-btn.streetview {
  background: var(--bg-subtle);
  border-color: var(--border-light);
  color: #cbd5e1;
}

.gate-mini-btn.apple:hover,
.gate-mini-btn.streetview:hover {
  border-color: #f59e0b;
  background: #26352b;
  color: #ffffff;
}

.gate-mini-btn.save,
.gate-mini-btn.saved {
  background: var(--bg-subtle);
  border-color: var(--border-light);
  color: #cbd5e1;
}

.gate-mini-btn.saved {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  color: #fbbf24;
}

.gate-mini-btn.saved:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
  color: #ffffff;
}

.gate-mini-btn .btn-svg,
.gate-mini-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Structured Gate Spec Details (Road Surface, Parking, Signal) */
.gate-field-specs {
  background: #0d141b;
  border: 1px solid #1e2d3b;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin: 0.45rem 0 0.55rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.74rem;
}

.gate-spec-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.35;
}

.gate-spec-item .spec-label {
  color: #94a3b8;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gate-spec-item .spec-val {
  color: #e2e8f0;
}

/* Floating Gate Pills on Map (Replaces Dropdown) */
.floating-gate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  margin-bottom: 0.35rem;
}

.gate-pill-btn {
  background: #141c17;
  color: #e2e8f0;
  border: 1.5px solid #3d5245;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gate-pill-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #fde047;
}

/* =====================================================================
   TRUST, PROVENANCE, STALE WARNINGS & STREET VIEW INSPECTOR
   ===================================================================== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stale-warning-banner {
  background: rgba(234, 179, 8, 0.15);
  border: 1.5px solid #eab308;
  color: #fde047;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.55rem;
  line-height: 1.4;
}

.live-notice-banner {
  background: rgba(239, 68, 68, 0.16);
  border: 1.5px solid #ef4444;
  color: #fca5a5;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.55rem;
  line-height: 1.4;
}

.official-source-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.official-source-link {
  color: #fbbf24;
  font-weight: 800;
  text-decoration: none;
}

.official-source-link:hover {
  text-decoration: underline;
}

.report-info-btn {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.25rem 0.58rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.report-info-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.filter-date-input {
  background: var(--bg-card);
  color: #ffffff;
  border: 1.5px solid #f59e0b;
  padding: 0.36rem 0.6rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  outline: none;
  color-scheme: dark;
}

.light-rule-tag {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.streetview-mode-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  background: rgba(16, 24, 32, 0.94);
  color: #4ade80;
  border: 1.5px solid #22c55e;
  padding: 0.48rem 0.78rem;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.streetview-mode-btn.off {
  color: #94a3b8;
  border-color: #475569;
}

.nav-count-pill {
  background: #f97316;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

/* =====================================================================
   SAVED & "PLAN MY HUNT" VIEW + AFFILIATE GEAR + OPS VIEW
   ===================================================================== */
.planner-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.planner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.1rem;
}

.planner-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trip-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 1.05rem;
  margin-bottom: 0.9rem;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0;
  font-size: 0.86rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(38, 56, 73, 0.5);
}

.checklist-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
  cursor: pointer;
}

.affiliate-gear-box {
  background: rgba(11, 17, 22, 0.75);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.affiliate-disclosure {
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.gear-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
}

.gear-item-row:last-child {
  border-bottom: none;
}

.legal-disclaimer-box {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fef08a;
  padding: 0.65rem 0.8rem;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.75rem;
}

.trust-footer-box {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-body);
}

.trust-footer-box h3 {
  color: #f59e0b;
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.trust-footer-box a {
  color: #fbbf24;
}

.auth-security-note {
  font-size: 0.76rem;
  color: #94a3b8;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.auth-feedback-msg {
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.82);
  backdrop-filter: blur(5px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog-card {
  background: var(--bg-panel);
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 1.35rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
}

.modal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-dialog-header h3 {
  font-size: 1.05rem;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.form-field textarea {
  width: 100%;
  background: #0b1116;
  border: 1.5px solid #263849;
  color: #ffffff;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #15803d;
  border: 1.5px solid #4ade80;
  color: #ffffff;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   2026–2027 INTERACTIVE SEASON CALENDAR & 12-MONTH TIMELINE VIEW
   ===================================================================== */
.calendar-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-top: 1.1rem;
}

.cal-month-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.cal-month-pill {
  background: var(--bg-card);
  color: #cbd5e1;
  border: 1.5px solid var(--border-light);
  padding: 0.4rem 0.72rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

.cal-month-pill:hover {
  border-color: #f59e0b;
  color: #ffffff;
}

.cal-month-pill.active {
  background: #d97706;
  border-color: #fbbf24;
  color: #ffffff;
}

.calendar-layout-grid {
  display: grid;
  grid-template-columns: 1.35fr 390px;
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}

.cal-board-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.1rem;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  background: #0d120f;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  min-height: 76px;
  padding: 0.42rem 0.48rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.14s ease;
}

.cal-day-cell:hover {
  border-color: #f59e0b;
  background: #161f1a;
}

.cal-day-cell.selected {
  border-color: #f97316;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22) 0%, rgba(20, 28, 23, 0.98) 100%);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
}

.cal-day-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  min-height: 40px;
}

.cal-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.cal-day-num {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.cal-milestone-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
  line-height: 1.2;
  margin-top: 3px;
}

.cal-dots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cal-sp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.timeline-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.2rem;
  margin-top: 1.25rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-months-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}

.timeline-month-cell {
  height: 24px;
  border-radius: 5px;
  background: #0d120f;
  border: 1px solid #222e26;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: #6b7280;
}

@media (max-width: 980px) {
  .planner-grid,
  .calendar-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .cal-board-card {
    padding: 0.55rem 0.35rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .cal-weekdays-row {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
  }
  .cal-days-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
  }
  .cal-day-cell {
    min-height: 48px !important;
    padding: 0.2rem 0.2rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .cal-day-cell .cal-day-num {
    font-size: 0.72rem !important;
  }
  .cal-day-cell .cal-day-top span:nth-child(2) {
    display: none !important;
  }
  .cal-day-cell .cal-milestone-tag {
    display: none !important;
  }
  .cal-dots-row {
    gap: 2px !important;
    margin-top: 2px !important;
  }
  .cal-sp-dot {
    width: 6.5px !important;
    height: 6.5px !important;
  }
  .cal-month-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.35rem !important;
    width: 100% !important;
  }
  .cal-month-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .cal-month-pill {
    flex-shrink: 0 !important;
    padding: 0.32rem 0.52rem !important;
    font-size: 0.72rem !important;
  }
  .timeline-matrix-card {
    padding: 0.75rem 0.5rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .timeline-row {
    min-width: 480px !important;
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
  }
  #calendar-view,
  .modal-view {
    padding: 0.75rem 0.5rem 5rem 0.5rem !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }
  .streetview-mode-btn {
    top: auto;
    bottom: 12px;
    right: 12px;
    font-size: 0.7rem;
  }
}

body.phone-simulator-mode .planner-grid,
body.phone-simulator-mode .calendar-layout-grid {
  grid-template-columns: 1fr !important;
  gap: 0.85rem !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.phone-simulator-mode .cal-board-card {
  padding: 0.55rem 0.35rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

body.phone-simulator-mode .cal-weekdays-row {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 2px !important;
  font-size: 0.65rem !important;
}

body.phone-simulator-mode .cal-days-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 2px !important;
}

body.phone-simulator-mode .cal-day-cell {
  min-height: 48px !important;
  padding: 0.2rem 0.2rem !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.phone-simulator-mode .cal-day-cell .cal-day-num {
  font-size: 0.72rem !important;
}

body.phone-simulator-mode .cal-day-cell .cal-day-top span:nth-child(2) {
  display: none !important;
}

body.phone-simulator-mode .cal-day-cell .cal-milestone-tag {
  display: none !important;
}

body.phone-simulator-mode .cal-dots-row {
  gap: 2px !important;
  margin-top: 2px !important;
}

body.phone-simulator-mode .cal-sp-dot {
  width: 6.5px !important;
  height: 6.5px !important;
}

body.phone-simulator-mode .cal-month-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding-bottom: 0.35rem !important;
  width: 100% !important;
}

body.phone-simulator-mode .cal-month-tabs::-webkit-scrollbar {
  display: none !important;
}

body.phone-simulator-mode .cal-month-pill {
  flex-shrink: 0 !important;
  padding: 0.32rem 0.52rem !important;
  font-size: 0.72rem !important;
}

body.phone-simulator-mode .timeline-matrix-card {
  padding: 0.75rem 0.5rem !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

body.phone-simulator-mode .timeline-row {
  min-width: 480px !important;
  display: grid !important;
  grid-template-columns: 160px 1fr !important;
}

body.phone-simulator-mode .modal-view {
  padding: 0.75rem 0.5rem 5rem 0.5rem !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* =====================================================================
   IN-STAND HUNT MODE (SHOOTING LIGHT HUD, SOLUNAR & RED-LIGHT STEALTH)
   ===================================================================== */
.hunt-mode-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  transition: all 0.2s ease;
}

.hunt-mode-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(20, 28, 23, 0.96) 0%, rgba(13, 18, 15, 0.98) 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.stealth-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #ef4444;
  background: rgba(127, 29, 29, 0.28);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.stealth-toggle-btn:hover,
.stealth-toggle-btn.active {
  background: #991b1b;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

.hunt-light-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hunt-light-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.hunt-light-card.primary-dawn {
  border-color: #f59e0b;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16) 0%, rgba(20, 28, 23, 0.98) 100%);
}

.hunt-light-card.primary-dusk {
  border-color: #ea580c;
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.16) 0%, rgba(20, 28, 23, 0.98) 100%);
}

.hunt-light-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hunt-light-time {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hunt-light-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 600;
}

.hunt-solunar-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.hunt-moon-card,
.hunt-feeding-card,
.hunt-stand-ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}

.feeding-windows-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.feeding-window-box {
  background: #0d120f;
  border: 1.5px solid var(--border-light);
  border-radius: 11px;
  padding: 0.85rem 0.95rem;
}

.feeding-window-box.major {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(13, 18, 15, 0.98) 100%);
}

.feeding-window-box.golden-overlap {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.solunar-day-track {
  position: relative;
  height: 32px;
  border-radius: 8px;
  background: #070a08;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  margin: 0.75rem 0 0.4rem 0;
}

/* Specific Game Intel & Rule Outline Box (Updates dynamically when game changes) */
.hunt-target-game-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
  position: relative;
  transition: all 0.2s ease;
}

.hunt-game-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.hunt-game-intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.hunt-intel-block {
  background: #0b1116;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hunt-intel-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hunt-intel-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.hunt-intel-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.hunt-species-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.hunt-sp-btn {
  background: #0b1116;
  color: #cbd5e1;
  border: 1.5px solid var(--border-light);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.hunt-sp-btn:hover {
  border-color: #f59e0b;
  color: #ffffff;
}

.hunt-sp-btn.active {
  background: #d97706;
  border-color: #fbbf24;
  color: #ffffff;
}

/* RED-LIGHT NIGHT VISION STEALTH THEME FOR EARLY MORNING TREE STAND USE */
#hunt-mode-view.stealth-red-mode {
  background: #040101 !important;
  color: #f87171 !important;
}

#hunt-mode-view.stealth-red-mode .hunt-mode-top-bar,
#hunt-mode-view.stealth-red-mode .hunt-light-card,
#hunt-mode-view.stealth-red-mode .hunt-moon-card,
#hunt-mode-view.stealth-red-mode .hunt-feeding-card,
#hunt-mode-view.stealth-red-mode .hunt-stand-ref-card,
#hunt-mode-view.stealth-red-mode .feeding-window-box,
#hunt-mode-view.stealth-red-mode .filter-select,
#hunt-mode-view.stealth-red-mode .filter-date-input {
  background: #0a0202 !important;
  border-color: #7f1d1d !important;
  color: #fca5a5 !important;
  box-shadow: none !important;
}

#hunt-mode-view.stealth-red-mode h2,
#hunt-mode-view.stealth-red-mode h3,
#hunt-mode-view.stealth-red-mode strong,
#hunt-mode-view.stealth-red-mode .hunt-light-time {
  color: #ef4444 !important;
}

#hunt-mode-view.stealth-red-mode span,
#hunt-mode-view.stealth-red-mode p,
#hunt-mode-view.stealth-red-mode div {
  color: #f87171;
}

@media (max-width: 980px) {
  .hunt-light-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hunt-solunar-grid,
  .feeding-windows-grid {
    grid-template-columns: 1fr;
  }
}

body.phone-simulator-mode .hunt-light-hero-grid {
  grid-template-columns: 1fr 1fr;
}

body.phone-simulator-mode .hunt-solunar-grid,
body.phone-simulator-mode .feeding-windows-grid {
  grid-template-columns: 1fr;
}


/* =====================================================================
   DECLUTTER LAYER — collapsible sections, compact gate cards (no info removed)
   ===================================================================== */
.badge-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-orange {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.45);
}

/* Collapsible panel sections */
details.panel-fold {
  padding: 0;
  margin-top: 0.7rem;
}

details.panel-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 44px;
  border-radius: 12px;
}

details.panel-fold > summary::-webkit-details-marker {
  display: none;
}

details.panel-fold > summary::after {
  content: "▸";
  color: #fbbf24;
  font-size: 1rem;
  flex-shrink: 0;
}

details.panel-fold[open] > summary::after {
  content: "▾";
}

details.panel-fold > summary:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: -2px;
}

.panel-fold-body {
  padding: 0 0.9rem 0.9rem 0.9rem;
}

.fold-summary-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 1px;
}

/* Gate cards: All gate notes & metrics are always directly viewable without extra taps */
.gate-card .gate-card-notes {
  display: block;
}

/* Species detail folding */
details.more-details {
  margin-top: 0.4rem;
}

details.more-details > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fbbf24;
  padding: 0.35rem 0;
  min-height: 32px;
}

details.more-details > summary::-webkit-details-marker {
  display: none;
}

details.more-details > summary::before {
  content: "▸ ";
}

details.more-details[open] > summary::before {
  content: "▾ ";
}

/* Map legend becomes a small collapsible key */
details.map-legend {
  padding: 0;
}

details.map-legend > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 0.85rem;
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #ffffff;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

details.map-legend > summary::-webkit-details-marker {
  display: none;
}

details.map-legend > summary::after {
  content: "▴";
  color: #fbbf24;
}

details.map-legend[open] > summary::after {
  content: "▾";
}

details.map-legend .legend-body {
  padding: 0 1rem 0.75rem 1rem;
}

/* Quieter hero action buttons */
.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.candidate-warning {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  color: #fed7aa;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.pro-locked-card {
  border: 1.5px dashed rgba(249, 115, 22, 0.5);
  background: rgba(20, 16, 12, 0.9);
}

/* Sidebar Search Box */
.sidebar-search-box {
  padding: 0.65rem 0.95rem;
  background: #0d1319;
  border-bottom: 1px solid var(--border-light);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 0.65rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.property-search-input {
  width: 100%;
  background: #090e13;
  color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.48rem 2rem 0.48rem 2.1rem;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all 0.15s ease;
}

.property-search-input:focus {
  outline: none;
  border-color: #f59e0b;
  background: #111a24;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.search-clear-btn:hover {
  color: #ffffff;
}

/* Hide mobile bottom sheet handle on desktop (but keep visible in Phone Simulator Mode) */
@media (min-width: 981px) {
  body:not(.phone-simulator-mode) .bottom-sheet-handle {
    display: none !important;
  }
}

/* Legal Modals (Privacy & Terms) — let .modal-dialog-card own vertical scrolling to avoid nested scroll traps on mobile */
.legal-modal-content {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 0.5rem 0;
}

.legal-modal-content h4 {
  color: #ffffff;
  font-size: 0.92rem;
  margin: 0.85rem 0 0.35rem 0;
}

.legal-modal-content p {
  margin-bottom: 0.6rem;
}

.legal-modal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}

.legal-modal-content li {
  margin-bottom: 0.25rem;
}

.legal-link-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.legal-link-btn:hover {
  color: #f59e0b;
}

/* Floating Map Camera Controls (Overview & Hyper Focus) */
.map-floating-bar {
  position: absolute;
  top: 12px;
  left: 55px; /* Leaves clear space for Leaflet zoom +/- controls */
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 19, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.3rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #2a3c4f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.map-floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #141f2a;
  color: #cbd5e1;
  border: 1px solid #2a3c4f;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.map-floating-pill:hover {
  background: #1e2e3d;
  color: #ffffff;
  border-color: #f59e0b;
}

.map-floating-pill.active-accent {
  background: rgba(245, 158, 11, 0.16);
  border-color: #f59e0b;
  color: #fbbf24;
}

.map-floating-pill.active-accent:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  color: #ffffff;
}

.map-mobile-only-pill {
  display: none;
}

body.phone-simulator-mode .map-mobile-only-pill {
  display: inline-flex;
}

.map-floating-pill.gps-searching {
  border-color: #38bdf8;
  color: #7dd3fc;
}

.map-floating-pill.gps-active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #e0f2fe;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.gps-user-dot-icon {
  background: transparent;
  border: none;
}

.gps-dot-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-dot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
  animation: gpsPulse 2s ease-out infinite;
}

.gps-dot-core {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ea5e9;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

@keyframes gpsPulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.map-floating-pill .pill-svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .map-mobile-only-pill {
    display: inline-flex;
  }
  .map-floating-bar {
    top: 10px;
    left: 54px;
    right: 10px;
    max-width: calc(100% - 64px);
    flex-wrap: wrap;
    border-radius: 14px;
    gap: 0.3rem;
  }
  .map-floating-pill {
    padding: 0.32rem 0.56rem;
    font-size: 0.7rem;
  }
}

/* =====================================================================
   MOBILE-FIRST EXPLORE & MORE TOOLS REDESIGN (MATCHING OFFICIAL MOCKUPS)
   ===================================================================== */
.mobile-status-pill-wrap {
  display: none;
}

.mobile-filter-bar {
  display: none;
}

.unit-card-header-row {
  display: none;
}

.unit-arrow {
  display: none;
}

.unit-card-sub {
  display: none;
}

.unit-card-status {
  display: none;
}

.unit-desktop-extras {
  display: block;
}

.more-tools-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.25rem 1rem 5.5rem 1rem;
}

.more-tools-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.more-tools-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.more-tools-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.more-tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #131d16;
  border: 1px solid #233427;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  user-select: none;
}

.more-tool-card:hover {
  background: #18261d;
  border-color: #4ade80;
  transform: translateY(-1px);
}

.more-tool-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.more-tool-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.more-tool-arrow {
  font-size: 1.25rem;
  color: #94a3b8;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.more-tool-card:hover .more-tool-arrow {
  transform: translateX(3px);
  color: #4ade80;
}

@media (max-width: 980px) {
  .mobile-status-pill-wrap {
    display: flex;
    justify-content: center;
    background: #070a08;
    padding-top: 0.35rem;
  }
  .mobile-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
  }
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #0d1510;
    border: 1px solid #233427;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    margin: 0.35rem 0 0.85rem 0;
  }
  .mobile-filter-summary {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-filter-toggle-btn {
    background: #17241a;
    border: 1px solid #2c4232;
    color: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
  }
  .mobile-filter-toggle-btn:hover {
    background: #203124;
    border-color: #4ade80;
  }
  .filter-bar {
    display: none !important;
    position: relative;
    z-index: 30;
  }
  .filter-bar.mobile-open {
    display: flex !important;
  }
  .unit-card {
    background: #131d16 !important;
    border: 1px solid #233427 !important;
    border-radius: 12px !important;
    padding: 0.95rem 1.1rem !important;
    margin-bottom: 0.65rem !important;
  }
  .unit-card:hover, .unit-card.selected {
    background: #18261d !important;
    border-color: #4ade80 !important;
  }
  .unit-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .unit-arrow {
    display: inline-block;
    font-size: 1.15rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
  }
  .unit-card:hover .unit-arrow {
    transform: translateX(3px);
    color: #4ade80;
  }
  .unit-card-sub {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0.3rem 0 0.2rem 0;
  }
  .unit-card-status {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #f59e0b;
  }
  .unit-card-status.official {
    color: #4ade80;
  }
  .unit-card-status.staff {
    color: #f59e0b;
  }
  .unit-desktop-extras {
    display: none;
  }
}

body.phone-simulator-mode .mobile-status-pill-wrap {
  display: flex;
  justify-content: center;
  background: #070a08;
  padding-top: 0.35rem;
  max-width: 430px;
  width: 100%;
  border-left: 2px solid #334155;
  border-right: 2px solid #334155;
}
body.phone-simulator-mode .mobile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
body.phone-simulator-mode .mobile-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #0d1510;
  border: 1px solid #233427;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  margin: 0.35rem 0 0.85rem 0;
}
body.phone-simulator-mode .mobile-filter-summary {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.phone-simulator-mode .mobile-filter-toggle-btn {
  background: #17241a;
  border: 1px solid #2c4232;
  color: #f1f5f9;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
body.phone-simulator-mode .mobile-filter-toggle-btn:hover {
  background: #203124;
  border-color: #4ade80;
}
body.phone-simulator-mode .filter-bar {
  display: none !important;
  position: relative;
  z-index: 30;
}
body.phone-simulator-mode .filter-bar.mobile-open {
  display: flex !important;
}
body.phone-simulator-mode .unit-card {
  background: #131d16 !important;
  border: 1px solid #233427 !important;
  border-radius: 12px !important;
  padding: 0.95rem 1.1rem !important;
  margin-bottom: 0.65rem !important;
}
body.phone-simulator-mode .unit-card:hover, body.phone-simulator-mode .unit-card.selected {
  background: #18261d !important;
  border-color: #4ade80 !important;
}
body.phone-simulator-mode .unit-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
body.phone-simulator-mode .unit-arrow {
  display: inline-block;
  font-size: 1.15rem;
  color: #94a3b8;
  transition: transform 0.15s ease;
}
body.phone-simulator-mode .unit-card:hover .unit-arrow {
  transform: translateX(3px);
  color: #4ade80;
}
body.phone-simulator-mode .unit-card-sub {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.3rem 0 0.2rem 0;
}
body.phone-simulator-mode .unit-card-status {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f59e0b;
}
body.phone-simulator-mode .unit-card-status.official {
  color: #4ade80;
}
body.phone-simulator-mode .unit-card-status.staff {
  color: #f59e0b;
}
body.phone-simulator-mode .unit-desktop-extras {
  display: none;
}

/* =====================================================================
   REVAMPED OPERATIONS & VERIFICATION COMMAND CENTER (#ops-view)
   ===================================================================== */
#ops-view {
  max-width: 1380px;
}

.ops-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.ops-topbar h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.ops-topbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ops-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.ops-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ops-kpi-card.alert-warn {
  border-color: rgba(234, 179, 8, 0.65);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08), var(--bg-card));
}

.ops-kpi-card.alert-info {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), var(--bg-card));
}

.ops-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}

.ops-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.ops-kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.ops-command-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.ops-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.ops-filter-tab {
  background: #0b1116;
  border: 1px solid var(--border-light);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ops-filter-tab:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.ops-filter-tab.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #e0f2fe;
}

.ops-report-card {
  padding: 0.9rem;
  background: #0b1116;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  font-size: 0.83rem;
}

.ops-report-card.pending {
  border-left: 3px solid #38bdf8;
}

.ops-report-card.contact {
  border-left: 3px solid #4ade80;
}

.ops-report-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ops-report-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.ops-note-input {
  flex: 1;
  min-width: 180px;
  background: #111921;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  color: #e2e8f0;
  padding: 0.38rem 0.6rem;
  font-size: 0.78rem;
}

.ops-stale-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: #0b1116;
  border: 1px solid rgba(234, 179, 8, 0.55);
  border-radius: 9px;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.ops-notice-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: #0b1116;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 9px;
  margin-bottom: 0.5rem;
  font-size: 0.81rem;
}

.ops-telemetry-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
}

.ops-telemetry-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b1116;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.ops-audit-item {
  padding: 0.6rem 0.75rem;
  background: #0b1116;
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.79rem;
}

.ops-audit-diff summary {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.73rem;
  margin-top: 0.3rem;
}

.ops-audit-diff pre {
  margin: 0.35rem 0 0 0;
  padding: 0.45rem;
  background: #070b0f;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.71rem;
  color: #cbd5e1;
}

@media (max-width: 1080px) {
  .ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ops-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FISHING & PUBLIC WATERS VIEW (RAMPS, DOCKS, FISH LIMITS & RESTRICTIONS)
   ========================================================= */
.fishing-view-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.fishing-lake-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.fishing-lake-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.65rem 0.8rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.fishing-lake-pill:hover {
  border-color: #06b6d4;
  background: #131d24;
}

.fishing-lake-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(15, 25, 32, 0.96) 100%);
  border-color: #22d3ee;
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.35), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.fishing-pill-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}

.fishing-pill-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.fishing-lake-pill.active .fishing-pill-meta {
  color: #67e8f9;
}

.fishing-hero-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(6, 182, 212, 0.45);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fishing-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.fishing-waterbody-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.fishing-solunar-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: #0b1319;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-left: 4px solid #06b6d4;
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.fishing-key-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.fishing-key-rule-box {
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.fishing-key-rule-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #22d3ee;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fishing-key-rule-body {
  font-size: 0.81rem;
  color: #cbd5e1;
  line-height: 1.48;
}

.fishing-section-block {
  margin-bottom: 1.45rem;
}

.fishing-section-header {
  margin-bottom: 0.75rem;
}

.fishing-section-header h3 {
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.fishing-section-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.fishing-ramps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 0.85rem;
}

.ramp-dock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ramp-dock-card:hover {
  border-color: #38bdf8;
}

.ramp-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.ramp-dock-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.ramp-dock-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ramp-dock-details {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.fishing-species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 0.85rem;
}

.fish-species-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid #06b6d4;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.fish-species-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.fish-species-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fish-rule-box {
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.fish-rule-line {
  font-size: 0.81rem;
  line-height: 1.45;
}

.fish-rule-label {
  color: #94a3b8;
  font-weight: 700;
  margin-right: 0.3rem;
}

.fish-rule-val {
  color: #22d3ee;
  font-weight: 800;
}

.fish-rule-spot {
  color: #e2e8f0;
}

.fishing-restrictions-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0.65rem 1.1rem;
}

.restriction-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: #e2e8f0;
  line-height: 1.5;
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
}

.restriction-bullet {
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 980px) {
  .fishing-key-rules-grid,
  .fishing-ramps-grid,
  .fishing-species-grid,
  .fishing-restrictions-card {
    grid-template-columns: 1fr !important;
  }
  .fishing-lake-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.35rem !important;
  }
  .fishing-lake-pills::-webkit-scrollbar {
    display: none !important;
  }
  .fishing-lake-pill {
    flex-shrink: 0 !important;
    min-width: 175px !important;
  }
}

body.phone-simulator-mode .fishing-key-rules-grid,
body.phone-simulator-mode .fishing-ramps-grid,
body.phone-simulator-mode .fishing-species-grid,
body.phone-simulator-mode .fishing-restrictions-card {
  grid-template-columns: 1fr !important;
}

body.phone-simulator-mode .fishing-lake-pills {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  padding-bottom: 0.35rem !important;
}

body.phone-simulator-mode .fishing-lake-pill {
  flex-shrink: 0 !important;
  min-width: 175px !important;
}

/* =========================================================
   FEEDBACK VISIBILITY, DECLUTTERED PLANNER & COLLAPSIBLE CARDS
   ========================================================= */
.nav-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  border-color: rgba(34, 211, 238, 0.45);
  color: #e0f2fe;
}

.nav-feedback-btn:hover {
  border-color: #22d3ee;
  color: #ffffff;
}

.contact-callout-card {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.16), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(34, 211, 238, 0.4);
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
  margin-bottom: 1rem;
}

.contact-callout-card h3 {
  margin: 0 0 0.35rem 0;
  color: #f8fafc;
  font-size: 1.04rem;
}

.contact-callout-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.overview-feedback-callout {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

/* Sidebar collapsible unit cards (desktop decluttering) */
.unit-card-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.82);
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.unit-card-expand-btn:hover,
.unit-card.card-expanded .unit-card-expand-btn,
.unit-card.selected .unit-card-expand-btn {
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
}

.unit-card-collapsible-details {
  display: none;
  margin-top: 0.45rem;
}

.unit-card.selected .unit-card-collapsible-details,
.unit-card.card-expanded .unit-card-collapsible-details {
  display: block;
}

/* Planner collapsible sections & gear cards */
.planner-collapsible > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
}

.planner-collapsible > summary::-webkit-details-marker {
  display: none;
}

.planner-fold-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.planner-collapsible[open] .planner-fold-hint .expand-icon,
.fishing-collapsible-section[open] > summary .expand-icon,
.fishing-collapsible-subfold[open] > summary .expand-icon,
.fishing-lake-accordion-card[open] > summary .expand-icon {
  display: inline-block;
  transform: rotate(90deg);
}

.planner-collapsible-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.planner-gear-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gear-item-row.gear-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: #0b1116;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.gear-item-main {
  flex: 1 1 240px;
  min-width: 0;
}

.gear-item-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gear-item-title {
  font-size: 0.9rem;
  color: #ffffff;
}

.gear-item-why {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0.32rem 0 0 0;
  line-height: 1.48;
}

.gear-item-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Fishing collapsible sections, all-lakes accordions & collapsible ramp cards */
.fishing-collapsible-section {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.fishing-collapsible-section > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.fishing-collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.fishing-collapsible-section > summary h3 {
  font-size: 1rem;
  color: #f8fafc;
  margin: 0 0 0.2rem 0;
}

.fishing-collapsible-section > summary p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.fishing-fold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-light);
  color: #38bdf8;
  flex-shrink: 0;
}

.fishing-collapsible-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.fishing-collapsible-subfold {
  margin-top: 0.85rem;
  background: #0b1116;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.fishing-collapsible-subfold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #e2e8f0;
}

.fishing-collapsible-subfold > summary::-webkit-details-marker {
  display: none;
}

.fishing-collapsible-subfold[open] .fishing-key-rules-grid {
  margin-top: 0.7rem;
}

.fishing-lake-accordion-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.65rem;
}

.fishing-lake-accordion-card {
  background: #0b1116;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.fishing-lake-accordion-card.active {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.fishing-lake-accordion-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fishing-lake-accordion-card > summary::-webkit-details-marker {
  display: none;
}

.fishing-lake-acc-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.fishing-lake-acc-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f8fafc;
}

.fishing-lake-acc-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}

.fishing-lake-accordion-body {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

.fishing-lake-acc-water {
  font-size: 0.84rem;
  font-weight: 800;
  color: #22d3ee;
  margin-bottom: 0.35rem;
}

.fishing-lake-acc-facts {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.fishing-lake-acc-species {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.fishing-lake-acc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.ramp-dock-toggle-head {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.ramp-dock-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.75);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
}

.ramp-dock-card-body {
  display: none;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}

.ramp-dock-card.expanded .ramp-dock-card-body {
  display: block;
}

.ramp-dock-card.expanded .ramp-dock-chevron {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
}

@media (max-width: 980px) {
  .nav-feedback-btn {
    display: inline-flex !important;
    padding: 0.28rem 0.5rem !important;
    font-size: 0.72rem !important;
  }
  .planner-entitlement-grid,
  .fishing-lake-accordion-list {
    grid-template-columns: 1fr !important;
  }
  .fishing-collapsible-section {
    padding: 0.72rem 0.8rem;
  }
}

body.phone-simulator-mode .planner-entitlement-grid,
body.phone-simulator-mode .fishing-lake-accordion-list {
  grid-template-columns: 1fr !important;
}

/* =====================================================================
   RESEND-INSPIRED VISUAL SYSTEM, LIVE HOME TELEMETRY, CLEAN FAQ & MOBILE SCROLL FIXES
   ===================================================================== */

/* 1. Bulletproof Flex & Touch Scrolling Across All Screens + Modals */
.app-shell {
  flex: 1 1 0%;
  min-height: 0;
}

.workspace,
.info-panel,
.unit-sidebar {
  min-height: 0;
}

.unit-list,
.modal-view,
#info-panel-content {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.unit-list,
.modal-view {
  overscroll-behavior-y: contain;
}

.unit-list {
  padding-bottom: 1.5rem;
}

.landing-hero {
  justify-content: flex-start;
  background: #000000;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
}

.landing-hero.hidden {
  visibility: hidden;
  pointer-events: none;
}

.video-bg-wrapper {
  background: #000000;
  pointer-events: none;
}

.hero-video {
  opacity: 0.45;
  filter: contrast(1.06) saturate(0.95);
}

.video-overlay-gradient {
  background: linear-gradient(
    180deg,
    rgba(6, 11, 8, 0.34) 0%,
    rgba(7, 13, 10, 0.2) 38%,
    rgba(6, 11, 8, 0.6) 80%,
    #070b09 100%
  );
}

.hero-radial-spotlight {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 120vw);
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(214, 235, 253, 0.14) 0%, rgba(245, 158, 11, 0.06) 40%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(214, 235, 253, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 235, 253, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 80%);
}

.modal-backdrop {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  padding: max(1rem, env(safe-area-inset-top)) 0.75rem max(2rem, env(safe-area-inset-bottom));
}

.modal-dialog-card {
  margin: auto;
  max-width: min(560px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #07090d;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88);
}

/* 2. Resend-Style Editorial Hero, Surfaces & Luminous Controls */
.hero-eyebrow {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: #e4e4e7;
  font-family: var(--font-mono-code);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-headline {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-serif-accent {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 15%, #bae6fd 65%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  color: #a1a1aa;
  font-size: 1.04rem;
  line-height: 1.6;
}

.enter-map-primary-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.92rem 1.7rem;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 32px rgba(255, 255, 255, 0.14);
}

.enter-map-primary-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 16px 40px rgba(255, 255, 255, 0.22);
}

.skip-to-map-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: #e4e4e7;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
}

.skip-to-map-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.quick-jump-pills button {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-light);
  color: #e4e4e7;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
}

.quick-jump-pills button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  color: #ffffff;
}

.hero-stats-row {
  border-top: 1px solid var(--border-subtle);
}

.landing-auth-card {
  background: rgba(7, 9, 13, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-tabs {
  background: #030406;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.auth-tab {
  border-radius: 999px;
  font-weight: 600;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.auth-submit-btn {
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  font-weight: 700;
}

.auth-submit-btn:hover {
  background: #e4e4e7;
}

.auth-divider span {
  background: #07090d;
}

.guest-bypass-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-weight: 600;
}

.guest-bypass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #ffffff;
}

/* 3. Live Interactive Homepage Field Console */
.landing-live-band {
  max-width: 1320px;
  width: 100%;
  margin: 0.75rem auto 0 auto;
}

.hero-live-console {
  background: rgba(6, 9, 13, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-live-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.hero-live-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono-code);
  font-size: 0.68rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  letter-spacing: 0.04em;
}

.hero-live-filename {
  font-family: var(--font-mono-code);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hero-live-clock {
  font-family: var(--font-mono-code);
  font-size: 0.75rem;
  color: #e4e4e7;
  font-weight: 600;
}

.hero-live-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 0.85rem 0 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-live-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-live-tab:hover {
  color: #ffffff;
}

.hero-live-tab.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.hero-live-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
}

.hero-live-code {
  background: #030406;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}

.hero-live-code pre {
  margin: 0;
  font-family: var(--font-mono-code);
  font-size: 0.76rem;
  line-height: 1.6;
  color: #d4d4d8;
}

.hl-key { color: #7dd3fc; }
.hl-str { color: #86efac; }
.hl-num { color: #fbbf24; }

.hero-live-preview-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-live-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.hero-live-drive {
  font-family: var(--font-mono-code);
  font-size: 0.73rem;
  color: #cbd5e1;
}

.hero-live-preview-card h4 {
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.hero-live-gate-line {
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.4;
}

.hero-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* 4. Resend Frosted Header, Nav Pills & Cards */
.top-nav {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.nav-center {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-light);
  border-radius: 999px;
}

.tab-btn {
  border-radius: 999px;
  font-weight: 600;
  color: #a1a1aa;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.shooting-light-bar,
.phone-preview-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: #e4e4e7;
  border-radius: 999px;
  font-weight: 600;
}

.shooting-light-bar:hover,
.phone-preview-btn:hover,
.phone-preview-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-strong);
}

.pro-cta-btn {
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  font-weight: 700;
}

.pro-cta-btn:hover {
  background: #e4e4e7;
}

.filter-bar,
.sidebar-header {
  background: #040608;
  border-color: var(--border-subtle);
}

.unit-card,
.zone-hero-card,
.gate-card,
.planner-card,
.fishing-hero-card,
.ramp-dock-card,
.fish-species-card,
.more-tool-card,
.cal-board-card,
.aws-metric-box,
.ops-kpi-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-light);
}

.unit-card:hover,
.more-tool-card:hover,
.gate-card:hover,
.ramp-dock-card:hover {
  border-color: var(--border-strong);
}

.mobile-bottom-nav {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
}

.m-nav-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-light);
}

/* 5. Clean, Uncrowded "Help & Questions" (#newbie-view) */
.newbie-shell {
  max-width: 820px;
  margin: 0 auto;
}

.newbie-header-clean {
  margin-bottom: 1.1rem;
}

.newbie-header-clean h2 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.faq-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.faq-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.faq-search-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.faq-search-wrap .property-search-input {
  padding-left: 2.35rem;
}

.official-resources-strip {
  margin-bottom: 1.1rem;
}

.official-res-label {
  font-family: var(--font-mono-code);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.official-res-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.official-res-card {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.official-res-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.055);
}

.official-res-card strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.official-res-card span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.faq-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.faq-topic-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: #d4d4d8;
  border-radius: 999px;
  padding: 0.34rem 0.78rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.faq-topic-pill:hover {
  border-color: var(--border-strong);
  color: #ffffff;
}

.faq-topic-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

#faq-grid.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.faq-card.faq-accordion {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-card.faq-accordion[open] {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.faq-card.faq-accordion.faq-hidden {
  display: none;
}

.faq-card.faq-accordion > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.faq-card.faq-accordion > summary::-webkit-details-marker {
  display: none;
}

.faq-card.faq-accordion[open] > summary .expand-icon {
  display: inline-block;
  transform: rotate(90deg);
}

.faq-q-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.faq-num-badge {
  font-family: var(--font-mono-code);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 0.2rem 0.45rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-topic-tag {
  display: inline-block;
  font-family: var(--font-mono-code);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7dd3fc;
  margin-bottom: 0.18rem;
}

.faq-question-text {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.38;
}

.faq-answer-body {
  padding: 0.8rem 1rem 1rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-answer-body p {
  color: #d4d4d8;
  font-size: 0.88rem;
  line-height: 1.62;
  margin: 0;
}

.faq-empty-state {
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.trust-footer-box.trust-collapsible {
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.trust-footer-box.trust-collapsible > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #e4e4e7;
}

.trust-footer-box.trust-collapsible > summary::-webkit-details-marker {
  display: none;
}

.trust-footer-box.trust-collapsible[open] .expand-icon {
  display: inline-block;
  transform: rotate(90deg);
}

.trust-collapsible-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.legal-links-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.35rem 0 1.25rem 0;
}

/* 6. Mobile & Simulator Fixes */
@media (max-width: 980px) {
  .workspace {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .info-panel.bottom-sheet-hidden {
    visibility: hidden;
    pointer-events: none;
  }

  .hero-live-body {
    grid-template-columns: 1fr;
  }

  .landing-content-grid {
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .form-field input,
  .form-field textarea,
  .property-search-input {
    font-size: 16px !important;
  }

  html.mobile-scroll-page,
  body.mobile-scroll-page {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  body.landing-scroll-active:not(.phone-simulator-mode) .top-nav,
  body.landing-scroll-active:not(.phone-simulator-mode) .filter-bar,
  body.landing-scroll-active:not(.phone-simulator-mode) .app-shell {
    display: none !important;
  }

  body.landing-scroll-active:not(.phone-simulator-mode) .landing-hero:not(.hidden) {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    min-height: 100dvh;
    height: auto !important;
    overflow: visible !important;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(3rem, env(safe-area-inset-bottom)) 1rem !important;
  }

  body.mobile-doc-scroll:not(.phone-simulator-mode) .top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  body.mobile-doc-scroll:not(.phone-simulator-mode) .app-shell {
    flex: none !important;
    height: auto !important;
    min-height: calc(100dvh - 54px);
    overflow: visible !important;
  }

  body.mobile-doc-scroll:not(.phone-simulator-mode) .modal-view.active,
  body.mobile-doc-scroll:not(.phone-simulator-mode) #calendar-view.active {
    flex: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    padding: 0.85rem 0.75rem calc(5.5rem + env(safe-area-inset-bottom)) 0.75rem !important;
  }

  body.mobile-doc-scroll:not(.phone-simulator-mode) .mobile-bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
  }

  .unit-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-light) !important;
  }

  .unit-card:hover,
  .unit-card.selected {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--border-strong) !important;
  }
}

body.phone-simulator-mode .workspace {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: auto !important;
}

body.phone-simulator-mode .hero-live-body {
  grid-template-columns: 1fr !important;
}

/* 7. GUI Polish Pass: Single-Line Chrome, Hero Live Showcase, 2x2 Metrics & Zero Clipping */
.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-signin-top-btn {
  background: transparent;
}

.landing-content-grid {
  grid-template-columns: 1.06fr 1fr;
  gap: 2.5rem;
  padding: 1.35rem 0 1.85rem 0;
}

.landing-right-showcase {
  min-width: 0;
}

.landing-right-showcase .hero-live-body {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0.85rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: #e4e4e7;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #ffffff;
}

.top-nav {
  padding: max(0.52rem, env(safe-area-inset-top)) 1.05rem 0.52rem 1.05rem;
  gap: 0.65rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  box-shadow: none;
}

.brand-state {
  color: #fbbf24;
}

.shooting-light-bar {
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  gap: 0.38rem;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.shooting-light-bar .light-rule-tag {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-center {
  padding: 0.2rem;
  gap: 0.16rem;
  flex-shrink: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  white-space: nowrap;
  padding: 0.36rem 0.64rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.nav-icon {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-right {
  gap: 0.45rem;
  flex-shrink: 0;
}

.phone-preview-btn,
.pro-cta-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.76rem;
  padding: 0.38rem 0.78rem;
}

.pro-cta-btn.signed-in {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.42);
}

@media (max-width: 1220px) {
  .shooting-light-bar {
    display: none;
  }
}

.filter-bar {
  padding: 0.42rem 1rem;
  gap: 0.6rem;
}

.species-pills-group {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.sp-pill {
  padding: 0.24rem 0.56rem;
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
}

.sp-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.filter-select,
.filter-date-input {
  font-size: 0.74rem;
  padding: 0.24rem 0.48rem;
  background: #0d1218;
  color: #f4f4f5;
  border: 1px solid var(--border-light);
  color-scheme: dark;
}

.filter-bar .filter-select {
  max-width: 150px;
}

select,
select.filter-select {
  color-scheme: dark;
}

select option,
select optgroup,
.filter-select option,
.filter-select optgroup {
  background-color: #0d1218;
  color: #f8fafc;
}

.form-field select.filter-select,
.planner-card select.filter-select,
.modal-dialog select.filter-select,
.ops-portal-card select.filter-select {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  padding: 0.5rem 0.72rem;
  font-size: 0.86rem;
  font-weight: 600;
  background: #0b1116;
  color: #ffffff;
  border: 1.5px solid #263849;
  border-radius: 10px;
}

.form-field select.filter-select:focus,
.planner-card select.filter-select:focus,
.modal-dialog select.filter-select:focus {
  border-color: #38bdf8;
}

.calendar-controls-bar select.filter-select,
.hunt-mode-top-bar select.filter-select {
  max-width: 280px;
  min-height: 34px;
  height: auto;
  padding: 0.34rem 0.6rem;
}

#hunt-mode-view.stealth-red-mode select option {
  background-color: #0a0202;
  color: #fca5a5;
}

.workspace {
  grid-template-columns: var(--info-panel-width, 460px) minmax(0, 1fr) 340px;
}

.workspace.desktop-guide-collapsed {
  grid-template-columns: 0px minmax(0, 1fr) 340px;
}

.map-container {
  overflow: hidden;
}

.map-floating-bar {
  left: 52px;
  max-width: calc(100% - 64px);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(5, 7, 10, 0.88);
  border: 1px solid var(--border-light);
  padding: 0.24rem 0.34rem;
  gap: 0.28rem;
}

.map-floating-bar::-webkit-scrollbar {
  display: none;
}

.map-floating-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #e4e4e7;
  padding: 0.3rem 0.62rem;
  font-size: 0.72rem;
}

.map-floating-pill.active-accent {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
  color: #ffffff;
}

.dfw-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(5, 7, 10, 0.88);
  color: #d4d4d8;
  border: 1px solid var(--border-strong);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono-code);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.dfw-origin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
}

.aws-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.unit-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.unit-action-grid .gate-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-light);
  color: #e4e4e7;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.74rem;
  line-height: 1.25;
  padding: 0.5rem 0.6rem;
  text-align: center;
  min-width: 0;
}

.unit-action-grid .gate-mini-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.unit-action-grid .gate-mini-btn.primary {
  grid-column: 1 / -1;
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

.unit-action-grid .gate-mini-btn.primary:hover {
  background: #e4e4e7;
}

.unit-desktop-extras .drive-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-family: var(--font-mono-code);
  font-size: 0.68rem;
}

.unit-card.selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
}

.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.landing-topbar-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .landing-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 980px) {
  .landing-topbar-actions {
    gap: 6px;
  }
  .landing-topbar-btn {
    padding: 0.38rem 0.68rem;
    font-size: 0.76rem;
    line-height: 1.2;
  }
  .official-res-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .hero-stat-num {
    font-size: 1.08rem;
    white-space: nowrap;
  }
  .stat-divider {
    display: none;
  }
  .map-floating-bar {
    top: 10px;
    left: 44px;
    right: 6px;
    max-width: calc(100% - 50px);
    gap: 3px;
    padding: 3px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 999px;
  }
  .map-floating-bar .map-float-btn {
    padding: 0.3rem 0.44rem;
    font-size: 0.69rem;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .map-floating-bar .map-float-btn svg {
    width: 12px;
    height: 12px;
  }
}


/* ==========================================================================
   WOODLAND HERO ATMOSPHERE, EDITORIAL TRUST SECTIONS, MOBILE & A11Y OVERHAUL
   ========================================================================== */

/* Visible Keyboard Focus Across Interactive Controls */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Landing Hero — Brighter Woodland Photograph + Localized Text Scrim */
html.landing-scroll-active {
  overflow-y: auto !important;
  overflow-x: clip !important;
  overscroll-behavior-y: auto !important;
  height: auto !important;
  min-height: 100dvh !important;
}

body.landing-scroll-active {
  display: block !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 100dvh !important;
}

body.landing-scroll-active:not(.phone-simulator-mode) .top-nav,
body.landing-scroll-active:not(.phone-simulator-mode) .filter-bar,
body.landing-scroll-active:not(.phone-simulator-mode) .app-shell {
  display: none !important;
}

body.landing-scroll-active:not(.phone-simulator-mode) .landing-hero:not(.hidden) {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100dvh;
  overflow-y: visible;
  overflow-x: clip;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 981px) {
  body.landing-scroll-active:not(.phone-simulator-mode) .landing-content-grid {
    min-height: calc(100dvh - 115px);
    align-items: center;
    padding: 2rem 0 3rem;
  }
}

.landing-hero {
  background: #070b09;
  color: #f4f4f5;
  overflow-x: clip;
}

.landing-hero .video-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(640px, 100dvh, 1060px);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-woodland-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-woodland-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
  opacity: 0.78;
  filter: contrast(1.04) saturate(1.02) brightness(0.95);
  display: block;
}

.hero-text-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 10, 8, 0.88) 0%,
      rgba(6, 10, 8, 0.72) 42%,
      rgba(6, 10, 8, 0.18) 72%,
      rgba(6, 10, 8, 0.06) 100%
    ),
    linear-gradient(180deg, rgba(6, 10, 8, 0.42) 0%, transparent 24%, rgba(7, 11, 9, 0.88) 92%, #070b09 100%);
  pointer-events: none;
}

.landing-hero .hero-radial-spotlight {
  background: radial-gradient(
    ellipse 55% 45% at 72% 24%,
    rgba(234, 88, 12, 0.13) 0%,
    rgba(22, 101, 52, 0.14) 50%,
    transparent 78%
  );
}

.landing-topbar,
.landing-content-grid,
.landing-below-fold,
.landing-editorial-footer {
  position: relative;
  z-index: 2;
}

.hero-headline .hero-serif-accent {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 55%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.35rem;
}

.hero-cta-row .enter-map-primary-btn {
  margin: 0;
  min-height: 46px;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  background: rgba(11, 17, 14, 0.74);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hero-secondary-btn:hover {
  background: rgba(24, 34, 28, 0.9);
  border-color: rgba(251, 191, 36, 0.55);
  color: #ffffff;
}

/* Editorial Below-the-Fold Sections & Trust Architecture */
.landing-below-fold {
  max-width: 1240px;
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 2rem clamp(1rem, 3vw, 2rem) 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.landing-editorial-section {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.editorial-section-head {
  max-width: 720px;
}

.editorial-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.35rem;
}

.editorial-section-head h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.editorial-section-head p {
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.editorial-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.editorial-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.editorial-card {
  background: rgba(13, 19, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.editorial-step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f59e0b;
}

.editorial-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.editorial-card p {
  font-size: 0.86rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

.landing-editorial-footer {
  max-width: 1240px;
  width: 100%;
  margin: 1rem auto 0;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.landing-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.landing-footer-left strong {
  color: #f4f4f5;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Separated 3-Row Provenance Strip inside Property Sheet */
.provenance-trust-strip {
  background: rgba(11, 17, 14, 0.92);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.provenance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.24rem 0.5rem;
  font-size: 0.76rem;
  line-height: 1.4;
}

.provenance-domain {
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  min-width: 62px;
}

.provenance-state {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.provenance-state.state-good {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.provenance-state.state-warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.provenance-detail {
  flex: 1 0 100%;
  color: #94a3b8;
  overflow-wrap: anywhere;
}

.provenance-freshness-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.42rem;
  margin-top: 0.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

.provenance-freshness-meta strong {
  color: #e2e8f0;
}

.species-conditional-note {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border-left: 2.5px solid #f59e0b;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.panel-fold {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(15, 21, 18, 0.75);
}

.panel-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  list-style: none;
}

.panel-fold-summary::-webkit-details-marker {
  display: none;
}

.panel-fold-body {
  padding: 0 0.8rem 0.75rem;
}

/* Header Mobile Saved Shortcut & Back Results */
.mobile-header-saved-btn,
.mobile-only-back-btn,
.map-mobile-only-pill {
  display: none;
}

/* Map Tile Status Banner & Docked Selected Gate Bar */
.map-tile-status-banner {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1005;
  max-width: min(92%, 520px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: rgba(18, 14, 7, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.map-selected-gate-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  width: min(92%, 540px);
  background: rgba(10, 15, 13, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.map-gate-bar-info {
  min-width: 0;
  flex: 1;
}

.map-gate-bar-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-gate-bar-sub {
  font-size: 0.73rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.map-gate-conf-pill {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.map-gate-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Dedicated Accessible Mobile Filter Dialog */
.filter-dialog-card {
  width: min(94vw, 460px);
  max-height: min(90dvh, 720px);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
  gap: 0.75rem;
}

.modal-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.modal-dialog-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.filter-dialog-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 0.15rem;
}

.filter-dialog-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.15rem;
}

.dlg-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.dlg-species-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.dlg-species-pills .sp-pill {
  min-height: 44px;
  justify-content: flex-start;
}

.filter-dialog-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

#mobile-filter-modal-backdrop select.filter-select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
}

.filter-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.7rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.filter-dialog-footer .gate-mini-btn {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
}

/* Tablet Breakpoint Adjustments */
@media (max-width: 1024px) {
  .editorial-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editorial-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Layout, Safe Areas & >= 44x44 CSS Touch Targets */
@media (max-width: 980px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .landing-hero .video-bg-wrapper {
    height: clamp(560px, 92dvh, 860px);
  }

  .hero-woodland-img {
    object-position: 54% 28%;
    opacity: 0.72;
  }

  .hero-text-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(6, 10, 8, 0.56) 0%,
        rgba(6, 10, 8, 0.76) 36%,
        rgba(6, 10, 8, 0.84) 72%,
        #070b09 100%
      );
  }

  .editorial-step-grid,
  .editorial-trust-grid {
    grid-template-columns: 1fr;
  }

  .filter-dialog-two-col {
    grid-template-columns: 1fr;
  }

  .top-nav {
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
    gap: 0.35rem;
  }

  .top-nav .nav-right {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .top-nav .nav-account-btn,
  #user-account-btn {
    padding: 0 0.72rem;
    min-height: 44px;
    min-width: 44px;
    white-space: nowrap;
  }

  .mobile-header-saved-btn,
  .mobile-only-back-btn,
  .map-mobile-only-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header-saved-btn,
  .mobile-back-home-btn,
  .nav-account-btn,
  .mobile-filter-toggle-btn,
  .bottom-tab-btn,
  .back-overview-btn,
  .gate-mini-btn,
  .modal-close-btn,
  .info-i-btn,
  .map-float-btn,
  .layer-btn,
  .sp-pill {
    min-height: 44px;
    min-width: 44px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  select.filter-select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .mobile-bottom-nav {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  #btn-mobile-back-results {
    position: absolute;
    top: 56px;
    left: 54px;
    z-index: 1004;
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(10, 15, 13, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  }

  .mobile-header-saved-btn {
    padding: 0 0.65rem;
    font-size: 0.76rem;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .map-tile-status-banner {
    top: 106px;
    z-index: 1006;
  }

  .map-selected-gate-bar {
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    width: calc(100% - 16px);
    padding: 0.55rem 0.65rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .workspace:has(.info-panel.bottom-sheet-hidden) .map-selected-gate-bar {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .workspace:has(.info-panel:not(.bottom-sheet-hidden):not(.bottom-sheet-peek)) .map-selected-gate-bar {
    display: none !important;
  }

  .map-gate-bar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-gate-bar-actions .gate-mini-btn {
    justify-content: center;
    text-align: center;
  }

  .provenance-row {
    gap: 0.2rem 0.45rem;
  }
}

/* Open On-Screen Keyboard (Short Viewport Height) */
@media (max-width: 980px) and (max-height: 520px) {
  body:has(input:focus, textarea:focus, select:focus) .mobile-bottom-nav,
  body:has(input:focus, textarea:focus, select:focus) .map-selected-gate-bar {
    display: none !important;
  }

  .filter-dialog-card,
  .modal-dialog-card {
    max-height: 94dvh;
  }
}

/* Landscape Phone Orientation */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  .top-nav {
    height: 48px;
  }

  .mobile-bottom-nav {
    height: calc(50px + env(safe-area-inset-bottom, 0px));
  }

  .info-panel.bottom-sheet-peek,
  .info-panel.bottom-sheet-peek .bottom-sheet-handle {
    height: 48px;
    min-height: 48px;
  }

  .map-tile-status-banner {
    top: 52px;
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

  #btn-mobile-back-results {
    top: 52px;
  }

  .map-selected-gate-bar {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    flex-direction: row;
    align-items: center;
    padding: 0.4rem 0.65rem;
  }

  .workspace:has(.info-panel.bottom-sheet-hidden) .map-selected-gate-bar {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .map-gate-bar-actions {
    width: auto;
    display: flex;
  }

  .landing-content-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    padding-top: 0.75rem;
  }
}

/* Compact Narrow Phones (<=540px): Hide duplicate Feedback header button (stays in More tab) to prevent right-edge clipping */
@media (max-width: 540px) {
  .top-nav #nav-feedback-btn.nav-feedback-btn,
  #nav-feedback-btn {
    display: none !important;
  }

  .top-nav .brand-logo {
    width: 32px;
    height: 32px;
  }

  .top-nav h1 {
    font-size: 1.02rem;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Desktop left-panel flex scrolling fix so wheel events scroll #info-panel-content */
@media (min-width: 981px) {
  body:not(.phone-simulator-mode) .workspace {
    grid-template-rows: minmax(0, 1fr);
  }

  body:not(.phone-simulator-mode) .info-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  body:not(.phone-simulator-mode) .info-panel .mobile-sheet-drag-header,
  body:not(.phone-simulator-mode) .info-panel .mobile-return-results-bar {
    flex-shrink: 0;
  }

  body:not(.phone-simulator-mode) .info-panel #info-panel-content {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
    padding: 1.1rem;
  }
}

/* Roadside & Designated Parking Callout */
.parking-rule-callout {
  margin: 0.65rem 0 0.85rem 0;
  padding: 0.72rem 0.82rem;
  border-radius: 9px;
  border: 1px solid rgba(74, 222, 128, 0.34);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.22), rgba(15, 23, 42, 0.68));
}

.parking-rule-callout.parking-rule-designated {
  border-color: rgba(251, 191, 36, 0.36);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.2), rgba(15, 23, 42, 0.68));
}

.parking-rule-callout.parking-rule-dual {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.22), rgba(15, 23, 42, 0.68));
}

.parking-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.38rem;
}

.parking-rule-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.parking-rule-badge {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.45);
  color: #bbf7d0;
}

.parking-rule-designated .parking-rule-badge {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(146, 64, 14, 0.4);
  color: #fde68a;
}

.parking-rule-dual .parking-rule-badge {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(7, 89, 133, 0.4);
  color: #bae6fd;
}

.parking-rule-summary {
  margin: 0 0 0.42rem 0;
  font-size: 0.77rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.parking-rule-reqs {
  margin: 0 0 0.42rem 0;
  padding-left: 1rem;
  font-size: 0.73rem;
  line-height: 1.42;
  color: #cbd5e1;
}

.parking-rule-reqs li {
  margin-bottom: 0.18rem;
}

.parking-rule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: #94a3b8;
}

.parking-rule-link {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
}

.parking-rule-link:hover {
  text-decoration: underline;
}

/* Clean Landing Hero Preview Card (No JSON Code Clutter) */
.hero-preview-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.hero-preview-facts {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.68rem 0.78rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-preview-fact {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  font-size: 0.79rem;
  line-height: 1.38;
}

.hero-preview-fact .fact-k {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.hero-preview-fact .fact-v {
  color: #f1f5f9;
  font-weight: 600;
}

/* Bottom Map Sources & Verification Card */
.provenance-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

/* Non-Gate Parking Action Row & Collapsible Corridor List */
.parking-rule-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.parking-no-extra-note {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #cbd5e1;
  flex: 1 1 210px;
}

.parking-extra-fold {
  margin-top: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 14, 18, 0.72);
  overflow: hidden;
}

.parking-extra-fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.72rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  user-select: none;
}

.parking-extra-fold > summary::-webkit-details-marker {
  display: none;
}

.parking-extra-fold > summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.parking-extra-fold[open] > summary .expand-icon {
  transform: rotate(180deg);
}

.parking-extra-body {
  padding: 0 0.72rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  max-height: 360px;
  overflow-y: auto;
}

.non-gate-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.non-gate-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.non-gate-item {
  padding: 0.52rem 0.62rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.non-gate-item.active {
  border-color: #fde047;
  background: rgba(250, 204, 21, 0.08);
}

.non-gate-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.non-gate-item-name {
  font-size: 0.79rem;
  font-weight: 700;
  color: #f8fafc;
}

.non-gate-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.non-gate-badge.lot {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
}

.non-gate-badge.road {
  background: rgba(14, 165, 233, 0.16);
  border: 1px dashed rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}

.non-gate-item-note {
  font-size: 0.74rem;
  line-height: 1.38;
  color: #cbd5e1;
}

.non-gate-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
