/* ═══════════════════════════════════════════
   DANNY'S HOMETOWN TOUR — stylesheet
   Colors: Navy #1E3A5F · Orange #F97316
   ═══════════════════════════════════════════ */

:root {
  --orange:       #F97316;
  --orange-dark:  #EA580C;
  --orange-light: #FED7AA;
  --orange-pale:  #FFF7ED;
  --navy:         #1E3A5F;
  --navy-mid:     #2563EB;
  --navy-light:   #EFF6FF;
  --text:         #1E293B;
  --text-muted:   #64748B;
  --bg:           #FFFFFF;
  --bg-alt:       #F8FAFC;
  --border:       #E2E8F0;
  --radius:       12px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 25px rgba(0,0,0,.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}


/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.hero {
  /* Navy gradient is the fallback when photos haven't loaded yet */
  background: linear-gradient(160deg, #0f2240 0%, var(--navy) 50%, #1a3560 100%);
  color: white;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* ── Hero photo slideshow ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Dark gradient overlay — keeps text readable over any photo */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12,27,52,.90) 0%,
    rgba(30,58,95,.78) 55%,
    rgba(20,44,80,.88) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Subtle dot-grid texture on top of the gradient */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 56px;
  position: relative;
  z-index: 2;
}

.tour-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 16px;
}

.tour-title {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 6px;
}

.tour-subtitle {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--orange-light);
  margin-bottom: 12px;
}

.tour-route {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  letter-spacing: .5px;
  margin-bottom: 36px;
}

.strava-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FC4C02;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 40px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.strava-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252,76,2,.45);
}

/* Stats bar */
.stats-bar {
  display: flex;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
}
.stat {
  flex: 1;
  padding: 22px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
  flex-shrink: 0;
}

/* Progress bar */
.progress-wrap {
  background: rgba(0,0,0,.3);
  padding: 14px 24px 18px;
  position: relative;
  z-index: 2;
}
.progress-track {
  height: 7px;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #fb923c 100%);
  border-radius: 4px;
  transition: width .6s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,.38);
}


/* ════════════════════════════════
   WHY
   ════════════════════════════════ */
