/* css/map-theme.css */
/* SparkleTour Map Theme Variables and Colors */
:root {
  /* Christmas Color Palette */
  --christmas-red: #c41e3a;
  --christmas-green: #2e7d32;
  --christmas-gold: #ffd700;
  --deep-forest: #1a472a;
  
  /* UI Colors */
  --overlay-bg: rgba(255, 255, 255, 0.98);
  --overlay-shadow: rgba(0, 0, 0, 0.3);
  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #999;            /* disabled or decorative only: fails 4.5:1 */

  /* Surfaces and lines */
  --surface: #fff;               /* cards, popups, outline button fills */
  --surface-muted: #f0f0f0;      /* image placeholders */
  --border: #ddd;                /* neutral control outlines */
  --divider: #eee;               /* rows and section rules */
  --green-tint: #e8f5e9;         /* "done" states: seen, in your tour */
  --on-color: #fff;              /* text and icons on red, green or the header gradient */
  --on-color-hover: rgba(255, 255, 255, 0.16); /* hover wash on coloured grounds */
  --night-ground: #1b1b1b;       /* map background behind the night map */
  --focus-ring: 3px solid var(--christmas-green);
  --focus-ring-on-color: 3px solid var(--on-color); /* focus on the header gradient */
  --nav-google: #4285f4;         /* Google Maps brand: its icon and border only (3.6:1 as text) */
  --nav-waze: #33ccff;           /* Waze brand: its icon and border only (1.9:1 as text) */
  --card-night: #08160d;         /* end-of-tour share card: night sky at the top (js/sparkletour-share-card.js) */
  --card-bulb-warm: #fff1c1;     /* share card: warm-white bulbs among the red, gold and green */

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
  
  /* Layers */
  --z-nav: 1002;                 /* turn-by-turn banner and strip: over the map and its controls,
                                    under popups (1500) and flyup sheets (9000) */

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
}

/* Gradient Backgrounds */
.gradient-christmas {
  background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
}

.gradient-green {
  background: linear-gradient(135deg, var(--christmas-green), var(--deep-forest));
}

.gradient-red {
  background: linear-gradient(135deg, var(--christmas-red), #a01830);
}

/* Button Styles */
.btn-christmas {
  background: linear-gradient(135deg, var(--christmas-green), var(--deep-forest));
  border: none;
  color: white;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.btn-christmas:hover {
  background: linear-gradient(135deg, var(--deep-forest), var(--christmas-green));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Badge Styles */
.badge-gold {
  background: var(--christmas-gold);
  color: var(--deep-forest);
  font-weight: 600;
}

.badge-feature {
  background: rgba(46, 125, 50, 0.1);
  color: var(--christmas-green);
  border: 1px solid var(--christmas-green);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}
/* css/sparkletour-components.css */
/*
 * Shared components from DESIGN.md section 7. Tokens come from css/map-theme.css.
 *
 * Button: outline pill.
 *   .st-btn--green  primary family     .st-btn--red    secondary / reverse
 *   .st-btn--solid  filled, once per view for the main action
 *   .st-btn--block  full width         .st-btn--sm     36px, Leaflet popups only
 */

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  min-height: 44px;
  padding: 0 var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.st-btn .bi {
  font-size: 1.05em;
}

.st-btn--green {
  border-color: var(--christmas-green);
  color: var(--christmas-green);
}

.st-btn--red {
  border-color: var(--christmas-red);
  color: var(--christmas-red);
}

.st-btn--solid.st-btn--green {
  background: var(--christmas-green);
  color: var(--on-color);
}

.st-btn--solid.st-btn--red {
  background: var(--christmas-red);
  color: var(--on-color);
}

.st-btn--block {
  display: flex;
  width: 100%;
}

.st-btn--sm {
  min-height: 36px;
  padding: 0 var(--spacing-sm);
  font-size: 0.875rem;
}

@media (hover: hover) {
  .st-btn--green:hover {
    background: var(--christmas-green);
    color: var(--on-color);
  }

  .st-btn--red:hover {
    background: var(--christmas-red);
    color: var(--on-color);
  }

  .st-btn--solid.st-btn--green:hover {
    border-color: var(--deep-forest);
    background: var(--deep-forest);
  }
}

.st-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.st-btn:disabled,
.st-btn[aria-disabled="true"] {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .st-btn {
    transition: none;
  }
}

/* css/map-main.css */
/* Support Chip Styles */
.support-chip-container {
  position: absolute !important;
  bottom: 2rem !important;
  left: 0.75rem !important;
  z-index: 1001 !important;
}

.support-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: 999px !important;
  background: #c41e3a !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.support-chip:hover,
.support-chip:focus {
  background: #a01729 !important;
  color: white !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.5) !important;
  transform: translateY(-4px) scale(1.1) !important;
  outline: none !important;
}

.support-chip:active {
  transform: translateY(-2px) scale(1.05) !important;
}

.support-chip i {
  font-size: 1rem !important;
}

/* SparkleTour Map - Main Styles */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: visible;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  /* Remove position:relative and overflow:hidden to allow fixed elements to work properly */
  position: static;
  overflow: visible;
}

/* Keep map container with overflow hidden instead */
.map-fullscreen {
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Full Viewport Map Container */
.map-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
}

#map {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* Overlay Layer - Contains all UI controls */
.map-overlays {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
}

.map-overlays > * {
  pointer-events: auto;
}

/* Logo Overlay */
.overlay-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  max-width: 160px;
  background: var(--overlay-bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  z-index: 1001;
}

.overlay-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.overlay-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Top Controls Container */
.overlay-top-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  z-index: 1002;
}

/* City Selector Wrapper - REMOVED (now in Options menu) */

/* Social Links Compact */
.social-links-compact {
  display: flex;
  gap: 0.5rem;
  background: var(--overlay-bg);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.social-links-compact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--christmas-green), var(--deep-forest));
  transition: all var(--transition-normal);
}

.social-links-compact a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-links-compact a img {
  width: 24px;
  height: 24px;
}

/* Floating Action Button (FAB) */
.fab-container {
  position: absolute;
  bottom: 2rem;
  right: 0.75rem;
  z-index: 1001;
}

.fab {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--christmas-green), var(--deep-forest));
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fab:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.5);
}

.fab:active {
  transform: translateY(-2px) scale(1.05);
}

.fab i {
  font-size: 1.5rem;
}

/* Modal Styling - Bootstrap 5 Enhanced */
.modal-content {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
  color: white;
  border-bottom: 2px solid var(--christmas-gold);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Form Styling */
.form-label {
  font-weight: 600;
  color: var(--christmas-green);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  border-radius: var(--radius-sm);
  border: 2px solid #e0e0e0;
  padding: 0.75rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--christmas-green);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

textarea.form-control {
  min-height: 100px;
}

/* Button Styles */
.btn-success {
  background: linear-gradient(135deg, var(--christmas-green), var(--deep-forest));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--deep-forest), var(--christmas-green));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Loading Spinner */
#loading-spinner {
  display: none;
  text-align: center;
  padding: 2rem;
}

#loading-spinner.show {
  display: block;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

/* Thanks Message */
#thanks:not(:empty) {
  min-height: 60px;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius-sm);
  color: #155724;
}

#thanks:empty {
  display: none;
}

/* Photo Preview */
#photo-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* Feature Checkboxes */
.feature-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-checkboxes .form-check {
  margin: 0;
}

.feature-checkboxes label {
  font-size: 0.9rem;
  font-weight: normal;
  cursor: pointer;
}

/* Leaflet Control Positioning */
.leaflet-top.leaflet-left {
  top: 5rem;
  left: 1rem;
}

.leaflet-top.leaflet-right {
  top: 5rem;
  right: 1rem;
}

.leaflet-bottom.leaflet-left {
  bottom: 1rem;
  left: 1rem;
}

.leaflet-bottom.leaflet-right {
  bottom: 0.5rem;
  right: 0.5rem;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  margin: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Ensure popup pane is above all controls except logo */
.leaflet-popup-pane {
  z-index: 1500 !important;
}

/* Ensure the popup itself has high z-index */
.leaflet-popup {
  z-index: 1500 !important;
}

/* Leaflet popup close button: white X on the header gradient, 44px target.
   Same specificity as Leaflet's own rule and loaded after it, so no !important. */
.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-xs);
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1rem auto no-repeat;
  opacity: 0.85;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.leaflet-container a.leaflet-popup-close-button:focus-visible {
  outline: var(--focus-ring-on-color);
  outline-offset: -4px;
  opacity: 1;
}

@media (hover: hover) {
  .leaflet-container a.leaflet-popup-close-button:hover {
    background-color: var(--on-color-hover);
    color: transparent;
    opacity: 1;
  }
}

/* User Location Marker Styles */
.user-location-marker {
  position: relative;
  width: 20px;
  height: 20px;
}

.user-location-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #4285f4;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.user-location-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  animation: pulse-animation 2s ease-out infinite;
  z-index: 1;
}

@keyframes pulse-animation {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Support Chip Styles */
.support-chip-container {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
}

.support-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #c41e3a;
  color: #c41e3a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.support-chip:hover,
.support-chip:focus {
  background: #c41e3a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  outline: none;
}

.support-chip i {
  font-size: 1rem;
}

/* css/map-responsive.css */
/* SparkleTour Map - Responsive Styles */

/* Tablet and Below (768px) - Base tablet styles */
@media (max-width: 768px) {
  /* Logo Overlay */
  .overlay-logo {
    max-width: 140px;
    padding: 0.5rem 0.75rem;
    top: 0.75rem;
    left: 0.75rem;
  }
  
  /* Top Controls - Keep horizontal on tablet */
  .overlay-top-controls {
    top: 0.75rem;
    right: 0.75rem;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }
  
  /* Help button wrapper */
  .help-button-wrapper {
    flex-shrink: 0;
  }
}

/* Tablet Medium Range (600px - 770px) - Prevent logo/controls overlap */
/* This must come AFTER the 768px query to override it */
@media (min-width: 600px) and (max-width: 770px) {
  /* Logo Overlay - Keep at top like other sizes */
  .overlay-logo {
    max-width: 110px !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
  }
  
  /* Top Controls - Position BELOW the logo with clear separation */
  /* Logo is ~27px tall + 0.8rem padding + 0.75rem top = need ~3.5rem for controls */
  .overlay-top-controls {
    top: 3.5rem !important;
    right: 0.75rem !important;
  }
}

/* Continue with other tablet styles */
@media (max-width: 768px) {
  
  /* Social Links */
  .social-links-compact a {
    width: 36px;
    height: 36px;
  }
  
  .social-links-compact a img {
    width: 20px;
    height: 20px;
  }
  
  /* FAB - Positioning */
  .fab-container {
    right: 1.5rem;
  }
  
  /* Modal Adjustments */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-title {
    font-size: 1.125rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  /* Form Controls */
  .form-control {
    font-size: 0.9rem;
    padding: 0.625rem;
  }
  
  .btn-success {
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Leaflet Controls */
  .leaflet-top.leaflet-left {
    top: 4rem;
    left: 0.75rem;
  }
  
  .leaflet-top.leaflet-right {
    top: 4rem;
    right: 0.75rem;
  }
  
  /* Keep attribution at the bottom of the screen on tablet */
  .leaflet-bottom.leaflet-right {
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  /* Logo Overlay */
  .overlay-logo {
    max-width: 120px;
    padding: 0.4rem 0.6rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  
  /* Top Controls - Stack horizontally with proper alignment */
  .overlay-top-controls {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.5rem;
    flex-direction: row;
    align-items: center;
  }
  
  /* Help button wrapper - ensure it stays inline */
  .help-button-wrapper {
    flex-shrink: 0;
  }
  
  .help-button-wrapper .btn-link i {
    font-size: 1.75rem !important;
  }
  
  /* Social Links - Smaller */
  .social-links-compact {
    padding: 0.4rem;
    gap: 0.4rem;
  }
  
  .social-links-compact a {
    width: 32px;
    height: 32px;
  }
  
  .social-links-compact a img {
    width: 18px;
    height: 18px;
  }
  
  /* FAB - Positioning */
  .fab-container {
    right: 1rem;
  }
  
  /* Modal - Full screen on small devices */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }
  
  .modal-content {
    border-radius: 0;
  }
  
  .modal-header {
    border-radius: 0;
  }
  
  .modal-footer {
    border-radius: 0;
  }
  
  .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-title {
    font-size: 1rem;
  }
  
  /* Form Adjustments */
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
  }
  
  .form-control {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  
  textarea.form-control {
    min-height: 80px;
  }
  
  .btn-success {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Feature Checkboxes - Smaller */
  .feature-checkboxes label {
    font-size: 0.8rem;
  }
  
  /* Photo Preview - Smaller */
  #photo-preview img {
    max-height: 150px;
  }
  
  /* Leaflet Controls - Adjusted for small screens */
  .leaflet-top.leaflet-left {
    top: 3.5rem;
    left: 0.5rem;
  }
  
  .leaflet-top.leaflet-right {
    top: 3.5rem;
    right: 0.5rem;
  }
  
  .leaflet-bottom.leaflet-left {
    bottom: 0.5rem;
    left: 0.5rem;
  }
  
  /* Keep attribution at the very bottom of the screen on mobile */
  .leaflet-bottom.leaflet-right {
    bottom: 0.25rem;
    right: 0.5rem;
  }
  
  /* Leaflet Popup - Larger on mobile since controls are hidden */
  .leaflet-popup-content {
    margin: 1rem;
    font-size: 0.95rem;
  }
  
  .leaflet-popup-content-wrapper {
    max-width: 90vw !important;
    min-width: 320px !important;
  }
}

/* Very small screens - still generous sizing */
@media (max-width: 400px) {
  .leaflet-popup-content-wrapper {
    max-width: 90vw !important;
    min-width: 280px !important;
  }
  
  .leaflet-popup-content {
    margin: 0.875rem;
    font-size: 0.9rem;
  }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  /* Reduce vertical spacing in landscape */
  .overlay-logo {
    top: 0.5rem;
    left: 0.5rem;
    max-width: 100px;
    padding: 0.35rem 0.5rem;
  }
  
  .overlay-top-controls {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .fab-container {
    right: 0.75rem;
  }
  
  /* Modal adjustments for landscape */
  .modal-dialog {
    margin: 0.5rem auto;
    max-height: 90vh;
  }
  
  .modal-content {
    display: flex;
    flex-direction: column;
  }
  
  .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    padding: 0.75rem 1rem;
  }
  
  .modal-header,
  .modal-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
  }
  
  .modal-title {
    font-size: 1.125rem;
  }
  
  /* Action sheets should use more horizontal space */
  .map-action-sheet {
    max-height: 75vh;
    border-radius: 16px 16px 0 0;
  }
  
  .action-sheet-content {
    padding: 12px 16px;
  }
  
  .action-sheet-header {
    padding: 12px 16px;
  }
  
  .action-sheet-title {
    font-size: 1.125rem;
  }
  
  .action-sheet-footer {
    padding: 12px 16px;
  }
  
  /* Form controls in landscape */
  .form-control {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
  }
  
  textarea.form-control {
    min-height: 60px;
  }
  
  /* Buttons in landscape */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn-success,
  .btn-primary {
    padding: 0.625rem 1.25rem;
  }
}

/* Large Screens (1200px and above) - Logo size removed to keep consistent 160px max */
@media (min-width: 1200px) {
  /* Logo size now stays at base 160px for consistency */
  
  
  .modal-dialog {
    max-width: 800px;
  }
}

/* Print Styles */
@media print {
  .map-overlays,
  .fab-container,
  .overlay-top-controls,
  .leaflet-control-container {
    display: none !important;
  }
  
  .overlay-logo {
    position: static;
    max-width: 150px;
    margin-bottom: 1rem;
  }
  
  #map {
    height: 600px !important;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fab:hover,
  .overlay-logo:hover,
  .social-links-compact a:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .overlay-logo,
  .social-links-compact {
    border: 2px solid currentColor;
  }
  
  .fab {
    border: 3px solid white;
  }
}
/* css/map-controls-mobile.css */
/* SparkleTour - Mobile-Friendly Map Controls */

/* ============================================
   MODERN LEAFLET CONTROL STYLING
   ============================================ */

/* Make top-left control container use flexbox for ordering */
.leaflet-top.leaflet-left {
  display: flex;
  flex-direction: column;
}

/* Hide redundant controls - they're now in the Options menu */
.leaflet-control-locate,
.filter-control {
  display: none !important;
}

/* Fix Leaflet zoom control order - ensure + is on top, - is on bottom */
.leaflet-control-zoom {
  display: flex;
  flex-direction: column;
}

.leaflet-control-zoom-in {
  order: 1;
  border-radius: 12px 12px 0 0 !important;
}

.leaflet-control-zoom-out {
  order: 2;
  border-radius: 0 0 12px 12px !important;
  border-top: 1px solid #ccc;
}

/* Override default Leaflet control sizes for mobile */
.leaflet-control-container .leaflet-bar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 12px;
}

/* Ensure Options button has rounded corners */
.leaflet-bar .options-button {
  border-radius: 12px !important;
}

.leaflet-control-container .leaflet-bar a {
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-size: 20px;
  border: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}

.leaflet-control-container .leaflet-bar a:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.leaflet-control-container .leaflet-bar a:active {
  background-color: #e0e0e0;
  transform: scale(0.98);
}

/* Control labels for better clarity */
.leaflet-control-label {
  font-size: 9px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
  line-height: 1;
  text-align: center;
}

/* Icon sizing */
.leaflet-bar a img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

.leaflet-bar a .bi {
  font-size: 24px;
  line-height: 1;
}

/* Active state for toggleable controls */
.leaflet-bar a.active {
  background: #dc3545;
  color: white;
}

.leaflet-bar a.active .leaflet-control-label {
  color: white;
}

.leaflet-bar a.bestof-active {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #333;
}

.leaflet-bar a.bestof-active .bi {
  color: #333;
}

/* ============================================
   FILTER INDICATOR CONTROL
   ============================================ */

.filter-indicator-control {
  margin-top: 8px;
  animation: slideInDown 0.3s ease-out;
  order: 10; /* Ensure it appears after Options button */
}

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

.filter-indicator-button {
  background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
  color: white !important;
  position: relative;
  border-radius: 12px !important;
}

.filter-indicator-button:hover {
  background: #c82333 !important;
  transform: scale(1.05);
}

.filter-indicator-button .bi {
  color: white;
}

.filter-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ffd700;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

/* Pulse animation for filter indicator */
.filter-indicator-control {
  animation: slideInDown 0.3s ease-out, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.6);
  }
}

/* ============================================
   ACTION SHEET BACKDROP
   ============================================ */

.action-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1999;
}

.action-sheet-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BOTTOM ACTION SHEET
   ============================================ */

.map-action-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-action-sheet.open {
  transform: translateY(0);
}

/* Action sheet handle */
.action-sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 8px;
  cursor: grab;
}

