/* =====================================================
   Stephen Long for Congress TX-8 - Campaign Website
   Modern Political Campaign Design
   ===================================================== */

/* CSS Variables */
:root {
  --red: #C41E3A;
  --red-dark: #9B1B30;
  --navy: #1B365D;
  --navy-light: #2A4A7A;
  --gold: #D4AF37;
  --gold-dark: #B8960C;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #868E96;
  --gray-700: #495057;
  --gray-900: #212529;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* ==================== ANIMATION KEYFRAMES ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animation utility classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

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

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

/* Utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--navy);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  color: rgba(255,255,255,0.9);
}

.header-social {
  display: flex;
  gap: 1rem;
}

.header-social a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.header-social a:hover {
  color: var(--white);
}

.header-main {
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.5rem 0;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile li {
  border-bottom: 1px solid var(--gray-200);
}

.nav-mobile a {
  display: block;
  padding: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}

.nav-mobile .nav-cta-mobile {
  background: var(--red);
  color: var(--white);
  text-align: center;
  margin-top: 1rem;
  border-radius: 4px;
}

/* ==================== HERO - NEW DESIGN ==================== */
.hero {
  padding-top: 120px;
  background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 30%, rgba(27, 54, 93, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 3rem 0;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
  animation: labelPulse 3s ease-in-out infinite;
}

.hero-label i {
  color: var(--gold);
  animation: starSpin 3s ease-in-out infinite;
}

@keyframes labelPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(196, 30, 58, 0.5); }
}

@keyframes starSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

.hero-title {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.4;
}

/* Quote marks handled by .quote-mark spans in HTML */

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 550px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-buttons .btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.hero-buttons .btn-outline:hover {
  background: var(--navy);
  color: white;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  max-width: 400px;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.hero-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: 8px;
  z-index: -1;
}

.hero-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.hero-social a {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1rem;
  transition: var(--transition);
}

.hero-social a:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

/* Hero Stats Bar */
.hero-stats {
  background: var(--navy);
  padding: 2rem 0;
  margin-top: 3rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.hero-stat {
  color: var(--white);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.45);
}

.btn-primary:active {
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2341 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.35);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0f2341 0%, var(--navy) 100%);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(27, 54, 93, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 5rem 0;
}

.section-gray {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

.section-navy .section-header h2,
.section-navy .section-header p,
.section-navy .section-label {
  color: var(--white);
}

.section-navy .section-label {
  color: rgba(255,255,255,0.7);
}

/* ==================== ABOUT PREVIEW ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-image-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.about-image-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-content h3 {
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}

.about-feature i {
  color: var(--red);
  font-size: 1.25rem;
}

/* ==================== ISSUES ==================== */
.issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.issue-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.issue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transition: var(--transition);
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.issue-card:hover::before {
  transform: scaleY(1);
}

.issue-icon {
  width: 50px;
  height: 50px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--navy);
  transition: var(--transition);
}

.issue-card:hover .issue-icon {
  background: var(--red);
  color: var(--white);
}

.issue-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.issue-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.issue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}

.issue-link:hover {
  gap: 0.75rem;
}

/* ==================== WHY STEPHEN ==================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2rem;
}

.why-icon {
  width: 80px;
  height: 80px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.why-card h3 {
  margin-bottom: 1rem;
}

.why-card p {
  color: var(--gray-500);
}

/* ==================== VIDEO SECTION ==================== */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2341 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  margin: 0;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.footer-copyright a {
  color: rgba(255,255,255,0.5);
}

