/* ==========================================================================
   CAROLINA SPLASH MOB - STYLING & DESIGN SYSTEM
   ========================================================================== */

/* --- Community planning features --- */
.guide-section, .launch-section { padding: 88px 0; }
.guide-section { background: linear-gradient(145deg, rgba(0,190,197,.06), transparent); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.launch-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.guide-card { border: 1px solid var(--color-border); border-radius: 24px; padding: 30px; background: var(--color-bg-card); }
.guide-card h3 { font-size: 1.5rem; margin: 14px 0; }
.guide-card p, .guide-faq p { color: var(--color-text-muted); line-height: 1.8; }
.guide-card a { display: block; margin-top: 20px; color: var(--color-primary); }
.step-number { color: var(--color-primary); font: 600 2.4rem var(--font-headings); }
.eyebrow { display: block; color: var(--color-primary); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; margin-bottom: 14px; }
.guide-faq { padding: 24px; border-bottom: 1px solid var(--color-border); }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq p { margin-top: 16px; }
.explorer-status { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.explorer-note { color: var(--color-text-muted); font-size: .85rem; line-height: 1.7; margin: 16px 0 28px; }
.event-action { display: inline-block; color: var(--color-primary); margin: 8px 0 20px; }
.route-detail-button { margin: 8px 0 22px; width: 100%; gap: 12px; }
.route-detail { position: fixed; inset: 0; margin: auto; width: min(850px, calc(100vw - 32px)); max-height: 90dvh; padding: 0; border: 1px solid var(--color-border); border-radius: 24px; background: #0d1524; color: var(--color-text-main); overscroll-behavior: contain; }
.route-detail::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.detail-close { position: sticky; top: 16px; margin: 16px 16px -64px auto; display: block; z-index: 1; width: 44px; height: 44px; border: 1px solid #ffffff50; border-radius: 50%; color: white; background: #0d1524; font-size: 2rem; cursor: pointer; }
.detail-photo { width: 100%; height: 300px; object-fit: cover; display: block; }
.detail-body { padding: 32px; line-height: 1.8; }
.detail-body h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 18px 0; }
.route-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; padding: 24px 0; border-block: 1px solid var(--color-border); }
.route-facts dt { color: var(--color-primary); font-weight: 600; margin-bottom: 8px; }
.route-facts dd { margin: 0; color: var(--color-text-muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.route-draft { width: 100%; min-height: 200px; margin: 18px 0; padding: 16px; background: #080f1b; color: white; border: 1px solid var(--color-border); border-radius: 12px; }
.source-notice { padding: 16px; border-left: 3px solid var(--color-warning); background: #ffffff05; }
#routeLinkFallback { display: block; width: 100%; padding: 10px; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; }
@media (max-width: 760px) { .guide-grid, .route-facts { grid-template-columns: 1fr; } .guide-section, .launch-section { padding: 56px 0; } .detail-body { padding: 22px; } .detail-photo { height: 220px; } }
/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette (Deep Water / Nature Theme) */
  --color-bg-dark: hsl(222, 47%, 7%);
  --color-bg-card: hsla(222, 47%, 11%, 0.75);
  --color-bg-card-hover: hsla(222, 47%, 14%, 0.85);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(0, 242, 254, 0.3);
  
  --color-primary: hsl(182, 100%, 43%);        /* River Teal */
  --color-primary-hover: hsl(182, 100%, 50%);  /* Bright Teal */
  --color-secondary: hsl(197, 100%, 46%);      /* Deep Ocean Blue */
  --color-accent: hsl(14, 96%, 63%);           /* Lowcountry Sunset Coral */
  
  --color-text-main: hsl(210, 38%, 95%);       /* Cool White */
  --color-text-muted: hsl(215, 20%, 72%);      /* Muted River Gray */
  --color-text-dark: hsl(222, 47%, 4%);        /* Deep Void */
  
  --color-success: hsl(142, 72%, 45%);
  --color-error: hsl(350, 89%, 60%);
  --color-warning: hsl(45, 93%, 47%);

  /* Typography */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadow & Blur (Glassmorphism) */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Background water ripple overlay effect */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(14, 96, 63, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

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

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

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

button {
  font-family: var(--font-body);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.hidden { display: none !important; }
.bounce { animation: bounce 2s infinite; }

/* --- Section Styling & Typography --- */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
}

.title-underline.center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-dark);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
  color: var(--color-text-dark);
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-fb {
  flex-shrink: 0;
  min-height: 42px;
  padding: 9px 16px;
  gap: 9px;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--color-primary);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.45);
  border-radius: 10px;
}

.btn-fb svg { flex-shrink: 0; }

.btn-fb:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-dark);
}

.btn-fb:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* The Facebook invitation and navigation stay together as one masthead. */
:root { --masthead-height: 156px; }
html { scroll-padding-top: calc(var(--masthead-height) + 20px); }
.site-masthead { position: sticky; top: 0; z-index: 900; }
.site-masthead .main-header { position: relative; top: auto; }
.facebook-bar { background: #ffe166; color: #101c2b; padding-top: env(safe-area-inset-top, 0px); }
.facebook-bar-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; width: 90%; margin: auto; padding: 12px 0; color: #101c2b; }
.facebook-bar-link:hover { color: #101c2b; }
.facebook-bar-message { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 1rem; line-height: 1.4; }
.facebook-bar-message svg { width: 28px; height: 28px; flex-shrink: 0; }
.facebook-bar-message small { display: block; font-size: .875rem; font-weight: 500; }
.facebook-bar-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 44px; border-radius: 999px; padding: 10px 20px; color: #fff; background: #122139; font-size: .9375rem; font-weight: 800; transition: background .15s ease; }
.facebook-bar-action svg { width: 20px; height: 20px; }
.facebook-bar-link:hover .facebook-bar-action { background: #25476f; }
.facebook-bar-link:focus-visible { outline: 3px solid #122139; outline-offset: -3px; }
.community-pointer { margin: -12px 0 28px; font-size: 1rem; }
.community-pointer a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 650px) {
  .facebook-bar-link { width: 94%; justify-content: center; padding: 8px 0; }
  .facebook-bar-message { display: none; }
  .facebook-bar-action { background: transparent; color: #101c2b; padding: 6px 12px; font-size: 1rem; flex-shrink: 1; text-align: center; }
  .facebook-bar-link:hover .facebook-bar-action { background: #f5d452; }
}
@media (max-width: 1200px) {
  .site-masthead .nav-menu { position: absolute; }
  .site-masthead .nav-menu.active { height: calc(100dvh - var(--masthead-height)); }
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  z-index: 1000;
  position: relative;
}

.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* --- Navigation Header --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(7, 13, 27, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: #fff;
}

.logo span span {
  color: var(--color-primary);
}

.logo-icon {
  stroke: var(--color-primary);
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-menu span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: calc(100vh - 110px);
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('assets/member-photos/tom-stanley__black-mingo__fb-27614255981519810.jpg') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 13, 27, 0.4) 0%, rgba(7, 13, 27, 0.95) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content-wrapper h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

/* --- About Section --- */
.about-section {
  background-color: var(--color-bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 30px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.feature-icon-wrapper svg {
  stroke: var(--color-primary);
  width: 24px;
  height: 24px;
}

.feature-item:hover .feature-icon-wrapper {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  transform: scale(1.05);
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.image-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  box-shadow: var(--glass-shadow);
}

.about-img {
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.img-badge {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: rgba(7, 13, 27, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.img-badge svg {
  stroke: var(--color-accent);
}

/* --- Events / Explorer Section --- */
.events-section {
  background-color: hsl(222, 47%, 5%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.explorer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  background: var(--color-bg-card);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  backdrop-filter: var(--glass-blur);
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--color-text-muted);
  width: 20px;
  height: 20px;
}

#eventSearch {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 48px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

#eventSearch:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-primary);
  border-color: rgba(0, 242, 254, 0.2);
}

/* Event Cards Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.event-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.event-card-header {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: rgba(255,255,255,0.02);
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.event-card:hover .event-card-img {
  transform: none;
}

.event-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-type {
  background: rgba(7, 13, 27, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  color: #fff;
}

.badge-difficulty {
  pointer-events: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.diff-easy { background-color: var(--color-success); color: #fff; }
.diff-moderate { background-color: var(--color-warning); color: #fff; }
.diff-challenging { background-color: var(--color-accent); color: #fff; }

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-date {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.event-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.event-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
}

/* Empty State / Search Alert */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-border-hover);
  margin-bottom: 15px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* --- Collaborate Section --- */
.collaborate-section {
  background-color: var(--color-bg-dark);
}

.collaborate-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.collaborate-info p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-item svg {
  stroke: var(--color-primary);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.contact-item p {
  font-size: 0.95rem;
  margin: 0;
}

/* Form Styles */
.form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
}

.error-msg {
  color: var(--color-error);
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 16px;
}

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 15, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: hsl(222, 47%, 9%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 45px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-view {
  transition: var(--transition-smooth);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header-icon {
  stroke: var(--color-primary);
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}

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

/* Login View Styling */
#loginView form {
  max-width: 400px;
  margin: 0 auto;
}

.login-alert {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.login-alert.error {
  background: rgba(250, 63, 90, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(250, 63, 90, 0.2);
}

.modal-footer-note {
  text-align: center;
  margin-top: 25px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Dashboard View Styling */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.dashboard-header h2 {
  font-size: 1.75rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.dashboard-form-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.dashboard-form-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.dashboard-list-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.manager-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar for list */
.manager-list::-webkit-scrollbar {
  width: 6px;
}

.manager-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-full);
}

.manager-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}

.manager-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.3);
}

.manager-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition-fast);
}

.manager-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.manager-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.manager-item-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.manager-item-actions {
  display: flex;
  gap: 8px;
}

.btn-delete {
  background: rgba(250, 63, 90, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(250, 63, 90, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-delete:hover {
  background: var(--color-error);
  color: #fff;
  border-color: var(--color-error);
}

.btn-delete svg {
  width: 15px;
  height: 15px;
}

/* Success Modal Small */
.modal-sm {
  max-width: 420px;
  padding: 40px;
}

.success-icon-wrapper {
  margin: 0 auto 20px;
  background: rgba(20, 184, 166, 0.1);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-wrapper svg {
  stroke: var(--color-primary);
  width: 40px;
  height: 40px;
}

.modal-sm h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.modal-sm p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* --- Footer --- */
.main-footer {
  background-color: hsl(222, 47%, 4%);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-text-dark);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.social-link svg,
.social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-links h3,
.footer-safety h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-safety p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--color-warning);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.safety-badge svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Scroll Animation Reveals --- */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.delay-200, .delay-400 { transition-delay: 0s; }

/* --- Animations --- */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .about-grid,
  .collaborate-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Hero */
  .hero-section {
    height: calc(100vh - 73px);
  }

  .hero-content-wrapper h1 {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }

  /* Explorer Toolbar */
  .explorer-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
  }

  /* Form */
  .form-card {
    padding: 24px;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Modals */
  .modal-card {
    padding: 24px 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  #logoutBtn {
    align-self: flex-end;
  }
}

/* ==========================================================================
   VERSION 2 ADDITIONS (BLOG, NEWSLETTER, ADMIN TABS)
   ========================================================================== */

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Blog Section --- */
.blog-section {
  background-color: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.1);
}

.blog-card-header {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.btn-read-more {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.btn-read-more:hover {
  color: var(--color-primary-hover);
  gap: 10px;
}

.btn-read-more svg {
  width: 16px;
  height: 16px;
}

/* --- Newsletter Section --- */
.newsletter-section {
  background-color: hsl(222, 47%, 5%);
  border-bottom: 1px solid var(--color-border);
}

.newsletter-card {
  background: linear-gradient(135deg, hsla(182, 100%, 43%, 0.05) 0%, hsla(222, 47%, 11%, 0.75) 100%);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}

.newsletter-content {
  max-width: 600px;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.newsletter-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-grow: 1;
  max-width: 450px;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(7, 13, 27, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* --- Admin Tabs Navigation --- */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 25px;
  gap: 8px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.admin-tab-btn:hover {
  color: #fff;
}

.admin-tab-btn.active {
  color: var(--color-primary);
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 768px) {
  .toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  
  #submitRouteBtn {
    width: 100%;
    justify-content: center;
  }
  
  .newsletter-card {
    flex-direction: column;
    padding: 30px 20px;
    gap: 25px;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  
  .admin-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .admin-tab-btn {
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   VERSION 3 ADDITIONS (GALLERY & FILE UPLOADS)
   ========================================================================== */

/* --- Gallery Section --- */
.gallery-section {
  background-color: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  background-color: rgba(255, 255, 255, 0.02);
}

.gallery-image-button { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; }
.gallery-image-button:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.gallery-caption { padding: 14px 16px; font-size: 0.9rem; line-height: 1.5; }
.photo-credit { font-size: 0.75rem; line-height: 1.5; color: var(--color-text-muted); margin: 8px 0 12px; font-weight: 400; }
.photo-credit a, .route-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.photo-credit a:hover, .route-source a:hover { color: var(--color-primary); }
.hero-photo-credit { position: absolute; bottom: 22px; right: 24px; z-index: 2; color: #fff; background: rgba(7,13,27,0.72); padding: 6px 12px; border-radius: 6px; max-width: 45%; }
.gallery-caption .photo-credit { margin-bottom: 0; }
.gallery-more { display: block; margin: 28px auto 0; }
.route-source { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 18px; }
.diff-not-rated { background: #425269; color: white; }
.event-card-header.event-card-header-no-photo { aspect-ratio: auto; height: 72px; min-height: 72px; background: rgba(255,255,255,0.025); }
@media (max-width: 768px) { .hero-photo-credit { bottom: 12px; right: 12px; max-width: calc(100% - 24px); } .hero-scroll-indicator { bottom: 70px; } .gallery-caption { padding: 12px; } }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 13, 27, 0.9) 0%, rgba(7, 13, 27, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  font-family: var(--font-headings);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Edit action style */
.btn-edit-event {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.btn-edit-event:hover {
  background: var(--color-primary);
  color: var(--color-text-dark);
  border-color: var(--color-primary);
}

/* File input style overrides */
input[type="file"] {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--color-border-hover);
  color: var(--color-text-muted);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  transition: var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
  background: var(--color-primary);
  color: var(--color-text-dark);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .gallery-overlay {
    padding: 10px;
  }
  .gallery-overlay span {
    font-size: 0.8rem;
  }
}

/* Spinner for uploads */
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

/* Collapse navigation before the desktop actions become crowded. */
@media (max-width: 1200px) {
  /* Hamburger Navigation */
  .hamburger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    background-color: hsl(222, 47%, 7%);
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 0 solid var(--color-border);
  }

  .nav-menu.active {
    height: calc(100dvh - 74px);
    padding: 30px 20px;
    gap: 25px;
    border-bottom-width: 1px;
    overflow-y: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
  }

  .btn-fb {
    width: 100%;
  }

  #adminPortalBtn {
    width: 100%;
    justify-content: center;
  }

  /* Hamburger active state */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}

/* Keep the route controls usable at every width. */
.explorer-toolbar .toolbar-actions { flex-wrap: wrap; gap: 18px; }
#submitRouteBtn { flex: 0 0 auto; white-space: nowrap; min-width: 180px; }
.filter-tabs { flex-wrap: wrap; }
.main-footer #adminPortalBtn { width: auto; margin: 24px 0; font-size: .85rem; padding: 10px 16px; }
@media(max-width:600px) { .filter-tabs { width:100%; } .filter-tabs .tab-btn { flex:1; padding:12px 8px; white-space:nowrap; } #submitRouteBtn { width:100%; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } .reveal-on-scroll { opacity:1!important; transform:none!important; } }

.resource-art { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; background:linear-gradient(135deg,#123343,#0e192c); color:var(--color-primary); }
.resource-art svg { width:64px; height:64px; stroke-width:1.2; }
.resource-art span { font-size:.75rem; letter-spacing:.15em; text-transform:uppercase; }

.event-review { font-size:.875rem; color:var(--color-primary); margin:12px 0; }
.event-host { font-size:.9rem; color:var(--color-text-muted); margin-bottom:16px; }
.event-planning { border-block:1px solid var(--color-border); padding:18px 0; margin-bottom:16px; }
.event-planning summary { cursor:pointer; font-weight:700; color:var(--color-text-main); }
.event-planning dt { margin-top:20px; color:var(--color-primary); font-weight:600; }
.event-planning dd { margin:8px 0 0; line-height:1.75; font-size:.95rem; color:var(--color-text-muted); }
.planning-links { display:grid; gap:14px; margin-top:22px; }
.planning-links a { color:var(--color-primary); overflow-wrap:anywhere; }

.availability-note { border-left:3px solid #ffe166; background:rgba(255,225,102,.07); padding:14px 16px; margin:0 0 20px; border-radius:8px; }
.availability-note strong { color:#ffe166; font-size:1rem; }
.availability-note p { color:var(--color-text-muted); font-size:.9rem; line-height:1.7; margin:8px 0; }
.availability-note a { color:var(--color-primary); font-size:.9rem; }

.event-card-img.event-poster { object-fit:contain; padding:34px 16px 12px; background:#fff; }

/* Quiet hierarchy and optional interaction polish. */
.event-card { box-shadow:0 4px 18px rgba(0,0,0,.14); transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.event-card-body { padding:26px; }
.event-card h3 { font-size:1.45rem; line-height:1.3; }
.event-desc { font-size:1rem; line-height:1.7; }
.event-meta { margin-top:auto; font-size:.875rem; line-height:1.6; }
.event-meta .meta-item { align-items:flex-start; }
.event-meta svg { flex-shrink:0; margin-top:3px; }
.event-card .photo-credit { font-size:.875rem; margin:0 0 18px; }
.event-card .badge { font-size:.8125rem; letter-spacing:.035em; }
.event-host { margin-bottom:12px; }
.event-planning { margin-bottom:12px; }
.event-planning summary { min-height:28px; }
.event-action { font-weight:600; line-height:1.5; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .event-card:hover { transform:translateY(-3px); }
  .event-card:hover .event-card-img:not(.event-poster) { transform:scale(1.02); }
  .event-action { transition:color .18s ease; }
}
@media (max-width:600px) { .event-card-body { padding:22px; } }

/* Dialog controls share a clear, stable alignment. */
.detail-toolbar { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px 12px 24px; background:#0d1524; border-bottom:1px solid var(--color-border); color:var(--color-text-muted); font-size:.875rem; }
.detail-close { position:static; margin:0; flex:0 0 44px; display:grid; place-items:center; padding:0; line-height:1; font-family:Arial,sans-serif; }
.modal-close { top:16px; right:16px; width:44px; height:44px; padding:0; font-family:Arial,sans-serif; }
.modal-card { padding-top:76px; }
.detail-actions .btn { min-height:44px; }

/* Fall festival spotlight */
.festival-spotlight {padding:72px 0; background:linear-gradient(135deg,#241c18 0%,#101a23 65%);border-block:1px solid #ffc16a30;}
.festival-feature {display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:center;}
.festival-kicker {display:block;color:#ffd18b;font-size:.8rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-bottom:18px;}
.festival-intro h2 {font-size:clamp(3rem,6vw,5.6rem);line-height:.98;letter-spacing:-.04em;margin:0 0 24px;}
.festival-intro p {color:var(--color-text-muted);line-height:1.8;margin-bottom:20px;max-width:540px;}
.festival-intro .festival-place {color:#ffd18b;font-weight:600;}
.festival-actions {display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:28px;}
.festival-cta {background:#ffd18b;color:#201709;border:1px solid #ffd18b;min-height:48px;}
.festival-cta:hover {background:#ffe3b8;color:#201709;}
.festival-text-link {color:#ffd18b;font-weight:600;}
.festival-cover {margin:0;min-width:0;}
.festival-cover img {width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:24px;display:block;}
.festival-cover figcaption {font-size:.75rem;color:var(--color-text-muted);margin:10px 0;}
.festival-quickfacts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:32px 0;padding:24px 0;border-block:1px solid #ffd18b30;}
.festival-quickfacts strong,.festival-quickfacts span {display:block;}
.festival-quickfacts span {color:var(--color-text-muted);font-size:.875rem;margin-top:6px;}
.festival-plan {border:1px solid #ffd18b30;border-radius:18px;background:#0d152470;}
.festival-plan>summary {padding:24px;cursor:pointer;font-weight:600;display:flex;justify-content:space-between;gap:16px;list-style:none;}
.festival-plan>summary::-webkit-details-marker {display:none;}
.festival-plan[open]>summary span {transform:rotate(45deg);}
.festival-plan-body {padding:8px 28px 28px;}
.festival-days {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;}
.festival-days h3,.festival-booking h3 {font-size:1.25rem;margin:12px 0 20px;color:#ffd18b;}
.festival-days dt {font-size:.875rem;font-weight:700;margin:18px 0 6px;}
.festival-days dd,.festival-booking p {margin:0 0 16px;color:var(--color-text-muted);font-size:.94rem;line-height:1.75;}
.festival-plan-body a:not(.btn) {color:#ffd18b;}
.festival-poster img {display:block;width:100%;height:auto;max-width:220px;border-radius:8px;}
.festival-booking {display:grid;grid-template-columns:1fr 1fr;gap:36px;padding:24px 0;margin-top:28px;border-top:1px solid var(--color-border);}
.festival-gallery {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:16px 0;}
.festival-gallery figure {margin:0;min-width:0;}
.festival-gallery img {width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block;}
.festival-gallery figcaption {font-size:.75rem;color:var(--color-text-muted);margin-top:8px;}
@media(max-width:850px) {.festival-feature{grid-template-columns:1fr;gap:24px}.festival-days{grid-template-columns:1fr}.festival-poster img{max-width:300px}.festival-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px) {.festival-spotlight{padding:48px 0}.festival-quickfacts,.festival-booking{grid-template-columns:1fr;gap:16px}.festival-plan-body{padding:0 20px 24px}.festival-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.festival-actions .btn{width:100%;white-space:normal}.festival-plan>summary{padding:20px}}

.festival-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
.event-address {display:block;margin-top:8px;color:var(--color-primary);font-size:.875rem;}
.event-meta a:hover {text-decoration:underline;}
@media(max-width:550px){.festival-gallery{grid-template-columns:1fr;}}

.contact-section {padding:64px 0 88px;}
.contact-layout {display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;}
.contact-layout p {line-height:1.8;color:var(--color-text-muted);margin:18px 0;}
.contact-layout a {color:var(--color-primary);overflow-wrap:anywhere;}
.contact-layout .contact-hint {font-size:.85rem;margin:14px 0 0;}
.contact-layout textarea {resize:vertical;min-height:140px;}
@media(max-width:760px){.contact-layout{grid-template-columns:1fr;gap:24px;}}

.international-section{padding:56px 0 80px;background:#101b29;}
.international-section p{color:var(--color-text-muted);line-height:1.8;margin:18px 0;}
.international-section a:not(.btn){color:var(--color-primary);}
.international-signup{display:block;width:100%;height:660px;border:1px solid var(--color-border);border-radius:18px;background:white;margin-top:28px;}
.international-fallback{font-size:.875rem;}
@media(max-width:600px){.international-signup{height:720px;}}
