:root {
  --bg-page: #faf7f2;
  --bg-card: #ffffff;
  --bg-subtle: #f3ede3;
  --crimson: #b91c2c;
  --crimson-dark: #881420;
  --crimson-soft: #fdf2f3;
  --evergreen: #1b4d3e;
  --evergreen-light: #246350;
  --evergreen-soft: #eef6f3;
  --gold: #c99738;
  --gold-soft: #fdf6e7;
  --text-main: #1f2933;
  --text-muted: #52606d;
  --border-light: rgba(27, 77, 62, 0.12);
  --shadow-sm: 0 2px 8px rgba(27, 39, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 39, 51, 0.08);
  --radius-md: 12px;
  --radius-lg: 18px;
}

html, body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  background-image: radial-gradient(circle at 20% 0%, rgba(201, 151, 56, 0.07), transparent 45%),
                    radial-gradient(circle at 80% 10%, rgba(27, 77, 62, 0.05), transparent 40%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[v-cloak] {
  display: none;
}

a {
  color: var(--crimson);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--crimson-dark);
  text-decoration: underline;
}

/* Header */
#header {
  position: relative;
  background: linear-gradient(135deg, #991724 0%, #b91c2c 55%, #84121d 100%);
  color: #ffffff;
  padding: 28px 0 32px;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 6px 24px rgba(136, 20, 32, 0.22);
  overflow: hidden;
}

/* Delicate festive snowflake/star pattern in header */
#header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='90' cy='35' r='1.5'/%3E%3Ccircle cx='55' cy='85' r='2'/%3E%3Ccircle cx='105' cy='95' r='1.5'/%3E%3Cpath d='M60 18l1.6 4.4 4.4 1.6-4.4 1.6-1.6 4.4-1.6-4.4-4.4-1.6 4.4-1.6z'/%3E%3Cpath d='M22 78l1.2 3.3 3.3 1.2-3.3 1.2-1.2 3.3-1.2-3.3-3.3-1.2 3.3-1.2z'/%3E%3C/g%3E%3C/svg%3E");
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: left;
}

.hero-brand--centered {
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde6b0;
  margin-bottom: 6px;
}

#header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-sleigh {
  height: 76px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

/* Main Content Container */
#content {
  max-width: 1040px;
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Intro / Lead strip */
#lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 0 12px;
}

.lead-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.lead-marker {
  height: 28px;
  width: auto;
  vertical-align: -6px;
  margin-left: 4px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* Event Selector Tabs */
#events {
  margin-bottom: 18px;
}

#events .nav-pills {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
}

#events .nav-pills::before,
#events .nav-pills::after {
  display: none;
  content: none;
}

#events .nav-pills > li {
  float: none;
  flex: 1 1 0;
  width: auto;
  display: flex;
  margin: 0;
}

#events .nav-pills > li > a {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

#events .nav-pills > li > a:hover,
#events .nav-pills > li > a:focus {
  background: #ffffff;
  border-color: rgba(27, 77, 62, 0.35);
  box-shadow: 0 6px 16px rgba(27, 39, 51, 0.09);
  transform: translateY(-1px);
  color: var(--evergreen);
}

#events .nav-pills > li.active > a,
#events .nav-pills > li.active > a:hover,
#events .nav-pills > li.active > a:focus {
  background: linear-gradient(135deg, var(--evergreen) 0%, var(--evergreen-light) 100%);
  color: #ffffff;
  border-color: var(--evergreen);
  box-shadow: 0 8px 20px rgba(27, 77, 62, 0.26);
  transform: translateY(-1px);
}

.event-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.event-date {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  color: var(--text-muted);
}

#events .nav-pills > li.active > a .event-date {
  color: rgba(255, 255, 255, 0.88);
}

/* Main Event Details Card */
#event-details {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.event-heading-group {
  flex: 1 1 300px;
}

#event-details h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--evergreen);
  margin: 0 0 6px;
}

.event-datetime {
  font-size: 15px;
  font-weight: 600;
  color: var(--crimson);
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 151, 56, 0.35);
  color: #6b4c10;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  align-self: center;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(185, 28, 44, 0.18);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(185, 28, 44, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(185, 28, 44, 0.05);
  }
}

.event-description {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Santa Device Tracking Controls */
.tracker-controls {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.tracker-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.tracker-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  word-break: break-word;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.btn:hover:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.btn-success {
  background: var(--evergreen);
}

.btn-success:hover, .btn-success:focus {
  background: var(--evergreen-light);
}

.btn-warning {
  background: #d97706;
}

.btn-warning:hover, .btn-warning:focus {
  background: #b45309;
}

.alert {
  border-radius: 10px;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* Google Map Container */
#map {
  width: 100%;
  min-height: 460px;
  max-height: 680px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #e9efe9;
}

/* Off-season Card */
.offseason-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 48px 32px;
  text-align: center;
  max-width: 680px;
  margin: 16px auto 0;
}

.offseason-sleigh {
  height: 96px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.offseason-lead {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
  color: var(--evergreen);
  margin: 0 0 12px;
}

.offseason-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.footer-credit {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-logo-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-logo-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

footer img {
  display: block;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  #header {
    padding: 20px 0 22px;
  }

  .hero-brand {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  #header h1 {
    font-size: 30px;
  }

  .hero-sleigh {
    height: 58px;
  }

  #content {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  #lead {
    margin-bottom: 18px;
    padding: 0 4px;
  }

  .lead-text {
    font-size: 14.5px;
  }

  #events .nav-pills {
    flex-direction: column;
    gap: 8px;
  }

  #events .nav-pills > li > a {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 12px 16px;
  }

  .event-title {
    font-size: 15px;
  }

  .event-date {
    margin-top: 0;
    margin-left: 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  #event-details {
    padding: 18px 16px;
    border-radius: 14px;
  }

  #event-details h2 {
    font-size: 22px;
  }

  .event-datetime {
    font-size: 14px;
  }

  .status-pill {
    width: 100%;
    justify-content: center;
    font-size: 13.5px;
    padding: 9px 14px;
  }

  .event-description {
    font-size: 14.5px;
    margin-bottom: 16px;
  }

  #map {
    min-height: 380px;
    max-height: 520px;
  }

  .offseason-card {
    padding: 32px 20px;
  }

  .offseason-lead {
    font-size: 20px;
  }

  footer img {
    width: 145px;
  }
}

@media (max-width: 420px) {
  #header h1 {
    font-size: 25px;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  #events .nav-pills > li > a {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .event-date {
    margin-left: 0;
  }
}
