/* 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 - Match Bootstrap 5 Modal .btn-close Style */
.leaflet-popup-close-button {
  position: absolute !important;
  top: 0.5rem !important;
  right: 0.5rem !important;
  width: 1.5em !important;
  height: 1.5em !important;
  padding: 0.25em !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: transparent !important;
  opacity: 0.5 !important;
  text-shadow: none !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  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/1em auto no-repeat !important;
  border: 0 !important;
  border-radius: 0.25rem !important;
  transition: opacity 0.15s ease-in-out !important;
  z-index: 10 !important;
}

.leaflet-popup-close-button:hover {
  opacity: 1 !important;
  text-decoration: none !important;
}

.leaflet-popup-close-button:focus {
  opacity: 1 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}
/* 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;
}