.action-sheet-handle:active {
  cursor: grabbing;
}

/* Action sheet header */
.action-sheet-header {
  padding: 0 20px 12px;
  border-bottom: 1px solid #e0e0e0;
}

.action-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

/* Action sheet content */
.action-sheet-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Action buttons grid */
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #333;
  min-height: 100px;
}

.action-button:hover {
  border-color: #2e7d32;
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.action-button:active {
  transform: translateY(0);
}

.action-button.active {
  background: #dc3545;
  color: white;
}

.action-button-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: #2e7d32;
}

/* Mix of green and red icon colors for variety */
.action-button[data-action="community"] .action-button-icon {
  color: #c41e3a; /* Red */
}

.action-button[data-action="list"] .action-button-icon {
  color: #2e7d32; /* Green */
}

.action-button[data-action="print"] .action-button-icon {
  color: #c41e3a; /* Red */
}

.action-button[data-action="bestof"] .action-button-icon {
  color: #ffd700; /* Gold */
}

.action-button[data-action="locate"] .action-button-icon {
  color: #2e7d32; /* Green */
}

.action-button[data-action="filters"] .action-button-icon {
  color: #c41e3a; /* Red */
}

.action-button[data-action="submit"] .action-button-icon {
  color: #2e7d32; /* Green */
}

.action-button.active .action-button-icon {
  color: white;
}

.action-button-label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.action-button-description {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
}

