/* ==========================================================================
   LOUISIANA NORTHSHORE 3D EXPEDITION — STYLESHEET
   Built with Three.js, Blender 5.2 GLB Assets & Scrollytelling CSS
   ========================================================================== */

:root {
  --bg-deep: #06100d;
  --bg-card: rgba(9, 22, 18, 0.78);
  --bg-card-hover: rgba(13, 31, 25, 0.88);
  --border-subtle: rgba(176, 206, 185, 0.18);
  --border-gold: rgba(232, 168, 75, 0.45);
  --text-primary: #f4f1ea;
  --text-secondary: #b9c8be;
  --text-muted: #7e9486;
  --accent-gold: #e8a84b;
  --accent-amber: #f59e0b;
  --accent-emerald: #2dd4bf;
  --accent-crimson: #f43f5e;
  --accent-moss: #84a98c;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-glass: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  selection-background-color: var(--accent-gold);
}

::selection {
  background: rgba(232, 168, 75, 0.3);
  color: #fff;
}

/* --------------------------------------------------------------------------
   FIXED 3D CANVAS & OVERLAYS
   -------------------------------------------------------------------------- */
#webgl-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#webgl-container.inspect-active {
  z-index: 20; /* Place inspect canvas above parish cards so drag-to-orbit receives events. */
  pointer-events: auto;
  cursor: grab;
}

#webgl-container.inspect-active:active {
  cursor: grabbing;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 48%,
    rgba(4, 11, 9, 0.55) 85%,
    rgba(3, 8, 6, 0.88) 100%
  );
}

/* --------------------------------------------------------------------------
   3D HOTSPOT MARKERS (Projected from 3D Blender Models)
   -------------------------------------------------------------------------- */
#hotspot-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 20, 16, 0.88);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(232, 168, 75, 0.22);
  border-color: var(--accent-gold);
}

.hotspot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.65; }
}

/* --------------------------------------------------------------------------
   TOP EXPEDITION TELEMETRY HUD
   -------------------------------------------------------------------------- */
.expedition-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(5, 13, 10, 0.9) 0%, rgba(5, 13, 10, 0.45) 75%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(176, 206, 185, 0.1);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-compass-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  color: var(--accent-gold);
  background: rgba(232, 168, 75, 0.1);
  font-size: 1.1rem;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(8, 20, 16, 0.72);
  border: 1px solid var(--border-subtle);
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.telemetry-label {
  color: var(--text-muted);
}