.why-section {
  background: var(--bg);
  text-align: center;
}
.why-container {
  max-width: 680px;
}
.why-copy {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ════════════════════════════════
   MAP
   ════════════════════════════════ */
.map-section {
  background: var(--bg-alt);
  padding-bottom: 0;
}
.map-section .container {
  padding-bottom: 24px;
}
#map {
  height: 520px;
  width: 100%;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.start     { background: #16a34a; }
.legend-dot.completed { background: var(--orange); }
.legend-dot.upcoming  { background: transparent; border: 2px solid #94A3B8; }
.legend-dot.current   {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249,115,22,.25);
}
.legend-star {
  color: var(--orange);
  font-size: 15px;
  line-height: 1;
}

/* Custom map markers */
.map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease;
}
.marker-circle:hover { transform: scale(1.25); }

.marker-completed .marker-circle {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: #fff;
}
.marker-upcoming .marker-circle {
  background: #fff;
  border-color: #CBD5E1;
  color: #94A3B8;
}
.marker-current .marker-circle {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: #fff;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(249,115,22,.5), 0 0 0 0   rgba(249,115,22,.2); }
  70%  { box-shadow: 0 0 0 8px rgba(249,115,22,.0), 0 0 0 14px rgba(249,115,22,.0); }
  100% { box-shadow: 0 0 0 0   rgba(249,115,22,.0), 0 0 0 0   rgba(249,115,22,.0); }
}

.marker-stop .marker-circle {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-color: var(--navy-mid);
  color: var(--orange);
  font-size: 16px;
}
.marker-start .marker-circle {
  width: 32px;
  height: 32px;
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 230px !important;
}
.popup-inner { padding: 16px; }
.popup-day-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.popup-city {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 3px;
}
.popup-date-miles {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.popup-notes {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-bottom: 10px;
}
.popup-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.popup-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.popup-link-strava { background: #FC4C02; color: #fff; }
.popup-link-tiktok { background: #111; color: #fff; }
.popup-link-photos { background: var(--navy-light); color: var(--navy-mid); }
.popup-stop-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
}
.popup-stop-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.popup-stop-city {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
}


/* ════════════════════════════════
   MEETUP STOPS
   ════════════════════════════════ */
.stops-section { background: var(--orange-pale); }
.stops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stop-card {
  background: #fff;
  border: 2px solid var(--orange-light);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stop-card::after {
  content: '★';
  position: absolute;
  top: 14px; right: 16px;
  font-size: 22px;
  color: var(--orange-light);
}
.stop-city {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  padding-right: 28px;
}
.stop-date-pill {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.stop-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text-muted);
}
.stop-row-label {
  font-weight: 700;
  color: var(--text);
  min-width: 68px;
  flex-shrink: 0;
}
.stop-tbd { font-style: italic; }
.stop-notes {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}


/* ════════════════════════════════
   DAILY JOURNAL
   ════════════════════════════════ */
.journal-section { background: var(--bg-alt); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.journal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
  transition: transform .15s ease, box-shadow .15s ease;
}
.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.journal-card.placeholder {
  border-left-color: var(--border);
  opacity: .65;
  pointer-events: none;
}
.journal-card.stop-day {
  border-left-color: var(--navy-mid);
  background: var(--navy-light);
}
.journal-card.highlight {
  border-left-color: var(--orange);
}

.journal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.journal-day-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.journal-date {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.journal-miles {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
}
.journal-miles-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: right;
}
.journal-route {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.journal-route strong { color: var(--text); }
.journal-notes {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 12px;
}
.journal-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.journal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 5px 12px;
  border-radius: 20px;
}
.journal-link-strava { background: #FC4C02; color: #fff; }
.journal-link-tiktok { background: #f1f5f9; color: var(--text); }
.journal-link-photos { background: var(--navy-light); color: var(--navy-mid); }

.journal-placeholder-inner {
  text-align: center;
  padding: 12px 0 4px;
}
.journal-placeholder-icon {
  font-size: 22px;
  margin-bottom: 4px;
  opacity: .4;
}
.journal-placeholder-text {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
}
.badge-stop     { background: var(--navy-mid); color: #fff; }
.badge-rest     { background: var(--orange);   color: #fff; }
.badge-highlight{ background: #059669;         color: #fff; }


/* ════════════════════════════════
   DONATIONS
   ════════════════════════════════ */
.donate-section { background: #fff; }
.donations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 40px;
  margin-bottom: 52px;
}
.donation-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.donation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-light);
}
.donation-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donation-logo {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
  border-radius: 8px;
}
.donation-logo-fallback {
  width: 72px;
  height: 72px;
  background: var(--navy-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-mid);
}
.donation-org {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.donation-town {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .3px;
}

.donate-cta { text-align: center; }
.donate-prompt {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.donate-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.donate-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  min-width: 185px;
}
.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.donate-platform {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 3px;
}
.donate-handle {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.venmo-btn  { background: #3D95CE; color: #fff; }
.paypal-btn { background: #003087; color: #fff; }


/* ════════════════════════════════
   PHOTO GALLERY
   ════════════════════════════════ */
.gallery-section { background: var(--bg-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
}
.gallery-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.gallery-card.placeholder {
  opacity: .5;
  pointer-events: none;
}
.gallery-thumb {
  height: 90px;
  background: linear-gradient(135deg, var(--navy) 0%, #2563EB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,.2);
}
.gallery-card-body {
  padding: 12px 14px;
}
.gallery-card-day-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.gallery-card-city {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 2px;
}
.gallery-card-date {
  font-size: 11px;
  color: var(--text-muted);
}
.gallery-open-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 6px;
}
.gallery-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gallery-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}


/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 44px 24px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 22px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--orange); }
.footer-credit {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  letter-spacing: .5px;
}


/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .stats-bar { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .stat-divider { display: none; }

  .stops-grid,
  .journal-grid { grid-template-columns: 1fr; }

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

  .donate-buttons { flex-direction: column; align-items: center; }
  .donate-btn { width: 100%; max-width: 280px; }

  #map { height: 380px; }
}

@media (max-width: 480px) {
  .tour-title { font-size: 36px; }
  .donations-grid { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .progress-labels span:nth-child(2) { display: none; }
}