.footer-copyright a:hover {
  color: var(--white);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  background: var(--navy);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.4);
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 576px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-content {
    text-align: left;
  }

  .hero-quote {
    margin: 0 0 2rem 0;
  }

  .hero-description {
    margin: 0 0 2rem 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-social {
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr 1.2fr;
  }

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

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .issues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================== ISSUE PAGE STYLES ==================== */
.issue-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.issue-section:nth-child(even) {
  background: var(--off-white);
}

.issue-section:last-child {
  border-bottom: none;
}

.issue-content {
  max-width: 800px;
  margin: 0 auto;
}

.issue-content h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.issue-content h2 i {
  width: 50px;
  height: 50px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.issue-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.issue-highlight {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.issue-highlight h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.issue-highlight p {
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.key-points {
  background: var(--gray-100);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.key-points h4 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.key-points ul {
  margin: 0;
  padding-left: 1.25rem;
}

.key-points li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

/* Issue navigation */
.issue-nav {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.issue-nav h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

.issue-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.issue-nav-links a {
  background: var(--gray-100);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.issue-nav-links a:hover {
  background: var(--navy);
  color: var(--white);
}

/* ==================== ACCESSIBILITY ==================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== ADDITIONAL PAGE STYLES ==================== */
.event-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
}

.event-date {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
}

.event-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-display);
}

.countdown-banner {
  background: var(--red);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.countdown-banner h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

/* Donate page */
.donate-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .donate-options {
    grid-template-columns: 1fr 1fr;
  }
}

.donate-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.amount-btn {
  padding: 1rem;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--navy);
  color: var(--white);
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.25rem;
  margin-top: 0.25rem;
  color: var(--red);
  opacity: 0.9;
}

.contact-item h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  margin-bottom: 1.5rem;
}

/* Volunteer page */
.volunteer-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.volunteer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.volunteer-option {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  text-align: center;
  border-top: 4px solid var(--red);
}

.volunteer-option i {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* News page */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

@media (min-width: 576px) {
  .news-card {
    grid-template-columns: 200px 1fr;
  }
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-image {
  background: var(--gray-100);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.news-content {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.news-category {
  background: var(--navy);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  padding-top: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-item-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.gallery-item-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Endorsements */
.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.endorsement-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

.endorsement-card:hover {
  box-shadow: var(--shadow-md);
}

.endorsement-avatar {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--navy);
}

.endorsement-quote {
  font-style: italic;
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Print */
@media print {
  .header, .footer, .btn, .nav-toggle {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* ==================== TEXAS DISTRICT 8 MAP SECTION ==================== */
.district-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.district-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, #D4AF37 50%, var(--navy) 100%);
}

/* District Content Full Width Layout */
.district-content-full {
  text-align: center;
  margin-bottom: 3rem;
}

.district-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto;
}

@media (min-width: 576px) {
  .district-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .district-highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Map Section with Header */
.map-section {
  margin-top: 2rem;
}

.map-section .section-header {
  margin-bottom: 2rem;
}

.district-map {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.texas-map-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  background: linear-gradient(145deg, #f0f4f8 0%, #ffffff 50%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow:
    0 25px 50px rgba(27, 54, 93, 0.15),
    0 10px 30px rgba(27, 54, 93, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.texas-map-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--red) 0%, #D4AF37 50%, var(--navy) 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
}

.texas-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(27, 54, 93, 0.25));
  transition: transform 0.4s ease;
}

.texas-map-container:hover .texas-svg {
  transform: scale(1.02);
}

.texas-outline {
  transition: all 0.4s ease;
}

.texas-map-container:hover .texas-outline {
  filter: drop-shadow(0 0 20px rgba(27, 54, 93, 0.4));
}

.district-highlight {
  animation: pulse-glow 2.5s ease-in-out infinite;
  cursor: pointer;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(196, 30, 58, 0.9));
  }
}

.district-label {
  fill: white;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.2);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.legend-color {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.legend-item:first-child .legend-color {
  animation: legend-pulse 2s ease-in-out infinite;
}

@keyframes legend-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(196, 30, 58, 0.3); }
  50% { box-shadow: 0 2px 15px rgba(196, 30, 58, 0.6); }
}

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

.district-content .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.district-content .section-label i {
  color: #D4AF37;
}

.district-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.district-intro {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.district-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .district-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.district-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(27, 54, 93, 0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.district-highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.1);
}

.district-highlight-item i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--red) 0%, #8B0000 100%);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.district-highlight-item div {
  flex: 1;
}

.district-highlight-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.district-highlight-item span {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.4;
}

.district-quote {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 100%);
  padding: 1.75rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
}

.district-quote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.3);
  line-height: 1;
}

.district-quote blockquote {
  color: white;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
  padding-left: 0.5rem;
  position: relative;
}

.district-quote cite {
  display: block;
  color: #D4AF37;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  font-style: normal;
}

/* =====================================================
   INTERACTIVE DISTRICT MAP STYLES
   ===================================================== */

.interactive-map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(27, 54, 93, 0.2);
  border: 3px solid var(--navy);
  min-height: 500px;
  height: 500px;
  width: 100%;
  z-index: 10;
}

/* Leaflet map pane z-index fix */
.leaflet-pane {
  z-index: 1 !important;
}
.leaflet-control {
  z-index: 10 !important;
}

#district-map {
  display: block !important;
  width: 100% !important;
  height: 500px !important;
  min-height: 500px !important;
  background: #f5f5f5;
  /* Ensure map is always visible regardless of scroll animations */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Ensure the map container wrapper is visible */