.action-button.active .action-button-description {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FLOATING ACTION MENU (Speed Dial)
   ============================================ */

.fab-menu {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
}

.fab-menu-items {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-menu.open .fab-menu-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.fab-menu-label {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.fab-menu.open .fab-menu-label {
  opacity: 1;
  transform: translateX(0);
}

.fab-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #2e7d32;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fab-mini:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab-mini:active {
  transform: scale(1.05);
}

.fab-main {
  transition: all 0.3s ease;
}

.fab-menu.open .fab-main {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #c41e3a, #a01729);
}

/* ============================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .leaflet-control-container .leaflet-bar a {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
  
  .leaflet-control-label {
    font-size: 8px;
  }
  
  .action-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fab-menu {
    bottom: 1.5rem;
    right: 1.5rem;
}

/* ============================================
   ADDRESS LIST FLYUP SHEET
   ============================================ */

.address-list-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.address-list-sheet.open {
  transform: translateY(0);
}

/* Sheet close button in header */
.address-list-sheet .sheet-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.address-list-sheet .sheet-close-btn:hover {
  color: #c41e3a;
}

/* Address list content area */
.address-list-content {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

.address-list-info {
  padding: 0 0 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

/* Style the list items from leaflet-list-markers */
.address-list-content .list-markers-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.address-list-content .list-markers-li {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  font-size: 14px;
  line-height: 1.5;
}

.address-list-content .list-markers-li:hover {
  background: #f8f9fa;
}

.address-list-content .list-markers-li:last-child {
  border-bottom: none;
}

/* Footer buttons */
.address-list-sheet .action-sheet-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  background: #f8f9fa;
}

.address-list-sheet .btn {
  flex: 1;
  background: white !important;
  border: 2px solid;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.address-list-sheet .btn-close-sheet {
  color: var(--christmas-red);
  border-color: var(--christmas-red);
}

.address-list-sheet .btn-close-sheet:hover {
  background: var(--christmas-red) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.address-list-sheet .btn-print {
  color: var(--christmas-green);
  border-color: var(--christmas-green);
}

.address-list-sheet .btn-print:hover {
  background: var(--christmas-green) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .address-list-sheet {
    left: 50%;
    transform: translate(-50%, 100%);
    max-width: 600px;
    border-radius: 20px 20px 0 0;
  }
  
  .address-list-sheet.open {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 576px) {
  .address-list-sheet .action-sheet-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .address-list-sheet .btn {
    width: 100%;
  }
  }

/* ============================================
   FILTERS FLYUP ACTION SHEET
   ============================================ */

/* Filters backdrop */
.filters-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filters-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* Filters sheet */
.filters-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  z-index: 2000;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filters sheet header */
.filters-sheet .action-sheet-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.filters-sheet .action-sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--christmas-red);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filters sheet content */
.filters-sheet .action-sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

/* Section headers */
.filters-sheet .filter-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--christmas-green);
  margin-bottom: 12px;
  display: block;
}

/* Quick filters container */
.filters-sheet .quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Filter chips */
.filters-sheet .filter-chip {
  background: white;
  border: 2px solid #dee2e6;
  color: #212529;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filters-sheet .filter-chip:hover {
  background: #f8f9fa;
  border-color: var(--christmas-red);
  transform: translateY(-2px);
}

.filters-sheet .filter-chip.active {
  background: var(--christmas-red);
  color: white;
  border-color: var(--christmas-red);
}

/* Feature filters grid */
.filters-sheet .feature-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.filters-sheet .feature-chip-wrapper {
  display: block;
}

.filters-sheet .feature-chip-label {
  cursor: pointer;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  background: white;
  border: 2px solid #dee2e6;
  color: #212529;
  font-weight: normal;
  min-height: 44px;
}

.filters-sheet .feature-chip-label:hover {
  background: #f8f9fa;
  border-color: var(--christmas-red);
  transform: translateY(-1px);
}

.filters-sheet .feature-chip-label.active {
  background: var(--christmas-red);
  color: white;
  border-color: var(--christmas-red);
}

.filters-sheet .feature-chip-label input[type="checkbox"] {
  display: none;
}

/* Active filters count */
.filters-sheet .active-filters-alert {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0c5460;
}

.filters-sheet .active-filters-alert.hidden {
  display: none;
}

/* Filters sheet footer */
.filters-sheet .action-sheet-footer {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.filters-sheet .btn {
  background: white !important;
  border: 2px solid !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  padding: 12px 24px !important;
  font-size: 0.95rem !important;
  flex: 1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
}

.filters-sheet .btn-clear {
  color: var(--christmas-red) !important;
  border-color: var(--christmas-red) !important;
}

.filters-sheet .btn-clear:hover {
  background: var(--christmas-red) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

.filters-sheet .btn-apply {
  color: var(--christmas-green) !important;
  border-color: var(--christmas-green) !important;
}

.filters-sheet .btn-apply:hover {
  background: var(--christmas-green) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .filters-sheet {
    left: 50%;
    transform: translate(-50%, 100%);
    max-width: 600px;
    border-radius: 20px 20px 0 0;
  }
  
  .filters-sheet.open {
    transform: translate(-50%, 0);
  }
  
  .filters-sheet .feature-filters-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 576px) {
  .filters-sheet .action-sheet-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .filters-sheet .btn {
    width: 100%;
  }
  
  .filters-sheet .feature-filters-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
}

@media (max-width: 576px) {
  .leaflet-control-container .leaflet-bar a {
    width: 42px;
    height: 42px;
    line-height: 42px;
  }
  
  .leaflet-bar a .bi {
    font-size: 20px;
  }
  
  .leaflet-bar a img {
    width: 20px;
    height: 20px;
  }
  
  .action-sheet-content {
    padding: 16px;
  }
  
  .action-buttons-grid {
    gap: 10px;
  }
  
  .action-button {
    padding: 12px;
    min-height: 90px;
  }
  
  .action-button-icon {
    font-size: 28px;
  }
  
  .action-button-label {
    font-size: 12px;
  }
  
  .fab-menu {
    bottom: 1rem;
    right: 1rem;
  }
  
  
  .fab-mini {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  /* Action sheets - reduce height for landscape */
  .map-action-sheet {
    max-height: 75vh;
  }
  
  /* FAB menu positioning */
  .fab-menu {
    bottom: 0.5rem;
    right: 0.5rem;
  }
  
  
  /* Compact FAB mini buttons */
  .fab-mini {
    width: 40px;
    height: 40px;
  }
  
  .fab-mini i {
    font-size: 1rem;
  }
  
  /* Adjust control positioning for landscape */
  .filter-indicator-control {
    margin-top: 4px;
  }
  
  .filter-indicator-button {
    width: 44px;
    height: 44px;
  }
  
  .filter-indicator-button .bi {
    font-size: 1.125rem;
  }
  
  .filter-count-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -6px;
    right: -6px;
  }
  
  /* Leaflet controls positioning - keep below logo and overlay controls */
  .leaflet-top.leaflet-left {
    top: 4rem;
  }
  
  .leaflet-top.leaflet-right {
    top: 4rem;
  }
  
  /* Compact leaflet control buttons */
  .leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }
  
  /* Action buttons in landscape */
  .action-button {
    width: 44px;
    height: 44px;
  }
  
  .action-button-icon {
    font-size: 20px;
  }
  
  .action-button-label {
    font-size: 10px;
  }
  
  /* Compact action sheet content */
  .action-sheet-content {
    padding: 12px 16px;
  }
  
  .action-sheet-header {
    padding: 12px 16px;
  }
  
  .action-sheet-footer {
    padding: 12px 16px;
  }
  
  /* List items in action sheets */
  .action-sheet-list-item {
    padding: 10px 12px;
  }
  
  .action-sheet-list-item-title {
    font-size: 0.9375rem;
  }
  
  .action-sheet-list-item-subtitle {
    font-size: 0.8125rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.leaflet-bar a:focus,
.action-button:focus,
.fab:focus,
.fab-mini:focus {
  outline: 3px solid #2e7d32;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .leaflet-bar a,
  .action-button,
  .fab,
  .fab-mini,
  .map-action-sheet,
  .fab-menu-items,
  .fab-menu-label {
    transition: none;
  }
  
  .leaflet-bar a:hover,
  .action-button:hover,
  .fab-mini:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .leaflet-bar a,
  .action-button,
  .fab,
  .fab-mini {
    border: 2px solid currentColor;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.action-button.loading {
  pointer-events: none;
  opacity: 0.6;
}

.action-button.loading .action-button-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #2e7d32;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   BACKDROP FOR ACTION SHEET
   ============================================ */

.action-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1999;
}

.action-sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
/* css/map-routing.css */
/**
 * SparkleTour Routing Styles
 * Styles for the routing panel and tour planning interface
 */

/* Routing Panel */
.routing-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: right 0.3s ease, width 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.routing-panel.active {
  right: 0;
}

/* Expanded state (desktop only) */
.routing-panel.expanded {
  width: 800px;
  max-width: 95vw;
}

/* Mobile: always full width */
@media (max-width: 767px) {
  .routing-panel {
    width: 100vw;
    max-width: 100vw;
  }
  
  .routing-panel.expanded {
    width: 100vw;
  }
}

/* Tab Trigger */
.routing-tab-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 300px;
  background: linear-gradient(to bottom, #a01828, #dc3545);
  color: white;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: width 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: width 0.3s ease, box-shadow 0.3s ease;
  -o-transition: width 0.3s ease, box-shadow 0.3s ease;
  transition: width 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.routing-tab-trigger:hover {
  width: 52px;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}

.routing-tab-trigger.hidden {
  right: -60px;
}

.routing-tab-trigger .tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.routing-tab-trigger .tab-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  padding: 8px 0;
}

.routing-tab-trigger .tab-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  background: #ffd700;
  color: #333;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.routing-tab-trigger .tab-badge.pulse {
  animation: badgePulse 0.6s ease-out;
}

/* Saved route indicator */
.routing-tab-trigger.has-saved-route {
  animation: tabPulse 2s ease-in-out infinite;
}

@keyframes tabPulse {
  0%, 100% {
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: -4px 0 16px rgba(255, 215, 0, 0.6);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    background: #ffd700;
  }
  50% {
    transform: scale(1.3);
    background: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  }
}

/* Tablet: medium screens */
@media (min-width: 600px) and (max-width: 770px) {
  .routing-tab-trigger .tab-text {
    line-height: 1.5;
    padding: 10px 0;
  }
}

/* Mobile: larger touch target */
@media (max-width: 767px) {
  .routing-tab-trigger {
    width: 56px;
  }
  
  .routing-tab-trigger:hover {
    width: 56px;
  }
  
  .routing-tab-trigger .tab-content {
    padding: 20px 0;
  }
  
  .routing-tab-trigger .tab-text {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Panel Header */
.routing-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  color: white;
  background: linear-gradient(140deg,rgba(196, 30, 58, 1) 0%, rgba(30, 121, 44, 1) 100%);
  flex-shrink: 0;
}

.routing-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.routing-panel-title i {
  font-size: 1.5rem;
}

.routing-panel-controls {
  display: flex;
  gap: 0.5rem;
}

.routing-panel-minimize,
.routing-panel-maximize,
.routing-panel-help,
.routing-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.routing-panel-minimize:hover,
.routing-panel-maximize:hover,
.routing-panel-help:hover,
.routing-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.routing-panel-help i {
  font-size: 1.25rem;
}

/* Hide maximize button on mobile and tablet */
@media (max-width: 1024px) {
  .routing-panel-maximize {
    display: none;
  }
}

/* Panel Content */
.routing-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Two-Column Layout (Expanded State - Desktop Only) */
.routing-panel.expanded .routing-panel-content {
  flex-direction: row;
  gap: 1.5rem;
  padding: 1.5rem;
}

.routing-left-column,
.routing-right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Collapsed: single column, both columns stack */
.routing-left-column {
  flex: 1;
}

.routing-right-column {
  flex: 1;
}

/* Expanded: two equal columns side by side */
.routing-panel.expanded .routing-left-column,
.routing-panel.expanded .routing-right-column {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/* Mobile: always single column */
@media (max-width: 1024px) {
  .routing-panel-content {
    flex-direction: column !important;
  }
  
  .routing-left-column,
  .routing-right-column {
    flex: 1 !important;
  }
}

/* Old restore button animations - kept for compatibility */
@keyframes addStopNotification {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  25% {
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
  }
  50% {
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.7);
  }
  75% {
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Mode Toggle */
.routing-mode-toggle {
  display: flex;
  gap: 0.5rem;
  background: #f5f5f5;
  padding: 0.25rem;
  border-radius: 8px;
}

.routing-mode-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  color: #666;
}

.routing-mode-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.routing-mode-btn.active {
  background: white;
  color: #2e7d32;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.routing-mode-btn i {
  font-size: 1.1rem;
}

/* Location Button */
.routing-location-btn {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.btn-location {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-location:hover:not(:disabled) {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-location:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-location i {
  font-size: 1.1rem;
}

.btn-location {
  flex-direction: column;
  gap: 0.25rem;
}

.btn-location .btn-main-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-location .btn-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.2;
  margin-top: 0.125rem;
}

/* Waypoints Section */
.routing-waypoints {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
}

.waypoints-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.waypoints-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.waypoint-count {
  color: #2e7d32;
  font-weight: 600;
}

.btn-optimize {
  background: #ffd700;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-optimize:hover {
  background: #ffed4e;
  transform: translateY(-1px);
}

.btn-optimize i {
  font-size: 1rem;
}

/* Waypoints List */
.waypoints-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.waypoints-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
}

.waypoints-empty i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.waypoints-empty p {
  margin: 0;
  font-size: 0.875rem;
}

/* Waypoint Item */
.waypoint-item {
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.waypoint-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.waypoint-marker {
  width: 32px;
  height: 32px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.waypoint-info {
  flex: 1;
  min-width: 0;
}

.waypoint-address {
  font-weight: 500;
  color: #333;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waypoint-coords {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.25rem;
}

.waypoint-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.waypoint-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #666;
}

.waypoint-action-btn:hover:not(:disabled) {
  background: #e0e0e0;
  color: #333;
}

.waypoint-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.waypoint-action-btn.waypoint-remove {
  color: #c41e3a;
}

.waypoint-action-btn.waypoint-remove:hover {
  background: #ffe0e0;
}

/* Route Summary */
.route-summary {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f0f8f0;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #2e7d32;
}

.summary-item i {
  font-size: 1.25rem;
}

/* Google Maps Warning */
.routing-warning {
  margin-bottom: 1rem;
}

.routing-warning .alert {
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.routing-warning .alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
}

.routing-warning .alert i {
  color: #ffc107;
  margin-top: 0.125rem;
}

.routing-warning .alert strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.routing-warning .alert p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Action Buttons */
.routing-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-routing {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border: 2px solid;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  background: white;
}

.btn-routing i {
  font-size: 1rem;
}

.btn-routing:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Clear Route Button - Red theme */
.btn-routing.btn-secondary {
  color: #c41e3a;
  border-color: #c41e3a;
}

.btn-routing.btn-secondary:hover {
  background: #c41e3a;
  color: white;
  border-color: #c41e3a;
}

/* Start Navigation Button - Green theme */
.btn-routing.btn-primary {
  color: #2e7d32;
  border-color: #2e7d32;
}

.btn-routing.btn-primary:hover {
  background: #2e7d32;
  color: white;
  border-color: #2e7d32;
}

/* Disabled state for Start Navigation button */
.btn-routing.btn-primary:disabled,
.btn-routing.btn-primary.disabled {
  background: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-routing.btn-primary:disabled:hover,
.btn-routing.btn-primary.disabled:hover {
  background: #f5f5f5;
  color: #999;
  border-color: #ddd;
  transform: none;
  box-shadow: none;
}

/* Share Route Button - Green theme */
.btn-routing.btn-success {
  background: white;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.btn-routing.btn-success:hover {
  background: #2e7d32;
  color: white;
  border: 2px solid #2e7d32;
}

/* Print Route Button - Gold theme */
.btn-routing.btn-print {
  background: white;
  color: #ffd700;
  border: 2px solid #ffd700;
}

.btn-routing.btn-print:hover {
  background: #ffd700;
  color: #333;
  border: 2px solid #ffd700;
}

/* Directions List */
.routing-directions {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
}

.routing-directions h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #333;
}

.directions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.direction-step {
  display: flex;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.direction-number {
  width: 28px;
  height: 28px;
  background: #c41e3a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.direction-text {
  flex: 1;
}

.direction-instruction {
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.direction-distance {
  font-size: 0.75rem;
  color: #999;
}

/* Tour Stop Markers in Directions */
.direction-tour-stop {
  display: flex;
  gap: 0.75rem;
  background: linear-gradient(135deg, #fff5f5, #f0f8f0);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #c41e3a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 0.5rem 0;
}

.direction-stop-icon {
  width: 36px;
  height: 36px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.direction-tour-start .direction-stop-icon {
  background: #2e7d32;
}

.direction-stop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.direction-stop-label {
  font-weight: 700;
  color: #2e7d32;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.direction-stop-address {
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Custom Route Waypoint Markers */
.route-waypoint-marker {
  width: 30px;
  height: 30px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 3px solid white;
  /* DEBUG: Ensure pointer events are enabled */
  pointer-events: auto !important;
  cursor: pointer !important;
  /* DEBUG: Add visual indicator when hovering */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-waypoint-marker:hover {
  /* DEBUG: Visual feedback on hover to confirm interactivity */
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  background: #ff4757 !important;
}

.route-waypoint-icon {
  background: transparent !important;
  border: none !important;
  /* DEBUG: Ensure parent container doesn't block clicks */
  pointer-events: auto !important;
}

/* Hide default Leaflet Routing Machine container */
.leaflet-routing-container {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .routing-panel {
    width: 100vw;
    right: -100vw;
  }
  
  .routing-panel.active {
    right: 0;
  }
  
  /* Ensure minimize button is large enough for mobile touch */
  .routing-panel-minimize,
  .routing-panel-close {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .routing-mode-btn {
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
  }
  
  .routing-mode-btn span {
    display: none;
  }
  
  .routing-mode-btn i {
    font-size: 1.25rem;
  }
  
  .waypoint-item {
    padding: 0.625rem;
  }
  
  .waypoint-address {
    font-size: 0.8125rem;
  }
  
  .btn-routing {
    min-width: 100px;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .routing-panel {
    width: 350px;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .waypoint-action-btn {
    width: 36px;
    height: 36px;
  }
  
  .routing-panel-close {
    width: 44px;
    height: 44px;
  }
  
  .btn-routing {
    padding: 1rem;
    min-height: 44px;
  }
}

/* Print styles */
@media print {
  .routing-panel {
    display: none;
  }
}
/* Direct Route Origin Section */
.routing-origin-section {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.routing-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.routing-origin-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.routing-origin-options .btn-location {
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.routing-origin-options .btn-location:hover {
  background: #2e7d32;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.routing-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
}

.routing-divider::before,
.routing-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.routing-divider span {
  padding: 0 0.75rem;
}

.routing-address-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.routing-address-input .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin: 0;
}

.routing-address-input .form-control {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.routing-address-input .form-control:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.routing-address-input .text-muted {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

/* Mode Switch Action Sheet */
.mode-switch-action-sheet .action-sheet-content {
  padding: 1.5rem;
}

.mode-switch-action-sheet .btn {
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.mode-switch-action-sheet .btn-success {
  background: white;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.mode-switch-action-sheet .btn-success:hover {
  background: #2e7d32;
  color: white;
  transform: translateY(-2px);
}

.mode-switch-action-sheet .btn-outline-secondary {
  background: white;
  color: #c41e3a;
  border: 2px solid #c41e3a;
}

.mode-switch-action-sheet .btn-outline-secondary:hover {
  background: #c41e3a;
  color: white;
  border-color: #c41e3a;
  transform: translateY(-2px);
}

/* Disabled Add to Tour Button */
.add-to-tour-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-to-tour-btn:disabled:hover {
  transform: none;
}

/* Generate Route Button */
.btn-generate-route {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.btn-generate-route:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-generate-route:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-generate-route.needs-update {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  animation: buttonPulse 2s ease-in-out infinite;
}

.btn-generate-route.needs-update:hover {
  background: linear-gradient(135deg, #f57c00, #ff9800);
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.6);
  }
}

.btn-generate-route .btn-badge {
  background: white;
  color: #f57c00;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.optimize-option {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: 6px;
}

.optimize-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}

.optimize-option .form-check-input {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.optimize-option i {
  color: #ff9800;
}

.waypoint-marker-numbered {
  width: 32px;
  height: 32px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.route-marker-outdated {
  opacity: 0.5;
  filter: grayscale(50%);
}

/* Pulse animation for update button */
.pulse-update {
  animation: buttonPulse 2s ease-in-out infinite !important;
}

/* Red border for outdated waypoint items */
.waypoint-item.waypoint-outdated {
  border: 2px solid #ff6b6b !important;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
  animation: waypoint-outdated-pulse 2s ease-in-out infinite;
}

@keyframes waypoint-outdated-pulse {
  0%, 100% {
    border-color: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
  }
  50% {
    border-color: #ff4444;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.5);
  }
}

.route-waypoint-marker {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #c41e3a, #8b1429);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/**
 * Route Toggle Control Button
 * Leaflet control for showing/hiding route lines and waypoint markers
 */
.route-toggle-control {
  margin-top: 8px;
  animation: slideInDown 0.3s ease-out;
}

.route-toggle-button {
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
  color: white !important;
  border: none;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  animation: routePulse 2s ease-in-out infinite;
  text-decoration: none;
}

.route-toggle-button:hover {
  background: #c82333 !important;
  transform: scale(1.05);
}

.route-toggle-button:active {
  transform: scale(0.98);
}

/* Active state - route visible */
.route-toggle-button.active {
  background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
  animation: routePulse 2s ease-in-out infinite;
}

/* Inactive state - route hidden */
.route-toggle-button.inactive {
  background: linear-gradient(135deg, #666, #444) !important;
  animation: none;
  opacity: 0.7;
}

.route-toggle-button.inactive:hover {
  opacity: 1;
}

@keyframes routePulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.6);
  }
}

/* Icon inside button */
.route-toggle-icon {
  font-size: 24px;
  color: white;
  line-height: 1;
}

/* Status badge - similar to follow me badge */
.route-status-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ffd700;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.route-toggle-button.inactive .route-status-badge {
  background: #999;
  color: white;
}

/* Slide in animation */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .route-toggle-control {
    margin-top: 8px !important;
  }
  
  .route-toggle-button {
    width: 40px;
    height: 40px;
  }
  
  .route-toggle-button i {
    font-size: 20px;
  }
}


/* ============================================
   LANDSCAPE MODE OPTIMIZATIONS
   ============================================ */

/* Landscape mode optimizations for routing panel */
@media (max-width: 768px) and (orientation: landscape) {
  /* Routing panel - use less width in landscape */
  .routing-panel {
    width: 50vw;
    max-width: 400px;
  }
  
  /* Reduce padding in content area */
  .routing-panel-content {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  /* Keep tab trigger at consistent height */
  .routing-tab-trigger {
    height: 300px;
    width: 32px;
  }
  
  .routing-tab-trigger .tab-text {
    font-size: 11px;
  }
  
  /* Compact header */
  .routing-panel-header {
    padding: 0.75rem;
  }
  
  .routing-panel-title {
    font-size: 1.125rem;
  }
  
  .routing-panel-title i {
    font-size: 1.25rem;
  }
  
  /* Compact control buttons */
  .routing-panel-minimize,
  .routing-panel-maximize,
  .routing-panel-help,
  .routing-panel-close {
    width: 36px;
    height: 36px;
  }
  
  /* Compact waypoint items */
  .waypoint-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .waypoint-marker {
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
  }
  
  .waypoint-address {
    font-size: 0.8125rem;
  }
  
  .waypoint-coords {
    font-size: 0.6875rem;
  }
  
  .waypoint-action-btn {
    width: 24px;
    height: 24px;
  }
  
  /* Compact route summary */
  .route-summary {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .summary-item {
    font-size: 0.875rem;
  }
  
  .summary-item i {
    font-size: 1.125rem;
  }
  
  /* Compact directions */
  .direction-step {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .direction-number {
    width: 24px;
    height: 24px;
    font-size: 0.8125rem;
  }
  
  .direction-instruction {
    font-size: 0.8125rem;
  }
  
  .direction-distance {
    font-size: 0.6875rem;
  }
  
  /* Compact tour stop markers */
  .direction-tour-stop {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .direction-stop-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .direction-stop-label {
    font-size: 0.6875rem;
  }
  
  .direction-stop-address {
    font-size: 0.8125rem;
  }
  
  /* Compact action buttons */
  .btn-routing {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    min-width: 100px;
  }
  
  .btn-routing i {
    font-size: 0.875rem;
  }
  
  /* Compact mode toggle */
  .routing-mode-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .routing-mode-btn i {
    font-size: 1rem;
  }
  
  /* Compact location button */
  .btn-location {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .btn-location i {
    font-size: 1rem;
  }
  
  /* Compact optimize button */
  .btn-optimize {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .btn-optimize i {
    font-size: 0.875rem;
  }
  
  /* Compact waypoints section */
  .routing-waypoints {
    padding: 0.75rem;
  }
  
  .waypoints-header h4 {
    font-size: 0.9375rem;
  }
  
  /* Compact directions section */
  .routing-directions {
    padding: 0.75rem;
  }
  
  .routing-directions h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
  }
  
  /* Compact origin section */
  .routing-origin-section {
    padding: 0.75rem;
  }
  
  .routing-section-title {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
  }
  
  .routing-address-input .form-control {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Compact generate route button */
  .btn-generate-route {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  /* Compact optimize options */
  .optimize-option {
    padding: 0.4rem;
    margin-bottom: 0.5rem;
  }
  
  .optimize-option label {
    font-size: 0.8125rem;
  }
}

/* Tour Options (Avoid Highways, Santa Voice): shown once a tour is planned.
   Filter chips, green with a check mark when on. */
.routing-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.routing-options[hidden],
.routing-options [hidden] {
  display: none;
}
.routing-options .routing-section-title {
  margin: 0;
}
.routing-options-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.routing-option-chip {
  min-height: 44px;
  padding: 0 var(--spacing-md);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.routing-options-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.routing-option-chip:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* css/tour-panel.css */
/*
 * Tour planner panel ("Plan Your Tour" / "Your Tour"), js/sparkletour-routing.js.
 *
 * Layout: summary (time, distance, seen, Avoid Highways) at the top, the stops in the
 * middle, written directions collapsed under them, and a footer that stays in view:
 * Start Tour, then Save & Share, Other Apps and More. On phones held upright the panel is
 * a bottom sheet that opens part way (map still in view) and drags up to full height.
 *
 * Loaded after css/map-routing.css (older rules with literal colours); everything here
 * uses the tokens in css/map-theme.css.
 */

/* ------------------------------------------------------------ summary */

.routing-panel .route-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm) var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-left: 4px solid var(--christmas-green);
  border-radius: var(--radius-sm);
  background: var(--green-tint);
}

.routing-panel .route-summary[style*="display: none"] {
  display: none;
}

.route-summary-figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
}

.routing-panel .summary-item {
  color: var(--christmas-green);
  font-weight: 600;
}

.routing-panel .summary-seen {
  color: var(--text-secondary);
  font-weight: 500;
}

.routing-panel .route-summary .routing-option-chip {
  min-height: 44px;
  padding: 0 var(--spacing-md);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------ stops */

.routing-panel .waypoints-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.waypoints-tools {
  display: flex;
  gap: var(--spacing-sm);
}

.tour-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: 44px;
  padding: 0 var(--spacing-md);
  border: 2px solid var(--christmas-green);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--christmas-green);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.tour-tool-btn.active {
  background: var(--christmas-green);
  color: var(--on-color);
}

@media (hover: hover) {
  .tour-tool-btn:not(.active):hover {
    background: var(--green-tint);
  }
}

/* "Start from My Location": a row in the stops, not a second Start button */
.routing-panel .waypoint-address {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.routing-panel .waypoint-actions {
  align-items: center;
  gap: var(--spacing-xs);
}

.routing-panel .waypoint-action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.routing-panel .waypoint-action-btn.waypoint-remove {
  color: var(--christmas-red);
}

.routing-panel .waypoint-action-btn:disabled {
  opacity: 0.35;
}

.routing-panel .waypoint-item.is-reordering {
  border: 2px dashed var(--border);
}

/* ------------------------------------------------- written directions */

.routing-panel details.routing-directions {
  padding: 0;
  border-radius: var(--radius-sm);
}

.routing-panel details.routing-directions > summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.routing-panel details.routing-directions > summary::-webkit-details-marker {
  display: none;
}

.routing-panel details.routing-directions > summary::before {
  content: "\F285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  font-size: 0.875rem;
  color: var(--christmas-green);
  transition: transform var(--transition-fast);
}

.routing-panel details.routing-directions[open] > summary::before {
  transform: rotate(90deg);
}

.routing-directions-count {
  color: var(--text-secondary);
  font-weight: 400;
}

.routing-panel details.routing-directions .directions-list {
  padding: 0 var(--spacing-md) var(--spacing-md);
}

/* Step numbers: plain, so they don't look like the red numbered stops */
.routing-panel .direction-number {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

.routing-panel .direction-distance {
  color: var(--text-secondary);
}

/* ------------------------------------------------------------ footer */

/* Why Start Tour didn't start (location blocked) */
.tour-notice {
  display: flex;
  gap: var(--spacing-sm);
  margin: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  border-left: 4px solid var(--christmas-red);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.tour-notice .bi {
  color: var(--christmas-red);
  font-size: 1.1rem;
}

.tour-notice strong {
  display: block;
}

.tour-location-note {
  margin: var(--spacing-xs) 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}


.tour-footer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-md) calc(var(--spacing-sm) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--divider);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tour-footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--spacing-sm);
}

.tour-footer-btn {
  min-width: 44px;
  padding: 0 var(--spacing-sm);
  font-size: 0.875rem;
}

@media (max-width: 399px) {
  .tour-footer-more-text {
    display: none;
  }
}

.tour-voice-line {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: 44px;
  padding: 0 var(--spacing-md);
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.tour-voice-change {
  color: var(--christmas-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------- sheets from the footer */

.tour-sheet-lead {
  margin: 0 0 var(--spacing-md);
  color: var(--text-primary);
}

.tour-sheet-note {
  margin: var(--spacing-sm) 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tour-app-note {
  margin-left: var(--spacing-xs);
  font-weight: 400;
  opacity: 0.85;
}

.tour-sheet-footer {
  flex-direction: column;
}

.tour-voice-choices {
  display: grid;
  gap: var(--spacing-sm);
}

.tour-voice-choice {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  min-height: 64px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tour-voice-choice > .bi:first-child {
  font-size: 1.5rem;
  color: var(--christmas-green);
}

.tour-voice-choice span {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tour-voice-choice small {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tour-voice-tick {
  visibility: hidden;
  color: var(--christmas-green);
  font-size: 1.25rem;
}

.tour-voice-choice.is-on {
  border-color: var(--christmas-green);
  background: var(--green-tint);
}

.tour-voice-choice.is-on .tour-voice-tick {
  visibility: visible;
}

/* Fun Facts & Jokes: an on/off switch under the voices */
.tour-fun-switch {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  min-height: 64px;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tour-fun-switch > span:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tour-fun-switch small {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tour-fun-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background-color var(--transition-fast);
}

.tour-fun-switch__track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.tour-fun-switch[aria-checked="true"] {
  border-color: var(--christmas-green);
}

.tour-fun-switch[aria-checked="true"] .tour-fun-switch__track {
  background: var(--christmas-green);
}

.tour-fun-switch[aria-checked="true"] .tour-fun-switch__track span {
  transform: translateX(20px);
}

.tour-fun-switch:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tour-fun-switch__track,
  .tour-fun-switch__track span {
    transition: none;
  }
}

/* Directions sheets: brand colour on the app icons and borders, readable text */
.tour-sheet.directions-action-sheet .btn-google,
.tour-sheet.directions-action-sheet .btn-waze {
  color: var(--text-primary);
}

.tour-sheet.directions-action-sheet .btn-google {
  border-color: var(--nav-google);
}

.tour-sheet.directions-action-sheet .btn-google .bi {
  color: var(--nav-google);
}

.tour-sheet.directions-action-sheet .btn-waze {
  border-color: var(--nav-waze);
}

.tour-sheet.directions-action-sheet .btn-waze .bi {
  color: var(--nav-waze);
}

/* Hover: a light tint, not the brand fill (white on Google blue or Waze blue fails 4.5:1) */
@media (hover: hover) {
  .tour-sheet.directions-action-sheet .btn-google:hover,
  .tour-sheet.directions-action-sheet .btn-waze:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
  }
}

.tour-sheet.directions-action-sheet .tour-voice-line {
  justify-self: center;
}

/* A quiet, secondary choice: text, but still a 44px target */
.tour-text-btn {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--christmas-red);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* The close button on these sheets is a full 44px target */
.tour-sheet .sheet-close-btn,
.saved-route-action-sheet .sheet-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  top: 8px;
  right: 8px;
}

/* ------------------------------------------------------------ focus */

.tour-tool-btn:focus-visible,
.tour-voice-line:focus-visible,
.tour-voice-choice:focus-visible,
.tour-text-btn:focus-visible,
.routing-panel .waypoint-action-btn:focus-visible,
.routing-panel details.routing-directions > summary:focus-visible,
.tour-sheet-grip:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.routing-panel-controls button:focus-visible {
  outline: var(--focus-ring-on-color);
  outline-offset: 2px;
}

/* ------------------------------------------------- phone: bottom sheet */

.tour-sheet-grip {
  display: none;
}

@media (max-width: 767px) and (orientation: portrait) {
  .routing-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: min(52dvh, 460px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(110%);
    transition: transform var(--transition-normal), height var(--transition-normal);
  }

  .routing-panel.active {
    right: 0;
    transform: none;
  }

  .routing-panel.sheet-full {
    height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--spacing-md));
  }

  .routing-panel.is-dragging {
    transition: none;
  }

  /* Grip over the top of the header; the header itself drags too */
  .tour-sheet-grip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    cursor: grab;
    touch-action: none;
  }

  .tour-sheet-grip span {
    width: 44px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--on-color);
    opacity: 0.75;
  }

  .routing-panel .routing-panel-header {
    padding-top: 24px;
    padding-bottom: var(--spacing-xs);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    touch-action: none;
  }

  /* Part way up: the summary keeps to one line (Avoid Highways shows at full height)
     and the footer to Start Tour and its row (the voice line shows at full height and in
     the Before You Go sheet), so the first stops fit under the summary. */
  .routing-panel:not(.sheet-full) .tour-voice-line,
  .routing-panel:not(.sheet-full) .route-summary .routing-option-chip {
    display: none;
  }

  .routing-panel .routing-panel-content {
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .routing-panel .routing-waypoints {
    padding: var(--spacing-sm);
  }

  /* Keep "Tour Stops" and its Best Order / Reorder buttons on one line */
  .routing-panel .routing-left-column {
    gap: var(--spacing-sm);
  }

  .tour-tool-btn {
    padding: 0 var(--spacing-sm);
  }

  .waypoints-tools {
    gap: var(--spacing-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .routing-panel,
  .routing-panel details.routing-directions > summary::before,
  .tour-tool-btn {
    transition: none;
  }
}

/* ------------------------------------------- one display: not a tour yet */

/* .tour-footer-row and .st-btn set display, which would beat the hidden attribute */
.tour-footer [hidden] {
  display: none;
}

.tour-one-stop {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tour-one-stop-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tour-footer-row--two {
  grid-template-columns: 1fr 1fr;
}

/* css/map-print.css */
/**
 * SparkleTour Print Styles
 * Styles for printing map with route information
 */

/* Hide print container on screen */
.print-container {
  display: none;
}

/* Print-specific styles */
@media print {
  /* Reset body and ensure proper layout */
  body {
    margin: 0;
    padding: 0;
    background: white;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* Remove any debug banners */
  body::before {
    display: none !important;
  }
  
  /* Show print container with proper positioning (when using Print Map button) */
  .print-container {
    display: block !important;
    position: relative !important;
    background: white;
    width: 100%;
    z-index: 9999 !important;
  }
  
  /* Hide UI elements that shouldn't print */
  .map-overlays,
  .fab-container,
  .overlay-top-controls,
  .leaflet-control-container,
  .action-sheet-backdrop,
  .map-action-sheet,
  .routing-panel,
  .filter-panel,
  nav,
  header,
  footer,
  .cookie-consent-banner,
  .leaflet-marker-icon:not(.route-waypoint-icon),
  .marker-cluster,
  #citysel,
  .city-selector-sheet,
  #citySelectorSheet {
    display: none !important;
  }
  
  /* Show map fullscreen container for easyPrint */
  .map-fullscreen {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Show map container for easyPrint to capture */
  #map {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    margin: 20px auto !important;
    border: 2px solid #333;
    page-break-before: always !important;
    page-break-after: auto !important;
    background: white !important;
    z-index: 1 !important;
  }
  
  /* Ensure map tiles are visible */
  #map .leaflet-tile-container,
  #map .leaflet-tile {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Show and style print container - appears BEFORE map */
  .print-container {
    display: block !important;
    position: relative !important;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0;
    padding: 40px 20px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000;
    background: #fff;
    z-index: 9999 !important;
  }
  
  /* Print Header - Simplified */
  .print-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .print-logo-center {
    margin-bottom: 20px;
  }
  
  .print-info-box {
    padding: 15px 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin: 0 auto;
    max-width: 600px;
  }
  
  .print-info-box p {
    margin: 0 !important;
    font-size: 16px !important;
    text-align: center !important;
    color: #333 !important;
    line-height: 1.5 !important;
  }
  
  .print-info-box strong {
    color: #c41e3a !important;
    font-weight: 600 !important;
  }
  
  .print-logo-center {
    margin-bottom: 20px;
  }
  
  .print-info-box {
    padding: 15px 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin: 0 auto;
    max-width: 600px;
  }
  
  .print-info-box p {
    margin: 0 !important;
    font-size: 16px !important;
    text-align: center !important;
    color: #333 !important;
    line-height: 1.5 !important;
  }
  
  .print-info-box strong {
    color: #c41e3a !important;
    font-weight: 600 !important;
  }
  
  /* Print Sections */
  .print-section {
    margin-bottom: 30px;
    overflow: visible !important;
    height: auto !important;
  }
  
  .print-section h2 {
    font-size: 20px;
    color: #c41e3a;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .print-section h3 {
    font-size: 16px;
    color: #333;
    margin: 20px 0 10px 0;
    font-weight: 600;
  }
  
  /* Print Instructions */
  .print-instructions {
    margin-bottom: 30px;
  }
  
  .print-note {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
  }
  
  .print-note p {
    margin: 0 0 10px 0;
    line-height: 1.6;
  }
  
  .print-note p:last-child {
    margin-bottom: 0;
  }
  
  .print-note ul {
    margin: 10px 0 0 20px;
    padding: 0;
  }
  
  .print-note li {
    margin-bottom: 5px;
    line-height: 1.5;
  }
  
  /* Map Info */
  .print-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .print-detail-item {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .print-detail-item strong {
    color: #333;
    font-weight: 600;
  }
  
  .print-map-note {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-left: 4px solid #c41e3a;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  
  .print-map-note i {
    margin-top: 2px;
  }
  
  /* Route Summary */
  .print-route-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .print-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }
  
  .print-summary-item i {
    font-size: 18px;
    color: #c41e3a;
    margin-top: 2px;
  }
  
  .print-summary-item strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
  }
  
  .print-summary-item span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000;
  }
  
  /* Tour Stops */
  .print-stops {
    margin-bottom: 25px;
  }
  
  .print-stops-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .print-stop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
  }
  
  .print-stop-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #c41e3a;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .print-stop-address {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  
  /* Turn-by-Turn Directions */
  .print-directions {
    margin-top: 25px;
    overflow: visible !important;
    height: auto !important;
  }
  
  .print-directions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: visible !important;
    height: auto !important;
  }
  
  .print-direction-item {
    margin-bottom: 12px;
  }
  
  .print-direction-step {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #c41e3a;
    border-radius: 4px;
  }
  
  .print-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #c41e3a;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .print-direction-content {
    flex: 1;
  }
  
  .print-direction-text {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  
  .print-direction-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
  }
  
  .print-direction-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .print-direction-meta i {
    font-size: 12px;
  }
  
  /* Tour Stop Markers within Directions */
  .print-tour-stop {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
  }
  
  .print-stop-header {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .print-tour-stop .print-stop-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #c41e3a;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .print-stop-info {
    flex: 1;
  }
  
  .print-stop-info strong {
    display: block;
    font-size: 16px;
    color: #c41e3a;
    margin-bottom: 5px;
  }
  
  .print-tour-stop .print-stop-address {
    font-size: 14px;
    color: #333;
    font-weight: 500;
  }
  
  /* Route Note */
  .print-route-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    font-size: 12px;
    line-height: 1.6;
  }
  
  .print-route-note i {
    margin-right: 6px;
    color: #856404;
  }
  
  .print-route-note strong {
    color: #856404;
  }
  
  /* Page breaks */
  .print-section {
    page-break-after: auto;
  }
  
  .print-directions {
    page-break-before: auto;
  }
  
  /* Ensure icons render properly */
  .bi::before {
    font-family: "bootstrap-icons" !important;
  }
  
  /* Print footer on each page */
  @page {
    margin: 1.5cm;
    
    @bottom-center {
      content: "SparkleTour.ca - Page " counter(page);
      font-size: 10px;
      color: #666;
    }
  }
  
  /* Avoid breaking inside important elements */
  .print-route-summary,
  .print-stop-item,
  .print-direction-item {
    page-break-inside: avoid;
  }
  
  /* Ensure good contrast for printing */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}

/* Screen preview styles (optional - for testing) */
@media screen {
  .print-container.preview {
    display: block;
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
  }
}
/* css/css-bulb-markers.css */
/**
 * CSS Christmas Light Bulb Markers
 * Modern, animated markers for SparkleTour map
 * Replaces PNG bulb images with pure CSS
 */

/* Base CSS Bulb Marker */
.css-bulb-marker {
    background: transparent !important;
    border: none !important;
}

/* Tour Marker Icons - Numbered circles for addresses in tour */
.tour-marker-icon {
    background: transparent !important;
    border: none !important;
}

.tour-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tour-marker:hover {
    transform: scale(1.1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Regular address in tour - red fill with white outline */
.tour-marker-regular {
    background: linear-gradient(135deg, #e53935 0%, #c41e3a 100%);
    border-color: white;
}

/* Best Of address in tour - gold background */
.tour-marker-bestof {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.css-bulb {
    width: 12px;
    height: 20px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: bulb-glow 2s ease-in-out infinite;
    transition: transform 0.2s ease;
    
    /* Black border around the bulb */
    border: 1px solid #2c2c2c;
    
    /* Glass-like appearance with depth */
    background-image:
        /* Top highlight (glass reflection) */
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        /* Bottom shadow (depth) */
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%);
    
    /* Enhanced shadows for realism */
    box-shadow:
        /* Inner shadow for depth */
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

/* Glass shine effect */
.css-bulb::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.5) 40%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Metallic screw base with threading detail */
.css-bulb::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 2px;
    width: 8px;
    height: 6px;
    background:
        /* Threading lines */
        repeating-linear-gradient(
            180deg,
            #C0C0C0 0px,
            #A0A0A0 1px,
            #808080 2px,
            #A0A0A0 3px
        );
    border-radius: 2px;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Glow animation */
@keyframes bulb-glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.2);
    }
}

/* Marker highlight animation for deep linking */
@keyframes markerPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
  }
  50% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
  }
}

.marker-highlight {
  animation: markerPulse 1s ease-in-out 2;
  z-index: 10000 !important;
}

/* Mobile-optimized marker sizes for better touch targets */
@media (max-width: 768px) {
  .css-bulb {
    width: 16px;
    height: 26px;
  }
  
  .css-bulb::after {
    bottom: -8px;
    left: 3px;
    width: 10px;
    height: 8px;
  }
}

/* Extra small screens - even larger for easier tapping */
@media (max-width: 576px) {
  .css-bulb {
    width: 18px;
    height: 30px;
  }
  
  .css-bulb::after {
    bottom: -9px;
    left: 3.5px;
    width: 11px;
    height: 9px;
  }
}

/* Ensure marker with open popup has highest z-index */
.leaflet-marker-icon.leaflet-interactive {
  z-index: 1000;
}

/* Marker with open popup gets even higher z-index */
.leaflet-marker-pane .leaflet-marker-icon[style*="z-index: 1000"] {
  z-index: 1600 !important;
}

/* Color Variations - Realistic C9 bulb colors with enhanced depth */
.css-bulb-amber {
    background-color: #FFB347;
    background-image:
        /* Glass highlights (inherited from .css-bulb) */
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        /* Color gradient */
        linear-gradient(135deg, #FFB347 0%, #FF8C00 100%);
    box-shadow:
        0 0 12px rgba(255, 179, 71, 0.9),
        0 0 24px rgba(255, 140, 0, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.css-bulb-blue {
    background-color: #4444FF;
    background-image:
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        linear-gradient(135deg, #4444FF 0%, #0000CC 100%);
    box-shadow:
        0 0 12px rgba(68, 68, 255, 0.9),
        0 0 24px rgba(0, 0, 204, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.css-bulb-green {
    background-color: #44FF44;
    background-image:
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        linear-gradient(135deg, #44FF44 0%, #00CC00 100%);
    box-shadow:
        0 0 12px rgba(68, 255, 68, 0.9),
        0 0 24px rgba(0, 204, 0, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.css-bulb-pink {
    background-color: #FF69B4;
    background-image:
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    box-shadow:
        0 0 12px rgba(255, 105, 180, 0.9),
        0 0 24px rgba(255, 20, 147, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.css-bulb-purple {
    background-color: #CC44FF;
    background-image:
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        linear-gradient(135deg, #CC44FF 0%, #8800CC 100%);
    box-shadow:
        0 0 12px rgba(204, 68, 255, 0.9),
        0 0 24px rgba(136, 0, 204, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.css-bulb-teal {
    background-color: #00CED1;
    background-image:
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        linear-gradient(135deg, #00CED1 0%, #008B8B 100%);
    box-shadow:
        0 0 12px rgba(0, 206, 209, 0.9),
        0 0 24px rgba(0, 139, 139, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.css-bulb-yellow {
    background-color: #FFD700;
    background-image:
        radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 60%),
        radial-gradient(ellipse at 50% 90%,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%),
        linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow:
        0 0 12px rgba(255, 215, 0, 0.9),
        0 0 24px rgba(255, 165, 0, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

/* Best Of marker - Elaborate 5-pointed golden star with dark border */
.css-bulb-bestof {
    width: 36px;
    height: 36px;
    position: relative;
    animation: bestof-pulse 2s ease-in-out infinite;
    
    /* Override base .css-bulb styles */
    background: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dark border star (larger, behind the gold star) */
.css-bulb-bestof::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    
    /* Create 5-pointed star shape */
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    
    /* Dark border color */
    background: #2c2c2c;
    
    /* Shadow for depth */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Main golden star (on top of border) */
.css-bulb-bestof::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    z-index: 1;
    
    /* Create 5-pointed star shape */
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    
    /* Metallic gold gradient with depth */
    background:
        linear-gradient(135deg,
            #FFD700 0%,
            #FFC700 15%,
            #FFE55C 30%,
            #FFED4E 45%,
            #FFD700 60%,
            #DAA520 75%,
            #B8860B 90%,
            #FFD700 100%
        );
    
    /* Inner shadows only for 3D depth - no outer glow */
    box-shadow:
        inset -2px -2px 4px rgba(184, 134, 11, 0.6),
        inset 2px 2px 4px rgba(255, 237, 78, 0.8);
}


/* Enhanced pulse animation with rotation and glow */
@keyframes bestof-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    25% {
        transform: scale(1.15) rotate(5deg);
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
    75% {
        transform: scale(1.15) rotate(-5deg);
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
    }
}

/* Add sparkle effect on hover */
.leaflet-marker-icon.css-bulb-marker:hover .css-bulb-bestof::before {
    animation: star-sparkle 0.6s ease-in-out;
}

@keyframes star-sparkle {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 25px rgba(255, 215, 0, 1));
    }
}

/* Ensure markers are clickable */
.leaflet-marker-icon.css-bulb-marker {
    cursor: pointer;
}

/* Adjust marker cluster styles to work with CSS bulbs */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(255, 215, 0, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(255, 215, 0, 0.8);
    color: #1a1a1a;
    font-weight: bold;
}
/* Ensure the indicator is positioned relative to the marker */
.css-bulb-marker {
    position: relative;
}

/* css/round-bulb-markers.css */
/**
 * Round Christmas Light Bulb Markers
 * Mobile-optimized, accessible, performant
 * Version: 1.0
 */

/* ============================================
   BASE MARKER CONTAINER
   ============================================ */

.css-round-bulb-marker {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    
    /* Expanded touch target (44x44px minimum) */
    padding: 14px;
    margin: -14px;
    
    /* Ensure padding area is clickable */
    pointer-events: auto;
    
    /* Performance optimization */
    contain: layout style paint;
}

/* ============================================
   ROUND BULB SHAPE
   ============================================ */

.css-round-bulb {
    width: 16px;
    height: 20px;
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    position: relative;
    
    /* Glass-like appearance */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    
    /* Subtle twinkle animation */
    animation: bulb-twinkle 3s ease-in-out infinite;
    
    /* GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity, filter;
}

/* Metallic screw base */
.css-round-bulb::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    background: linear-gradient(180deg, #C0C0C0, #808080);
    border-radius: 2px 2px 3px 3px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Internal filament (visible through glass) */
.css-round-bulb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 8px;
    background: rgba(255, 200, 100, 0.6);
    border-radius: 1px;
    opacity: 0.7;
}

/* Twinkle animation */
@keyframes bulb-twinkle {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.85;
        filter: brightness(1.15);
    }
}

/* ============================================
   COLOR VARIATIONS
   ============================================ */

/* Red - Classic Christmas */
.css-round-bulb-red {
    background-color: #DC143C;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        #DC143C 40%,
        #8B0000
    );
    box-shadow: 
        0 0 8px rgba(220, 20, 60, 0.8),
        0 0 15px rgba(220, 20, 60, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* Green - Christmas Tree */
.css-round-bulb-green {
    background-color: #228B22;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        #228B22 40%,
        #006400
    );
    box-shadow: 
        0 0 8px rgba(34, 139, 34, 0.8),
        0 0 15px rgba(34, 139, 34, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* Blue - Winter Ice */
.css-round-bulb-blue {
    background-color: #4169E1;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        #4169E1 40%,
        #0000CD
    );
    box-shadow: 
        0 0 8px rgba(65, 105, 225, 0.8),
        0 0 15px rgba(65, 105, 225, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* Gold - Festive Elegance */
.css-round-bulb-gold {
    background-color: #FFD700;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.5),
        #FFD700 40%,
        #DAA520
    );
    box-shadow: 
        0 0 8px rgba(255, 215, 0, 0.9),
        0 0 15px rgba(255, 215, 0, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

/* Purple - Royal Holiday */
.css-round-bulb-purple {
    background-color: #9370DB;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        #9370DB 40%,
        #4B0082
    );
    box-shadow: 
        0 0 8px rgba(147, 112, 219, 0.8),
        0 0 15px rgba(147, 112, 219, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* White - Snow & Ice */
.css-round-bulb-white {
    background-color: #F0F8FF;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9),
        #F0F8FF 40%,
        #E0E0E0
    );
    box-shadow: 
        0 0 8px rgba(240, 248, 255, 0.9),
        0 0 15px rgba(240, 248, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Orange - Warm Glow */
.css-round-bulb-orange {
    background-color: #FF8C00;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4),
        #FF8C00 40%,
        #FF4500
    );
    box-shadow: 
        0 0 8px rgba(255, 140, 0, 0.8),
        0 0 15px rgba(255, 140, 0, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* ============================================
   BEST OF MARKER (Ornament Style)
   ============================================ */

.css-round-bulb-bestof {
    width: 24px;
    height: 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.5),
        #FFD700 30%,
        #FFA500
    );
    border-radius: 50%;
    position: relative;
    animation: bestof-sparkle 2s ease-in-out infinite;
    box-shadow: 
        0 0 12px rgba(255, 215, 0, 0.9),
        0 0 24px rgba(255, 215, 0, 0.6),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3),
        inset 3px 3px 6px rgba(255, 255, 255, 0.4);
}

/* Star icon for Best Of */
.css-round-bulb-bestof::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

/* Ornament cap (instead of screw base) */
.css-round-bulb-bestof::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 4px;
    background: linear-gradient(180deg, #C0C0C0, #808080);
    border-radius: 2px 2px 0 0;
}

/* Best Of sparkle animation */
@keyframes bestof-sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    25% { 
        transform: scale(1.05) rotate(5deg);
        filter: brightness(1.2);
    }
    50% { 
        transform: scale(1.1) rotate(0deg);
        filter: brightness(1.3);
    }
    75% { 
        transform: scale(1.05) rotate(-5deg);
        filter: brightness(1.2);
    }
}

/* ============================================
   ZOOM-RESPONSIVE SCALING
   ============================================ */

/* Street view (zoom 16+) - Larger markers */
.leaflet-zoom-animated[data-zoom="16"] .css-round-bulb,
.leaflet-zoom-animated[data-zoom="17"] .css-round-bulb,
.leaflet-zoom-animated[data-zoom="18"] .css-round-bulb {
    transform: scale(1.5);
    transform-origin: center bottom;
}

/* Neighborhood view (zoom 12-15) - Normal size */
.leaflet-zoom-animated[data-zoom="12"] .css-round-bulb,
.leaflet-zoom-animated[data-zoom="13"] .css-round-bulb,
.leaflet-zoom-animated[data-zoom="14"] .css-round-bulb,
.leaflet-zoom-animated[data-zoom="15"] .css-round-bulb {
    transform: scale(1);
}

/* City view (zoom <12) - Smaller markers */
.leaflet-zoom-animated[data-zoom="10"] .css-round-bulb,
.leaflet-zoom-animated[data-zoom="11"] .css-round-bulb {
    transform: scale(0.8);
    transform-origin: center bottom;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Slightly larger on mobile for easier tapping */
    .css-round-bulb {
        width: 18px;
        height: 22px;
    }
    
    /* Larger touch padding */
    .css-round-bulb-marker {
        padding: 16px;
        margin: -16px;
    }
    
    /* Reduce animation complexity on mobile */
    .css-round-bulb {
        animation-duration: 4s;
    }
    
    /* Simpler shadows on mobile for performance */
    .css-round-bulb-red,
    .css-round-bulb-green,
    .css-round-bulb-blue,
    .css-round-bulb-gold,
    .css-round-bulb-purple,
    .css-round-bulb-white,
    .css-round-bulb-orange {
        box-shadow: 
            0 0 8px currentColor,
            inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* High contrast mode */
@media (prefers-contrast: high) {
    .css-round-bulb {
        border: 2px solid currentColor;
    }
    
    .css-round-bulb::before {
        border: 1px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .css-round-bulb,
    .css-round-bulb-bestof {
        animation: none;
    }
}

/* Focus state for keyboard navigation */
.css-round-bulb-marker:focus-within .css-round-bulb {
    outline: 3px solid #2e7d32;
    outline-offset: 4px;
    border-radius: 50%;
}

/* ============================================
   HOVER STATES (Desktop)
   ============================================ */

@media (hover: hover) and (pointer: fine) {
    .css-round-bulb-marker:hover .css-round-bulb {
        transform: scale(1.1);
        filter: brightness(1.2);
        transition: transform 0.2s ease, filter 0.2s ease;
    }
}
/* css/cluster-enhancements.css */
/**
 * Classic White & Red Striped Christmas Ornament Cluster
 * Mobile-first design with accessibility features
 * Version: 3.0 - Single Style
 */

/* ============================================
   ORNAMENT CONTAINER
   ============================================ */

.christmas-ornament-cluster {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cluster-ornament-icon {
    background: transparent !important;
    border: none !important;
}

/* ============================================
   ORNAMENT CAP (Silver Top with Hook)
   ============================================ */

.ornament-cap {
    width: 14px;
    height: 10px;
    background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 50%, #A9A9A9 100%);
    border-radius: 3px 3px 0 0;
    position: relative;
    z-index: 3;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hook ring on top of cap */
.ornament-cap::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 7px;
    border: 2px solid #A9A9A9;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ORNAMENT BALL (White Base with Red Stripes)
   ============================================ */

.ornament-ball {
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* White glossy base */
    background: linear-gradient(135deg, 
        #FFFFFF 0%, 
        #F8F8F8 25%, 
        #F0F0F0 50%, 
        #E8E8E8 75%, 
        #E0E0E0 100%
    );
    
    /* Realistic ornament shadows and depth */
    box-shadow: 
        /* Outer glow - subtle white/silver */
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(220, 20, 60, 0.2),
        /* 3D depth */
        inset -6px -6px 12px rgba(0, 0, 0, 0.15),
        inset 6px 6px 12px rgba(255, 255, 255, 0.6),
        /* Bottom shadow */
        0 6px 18px rgba(0, 0, 0, 0.3);
    
    /* Subtle sway animation */
    animation: ornament-sway 5s ease-in-out infinite;
    z-index: 2;
}

/* Gentle swaying animation */
@keyframes ornament-sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1.5deg);
    }
    75% {
        transform: rotate(-1.5deg);
    }
}

/* Disable sway animation for clusters with indicators */
.christmas-ornament-cluster.has-bestof .ornament-ball {
    animation: none;
}

/* ============================================
   GLASS SHINE EFFECT (Prominent Highlight)
   ============================================ */

.ornament-shine {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 38%;
    height: 38%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.75) 20%,
        rgba(255, 255, 255, 0.4) 45%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    animation: shine-pulse 4s ease-in-out infinite;
}

@keyframes shine-pulse {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

/* ============================================
   CLASSIC RED CANDY CANE STRIPES
   ============================================ */

.ornament-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    
    /* Bold equal-width red and white stripes */
    background: repeating-linear-gradient(
        -45deg,
        #DC143C 0px,
        #DC143C 15px,
        transparent 15px,
        transparent 30px
    );
    
    opacity: 0.95;
    pointer-events: none;
    z-index: 3;
    
    /* Add subtle shadow to stripes for depth */
    box-shadow: inset 0 0 15px rgba(220, 20, 60, 0.3);
}

/* ============================================
   CLUSTER COUNT TEXT (High Contrast)
   ============================================ */

.cluster-count {
    position: relative;
    z-index: 5;
    font-weight: 700;
    color: #DC143C;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1;
    letter-spacing: -0.5px;
    
    /* Strong white outline for readability on stripes */
    text-shadow: 
        /* White glow */
        0 0 4px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 0.9),
        /* Outline */
        -1px -1px 0 rgba(255, 255, 255, 0.9),
        1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px 1px 0 rgba(255, 255, 255, 0.9),
        1px 1px 0 rgba(255, 255, 255, 0.9),
        /* Depth shadow */
        0 2px 4px rgba(0, 0, 0, 0.3);
    
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BEST OF INDICATOR (Golden Star Badge)
   ============================================ */

/* Container for clusters with Best Of addresses */
.christmas-ornament-cluster.has-bestof {
    /* No visual change to container, badge is added via ::after */
}

/* Dark border star (behind gold star) for clusters with Best Of */
.christmas-ornament-cluster.has-bestof .ornament-ball::before {
    content: '';
    position: absolute;
    top: 2%;
    right: 2%;
    width: 19px;
    height: 19px;
    z-index: 5;
    
    /* Create 5-pointed star shape */
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    
    /* Solid black border */
    background: #000000;
    
    /* Subtle pulse animation */
    animation: bestof-badge-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* Golden star */
.christmas-ornament-cluster.has-bestof .ornament-ball::after {
    content: '';
    position: absolute;
    top: calc(2% + 1.5px);
    right: calc(2% + 1.5px);
    width: 16px;
    height: 16px;
    z-index: 6;
    
    /* Create 5-pointed star shape */
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    
    /* Metallic gold gradient */
    background: linear-gradient(135deg,
        #FFD700 0%,
        #FFC700 25%,
        #FFE55C 50%,
        #DAA520 75%,
        #B8860B 100%
    );
    
    /* Inner shadows for depth */
    box-shadow:
        inset -1px -1px 2px rgba(184, 134, 11, 0.6),
        inset 1px 1px 2px rgba(255, 237, 78, 0.8);
    
    /* Subtle pulse animation */
    animation: bestof-badge-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* Pulse animation for Best Of badge */
@keyframes bestof-badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Enhanced hover effect when cluster has Best Of */
@media (hover: hover) and (pointer: fine) {
    .christmas-ornament-cluster.has-bestof:hover .ornament-ball::before {
        transform: scale(1.2) rotate(15deg);
    }
    
    .christmas-ornament-cluster.has-bestof:hover .ornament-ball::after {
        transform: scale(1.2) rotate(15deg);
        box-shadow:
            0 0 10px rgba(255, 215, 0, 0.8),
            inset -1px -1px 2px rgba(184, 134, 11, 0.6),
            inset 1px 1px 2px rgba(255, 237, 78, 0.8);
    }
}

/* Mobile optimizations for Best Of badge */
@media (max-width: 768px) {
    .christmas-ornament-cluster.has-bestof .ornament-ball::before {
        width: 17px;
        height: 17px;
        animation: none;
    }
    
    .christmas-ornament-cluster.has-bestof .ornament-ball::after {
        width: 14px;
        height: 14px;
        top: calc(2% + 1.5px);
        right: calc(2% + 1.5px);
        animation: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .christmas-ornament-cluster.has-bestof .ornament-ball::after {
        animation: none;
    }
}

/* ============================================
   HOVER EFFECTS (Desktop)
   ============================================ */

@media (hover: hover) and (pointer: fine) {
    .christmas-ornament-cluster:hover {
        transform: scale(1.12) translateY(-4px);
    }
    
    .christmas-ornament-cluster:hover .ornament-ball {
        box-shadow: 
            /* Enhanced glow on hover */
            0 0 25px rgba(255, 255, 255, 0.6),
            0 0 45px rgba(220, 20, 60, 0.4),
            /* 3D depth */
            inset -6px -6px 12px rgba(0, 0, 0, 0.15),
            inset 6px 6px 12px rgba(255, 255, 255, 0.7),
            /* Larger shadow */
            0 10px 25px rgba(0, 0, 0, 0.4);
    }
    
    .christmas-ornament-cluster:hover .ornament-shine {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Active/pressed state */
.christmas-ornament-cluster:active {
    transform: scale(1.05) translateY(-2px);
}

/* ============================================
   FOCUS STATE FOR KEYBOARD NAVIGATION
   ============================================ */

.christmas-ornament-cluster:focus {
    outline: 3px solid #2e7d32;
    outline-offset: 6px;
    border-radius: 50%;
}

.christmas-ornament-cluster:focus-visible {
    outline: 3px solid #2e7d32;
    outline-offset: 6px;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Ensure minimum touch target (44x44px) */
    .christmas-ornament-cluster {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Reduce animation complexity for performance */
    .ornament-ball {
        animation-duration: 7s;
    }
    
    .ornament-shine {
        animation: none;
        opacity: 0.85;
    }
    
    /* Simpler shadows on mobile */
    .ornament-ball {
        box-shadow: 
            0 0 15px rgba(255, 255, 255, 0.4),
            0 0 25px rgba(220, 20, 60, 0.2),
            inset -5px -5px 10px rgba(0, 0, 0, 0.15),
            inset 5px 5px 10px rgba(255, 255, 255, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Bold equal-width stripes on mobile */
    .ornament-stripes {
        background: repeating-linear-gradient(
            -45deg,
            #DC143C 0px,
            #DC143C 12px,
            transparent 12px,
            transparent 24px
        );
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .ornament-ball,
    .ornament-shine {
        animation: none;
    }
    
    .christmas-ornament-cluster:hover {
        transform: scale(1.08);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .ornament-ball {
        border: 3px solid #DC143C;
    }
    
    .cluster-count {
        color: #000000;
        text-shadow: 
            -2px -2px 0 #FFFFFF,
            2px -2px 0 #FFFFFF,
            -2px 2px 0 #FFFFFF,
            2px 2px 0 #FFFFFF;
        font-weight: 900;
    }
    
    .ornament-stripes {
        opacity: 1;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .ornament-ball {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 35px rgba(220, 20, 60, 0.3),
            inset -6px -6px 12px rgba(0, 0, 0, 0.2),
            inset 6px 6px 12px rgba(255, 255, 255, 0.5),
            0 6px 18px rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .christmas-ornament-cluster {
        transform: none !important;
    }
    
    .ornament-ball,
    .ornament-shine {
        animation: none !important;
    }
    
    /* Ensure stripes are visible in print */
    .ornament-stripes {
        opacity: 1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* css/styles.css */
html{
  height: 100%;
}

body{
  height:100%;
  background:#f3f3f3;
  margin:0;
  padding:0;
  font-family: 'Droid Sans', 'Helvetica', Arial, sans-serif;
  /*background-image:url('/images/whiteredgreen-bg.png');
  background-repeat:repeat-x;
  */
  background-color: darkorange;
}

#main-content{
  width:100%;
  margin-right: 1px;
  margin-left: 1px;
}

.newwrapper {
--notchSize: 20px;

  clip-path:
    polygon(
      0% var(--notchSize),
      var(--notchSize) 0%,
      calc(100% - var(--notchSize)) 0%,
      100% var(--notchSize),
      100% calc(100% - var(--notchSize)),
      calc(100% - var(--notchSize)) 100%,
      var(--notchSize) 100%,
      0% calc(100% - var(--notchSize))
    );
}
a{
  color: #5588bb;
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

#cityselect {
  float: right;
  position: fixed;
  top:30px;
  right: 360px;;

}
.btn{
  color:#fff;
  text-decoration:none;
  padding:10px 20px;
  margin:0 2px;
  border-radius:3px;
  border-top:#4c82b7 solid 1px;
  border-left:#4c82b7 solid 1px;
  border-bottom:#3e6d9c solid 1px;
  border-right:#3e6d9c solid 1px;
  background:#4477aa;
  background-image: linear-gradient(bottom, rgb(59,104,149) 50%, rgb(68,119,170) 100%);
  background-image: -o-linear-gradient(bottom, rgb(59,104,149) 50%, rgb(68,119,170) 100%);
  background-image: -moz-linear-gradient(bottom, rgb(59,104,149) 50%, rgb(68,119,170) 100%);
  background-image: -webkit-linear-gradient(bottom, rgb(59,104,149) 50%, rgb(68,119,170) 100%);
  background-image: -ms-linear-gradient(bottom, rgb(59,104,149) 50%, rgb(68,119,170) 100%);

  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0.5, rgb(59,104,149)),
    color-stop(1, rgb(68,119,170))
  );
}
.closed{
	color: black;
	text-align:center;
	margin: auto;
	/*width: 60%;*/
	margin-top: 25px;
	font-size: 2em;
}
.counter {
	text-align:center;
	margin:auto;
	width: 60%;
	margin-bottom: 10%;
	position: absolute;
}
.popin{
    width:100%;
}

#map-canvas,
#panorama {
  height:450px;
  background:#6699cc;
}

#map { height: 90vh; }
code {
  font-family: 'Ubuntu Mono', 'Monaco', 'Andale Mono', 'Courier New', monospace;
  font-weight: bold;
}
.hiddenlist { visibility:hidden; }
.list-markers {visibility: hidden; }
.list-markers-li {list-style-type: none;}
.list-markers-ul {list-style-type: none;}

.addresslistinnermodal {text-align: center;}

@media print {
    body {
      background-image: none;
    }
    .noPrint{
      display: none;
    }
    .modal {
      position: fixed;
      display: none;
      left: 0;
      top: 0;
      margin: 0;
      padding: 0;
      visibility: visible;
      /**Remove scrollbar for printing.**/
      overflow: visible !important;
      width:100%;
      height: 100%;
    }
    .modal-dialog {
      visibility: visible !important;
      /**Remove scrollbar for printing.**/
      overflow: visible !important;
    }
    .modal-header {
      visiblity: hidden;
      display: none;
    }

}

#addresslistspecial { visibility: hidden}
#basic-modal-content {display:none;}
#contact-modal-content {display:none;}
#list-modal-content {display:none;}
#directions-modal-content {display:none;}

/* Overlay */
#simplemodal-overlay {background-color:#000;}
#contact-overlay {background-color:#000;}
#list-overlay {background-color:#000;}
#directions-overlay {background-color:#000;}

/* Container */
#simplemodal-container {height:250px; width:650px; color:#D8D8D8; background-color:#636363; border:4px solid #3c8d0d; padding:12px;}
#simplemodal-container .simplemodal-data {padding:8px;}
#simplemodal-container code {background:#141414; border-left:3px solid #3c8d0d; color:#bbb; display:block; font-size:12px; margin-bottom:12px; padding:4px 6px 6px;}
#simplemodal-container a {color:#ddd;}
#simplemodal-container a.modalCloseImg {background:url(/images/x.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-15px; right:-16px; cursor:pointer;}
#simplemodal-container h3 {color:#84b8d9;}

/* Container */
#contact-container {height:300px; width:300px; color:#D8D8D8; background-color:#636363; border:4px solid #3c8d0d; padding:12px;}
#contact-container .contact-data {padding:8px;}

#contact-container code {background:#141414; border-left:3px solid #3c8d0d; color:#bbb; display:block; font-size:12px; margin-bottom:12px; padding:4px 6px 6px;}
#contact-container a {color:#ddd;}
#contact-container a.modalCloseImg {background:url(/images/x.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-15px; right:-16px; cursor:pointer;}
#contact-container h3 {color:#84b8d9;}

/* Container */
#list-container {height:500px; width:900px; color:#D8D8D8; background-color:#636363; border:4px solid #3c8d0d; padding:12px;}
#list-container .list-data {padding:8px;}

#list-container code {background:#141414; border-left:3px solid #3c8d0d; color:#bbb; display:block; font-size:12px; margin-bottom:12px; padding:4px 6px 6px;}
#list-container a {color:#ddd;}
#list-container a.modalCloseImg {background:url(/images/x.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-15px; right:-16px; cursor:pointer;}
#list-container h3 {color:#84b8d9;}

/* Container */
#directions-container { height:100px; width:600px; color:#D8D8D8; background-color:#636363; border:4px solid #3c8d0d; padding:12px; font-size:12px;}
#directions-container .directions-data {padding:8px;}

#directions-container code {background:#141414; border-left:3px solid #3c8d0d; color:#bbb; display:block; font-size:12px; margin-bottom:12px; padding:4px 6px 6px;}
#directions-container a {color:#ddd;}
#directions-container a.modalCloseImg {background:url(/images/x.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-15px; right:-16px; cursor:pointer;}
#directions-container h3 {color:#84b8d9;}
#directionsorigindiv { text-align: center; padding-top:15px;}
#directionstitle {text-align:center; font-size:12px;}
#directionsprint {display: none;}
#directionsdiv {clear:both;}

.spansocial{
       /* width:340px;
        margin-top: 55px;
        text-align:right;
	width:60%;
	margin-top:100px;
	*/
	margin:auto;
	text-align:right;
	width:33%;
	float: right;
	/*z-index: 1;
	position: absolute;*/
}
.spanlogo{
        /*width:572px;
        margin-left:42px !important;
	*/
	margin: auto;
	text-align:center;
	/*
	z-index: 2;
	position: absolute;
	*/
}
.spanlinks {
	margin-top:15px;
	width: 33%;
	float: left;
}
pre.prettyprint{
  background:#fff;
  border-color:#c1c1c1;
  -webkit-border-radius:2px;
  -moz-border-radius:2px;
  border-radius:2px;
  -webkit-box-shadow:0 0 10px #999;
  -moz-box-shadow:0 0 10px #999;
  box-shadow:0 0 10px #999;
  padding:5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

form input[type=text] {
  #border: solid 1px #999999;
  padding: 2px;
}

.navbar-brand {
  padding-top: 0px !important;
  height: 40px !important;
}

.navbar-right>li>a {
  padding: 0px !important;
}
.navbar>li>a {
  padding-bottom: 0px !important;
}
.nav>li>a {
  padding-bottom: 0px !important;
}
.navbar-nav>li>a {
  padding-bottom: 0px !important;
}
.navbar {
  min-height: 40px !important;
  margin-bottom: 10px !important;
  margin-top: 10px !important;
}
.mylinks>li>a {
  padding-top: 10px !important;
}
.bootstrap-select.btn-group:not(.input-group-btn), .bootstrap-select.btn-group[class*=col-] {
  padding-top: 2.5px !important;
}
.navbar-default {
  background-color: #fff !important;
  border-color: #fff !important;
}

.span13{
  height: 90vh !important;
}

.newgradient_bg {
  background-image:url('/images/2020prelaunchbg.jpg');
}
.gradient_bg {
background: #2F7336; /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #2F7336 , #AA3A38); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #2F7336 , #AA3A38); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.mobile_buttons {
	position: absolute;
	z-index: 3;
	width:100%;
	float: right !important;
}

.nav_right {
	float: right !important;
}

.mybtn {
	margin-top:3px;
}

.mobile_nav {
	list-style: none;
}

.mobile_navbar-nav>li {
	display: inline-block;
}

.centered_text {
	text-align:center;
}
/* Ensure autocomplete dropdown appears above the modal */
.pac-container {
  z-index: 1060 !important; /* Slightly higher than Bootstrap modal's z-index */
}
/* Ensure the logo scales appropriately */
#header .img-fluid {
  max-width: 100%;
  height: auto;
}

/* Optional: Adjust padding or margins for better spacing */
#header {
  padding: 10px 0; /* Adjust as needed */
}

/* Optional: Control the maximum width of the logo on larger screens */
@media (min-width: 768px) {
  #header .img-fluid {
    max-width: 300px; /* Adjust to your desired maximum width */
  }
}

/* Optional: Adjust logo size on smaller screens */
@media (max-width: 767.98px) {
  #header .img-fluid {
    max-width: 200px; /* Adjust to your desired size for mobile */
  }
}

/* Center Bootstrap 3 Modal Vertically - DISABLED for Bootstrap 5 */
/* Bootstrap 5 handles modal positioning automatically */
/*
.modal-dialog {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    max-width: 600px;
}
*/


/* A box people never see or reach; scripts that fill in every field give themselves
   away (add_address in includes/generalfunctions.php). */
.st-form-extra {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* css/cookie-banner.css */
/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.98), rgba(52, 73, 94, 0.98));
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.25rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 2147483647 !important;
  border-top: 3px solid #2e7d32;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  /* Hidden by default - shown via .visible class */
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Visible state - triggered by JavaScript adding 'visible' class */
.cookie-consent-banner.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

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

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent-title i {
  font-size: 1.3rem;
  color: #ffd700;
}

.cookie-consent-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-learn-more {
  color: #ffd700;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-learn-more:hover {
  color: #ffed4e;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-actions .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Match existing site button patterns - inverse color on hover */
.cookie-btn-settings {
  background: white;
  border: 2px solid white;
  color: #2c3e50;
}

.cookie-btn-settings:hover {
  background: #2c3e50;
  border-color: #2c3e50;
  color: white;
  transform: translateY(-2px);
}

.cookie-btn-reject {
  background: white;
  color: #c41e3a;
  border: 2px solid #c41e3a;
}

.cookie-btn-reject:hover {
  background: #c41e3a;
  color: white;
  border-color: #c41e3a;
  transform: translateY(-2px);
}

.cookie-btn-accept {
  background: white !important;
  color: #2e7d32 !important;
  border: 2px solid #2e7d32 !important;
}

.cookie-btn-accept:hover {
  background: #2e7d32 !important;
  color: white !important;
  border-color: #2e7d32 !important;
  transform: translateY(-2px);
}

/* Cookie Settings Modal Styles */
.cookie-category {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
}

.cookie-category strong {
  color: #2c3e50;
  font-size: 1rem;
}

.form-check-input:checked {
  background-color: #2e7d32;
  border-color: #2e7d32;
}

.form-check-input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem 0.75rem;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cookie-consent-text {
    min-width: 100%;
  }
  
  .cookie-consent-title {
    font-size: 1rem;
  }
  
  .cookie-consent-description {
    font-size: 0.85rem;
  }
  
  .cookie-consent-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .cookie-consent-actions .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
  }
  
  .cookie-btn-settings {
    order: 3;
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-consent-actions {
    flex-direction: column;
  }
  
  .cookie-consent-actions .btn {
    width: 100%;
  }
  
  .cookie-btn-settings {
    order: 1;
  }
  
  .cookie-btn-reject {
    order: 2;
  }
  
  .cookie-btn-accept {
    order: 3;
  }
}

/* Ensure banner doesn't interfere with page content */
body.cookie-banner-visible {
  padding-bottom: 0;
}

/* Animation for hiding banner */
.cookie-consent-banner.hiding {
  animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Modal enhancements for cookie modals */
#cookieSettingsModal .modal,
#cookiePolicyModal .modal {
  z-index: 1050;
}

#cookieSettingsModal .modal-backdrop,
#cookiePolicyModal .modal-backdrop {
  z-index: 1045;
}

#cookieSettingsModal .modal-dialog,
#cookiePolicyModal .modal-dialog {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

/* Enable scrolling for Cookie Policy Modal */
#cookiePolicyModal.modal .modal-dialog {
  max-height: calc(100vh - 3.5rem);
}

#cookiePolicyModal .modal-content {
  max-height: calc(100vh - 3.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#cookiePolicyModal .modal-body {
  overflow-y: auto !important;
  overflow-x: hidden;
  max-height: none !important;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

#cookiePolicyModal .modal-header,
#cookiePolicyModal .modal-footer {
  flex-shrink: 0;
}

#cookieSettingsModal .modal-content,
#cookiePolicyModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#cookieSettingsModal .modal-header,
#cookiePolicyModal .modal-header {
  background: linear-gradient(135deg, #c41e3a, #2e7d32);
  color: white;
  border-bottom: 2px solid #ffd700;
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.25rem;
}

#cookieSettingsModal .modal-header .btn-close,
#cookiePolicyModal .modal-header .btn-close {
  filter: brightness(0) invert(1);
}

#cookieSettingsModal .modal-title,
#cookiePolicyModal .modal-title {
  font-weight: 700;
  font-size: 1.25rem;
}

#cookieSettingsModal .modal-body,
#cookiePolicyModal .modal-body {
  padding: 1.25rem;
}

/* Consistent text sizing in Cookie Policy Modal */
#cookiePolicyModal .modal-body h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

#cookiePolicyModal .modal-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 1rem;
}

#cookiePolicyModal .modal-body .mb-3 strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
  display: block;
  margin-bottom: 0.25rem;
}

#cookiePolicyModal .modal-body .mb-3 p.small {
  font-size: 0.875rem;
}

#cookiePolicyModal .modal-body p.small {
  font-size: 0.875rem;
}

#cookieSettingsModal .modal-footer,
#cookiePolicyModal .modal-footer {
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 0.875rem 1.25rem;
  border-radius: 0 0 12px 12px;
}

/* Cookie modal button styling - Match site-wide button pattern */
#cookieSettingsModal .modal-footer .btn-outline-secondary,
#cookiePolicyModal .modal-footer .btn-secondary {
  background: white;
  color: #6c757d;
  border: 2px solid #6c757d;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#cookieSettingsModal .modal-footer .btn-outline-secondary:hover,
#cookiePolicyModal .modal-footer .btn-secondary:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  transform: translateY(-2px);
}

#cookieSettingsModal .modal-footer .btn-success {
  background: white;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#cookieSettingsModal .modal-footer .btn-success:hover {
  background: #2e7d32;
  color: white;
  border-color: #2e7d32;
  transform: translateY(-2px);
}

/* Accessibility improvements */
.cookie-consent-banner:focus-within {
  outline: 2px solid #ffd700;
  outline-offset: -2px;
}

.cookie-consent-actions .btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Print styles - hide cookie banner when printing */
@media print {
  .cookie-consent-banner {
    display: none !important;
  }
}
/* css/pwa-install-notification.css */
/* PWA Install Notification - Mobile Only, Top Sliding Banner */

.pwa-install-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998; /* Below cookie banner (2147483647) but above other content */
  background: white;
  backdrop-filter: blur(10px);
  color: #2e7d32;
  padding: 0.875rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #2e7d32;
  /* Hidden by default - shown via JavaScript */
  display: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible state - triggered by JavaScript */
.pwa-install-notification.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Hide on desktop - mobile only */
/* Use hover capability as proxy for desktop vs mobile */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .pwa-install-notification {
    display: none !important;
  }
}

/* Also hide on very large screens regardless of touch capability */
@media (min-width: 1280px) {
  .pwa-install-notification {
    display: none !important;
  }
}

.pwa-install-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.pwa-install-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c41e3a;
  margin-bottom: 0.125rem;
  line-height: 1.3;
}

.pwa-install-description {
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
  color: #2e7d32;
}

.pwa-install-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.pwa-install-actions .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pwa-btn-install {
  background: white;
  color: #2e7d32;
  border: 2px solid #2e7d32 !important;
}

.pwa-btn-install:hover {
  background: #2e7d32;
  color: white;
  border-color: #2e7d32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.pwa-btn-dismiss {
  background: transparent;
  color: #2e7d32;
  border-color: #2e7d32;
  padding: 0.4rem 0.625rem;
}

.pwa-btn-dismiss:hover {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border-color: #2e7d32;
  transform: translateY(-2px);
}

.pwa-btn-dismiss i {
  font-size: 0.875rem;
}

/* Mobile Responsive - Optimize for limited screen space */
@media (max-width: 768px) {
  .pwa-install-notification {
    padding: 0.75rem 0.875rem;
  }
  
  .pwa-install-content {
    gap: 0.75rem;
  }
  
  .pwa-install-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .pwa-install-title {
    font-size: 0.875rem;
  }
  
  .pwa-install-description {
    font-size: 0.75rem;
  }
  
  .pwa-install-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Small mobile devices - Stack layout for very limited space */
@media (max-width: 480px) {
  .pwa-install-notification {
    padding: 0.625rem 0.75rem;
  }
  
  .pwa-install-content {
    gap: 0.625rem;
  }
  
  .pwa-install-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .pwa-install-title {
    font-size: 0.8125rem;
  }
  
  .pwa-install-description {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  .pwa-install-actions {
    gap: 0.375rem;
  }
  
  .pwa-install-actions .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.625rem;
  }
  
  .pwa-btn-dismiss {
    padding: 0.35rem 0.5rem;
  }
}

/* Extra small devices - Minimal padding */
@media (max-width: 360px) {
  .pwa-install-notification {
    padding: 0.5rem 0.625rem;
  }
  
  .pwa-install-content {
    gap: 0.5rem;
  }
  
  .pwa-install-icon {
    width: 1.875rem;
    height: 1.875rem;
  }
  
  .pwa-install-title {
    font-size: 0.75rem;
  }
  
  .pwa-install-description {
    font-size: 0.65rem;
  }
}

/* Animation for hiding */
.pwa-install-notification.hiding {
  animation: slideUpToTop 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpToTop {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* Accessibility improvements */
.pwa-install-notification:focus-within {
  outline: 2px solid #ffd700;
  outline-offset: -2px;
}

.pwa-install-actions .btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Ensure notification doesn't interfere with page content */
body.pwa-notification-visible {
  padding-top: 0;
}

/* Print styles - hide PWA notification when printing */
@media print {
  .pwa-install-notification {
    display: none !important;
  }
}

/* Coordinate with cookie banner - ensure proper stacking */
.cookie-consent-banner.visible ~ .pwa-install-notification {
  /* Cookie banner has higher z-index, so PWA notification appears below it */
  top: 0;
}

/* When both are visible, add slight spacing consideration */
body.cookie-banner-visible.pwa-notification-visible {
  /* Both notifications visible - they stack naturally due to z-index */
}
/* css/location-notification.css */
/* Location Permission Notification - Tasteful & Non-Intrusive */

.location-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.location-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.location-notification-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.location-notification-content > .bi-geo-alt-fill {
  font-size: 24px;
  color: #2e7d32;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-notification-text {
  flex: 1;
  min-width: 0;
}

.location-notification-text strong {
  display: block;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.location-notification-text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.location-notification-enable {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.location-notification-enable:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.location-notification-enable:active {
  transform: translateY(0);
}

.location-notification-close {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: -4px;
}

.location-notification-close:hover {
  color: #666;
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .location-notification {
    top: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  
  .location-notification-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .location-notification-content > .bi-geo-alt-fill {
    font-size: 20px;
  }
  
  .location-notification-text strong {
    font-size: 13px;
  }
  
  .location-notification-text p {
    font-size: 12px;
  }
  
  .location-notification-enable {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .location-notification {
    top: 60px;
    right: 8px;
    left: 8px;
  }
  
  .location-notification-content {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  
  .location-notification-text {
    flex-basis: 100%;
    order: 2;
  }
  
  .location-notification-enable {
    order: 3;
    flex: 1;
  }
  
  .location-notification-close {
    order: 1;
    margin-left: auto;
  }
  
  .location-notification-content > .bi-geo-alt-fill {
    order: 0;
  }
}

/* Animation for entrance */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ensure notification appears above map controls */
.location-notification {
  z-index: 10000 !important;
}
/* css/consent-notification.css */
/* Consent Notification - Matches Location Notification Styling */

.consent-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.consent-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.consent-notification-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.consent-notification-content > .bi {
  font-size: 24px;
  color: #2e7d32;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-notification-text {
  flex: 1;
  min-width: 0;
}

.consent-notification-text strong {
  display: block;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.consent-notification-text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.consent-notification-enable {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.consent-notification-enable:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.consent-notification-enable:active {
  transform: translateY(0);
}

.consent-notification-close {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: -4px;
}

.consent-notification-close:hover {
  color: #666;
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .consent-notification {
    top: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  
  .consent-notification-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .consent-notification-content > .bi {
    font-size: 20px;
  }
  
  .consent-notification-text strong {
    font-size: 13px;
  }
  
  .consent-notification-text p {
    font-size: 12px;
  }
  
  .consent-notification-enable {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .consent-notification {
    top: 60px;
    right: 8px;
    left: 8px;
  }
  
  .consent-notification-content {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  
  .consent-notification-text {
    flex-basis: 100%;
    order: 2;
  }
  
  .consent-notification-enable {
    order: 3;
    flex: 1;
  }
  
  .consent-notification-close {
    order: 1;
    margin-left: auto;
  }
  
  .consent-notification-content > .bi {
    order: 0;
  }
}

/* Animation for entrance */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ensure notification appears above map controls */
.consent-notification {
  z-index: 10000 !important;
}
/* css/route-toast-notification.css */
/* Route Toast Notification - Top Sliding */

.route-toast-notification {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 10000;
  max-width: 600px;
  width: calc(100% - 40px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.route-toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(20px);
  pointer-events: auto;
}

.route-toast-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #2e7d32;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.route-toast-content > .bi-exclamation-triangle-fill {
  font-size: 24px;
  color: #2e7d32;
  flex-shrink: 0;
}

.route-toast-text {
  flex: 1;
  min-width: 0;
}

.route-toast-text strong {
  display: block;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.route-toast-text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.route-toast-button {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.route-toast-button:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.route-toast-button:active {
  transform: translateY(0);
}

.route-toast-close {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: -4px;
}

.route-toast-close:hover {
  color: #666;
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .route-toast-notification {
    width: calc(100% - 24px);
    max-width: none;
  }
  
  .route-toast-notification.show {
    transform: translateX(-50%) translateY(12px);
  }
  
  .route-toast-content {
    padding: 14px 16px;
    gap: 10px;
  }
  
  .route-toast-content > .bi-exclamation-triangle-fill {
    font-size: 20px;
  }
  
  .route-toast-text strong {
    font-size: 13px;
  }
  
  .route-toast-text p {
    font-size: 12px;
  }
  
  .route-toast-button {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .route-toast-notification {
    width: calc(100% - 16px);
  }
  
  .route-toast-notification.show {
    transform: translateX(-50%) translateY(8px);
  }
  
  .route-toast-content {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  
  .route-toast-text {
    flex-basis: 100%;
    order: 2;
  }
  
  .route-toast-button {
    order: 3;
    flex: 1;
  }
  
  .route-toast-close {
    order: 1;
    margin-left: auto;
  }
  
  .route-toast-content > .bi-exclamation-triangle-fill {
    order: 0;
  }
}

/* Animation for entrance */
@keyframes slideDownFromTop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(20px);
  }
}
/* css/flyup-system.css */
/**
 * Flyup System - Unified Styles
 * 
 * Consolidated styles for all flyup/action sheet components
 * Replaces scattered backdrop and flyup styles throughout the codebase
 * 
 * @version 1.0.0
 */

/* ============================================
   SHARED BACKDROP
   ============================================ */

.flyup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto !important;
    touch-action: none;
}

.flyup-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BASE FLYUP SHEET STYLES
   ============================================ */

.flyup-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto !important;
    z-index: 9000;
}

.flyup-sheet.open {
    transform: translateY(0);
}

/* ============================================
   FLYUP COMPONENTS
   ============================================ */

/* Handle for swipe-to-close */
.action-sheet-handle {
    width: 40px;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin: 12px auto 8px;
    flex-shrink: 0;
    cursor: grab;
}

.action-sheet-handle:active {
    cursor: grabbing;
}

/* Header */
.action-sheet-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    flex-shrink: 0;
}

.action-sheet-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #c41e3a;
}

/* Close button */
.sheet-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.sheet-close-btn:hover {
    color: #c41e3a;
}

/* Content area */
.action-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Footer */
.action-sheet-footer {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Removed desktop max-width restriction - flyups are now full width on all devices */

@media (max-width: 576px) {
    .action-sheet-content {
        padding: 16px;
    }
    
    .action-sheet-footer {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   SPECIFIC FLYUP OVERRIDES
   ============================================ */

/* Submit Location Flyup */
#addlocation {
    z-index: 9002;
}

/* City Selector Flyup */
#citySelectorSheet {
    z-index: 9003;
}

/* Address List Flyup */
#addressListSheet {
    z-index: 9000;
    max-height: 70vh;
}

/* Filters Flyup */
.filters-sheet {
    z-index: 9001;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.sheet-close-btn:focus {
    outline: 3px solid #2e7d32;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .flyup-backdrop,
    .flyup-sheet {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .flyup-sheet {
        border: 2px solid currentColor;
    }
}
/* css/follow-me-mode.css */
/* SparkleTour - Follow Me Mode Feature */

/* ============================================
   CHRISTMAS EMOJI USER LOCATION MARKER
   ============================================ */

/* Hide default Leaflet location marker when follow mode is active */
.follow-mode-active .leaflet-control-locate-location {
  display: none !important;
}

/* Christmas Location Marker Container */
.christmas-location-marker {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Glowing background effect */
.marker-glow {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0) 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* The sleigh (images/nav-sleigh.png, nose up). JS turns it to the direction of travel. */
.marker-sleigh {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s ease-out;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .marker-sleigh { transition: none; }
}

/* Emoji marker */
.marker-emoji {
  font-size: 32px;
  line-height: 1;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: emojiRotate 8s linear infinite;
}

@keyframes emojiRotate {
  0% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}

/* ============================================
   FOLLOW MODE INDICATOR (LEFT SIDE)
   Styled to match filter-indicator-control
   ============================================ */

.follow-indicator-control {
  margin-top: 8px;
  animation: slideInDown 0.3s ease-out;
  order: 11; /* Ensure it appears after filter indicator */
}

.follow-indicator-control a.follow-indicator-button {
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
  color: white !important;
  border: none;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  animation: followPulse 2s ease-in-out infinite;
}

.follow-indicator-control a.follow-indicator-button:hover {
  background: #c82333 !important;
  transform: scale(1.05);
}

.follow-indicator-control a.follow-indicator-button:active {
  transform: scale(0.98);
}

/* Active state - following */
.follow-indicator-control a.follow-indicator-button.active {
  background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
  animation: followPulse 2s ease-in-out infinite;
}

/* Inactive state - not following but location visible */
.follow-indicator-control a.follow-indicator-button.inactive {
  background: linear-gradient(135deg, #666, #444) !important;
  animation: none;
  opacity: 0.7;
}

.follow-indicator-control a.follow-indicator-button.inactive:hover {
  opacity: 1;
}

@keyframes followPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.6);
  }
}

/* Icon inside button */
.follow-indicator-icon {
  font-size: 24px;
  color: white;
  line-height: 1;
}

/* Rotating compass needle effect when active */
.follow-indicator-control a.follow-indicator-button.active .follow-indicator-icon {
  animation: compassRotate 4s linear infinite;
}

@keyframes compassRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Status badge - similar to filter count badge */
.follow-status-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ffd700;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.follow-indicator-control a.follow-indicator-button.inactive .follow-status-badge {
  background: #999;
  color: white;
}

/* Slide in animation */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide out animation */
.follow-indicator-control.hiding {
  animation: slideOutUp 0.3s ease-out forwards;
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .follow-indicator-control {
    margin-top: 8px;
  }
  
  /* Hide follow indicator when popup is open on mobile */
  .leaflet-popup-pane:not(:empty) ~ .leaflet-top .follow-indicator-control {
    display: none;
  }
  
  .santas-sled-marker {
    width: 50px;
    height: 50px;
  }
  
  .sled-body {
    width: 35px;
    height: 18px;
  }
  
  .santa-head {
    width: 12px;
    height: 12px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.follow-indicator-control a.follow-indicator-button:focus {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

.follow-indicator-control a.follow-indicator-button:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   IMMERSIVE MODE (Mobile Only)
   Auto-hide controls for distraction-free navigation
   ============================================ */

/* Mobile devices - use touch capability instead of just screen size */
@media (hover: none) and (pointer: coarse) {
  /* Immersive mode - hide all controls including follow indicator */
  body.follow-mode-immersive .fab-container,
  body.follow-mode-immersive .overlay-logo,
  body.follow-mode-immersive .help-button-wrapper,
  body.follow-mode-immersive .support-chip-container,
  body.follow-mode-immersive .routing-tab-trigger,
  body.follow-mode-immersive .leaflet-control-zoom,
  body.follow-mode-immersive .leaflet-control-layers,
  body.follow-mode-immersive .filter-indicator-control,
  body.follow-mode-immersive .route-toggle-control,
  body.follow-mode-immersive .follow-indicator-control,
  body.follow-mode-immersive .leaflet-bar {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-out, width 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Smooth fade-in when controls are revealed */
  body:not(.follow-mode-immersive) .fab-container,
  body:not(.follow-mode-immersive) .overlay-logo,
  body:not(.follow-mode-immersive) .help-button-wrapper,
  body:not(.follow-mode-immersive) .support-chip-container,
  body:not(.follow-mode-immersive) .routing-tab-trigger,
  body:not(.follow-mode-immersive) .leaflet-control-zoom,
  body:not(.follow-mode-immersive) .leaflet-control-layers,
  body:not(.follow-mode-immersive) .filter-indicator-control,
  body:not(.follow-mode-immersive) .route-toggle-control,
  body:not(.follow-mode-immersive) .follow-indicator-control,
  body:not(.follow-mode-immersive) .leaflet-bar {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease-in, width 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Fallback for older browsers that don't support hover/pointer media queries */
@media (max-width: 1024px) and (max-height: 1024px) {
  body.follow-mode-immersive .fab-container,
  body.follow-mode-immersive .overlay-logo,
  body.follow-mode-immersive .help-button-wrapper,
  body.follow-mode-immersive .support-chip-container,
  body.follow-mode-immersive .routing-tab-trigger,
  body.follow-mode-immersive .leaflet-control-zoom,
  body.follow-mode-immersive .leaflet-control-layers,
  body.follow-mode-immersive .filter-indicator-control,
  body.follow-mode-immersive .route-toggle-control,
  body.follow-mode-immersive .follow-indicator-control,
  body.follow-mode-immersive .leaflet-bar {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-out, width 0.3s ease, box-shadow 0.3s ease;
  }
  
  body:not(.follow-mode-immersive) .fab-container,
  body:not(.follow-mode-immersive) .overlay-logo,
  body:not(.follow-mode-immersive) .help-button-wrapper,
  body:not(.follow-mode-immersive) .support-chip-container,
  body:not(.follow-mode-immersive) .routing-tab-trigger,
  body:not(.follow-mode-immersive) .leaflet-control-zoom,
  body:not(.follow-mode-immersive) .leaflet-control-layers,
  body:not(.follow-mode-immersive) .filter-indicator-control,
  body:not(.follow-mode-immersive) .route-toggle-control,
  body:not(.follow-mode-immersive) .follow-indicator-control,
  body:not(.follow-mode-immersive) .leaflet-bar {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease-in, width 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Desktop - never hide controls */
@media (min-width: 769px) {
  body.follow-mode-immersive .fab-container,
  body.follow-mode-immersive .overlay-logo,
  body.follow-mode-immersive .help-button-wrapper,
  body.follow-mode-immersive .support-chip-container,
  body.follow-mode-immersive .routing-tab-trigger,
  body.follow-mode-immersive .leaflet-control-zoom,
  body.follow-mode-immersive .leaflet-control-layers,
  body.follow-mode-immersive .filter-indicator-control,
  body.follow-mode-immersive .route-toggle-control,
  body.follow-mode-immersive .follow-indicator-control,
  body.follow-mode-immersive .leaflet-bar {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
/* css/navigation.css */
/* In-app turn-by-turn navigation (js/sparkletour-navigation.js).
   A full-screen driving mode rather than a map task: while body.st-navigating is set
   the usual overlays step aside and the turn banner (top) and stop strip (bottom)
   take their place. Read at night from a dash mount, so text is large and the
   surfaces are solid. */

body.st-navigating .map-overlays,
body.st-navigating .routing-panel,
body.st-navigating .routing-tab-trigger,
body.st-navigating .leaflet-control-container {
  display: none;
}

.nav-ui {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    calc(var(--spacing-sm) + env(safe-area-inset-top, 0px))
    calc(var(--spacing-sm) + env(safe-area-inset-right, 0px))
    calc(var(--spacing-sm) + env(safe-area-inset-bottom, 0px))
    calc(var(--spacing-sm) + env(safe-area-inset-left, 0px));
  gap: var(--spacing-sm);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.nav-ui > * { pointer-events: auto; }
/* .st-btn and the flex rows below set display, which would beat the hidden attribute */
.nav-ui [hidden] { display: none; }

/* ------------------------------------------------------------ turn banner */
.nav-banner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--deep-forest);
  color: var(--on-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.nav-banner__icon {
  flex: none;
  font-size: 2.75rem;
  line-height: 1;
  width: 3.25rem;
  text-align: center;
}
.nav-banner__body { flex: 1; min-width: 0; }
.nav-banner__distance {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.nav-banner__text {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.nav-icon-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--on-color);
  background: transparent;
  color: var(--on-color);
  font-size: 1.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-icon-btn[aria-pressed="true"] { background: var(--on-color-hover); }
/* Mute and Santa Voice, stacked at the banner's right edge */
.nav-banner__tools {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.nav-icon-btn:focus-visible { outline: var(--focus-ring-on-color); outline-offset: 2px; }

.nav-status {
  margin: 0 auto;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  text-align: center;
  max-width: 640px;
}
.nav-status--warn { color: var(--christmas-red); }

/* Above the strip: Re-centre in the middle (when panned away), the compass at the right */
.nav-map-tools {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
  pointer-events: none;
}
.nav-map-tools > * { pointer-events: auto; }
.nav-recentre { grid-column: 2; }
/* Compass: tap to switch between "map turns with you" and north-up. The needle
   always points north, so it also shows which way the map is turned. */
.nav-compass {
  grid-column: 3;
  justify-self: end;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
  background: var(--surface);
  color: var(--christmas-red);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-compass[aria-pressed="true"] { border-color: var(--christmas-green); }
.nav-compass:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.nav-compass__needle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-size: 0.7rem;
  font-weight: 700;
}
.nav-compass__needle i { font-size: 1rem; margin-bottom: -2px; }
.nav-compass__needle b { color: var(--text-primary); }

/* ------------------------------------------------------------- stop strip */
.nav-strip {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.nav-strip__next { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nav-strip__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--christmas-green);
}
.nav-strip__label {
  font-size: 1.125rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.nav-strip__meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.nav-strip__side {
  flex: none;
  display: grid;
  justify-items: end;
  gap: var(--spacing-xs);
}
.nav-strip__count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------- the map */
.nav-route-line {
  stroke: var(--christmas-green);
}
.nav-stop-icon { background: none; border: 0; }
.nav-stop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--christmas-red);
  color: var(--on-color);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.875rem;
}
.nav-stop--done { background: var(--christmas-green); }
.nav-stop--skipped { background: var(--surface); color: var(--text-secondary); border-color: var(--border); }

/* ---------------------------------------------------------- resume sheet */
.nav-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.nav-resume-actions .st-btn { flex: 1 1 10rem; }
.nav-sheet-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}
.nav-sheet-close:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* ------------------------------------------------- small and landscape */
@media (max-width: 400px) {
  .nav-banner { gap: var(--spacing-sm); padding: var(--spacing-sm) var(--spacing-md); }
  .nav-banner__icon { font-size: 2.25rem; width: 2.5rem; }
  .nav-banner__distance { font-size: 1.5rem; }
  .nav-banner__text { font-size: 1rem; }
  .nav-icon-btn { width: 44px; height: 44px; font-size: 1.25rem; }
  .nav-strip { flex-wrap: wrap; }
  .nav-strip__side { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .nav-ui { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .nav-banner, .nav-strip { width: auto; max-width: 48%; margin: 0; }
  .nav-strip { align-self: flex-end; margin-left: auto; }
  .nav-status { order: 3; width: 100%; }
  .nav-map-tools { width: auto; margin: 0; align-self: flex-end; grid-template-columns: auto auto; gap: var(--spacing-sm); }
  .nav-recentre, .nav-compass { grid-column: auto; }
  .nav-banner__icon { font-size: 2rem; width: 2.25rem; }
  .nav-banner__distance { font-size: 1.375rem; }
}

/* "Start Tour" in the routing panel: the panel's one solid action */
.btn-routing.btn-start-tour {
  flex-basis: 100%;
  background: var(--christmas-green);
  border-color: var(--christmas-green);
  color: var(--on-color);
}
.btn-routing.btn-start-tour:hover { background: var(--deep-forest); border-color: var(--deep-forest); }
.btn-routing.btn-start-tour:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* "Try Again" inside the status pill */
.nav-status__action { margin-left: var(--spacing-sm); }

/* Lane arrows under the turn banner: the lanes to use are solid, the others dim */
.nav-lanes {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}
.nav-lane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--on-color-hover);
  color: var(--on-color);
  opacity: 0.45;
  font-size: 1.125rem;
}
.nav-lane--use {
  opacity: 1;
  border-color: var(--on-color);
  background: var(--on-color-hover);
}

/* Skip Stop and End Tour side by side */
.nav-strip__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--spacing-xs);
}
@media (max-width: 400px) {
  .nav-strip__buttons { flex-wrap: nowrap; }
}

/* ------------------------------------- "Share Your Tour" (js/sparkletour-share-card.js) */

.share-card-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, calc(40vh * 0.8));
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--deep-forest);
  box-shadow: var(--shadow-md);
}

.share-card-img {
  display: block;
  width: 100%;
  height: 100%;
}

.share-card-img[hidden],
.share-card-wait[hidden] {
  display: none;
}

.share-card-wait {
  margin: 0;
  padding: var(--spacing-md);
  color: var(--on-color);
  font-size: 0.875rem;
  text-align: center;
}

.share-card-message {
  margin: var(--spacing-md) 0 0;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
}

.share-card-note {
  text-align: center;
}

.share-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.share-card-status:empty {
  display: none;
}

/* css/map-engagement.css */
/*
 * Likes, "seen it" check-offs, the sortable address list and the night map.
 * Tokens come from css/map-theme.css.
 */

/* ---------------------------------------------------------------- buttons */

.engage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.engage-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

@media (hover: hover) {
  .engage-btn:hover {
    border-color: var(--text-secondary);
  }
}

.engage-like[aria-pressed="true"] {
  border-color: var(--christmas-red);
  color: var(--christmas-red);
}

/* Seen is a state, not an action: a tint, so it never competes with the one solid button. */
.engage-seen[aria-pressed="true"] {
  border-color: var(--christmas-green);
  background: var(--green-tint);
  color: var(--deep-forest);
}

.engage-seen--block {
  display: flex;
  width: 100%;
}

/* Icon only on screen; the label stays for screen readers. */
.engage-seen--compact {
  padding: 0;
}

.engage-seen--compact .engage-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Heart in the popup header, on the red-green gradient */
.engage-like--on-color {
  flex-shrink: 0;
  padding: 0 var(--spacing-sm);
  border-color: transparent;
  background: transparent;
  color: var(--on-color);
  font-size: 1rem;
}

.engage-like--on-color .bi {
  font-size: 1.25rem;
}

.engage-like--on-color[aria-pressed="true"] {
  border-color: transparent;
  color: var(--on-color);
}

.engage-like--on-color:focus-visible {
  outline: var(--focus-ring-on-color);
  outline-offset: -2px;
}

@media (hover: hover) {
  .engage-like--on-color:hover {
    border-color: transparent;
    background: var(--on-color-hover);
  }
}

/* Popup layout: identity and heart on top, then content, then one action block */
.popup-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  /* right padding keeps clear of Leaflet's close button */
  padding: var(--spacing-sm) 52px var(--spacing-md) var(--spacing-md);
}

.popup-heading {
  flex: 1;
  min-width: 0;
  padding-top: var(--spacing-sm);
}

.popup-heading h5 {
  overflow-wrap: anywhere;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Two equal halves; a label too long for its half (e.g. "Remove from Tour" on a
   small phone) drops the pair onto two lines instead of overflowing. */
.popup-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.popup-actions-row .st-btn {
  flex: 1 1 calc(50% - var(--spacing-sm));
  min-width: fit-content;
  padding: 0 var(--spacing-sm);
}

.popup-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.popup-tour-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin: 0 0 var(--spacing-sm);
  color: var(--deep-forest);
  font-size: 0.875rem;
  font-weight: 600;
}

.popup-tour-status .bi {
  color: var(--christmas-green);
}

/* "Couldn't save your like" message */
.engage-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--spacing-xl) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-system, 10000);
  max-width: min(90vw, 360px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--on-color);
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.engage-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tour-progress {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  color: var(--christmas-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.waypoint-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Seen displays fade back so the rest of the tour stands out */
.leaflet-marker-icon.is-visited {
  opacity: 0.45;
}

/* ----------------------------------------------------------- address list */

.address-list-sort {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.address-sort-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-height: 44px;
  padding: 0 var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.address-sort-chip[aria-pressed="true"] {
  border-color: var(--christmas-green);
  background: var(--christmas-green);
  color: var(--on-color);
}

.address-sort-chip:focus-visible,
.address-list-open:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.address-list-status {
  margin: 0 0 var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.address-list-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.address-list-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--divider);
}

.address-list-open {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: var(--spacing-xs) 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.address-list-name {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.address-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.address-list-meta span + span::before {
  content: "·";
  margin-right: var(--spacing-sm);
}

.address-list-engagement {
  display: flex;
  flex-shrink: 0;
  gap: var(--spacing-xs);
}

/* Narrow phones: icon-only seen button in list rows */
@media (max-width: 400px) {
  .address-list-engagement .engage-seen {
    padding: 0;
  }

  .address-list-engagement .engage-seen .engage-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.address-list-empty {
  padding: var(--spacing-lg) 0;
  color: var(--text-secondary);
  text-align: center;
}

/* -------------------------------------------------------------- night map */

/* Invert the light basemap into a dark one; markers and routes are in other panes. */
.st-dark-map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9);
}

.st-dark-map .leaflet-container {
  background: var(--night-ground);
}

@media print {
  .st-dark-map .leaflet-tile-pane {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .engage-btn,
  .engage-toast {
    transition: none;
  }
}

/* css/map-addlocation-styles.css */
/**
 * Add Location Flyup Sheet and Modal Styles
 * Styles for the submission form, modals, and related UI components
 */

:root {
    --christmas-red: #c41e3a;
    --christmas-green: #2e7d32;
    --christmas-gold: #ffd700;
    --deep-forest: #1a472a;
}

/* Add Location Flyup Sheet Styles */
#addlocation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

#addlocation.open {
    transform: translateY(0);
}

#addlocation .sheet-close-btn:hover {
    color: #c41e3a;
}

#addlocation .action-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

#addlocation .btn-success:hover {
    background: #2e7d32 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Photo upload buttons */
#addlocation .btn-outline-success {
    background: white !important;
    color: #2e7d32 !important;
    border: 2px solid #2e7d32 !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#addlocation .btn-outline-success:hover {
    background: #2e7d32 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Responsive adjustments for submission sheet - Full width on all screens */
@media (min-width: 768px) {
    #addlocation {
        /* Keep full width on desktop too */
        left: 0;
        right: 0;
        transform: translateY(100%);
    }
    
    #addlocation.open {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    #addlocation .action-sheet-content {
        padding: 16px;
    }
}

/* How It Works Modal Content */
.step-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--christmas-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: start;
    text-align: left;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--christmas-red);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.step-description {
    color: #555;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Help button styling */
.help-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-button-wrapper .btn-link {
    background: none !important;
    border: none !important;
    text-decoration: none !important;
    color: #2e7d32 !important;
    transition: all 0.2s ease;
}

.help-button-wrapper .btn-link:hover {
    transform: translateY(-4px) scale(1.1);
    color: #1b5e20 !important;
}

.help-button-wrapper .btn-link:focus {
    box-shadow: none !important;
    outline: none !important;
}

.help-button-wrapper .btn-link:focus-visible {
    outline: 3px solid #2e7d32 !important;
    outline-offset: 2px;
}

/* Help Modal Styles */
#helpModal .modal-body h6 {
    text-align: center;
}

#helpModal .modal-body > div:nth-child(2) p {
    text-align: left;
    font-size: 1rem;
}

/* Support SparkleTour button - match support chip style */
#helpModal .btn-success {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 999px !important;
    background: #c41e3a !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#helpModal .btn-success:hover,
#helpModal .btn-success:focus {
    background: #a01729 !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.5) !important;
    transform: translateY(-4px) scale(1.1) !important;
    outline: none !important;
}

#helpModal .btn-success:active {
    transform: translateY(-2px) scale(1.05) !important;
}

/* Social media buttons - red style */
#helpModal .btn-primary,
#helpModal .btn-danger {
    background: white !important;
    color: #c41e3a !important;
    border: 2px solid #c41e3a !important;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

#helpModal .btn-primary:hover,
#helpModal .btn-primary:focus,
#helpModal .btn-danger:hover,
#helpModal .btn-danger:focus {
    background: #c41e3a !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    outline: none !important;
}

/* Modal Positioning - Top of Screen */
.modal-dialog {
    margin: 0.5rem auto;
    max-width: 700px;
    width: 95%;
    position: relative;
    top: 0;
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 750px;
        margin: 1rem auto;
    }
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, 0);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: none;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(140deg,rgba(196, 30, 58, 1) 0%, rgba(30, 121, 44, 1) 100%);
    color: white;
    border-bottom: 2px solid var(--christmas-gold);
    padding: 0.875rem 1rem;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.modal-body {
    padding: 1rem 1.25rem;
    overflow-y: visible !important;
    flex: 1 1 auto;
    max-height: none !important;
}

/* Allow modal to scroll as a whole on small screens */
@media (max-height: 650px) {
    body.modal-open {
        overflow-y: auto !important;
    }
    
    .modal-dialog {
        margin: 0.25rem auto;
    }
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--christmas-green);
    margin-bottom: 0.35rem;
    text-align: left;
    display: block;
    font-size: 0.9rem;
}

/* Reduce spacing between form groups */
.mb-3 {
    margin-bottom: 0.875rem !important;
}

/* Compact row spacing */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > [class*='col-'] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Form animation for submission */
#addlocationform {
    transition: opacity 0.4s ease-out, max-height 0.4s ease-out, margin 0.4s ease-out;
    max-height: 5000px;
    overflow: hidden;
}

#addlocationform.form-submitting {
    opacity: 0;
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

/* Loading spinner */
#loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

#loading-spinner.show {
    display: block;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Ensure thanks message is visible and prominent when it has content */
#thanks:not(:empty) {
    min-height: 60px;
    margin-bottom: 1rem;
}

#thanks:empty {
    display: none;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
    height: auto;
}

input.form-control {
    height: calc(1.5em + 0.75rem + 4px);
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: var(--christmas-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

.btn-success {
    background: #dc3545;
    border: none;
    padding: 0.625rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
}

.btn-success:hover {
    background: #c82333;
}

/* Compact feature checkboxes */
.feature-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.feature-checkboxes .checkbox {
    margin: 0;
    font-size: 0.85rem;
}

.feature-checkboxes label {
    margin: 0;
    font-weight: normal;
}

/* Compact photo preview */
#photo-preview img {
    max-height: 120px !important;
}

#photo-preview .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Google Places Autocomplete - Must be above flyup sheet */
.pac-container {
    z-index: 10003 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.pac-item {
    padding: 8px 12px !important;
    cursor: pointer !important;
}

.pac-item:hover {
    background-color: #f0f0f0 !important;
}

.pac-item-query {
    font-size: 14px !important;
}

/* Select2 Optimizations for City Selector - All Devices */

/* Ensure Select2 dropdown renders within the scrollable content area */
.select2-container--open .select2-dropdown--below {
    border-top: none !important;
}

.select2-container--open .select2-dropdown--above {
    border-bottom: none !important;
}

/* Allow dropdown to take full available height */
.select2-dropdown {
    max-height: none !important;
}

.select2-results {
    max-height: 50vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.select2-results__options {
    max-height: 50vh !important;
    overflow-y: auto !important;
}

/* Better spacing for all devices */
#citySelectorSheet .select2-container .select2-selection--single {
    min-height: 44px !important;
    padding: 10px !important;
}

#citySelectorSheet .select2-container .select2-selection__rendered {
    line-height: 24px !important;
    padding-left: 10px !important;
}

#citySelectorSheet .select2-container .select2-selection__arrow {
    height: 42px !important;
}

#citySelectorSheet .select2-results__option {
    padding: 10px 14px !important;
}

/* Desktop: Style optgroup labels for better province visibility */
#citySelectorSheet .select2-results__group {
    font-weight: 700 !important;
    color: var(--christmas-red) !important;
    background: #f8f9fa !important;
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

/* Desktop: Set explicit height */
@media (min-width: 768px) {
    #citySelectorSheet {
        height: 90vh !important;
        max-height: 90vh !important;
    }
    
    /* Ensure Select2 dropdown fits within desktop flyup */
    #citySelectorSheet .select2-results {
        max-height: 60vh !important;
    }
    
    #citySelectorSheet .select2-results__options {
        max-height: 60vh !important;
    }
}

/* Tablet and smaller screens - reduce dropdown height */
@media (max-width: 1024px) {
    #citySelectorSheet .select2-results {
        max-height: 40vh !important;
    }
    
    #citySelectorSheet .select2-results__options {
        max-height: 40vh !important;
    }
}

/* Small screens - further reduce dropdown height */
@media (max-height: 700px) {
    #citySelectorSheet .select2-results {
        max-height: 30vh !important;
    }
    
    #citySelectorSheet .select2-results__options {
        max-height: 30vh !important;
    }
}

/* Mobile: Use native select, simpler styling */
@media (max-width: 767px) {
    /* Taller flyup on mobile */
    #citySelectorSheet {
        height: 70vh !important;
        max-height: 70vh !important;
    }
    
    /* Style native select on mobile */
    #citySelector {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 14px !important;
        min-height: 52px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background-color: white !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 20px;
        padding-right: 40px !important;
    }
    
    /* Style optgroups in native select */
    #citySelector optgroup {
        font-weight: 700;
        color: var(--christmas-red);
        font-size: 0.95rem;
        padding: 8px 0;
    }
    
    #citySelector option {
        padding: 12px 16px;
        font-size: 16px;
    }
}
/* Confirmation after a display is sent (showSubmissionDone in js/sparklefunctions.js) */
.submit-done {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
}
.submit-done:focus { outline: none; }
.submit-done__icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--christmas-green);
}
.submit-done__title {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-forest);
}
.submit-done__address {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.submit-done__note {
    margin: 0;
    color: var(--text-secondary);
}
.submit-done__actions {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 360px;
    margin-top: 1rem;
}
.submit-done__actions .btn { min-height: 44px; border-radius: 50px; font-weight: 600; }

/* css/map-loading-indicator.css */
/**
 * Map Loading Indicator Styles
 * Full-screen loading overlay shown during map updates
 */

/* Map Loading Indicator */
.map-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10003;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.map-loading-indicator.show {
    display: flex;
}

.map-loading-content {
    background: white;
    border-radius: 16px;
    padding: 2rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInScale 0.3s ease-out;
}

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

.map-loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--christmas-red);
    border-right: 4px solid var(--christmas-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

@media (max-width: 576px) {
    .map-loading-content {
        padding: 1.5rem 2rem;
    }
    
    .map-loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .map-loading-text {
        font-size: 1rem;
    }
}
/* css/map-buttons-and-chips.css */
/**
 * Button and Chip Styles
 * Feature chips, popup buttons, action sheets, and social sharing buttons
 */

/* Feature Chip Styles - Mobile-Friendly */
.feature-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-chip-wrapper {
    display: inline-block;
}

.feature-chip-label {
    cursor: pointer;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: white;
    border: 2px solid #dee2e6;
    color: #212529;
    font-weight: normal;
}

.feature-chip-label:active {
    transform: scale(0.98);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .feature-chip-label {
        padding: 0.6rem 1.1rem;
        font-size: 0.95rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Override .btn-success to match site-wide button pattern */
#addlocation .btn-success,
#bookcustom .btn-success {
    background: white !important;
    color: var(--christmas-green) !important;
    border: 2px solid var(--christmas-green) !important;
    padding: 0.625rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#addlocation .btn-success:hover,
#bookcustom .btn-success:hover {
    background: var(--christmas-green) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Photo upload buttons - match site pattern */
#addlocation .btn-outline-success {
    background: white;
    color: var(--christmas-green);
    border: 2px solid var(--christmas-green);
    transition: all 0.3s ease;
}

#addlocation .btn-outline-success:hover {
    background: var(--christmas-green);
    color: white;
    border-color: var(--christmas-green);
    transform: translateY(-2px);
}

/* Fix "Start from My Location" button styling */
.btn-location {
    background: white !important;
    color: var(--christmas-green) !important;
    border: 2px solid var(--christmas-green) !important;
}

.btn-location:hover:not(:disabled) {
    background: var(--christmas-green) !important;
    color: white !important;
    border: 2px solid var(--christmas-green) !important;
}

/* Feature chip hover states - Red theme */
.feature-chip-label:hover {
    background: #f8f9fa;
    border-color: var(--christmas-red);
    transform: translateY(-1px);
}

.feature-chip-label input[type="checkbox"]:checked + span {
    background: var(--christmas-red);
    color: white;
    border-color: var(--christmas-red);
}

/* Share Action Sheet - Slide up from Bottom */
.share-action-sheet .action-sheet-title {
    color: var(--christmas-red);
}

/* Saved Route Action Sheet */
.saved-route-action-sheet .action-sheet-title {
    color: var(--christmas-red);
}

.saved-route-action-sheet .btn {
    background: white;
    border: 2px solid;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.saved-route-action-sheet .btn-success {
    color: var(--christmas-green);
    border-color: var(--christmas-green);
    background: white;
}

.saved-route-action-sheet .btn-success:hover {
    background: var(--christmas-green);
    color: white;
    border-color: var(--christmas-green);
    transform: translateY(-2px);
}

.saved-route-action-sheet .btn-outline-danger {
    color: var(--christmas-red);
    border-color: var(--christmas-red);
    background: white;
}

.saved-route-action-sheet .btn-outline-danger:hover {
    background: var(--christmas-red);
    color: white;
    border-color: var(--christmas-red);
    transform: translateY(-2px);
}

/* Share Link Display */
.share-action-sheet .share-link-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #495057;
    word-break: break-all;
    font-family: monospace;
}

/* Copy Link Button */
.share-action-sheet .btn-copy-link {
    color: var(--christmas-green);
    border-color: var(--christmas-green);
}

.share-action-sheet .btn-copy-link:hover {
    background: var(--christmas-green);
    color: white;
    transform: translateY(-2px);
}

/* Share Action Sheet Social Buttons - Christmas Theme */
.share-action-sheet .btn-social {
    background: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.share-action-sheet .btn-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.share-action-sheet .btn-facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
}

.share-action-sheet .btn-x {
    color: #000000;
    border-color: #000000;
}

.share-action-sheet .btn-x:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
}

.share-action-sheet .btn-whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.share-action-sheet .btn-whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
}

.share-action-sheet .btn-email {
    color: var(--christmas-red);
    border-color: var(--christmas-red);
}

.share-action-sheet .btn-email:hover {
    background: var(--christmas-red);
    color: white;
    transform: translateY(-2px);
}

.share-action-sheet #copySuccess {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Directions Panel - Slide-in from Right */
/* Directions Action Sheet - Slide up from Bottom */
/* A display tapped on the map during a tour opens this sheet with its photo */
.directions-action-sheet .directions-photo {
  display: block;
  width: 100%;
  max-height: 35vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.directions-action-sheet .action-sheet-title {
    color: var(--christmas-red);
}

/* Directions Buttons - Christmas Theme */
.directions-action-sheet .btn-directions {
    background: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid;
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.directions-action-sheet .btn-sparkle {
    color: var(--christmas-green);
    border-color: var(--christmas-green);
    padding: 1rem;
}

.directions-action-sheet .btn-sparkle:hover {
    background: var(--christmas-green);
    color: white;
    transform: translateY(-2px);
}

/* "Drive Here with SparkleTour": the sheet's one solid action, above the other apps */
.directions-action-sheet .btn-sparkle--primary {
    background: var(--christmas-green);
    color: var(--on-color);
}
.directions-action-sheet .btn-sparkle--primary:hover {
    background: var(--deep-forest);
    border-color: var(--deep-forest);
    color: var(--on-color);
}
.directions-action-sheet .btn-sparkle:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}
.directions-action-sheet .btn-directions__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.directions-action-sheet .btn-directions__text small {
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.9;
}
.directions-or {
    margin: var(--spacing-xs) 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.directions-action-sheet .btn-google {
    color: #4285f4;
    border-color: #4285f4;
}

.directions-action-sheet .btn-google:hover {
    background: #4285f4;
    color: white;
    transform: translateY(-2px);
}

.directions-action-sheet .btn-apple {
    color: #000000;
    border-color: #000000;
}

.directions-action-sheet .btn-apple:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
}

.directions-action-sheet .btn-waze {
    color: #33ccff;
    border-color: #33ccff;
}

.directions-action-sheet .btn-waze:hover {
    background: #33ccff;
    color: white;
    transform: translateY(-2px);
}
/* css/map-filters-and-sheets.css */
/**
 * Filter Modal and Action Sheet Styles
 * Styles for filter chips, city selector, and action sheet components
 */

/* Filter Modal Styles */
.filter-chip {
    transition: all 0.3s ease !important;
    position: relative !important;
    background: white !important;
    color: var(--christmas-green) !important;
    border: 2px solid var(--christmas-green) !important;
    font-weight: 600;
    border-radius: 50px;
}

.filter-chip:not(.active):hover {
    background: var(--christmas-green) !important;
    color: white !important;
    border-color: var(--christmas-green) !important;
    transform: translateY(-2px);
}

.filter-chip.active {
    background-color: var(--christmas-green) !important;
    border-color: var(--christmas-green) !important;
    color: #ffffff !important;
}

.filter-chip.active:hover {
    background-color: var(--deep-forest) !important;
    border-color: var(--deep-forest) !important;
    transform: translateY(-2px);
}

.form-check-input:checked {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

/* Debug - make sure active class is visible */
button.filter-chip.active {
    background: var(--christmas-green) !important;
    color: white !important;
    border: 2px solid var(--christmas-green) !important;
}

/* Filter Modal Footer Buttons - Match site-wide pattern */
#filtersModal .modal-footer .btn-outline-secondary {
    background: white !important;
    color: var(--christmas-red) !important;
    border: 2px solid var(--christmas-red) !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#filtersModal .modal-footer .btn-outline-secondary:hover {
    background: var(--christmas-red) !important;
    color: white !important;
    border-color: var(--christmas-red) !important;
    transform: translateY(-2px);
}

#filtersModal .modal-footer .btn-success {
    background: white !important;
    color: var(--christmas-green) !important;
    border: 2px solid var(--christmas-green) !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#filtersModal .modal-footer .btn-success:hover {
    background: var(--christmas-green) !important;
    color: white !important;
    border-color: var(--christmas-green) !important;
    transform: translateY(-2px);
}

/* Filter Modal Feature Chips - Match submission modal style */
#filtersModal .feature-chip-wrapper {
    display: inline-block;
    width: 100%;
}

#filtersModal .feature-chip-label {
    cursor: pointer;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: white !important;
    border: 2px solid #dee2e6 !important;
    color: #212529 !important;
    font-weight: normal;
    width: 100%;
}

#filtersModal .feature-chip-label * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#filtersModal .feature-chip-label:active {
    transform: scale(0.98);
}

#filtersModal .feature-chip-label:hover:not(.active) {
    background: #f8f9fa !important;
    border-color: var(--christmas-red) !important;
    transform: translateY(-1px);
}

#filtersModal .feature-chip-label.active {
    background: var(--christmas-red) !important;
    color: white !important;
    border-color: var(--christmas-red) !important;
}

#filtersModal .feature-chip-label.active:hover {
    background: #a01828 !important;
    color: white !important;
    border-color: #a01828 !important;
}

#filtersModal .feature-chip-label.active span {
    color: white !important;
}

#filtersModal .feature-chip-label.active:hover span {
    color: white !important;
}

#filtersModal .feature-chip-label input[type="checkbox"] {
    display: none;
}

#filtersModal .feature-chip-label span {
    display: block;
    width: 100%;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: transparent !important;
}

#filtersModal .feature-chip-label.active span {
    background: transparent !important;
}

#filtersModal .feature-chip-label.active:hover span {
    background: transparent !important;
}

/* Prevent any text selection highlighting */
#filtersModal .feature-chip-label::selection,
#filtersModal .feature-chip-label *::selection {
    background: transparent !important;
    color: inherit !important;
}

#filtersModal .feature-chip-label::-moz-selection,
#filtersModal .feature-chip-label *::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

/* Mobile optimizations for filter modal chips */
@media (max-width: 768px) {
    #filtersModal .feature-chip-label {
        padding: 0.6rem 1.1rem;
        font-size: 0.95rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* City Selector Sheet Styles - Match List Addresses Flyup */
.city-selector-sheet.open {
    transform: translateY(0) !important;
}

.city-selector-sheet .sheet-close-btn:hover {
    color: #c41e3a;
}

.city-selector-sheet .action-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.city-selector-sheet .form-select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

/* Action Sheet Handle (for all flyups) */
.action-sheet-handle {
    width: 40px;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin: 12px auto 8px;
    flex-shrink: 0;
}

/* Action Sheet Header (for all flyups) */
.action-sheet-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    flex-shrink: 0;
}

.action-sheet-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ============================================
   LANDSCAPE MODE OPTIMIZATIONS
   ============================================ */

/* Landscape mode optimizations for filter sheets */
@media (max-width: 768px) and (orientation: landscape) {
  /* Filter sheet - reduce height for landscape */
  .filters-sheet {
    max-height: 80vh;
  }
  
  /* Compact content padding */
  .filters-sheet .action-sheet-content {
    padding: 12px 16px;
  }
  
  /* Tighter grid for feature filters */
  .filters-sheet .feature-filters-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  /* Smaller feature chips */
  .filters-sheet .feature-chip-label {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-height: 36px;
  }
  
  /* Compact header */
  .filters-sheet .action-sheet-header {
    padding: 12px 16px;
  }
  
  .filters-sheet .action-sheet-title {
    font-size: 1.125rem;
  }
  
  /* Compact footer */
  .filters-sheet .action-sheet-footer {
    padding: 12px 16px;
  }
  
  .filters-sheet .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Compact section titles */
  .filters-sheet .filter-section-title {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }
  
  /* Compact quick filters */
  .filters-sheet .quick-filters {
    gap: 8px;
  }
  
  .filters-sheet .filter-chip {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  /* Compact active filters alert */
  .filters-sheet .active-filters-alert {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  /* Filter modal optimizations */
  #filtersModal .feature-chip-label {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-height: 36px;
  }
  
  #filtersModal .modal-body {
    padding: 0.75rem;
  }
  
  #filtersModal .modal-header {
    padding: 0.75rem 1rem;
  }
  
  #filtersModal .modal-footer {
    padding: 0.75rem 1rem;
  }
  
  #filtersModal .modal-title {
    font-size: 1.125rem;
  }
  
  /* City selector sheet */
  .city-selector-sheet .action-sheet-content {
    padding: 12px 16px;
  }
  
  .city-selector-sheet .form-select {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}