.telemetry-val {
  color: var(--accent-emerald);
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lighting-switcher {
  display: flex;
  background: rgba(8, 20, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.light-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.light-btn.active {
  background: var(--accent-gold);
  color: #07120e;
  font-weight: 700;
}

.pass-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 168, 75, 0.16);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pass-btn:hover {
  background: rgba(232, 168, 75, 0.3);
  transform: translateY(-1px);
}

.pass-count {
  background: var(--accent-gold);
  color: #081410;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Progress bar at top edge */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 40;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-emerald));
  box-shadow: 0 0 12px var(--accent-gold);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   RIGHT SIDE INTERACTIVE PARISH COMPASS & WAYPOINTS
   -------------------------------------------------------------------------- */
.parish-compass-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(7, 17, 14, 0.76);
  border: 1px solid var(--border-subtle);
  padding: 14px 10px;
  border-radius: 28px;
  backdrop-filter: blur(12px);
}

.compass-waypoint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.waypoint-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: transparent;
  transition: all 0.3s ease;
}

.compass-waypoint.active .waypoint-dot {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
  transform: scale(1.3);
}

.waypoint-tooltip {
  position: absolute;
  right: 34px;
  background: rgba(9, 22, 18, 0.92);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: all 0.2s ease;
}

.compass-waypoint:hover .waypoint-tooltip,
.compass-waypoint.active .waypoint-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   INSPECT 3D DIORAMA FLOATING BANNER
   -------------------------------------------------------------------------- */
#inspect-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(8, 20, 16, 0.92);
  border: 1px solid var(--accent-gold);
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#inspect-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.inspect-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.exit-inspect-btn {
  background: var(--accent-gold);
  color: #06100d;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.exit-inspect-btn:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   SCROLLYTELLING CONTENT STREAM
   -------------------------------------------------------------------------- */
main.tour-stream {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.tour-section {
  min-height: 118vh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px 5vw 80px;
  display: flex;
  align-items: center;
}

.tour-section.align-left {
  justify-content: flex-start;
}

.tour-section.align-right {
  justify-content: flex-end;
}

.tour-section.align-center {
  justify-content: center;
  text-align: center;
}

/* Hero Gateway Section */
.hero-card {
  pointer-events: auto;
  max-width: 820px;
  background: linear-gradient(155deg, rgba(9, 23, 18, 0.84) 0%, rgba(6, 15, 12, 0.92) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 28px;
  padding: 48px 52px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
}

.republic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 168, 75, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f3dec0 55%, #e8a84b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-gold), #d9822b);
  color: #07120e;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(232, 168, 75, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-tour-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(232, 168, 75, 0.5);
}

/* --------------------------------------------------------------------------
   PARISH EDITORIAL DOSSIER CARDS
   -------------------------------------------------------------------------- */
.parish-card {
  pointer-events: auto;
  width: 100%;
  max-width: 610px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 36px 38px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
  transition: border-color 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

.parish-card:hover {
  border-color: var(--border-gold);
}

.parish-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.stop-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.coords-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}

.parish-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.parish-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.etymology-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-gold);
  padding: 11px 15px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.etymology-banner strong {
  color: var(--text-primary);
}

.parish-narrative {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.parish-narrative p + p {
  margin-top: 12px;
}

/* Blender 3D Asset Callout Bar */
.blender-diorama-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(232, 168, 75, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 22px;
}

.diorama-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diorama-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diorama-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.inspect-3d-btn {
  background: var(--accent-gold);
  color: #06100d;
  border: none;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inspect-3d-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 168, 75, 0.4);
}

/* 3-Tab Explorer inside each Parish Card */
.parish-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.tab-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-trigger:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.tab-trigger.active {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--accent-emerald);
}

.tab-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Attractions List */
.landmark-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landmark-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.landmark-item:hover {
  border-color: rgba(232, 168, 75, 0.4);
}

.landmark-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.landmark-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.bookmark-stop-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bookmark-stop-btn:hover,
.bookmark-stop-btn.saved {
  background: rgba(45, 212, 191, 0.2);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.landmark-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Curiosity Reveal Cards */
.curiosity-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.curiosity-box {
  background: rgba(232, 168, 75, 0.06);
  border: 1px solid rgba(232, 168, 75, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.curiosity-box:hover {
  background: rgba(232, 168, 75, 0.12);
}

.curiosity-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.curiosity-a {
  margin-top: 9px;
  font-size: 0.86rem;
  color: var(--text-primary);
  border-top: 1px dashed rgba(232, 168, 75, 0.25);
  padding-top: 9px;
}

/* Field Guide Grid */
.field-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guide-stat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px;
}

.guide-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.guide-stat-val {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ROADTRIP PASS MODAL DRAWER
   -------------------------------------------------------------------------- */
.pass-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 8, 6, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: flex-end;
}

.pass-drawer-backdrop.open {
  display: flex;
}

.pass-drawer {
  width: 100%;
  max-width: 440px;
  background: #081511;
  border-left: 1px solid var(--border-gold);
  height: 100vh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent-gold);
}

.close-drawer-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.saved-list {
  flex: 1;
  overflow-y: auto;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saved-stop-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .telemetry-bar {
    display: none;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .parish-compass-nav {
    right: 10px;
    padding: 10px 6px;
  }
  .parish-card, .hero-card {
    padding: 26px 22px;
  }
}