.district-map,
.interactive-map-container {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 768px) {
  #district-map {
    height: 550px;
  }
}

@media (min-width: 1024px) {
  #district-map {
    height: 600px;
  }
}

.map-instructions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 100%);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1000;
}

.map-instructions i {
  color: var(--gold);
}

/* Map Control Panel (Left Side) */
/* Map Control Panel - Collapsible Design */
.map-control-panel {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 220px;
  font-family: var(--font-body);
}

.control-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 100%);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.control-header:hover {
  background: linear-gradient(135deg, #1e4a7f 0%, #0d1f38 100%);
}

.control-header i:first-child {
  color: var(--gold);
  font-size: 0.95rem;
}

.control-header .toggle-icon {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.control-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.control-body {
  padding: 0.75rem;
  transition: all 0.3s ease;
  max-height: 300px;
  overflow: hidden;
}

.control-body.collapsed {
  max-height: 0;
  padding: 0 0.75rem;
}

.control-section {
  margin-bottom: 0.5rem;
}

.control-section:last-child {
  margin-bottom: 0;
}

.control-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.control-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.75rem 0;
}

/* Toggle Switch Items */
.control-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.control-toggle-item:hover {
  background: #f3f4f6;
}

.control-toggle-item span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #374151;
}

.control-toggle-item span:first-child i {
  color: var(--navy);
  width: 16px;
  text-align: center;
}

.control-toggle-item input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: #d1d5db;
  border-radius: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.control-toggle-item input[type="checkbox"]:checked + .toggle-switch {
  background: var(--red);
}

.control-toggle-item input[type="checkbox"]:checked + .toggle-switch::after {
  left: 18px;
}

/* Search Wrapper */
.search-wrapper {
  display: flex;
  gap: 0.25rem;
}

.search-wrapper input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.search-wrapper button {
  padding: 0.5rem 0.75rem;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-wrapper button:hover {
  background: #9B1B30;
}

/* District Sidebar (Right Side) - Compact Design */
.district-sidebar {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: 350px;
  overflow: hidden;
  min-width: 170px;
  font-family: var(--font-body);
}

.sidebar-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 100%);
  color: white;
  padding: 0.6rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-header h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.district-list {
  padding: 0.35rem;
  max-height: 300px;
  overflow-y: auto;
}

.district-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
}

.district-item:hover {
  background: #f3f4f6;
}

.district-item.active {
  background: linear-gradient(135deg, var(--red) 0%, #9B1B30 100%);
  color: white;
}

.district-item.selected {
  background: var(--navy);
  color: white;
}

.district-num {
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 20px;
  text-align: center;
}

.district-name {
  font-size: 0.75rem;
  flex: 1;
}

.district-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.55rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}

/* District Labels on Map */
.district-label {
  background: transparent;
  border: none;
  text-align: center;
}

.district-label span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-shadow: 1px 1px 0 white, -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white;
}

.district-8-label span {
  color: var(--red);
  font-size: 18px;
  font-weight: 800;
}

/* City Markers */
.city-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.city-dot {
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 50%;
  border: 1px solid white;
}

.city-name {
  font-family: var(--font-body);
  font-size: 11px;
  color: #333;
  text-shadow: 1px 1px 0 white, -1px -1px 0 white;
}

.city-major .city-dot {
  width: 8px;
  height: 8px;
  background: #666;
}

.city-major .city-name {
  font-size: 12px;
  font-weight: 600;
}

.city-district8 .city-dot {
  background: var(--red);
  width: 8px;
  height: 8px;
}

.city-district8 .city-name {
  color: var(--red);
  font-weight: 600;
}

.city-highlight .city-dot {
  background: var(--gold);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.city-highlight .city-name {
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

/* Search Marker */
.search-marker {
  color: var(--red);
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* District Popup */
.district-popup h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.1rem;
}

.district-popup p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.district-popup .highlight {
  color: var(--red);
  font-weight: 600;
}

/* Leaflet Overrides */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
  margin: 1rem;
}

.leaflet-control-zoom a {
  background: white !important;
  color: var(--navy) !important;
  border: 1px solid var(--gray-300) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--navy) !important;
  color: white !important;
}

/* Map Legend */
.map-legend-leaflet {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: var(--font-body);
}

.map-legend-leaflet h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-swatch.district {
  background: var(--red);
  border: 2px solid var(--gold);
}

.legend-swatch.county {
  background: transparent;
  border: 2px dashed #999;
}

.legend-swatch.star {
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
