/* Custom properties for theme */
:root {
  --bg-pure: #070708;
  --bg-card: #121215;
  --bg-card-hover: #18181f;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 102, 0, 0.3);
  
  --primary: #ff6600;
  --primary-glow: rgba(255, 102, 0, 0.4);
  --primary-dark: #cc5200;
  --primary-light: #ff8533;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;
  
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  
  /* Stage Colors */
  --color-hangar7: #00e5ff;
  --color-mainterminal: #ff6600;
  --color-dropzone: #10b981;
  --color-pitstop: #ff0055;
  
  --font-title: 'Unbounded', 'Orbitron', 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --app-viewport-height: 100dvh;
  --bottom-nav-safe-area: 0px;
  --bottom-nav-height: 74px;
}

@supports (padding-bottom: min(1px, 2px)) {
  :root {
    --bottom-nav-safe-area: min(env(safe-area-inset-bottom, 0px), 24px);
    --bottom-nav-height: calc(74px + var(--bottom-nav-safe-area));
  }
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Custom premium dark theme scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070708;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 102, 0, 0.25);
  border-radius: 10px;
  border: 2px solid #070708;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 102, 0, 0.5);
}

/* Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 102, 0, 0.25) #070708;
}

html, body {
  height: var(--app-viewport-height, 100dvh);
  min-height: var(--app-viewport-height, 100dvh);
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  overscroll-behavior-y: none;
}

html {
  background-color: var(--bg-pure);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body {
  /* Techno Scanline Grid Background */
  background-image: 
    linear-gradient(rgba(255, 102, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 102, 0, 0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center top;
}

/* Container */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  height: var(--app-viewport-height, 100dvh);
  min-height: var(--app-viewport-height, 100dvh);
  max-height: var(--app-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(255, 102, 0, 0.08) 0%, rgba(7, 7, 8, 1) 75%), #070708;
}

/* Scroll Container */
main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Offline Banner */
#offline-banner {
  background-color: var(--primary);
  color: #000;
  font-weight: 700;
  padding: 10px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.banner-content .icon {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

@keyframes flash {
  0%, 100% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
  50% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}

.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

.akf-raver-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 102, 0, 0.35);
  animation: raver-attention-pulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes raver-attention-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.035);
    text-shadow: 0 0 18px rgba(255, 102, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .akf-raver-pulse {
    animation: none;
  }
}

/* Header Area */
.main-header {
  padding: calc(12px + env(safe-area-inset-top)) 15px 12px;
  position: sticky;
  top: 0;
  background-color: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 50%;
  touch-action: manipulation;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-icon-btn:active,
.header-icon-btn:focus-visible {
  color: var(--primary);
  background-color: rgba(255, 102, 0, 0.08);
}

/* Search Bar */
.search-bar-container {
  margin-bottom: 15px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input,
#info-search-input,
#price-search {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 45px 12px 45px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#price-search {
  padding: 12px 20px; /* smaller left padding since there is no icon */
}

#search-input:focus,
#info-search-input:focus,
#price-search:focus,
#timetable-search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.25);
}

#clear-search,
#clear-info-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

#clear-search svg,
#clear-info-search svg {
  width: 18px;
  height: 18px;
}

/* Brand Banner */
.brand-banner {
  position: relative;
  width: 100%;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 102, 0, 0.15);
  margin-bottom: 0;
  cursor: pointer;
  background: #070708 radial-gradient(circle, rgba(255, 102, 0, 0.15) 0%, rgba(7, 7, 8, 1) 100%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(5%) brightness(85%);
  transition: transform 0.5s ease;
}

.brand-banner:hover .banner-image {
  transform: scale(1.03);
}

.banner-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 7, 8, 0.95) 0%, rgba(7, 7, 8, 0.3) 50%, transparent 100%);
  pointer-events: none;
}

.festival-badge {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.8), 0 0 20px rgba(255, 102, 0, 0.4);
}

/* Quick Action Badges */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.quick-btn svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.quick-btn:hover {
  background-color: rgba(255, 102, 0, 0.05);
  border-color: var(--border-hover);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.1);
}

.quick-btn:hover svg {
  transform: translateY(-2px);
}

.telegram-btn svg {
  color: #24A1DE;
}

/* Accordion Container */
.accordion-container {
  padding: 10px 15px;
  flex-grow: 1;
}

/* Accordion Item Card */
.accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Active State for Accordions */
.accordion-item.active {
  border-color: var(--primary-glow);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.15);
  background-color: #121216;
}

/* Accordion Header */
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: left;
}

.trigger-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trigger-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.trigger-chevron {
  width: 18px;
  height: 18px;
  border-right: 2.5px solid var(--text-muted);
  border-bottom: 2.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 5px;
  margin-top: -4px;
}

.accordion-item.active .trigger-chevron {
  transform: rotate(-135deg);
  border-color: var(--primary);
  margin-top: 4px;
}

/* Accordion Content Panel */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When active, JavaScript sets dynamic max-height or we default to a safe value */
.accordion-item.active .accordion-content {
  /* Dynamic max-height is set in JS for smoothness, CSS acts as fallback */
  max-height: none; 
}

/* Cards & Text block inside panel */
.info-card {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-card p {
  margin-bottom: 12px;
}

.info-card p strong {
  color: var(--text-main);
}

.subtext {
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* Buttons */
.accent-btn, .secondary-btn, .call-btn, .taxi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border: none;
}

.accent-btn {
  background-color: var(--primary);
  color: #000;
}

.accent-btn:hover {
  background-color: var(--primary-light);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-1px);
}

.accent-btn svg {
  width: 18px;
  height: 18px;
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.secondary-btn svg {
  width: 16px;
  height: 16px;
}

/* Alerts */
.info-alert {
  background-color: rgba(255, 102, 0, 0.06);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 15px 0;
}

.info-alert.warning {
  background-color: rgba(239, 68, 68, 0.06);
  border-left-color: var(--danger);
  color: var(--text-muted);
}

.info-alert strong {
  color: var(--text-main);
}

/* Map Viewer */
.map-viewer-container {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-viewer-container--flush {
  padding: 0;
}

.viewer-hint {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.map-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: #171d1f;
  background-image:
    linear-gradient(0deg, rgba(7, 10, 11, 0.16), rgba(7, 10, 11, 0.04)),
    url('assets/map-bg.webp?v=89');
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
}

.map-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 14, 0.36), rgba(8, 14, 14, 0) 22%, rgba(8, 14, 14, 0) 78%, rgba(8, 14, 14, 0.36)),
    linear-gradient(0deg, rgba(8, 14, 14, 0.4), rgba(8, 14, 14, 0) 28%, rgba(8, 14, 14, 0) 72%, rgba(8, 14, 14, 0.4));
  pointer-events: none;
  z-index: 0;
}

.map-viewport:active {
  cursor: grabbing;
}

#map-transform-container {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-origin: 0 0;
  transition: transform 0.15s ease-out;
  --map-hotspot-zoom-scale: 1;
}

#map-img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  touch-action: none;
  transform-origin: 0 0;
  transition: transform 0.1s ease-out;
  /* Hardware acceleration & anti-blur optimizations */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  image-rendering: -webkit-optimize-contrast;
}

.map-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.76);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), 0 0 12px rgba(255, 102, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.map-controls button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(18, 18, 22, 0.76);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0;
  border-radius: 0;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-controls button:last-child {
  border-bottom: 0;
}

.map-controls button:hover {
  background-color: rgba(255, 102, 0, 0.2);
  color: #fff;
}

.map-controls button:active {
  background-color: rgba(255, 102, 0, 0.34);
  transform: scale(0.94);
}

.map-controls .map-reset-control {
  font-size: 0.92rem;
}

.map-controls button.is-active {
  background-color: rgba(255, 102, 0, 0.16);
  color: #fff;
}

.map-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 25;
  width: min(360px, calc(100% - 64px));
  max-height: calc(100% - 20px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(214, 92, 24, 0.84);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 102, 0, 0.14);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-legend summary {
  min-height: 26px;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.map-legend summary::-webkit-details-marker {
  display: none;
}

.map-legend summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.map-legend[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.map-legend[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.map-legend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 8px;
  padding: 7px 8px 8px;
}

.map-legend-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(0.42rem, 1.15vw, 0.58rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.map-legend-item img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.map-tap-hint {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 102, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 102, 0, 0.06);
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.poi-detail-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poi-detail-list li {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.poi-detail-list strong,
.poi-detail-note strong {
  color: var(--text-main);
}

.poi-detail-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Timetable Component Styles */
.timetable-interface {
  padding: 0 20px 20px;
}

.timetable-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 50px;
}

.filter-options {
  display: flex;
  gap: 6px;
  flex-grow: 1;
}

.filter-btn {
  flex-grow: 1;
  background: none;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Select element customization */
.select-wrapper {
  position: relative;
}

#stage-selector {
  width: 100%;
  background-color: rgba(7, 7, 8, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

#stage-selector:focus {
  outline: none;
  border-color: var(--primary);
}

/* Toggle Switch */
.toggle-wrapper {
  margin-top: 4px;
}

.toggle-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toggle-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: .2s;
  margin-right: 8px;
  border: 1px solid var(--border-color);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: .2s;
}

.toggle-container input:checked + .toggle-slider {
  background-color: var(--primary-glow);
  border-color: var(--primary);
}

.toggle-container input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background-color: var(--primary);
}

.toggle-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Timetable list */
.timetable-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timetable-card {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.timetable-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Left colored accent based on Floor */
.timetable-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent-stage, var(--primary));
}

.timetable-time {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  width: 90px;
  flex-shrink: 0;
}

.timetable-info {
  flex-grow: 1;
  padding-right: 15px;
}

.artist-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-stage, var(--primary));
}

.fav-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 6px;
}

.fav-btn:hover {
  transform: scale(1.15);
  color: var(--text-muted);
}

.fav-btn.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
  animation: starBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.star-active {
  color: var(--primary);
}

@keyframes starBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* Highlight card if starred */
.timetable-card.starred {
  background-color: rgba(255, 102, 0, 0.03);
  border-color: rgba(255, 102, 0, 0.2);
}

/* Past acts faded */
.timetable-card.past {
  opacity: 0.45;
  filter: grayscale(40%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.timetable-card.past:hover {
  opacity: 0.75;
  filter: grayscale(10%);
}

/* Live acts glowing */
.timetable-card.live {
  background-color: rgba(255, 102, 0, 0.05);
  border-color: var(--accent-stage, var(--primary)) !important;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.15);
  animation: liveCardPulse 2s infinite ease-in-out;
}

@keyframes liveCardPulse {
  0% { box-shadow: 0 0 8px rgba(255, 102, 0, 0.1); }
  50% { box-shadow: 0 0 16px rgba(255, 102, 0, 0.3); }
  100% { box-shadow: 0 0 8px rgba(255, 102, 0, 0.1); }
}

.live-indicator-badge {
  background-color: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.5px;
  animation: pulse-live 1.5s infinite ease-in-out;
}

@keyframes pulse-live {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

#timetable-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

/* Original graphics section */
.timetable-images-section {
  margin-top: 25px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.collapse-toggle {
  justify-content: space-between;
}

.collapse-toggle svg {
  transition: transform 0.2s ease;
}

.collapse-toggle.active svg {
  transform: rotate(180deg);
}

.stage-image-card {
  margin-top: 15px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
}

.stage-image-card h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.zoomable-image {
  width: 100%;
  border-radius: 4px;
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.zoomable-image:hover {
  filter: brightness(1.1);
}

/* Tab schedule styles for bus */
.tab-container {
  margin-top: 15px;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.tab-link {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: transparent;
  transition: all 0.2s ease;
}

.tab-link.active {
  color: var(--primary);
}

.tab-link.active::after {
  background-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.schedule-block {
  margin-bottom: 18px;
}

.schedule-block h5 {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-grid span {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.highlight-grid span {
  border-color: rgba(255, 102, 0, 0.25);
  background-color: rgba(255, 102, 0, 0.03);
  color: var(--primary);
}

.small-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-top: 4px;
}

/* Anfahrt Details */
.directions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.direction-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 15px;
}

.direction-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.direction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.direction-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.direction-header h5 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Getränkepreise search & table styling */
.prices-container {
  padding: 0 20px 20px;
}

.table-search {
  margin-bottom: 15px;
}

.table-search input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.table-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

#beverage-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

#beverage-table th, #beverage-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#beverage-table th {
  background-color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

#beverage-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-category td {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: rgba(255, 102, 0, 0.03);
  border-bottom: 1px solid rgba(255, 102, 0, 0.1);
  padding: 8px 14px !important;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  background-color: rgba(255, 102, 0, 0.06);
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.price-tag span {
  color: var(--primary);
}

/* Camping rules list styling */
.rules-list {
  list-style-type: none;
  margin-bottom: 18px;
}

.rules-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.rules-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary);
  font-size: 0.75rem;
}

.rules-category {
  margin-top: 15px;
  margin-bottom: 20px;
}

.rules-category h5 {
  font-family: var(--font-title);
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.simple-list {
  list-style-type: none;
  margin-bottom: 10px;
}

.simple-list li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.simple-list li strong {
  color: var(--text-main);
}

.external-link svg {
  margin-left: 2px;
}

/* Notfall / Emergency cards */
.emergency-item {
  border-color: rgba(239, 68, 68, 0.2);
}

.emergency-item.active {
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  background-color: #171112;
}

.emergency-item .trigger-icon {
  color: var(--danger);
}

.emergency-item.active .trigger-chevron {
  border-color: var(--danger);
}

.emergency-card {
  padding: 0 20px 20px;
}

.emergency-card h4 {
  font-family: var(--font-title);
  color: var(--danger);
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.emergency-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.call-btn {
  flex-direction: column;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.call-number {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.call-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.8;
}

.em-112 {
  background-color: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}

.em-112:hover {
  background-color: #ff3333;
  box-shadow: 0 0 15px var(--danger-glow);
}

.em-116117 {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.em-116117:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.hospital-info {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.hospital-info h5 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hospital-name {
  font-weight: 700;
  color: var(--text-main);
}

.hospital-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hospital-actions {
  display: flex;
  gap: 10px;
}

.min-btn {
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* Taxi styles */
.taxi-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.taxi-btn {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.taxi-btn:hover {
  border-color: var(--border-hover);
  background-color: rgba(255, 102, 0, 0.03);
}

.taxi-name {
  font-weight: 700;
}

.taxi-phone {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
}

/* FAQ item layout */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 15px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 12px;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer Section */
.app-footer {
  margin-top: auto;
  padding: 30px 15px 15px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-details p {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pwa-text {
  color: var(--primary) !important;
  opacity: 0.7;
}

.hidden-btn {
  display: none;
}

#pwa-install-btn {
  margin-top: 15px;
  background-color: var(--primary);
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

#pwa-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.pwa-install-instructions {
  display: none;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-main);
}

.pwa-install-note {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.pwa-install-instructions ol {
  margin: 0;
  padding-left: 20px;
}

.pwa-install-instructions li {
  margin-bottom: 8px;
}

.pwa-install-instructions li:last-child {
  margin-bottom: 0;
}

.pwa-install-instructions strong {
  color: var(--primary);
}

/* Image Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 7, 8, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.lightbox-content {
  max-width: 95%;
  max-height: 90%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 4px;
}

/* --- ADD-ONS, GLAMPING & FLEX OPTION CUSTOM STYLES --- */
.addons-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.addon-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.addon-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 102, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.addon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.addon-header::-webkit-details-marker {
  display: none;
}

.addon-header::after {
  content: "›";
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: 1rem;
  transform: rotate(90deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

.addon-card[open] .addon-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.addon-card[open] .addon-header::after {
  color: var(--primary);
  transform: rotate(-90deg);
}

.addon-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.addon-price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  background-color: rgba(255, 102, 0, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 102, 0, 0.2);
  margin-left: auto;
  white-space: nowrap;
}

.addon-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 10px 12px 0;
}

.addon-details-list {
  margin: 6px 0 12px;
  padding: 0 12px 0 26px;
  list-style-type: circle;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.addon-details-list li {
  margin-bottom: 3px;
}

.addon-subtext {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin: 6px 12px 12px;
}

/* --- MOBILE-NATIVE REDESIGN STYLES --- */

/* Tab navigation content switching */
.app-view {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  padding: 15px 15px calc(var(--bottom-nav-height) + 14px);
}

.app-view.active {
  display: block;
  opacity: 1;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 1200;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
  min-height: var(--bottom-nav-height);
  padding: 10px 8px calc(8px + var(--bottom-nav-safe-area));
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-grow: 1;
  min-height: 54px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-tab:active {
  transform: scale(0.92);
}

.nav-tab.active {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.nav-tab.active svg {
  color: var(--primary);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(255, 102, 0, 0.5));
}

/* Stage horizontal scroll bar wrapper */
.stage-chips-wrapper {
  position: relative;
  margin: 5px -15px 15px -15px;
  overflow: hidden;
}

.stage-chips-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 15px;
  margin: 0;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, #000 15px, #000 calc(100% - 25px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15px, #000 calc(100% - 25px), transparent);
}

.stage-chips-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.stage-chip {
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-title);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-chip.active {
  color: #000;
  background-color: var(--chip-accent, var(--primary));
  border-color: var(--chip-accent, var(--primary));
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-shadow: none;
}

/* Segment control for Tag selection */
.day-segment-control {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.segment-btn {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-title);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.segment-btn.active {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Info Dashboard grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.info-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 15px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.info-card-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.1);
}

.info-card-btn-priority {
  align-items: flex-start;
  min-height: 108px;
  text-align: left;
}

.info-card-btn-priority .info-card-icon {
  font-size: 2rem;
}

.info-card-btn-priority .info-card-title {
  line-height: 1.15;
}

.info-card-btn-emergency {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(255, 255, 255, 0.02));
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.85);
}

.info-card-btn-emergency:hover {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: inset 4px 0 0 var(--danger), 0 5px 15px rgba(239, 68, 68, 0.18);
}

.info-card-btn-taxi {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 102, 0, 0.35);
  box-shadow: inset 4px 0 0 rgba(255, 102, 0, 0.75);
}

.info-card-btn-taxi:hover {
  border-color: rgba(255, 102, 0, 0.65);
  box-shadow: inset 4px 0 0 var(--primary), 0 5px 15px rgba(255, 102, 0, 0.16);
}

.info-card-icon {
  font-size: 1.8rem;
}

.info-card-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Slide-up Bottom Sheet drawer */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 600px;
  height: 80vh;
  background-color: var(--bg-card);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  z-index: 1500;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.active {
  transform: translate(-50%, 0);
}

.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-drag-handle {
  width: 40px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: grab;
}

.bottom-sheet-close {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.bottom-sheet-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.sheet-section {
  display: none;
}

.sheet-section.active {
  display: block;
}

.sheet-section .info-card {
  padding: 0; /* resets inside bottom sheets */
}

/* NOW / NEXT Tracker Widget */
.now-next-widget {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(7, 7, 8, 0.5) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.widget-live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--danger);
  animation: pulse 1.5s infinite;
}

.widget-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.widget-stage-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px 10px;
  position: relative;
  overflow: hidden;
}

.widget-stage-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent);
}

.widget-stage-name {
  font-size: 0.65rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.widget-stage-act {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-stage-next {
  font-size: 0.65rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Simulation Controls */
.time-simulation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.75rem;
}

.sim-btn {
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.7rem;
}

.sim-btn:hover {
  background: var(--primary);
  color: #000;
}

/* --- CUSTOM MODAL PROMPT OVERLAY --- */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.custom-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.custom-modal-overlay.active .custom-modal-card {
  transform: translateY(0);
}

.custom-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.custom-modal-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.custom-modal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 20px;
}

.custom-modal-buttons {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.modal-btn.confirm {
  background-color: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.modal-btn.confirm:hover {
  background-color: #ff8533;
}

.modal-btn.cancel {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.modal-btn.cancel:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* SOS Card / Notfall & Awareness Card styling */
.sos-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(18, 18, 21, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
  position: relative;
  overflow: hidden;
}

.sos-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--danger);
}

.sos-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sos-card-header h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.5px;
  margin: 0;
}

.sos-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 0 var(--danger-glow);
  animation: pulse-sos 2s infinite;
}

@keyframes pulse-sos {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@media (max-width: 430px) {
  .map-legend {
    width: min(250px, calc(100% - 64px));
  }

  .map-legend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 5px;
    padding: 6px 7px 7px;
  }

  .map-legend-item {
    gap: 3px;
    font-size: clamp(0.38rem, 1.6vw, 0.52rem);
  }

  .map-legend-item img {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}

.sos-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.sos-card-actions {
  display: flex;
  gap: 10px;
}

.sos-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  font-family: var(--font-title);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.primary-sos {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: var(--text-main);
}

.primary-sos:hover {
  background-color: var(--danger);
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.phone-sos {
  background-color: var(--danger);
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.phone-sos:hover {
  background-color: #f87171;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

@media (max-width: 480px) {
  .sos-card-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Download buttons styling for Lineup flyers */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 15px;
  margin-top: 10px;
  background-color: rgba(255, 102, 0, 0.08);
  border: 1px dashed var(--primary);
  color: var(--primary);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  font-family: var(--font-title);
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.download-btn:hover {
  background-color: var(--primary);
  color: #000;
  border-style: solid;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Community Wall Styling */
.community-wall-card {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.02) 0%, rgba(18, 18, 21, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wall-header h4 {
  font-family: var(--font-title);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 1;
  white-space: nowrap;
}

.wall-header h4 .widget-live-dot {
  flex-shrink: 0;
}

.wall-write-btn {
  background-color: rgba(255, 102, 0, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-family: var(--font-title);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.wall-write-btn:hover {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 0 10px var(--primary-glow);
}

.wall-header-section h3 {
  flex-shrink: 0;
  white-space: nowrap;
}

.wall-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.wall-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wall-online-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-title);
  white-space: nowrap;
}

.wall-online-count::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
}

.wall-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.wall-posts-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}

.wall-empty-placeholder {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

/* Post Cards inside Wall */
.community-post-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
  transition: border-color 0.2s ease;
}

.community-post-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.post-author {
  font-weight: bold;
  color: var(--text-main);
}

.post-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
  font-family: var(--font-title);
  text-transform: uppercase;
}

.tag-gruss {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-vorschlag {
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--color-hangar7);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.tag-frage {
  background-color: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.tag-biete {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-suche {
  background-color: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.tag-tausch {
  background-color: rgba(255, 102, 0, 0.1);
  color: #ff6600;
  border: 1px solid rgba(255, 102, 0, 0.25);
}

.post-time {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.post-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-word;
}

/* Admin Panel Tabs */
.admin-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  background-color: var(--primary) !important;
  color: #000 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px var(--primary-glow);
}

.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 10px;
}

/* Mod/Clean Item Styling */
.admin-item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 4px;
}

.admin-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-action-btn {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  font-family: var(--font-title);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-cleanup-row {
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-cleanup-text {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.admin-cleanup-type {
  color: var(--text-muted);
  font-weight: 700;
}

.admin-cleanup-delete {
  flex: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  background: var(--danger);
  color: #fff;
  width: auto;
}

.btn-approve {
  background-color: var(--success);
  color: #fff;
}

.btn-approve:hover {
  background-color: #34d399;
  box-shadow: 0 0 8px var(--success-glow);
}

.btn-delete {
  background-color: var(--danger);
  color: #fff;
}

.btn-delete:hover {
  background-color: #f87171;
  box-shadow: 0 0 8px var(--danger-glow);
}
/* Community Wall Scrolling Marquee Ticker styling */
.community-ticker-container {
  display: flex;
  align-items: center;
  background-color: rgba(255, 102, 0, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 15px;
  overflow: hidden;
  height: 36px;
  gap: 10px;
}

.ticker-label {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  background: rgba(7, 7, 8, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 102, 0, 0.2);
  z-index: 2;
  box-shadow: 0 0 5px rgba(255, 102, 0, 0.1);
  display: flex;
  align-items: center;
}

.ticker-viewport {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-anim 35s linear infinite; /* relaxed scrolling ticker */
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-post-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-post-author {
  font-weight: bold;
  color: var(--text-main);
}

.ticker-post-text {
  color: var(--text-muted);
}

.ticker-bullet {
  color: var(--primary);
  margin: 0 15px;
  font-size: 0.7rem;
}

@keyframes ticker-anim {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Pull-to-Refresh Gesture Indicator Styling */
.ptr-container {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(7, 7, 8, 0.9);
  border: 1px solid rgba(255, 102, 0, 0.25);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 102, 0, 0.15);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.1s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: auto;
  max-width: 260px;
}

.ptr-icon-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s linear;
}

.ptr-icon {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.4));
}

.ptr-text {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Spinner animation when reloading */
.ptr-container.refreshing .ptr-icon-wrap {
  animation: ptr-spin 0.8s linear infinite;
}

@keyframes ptr-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- MAP HOTSPOT PINS --- */
.map-hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: bold;
  --map-hotspot-press-scale: 1;
  transform: translate(-50%, -50%) scale(var(--map-hotspot-zoom-scale)) scale(var(--map-hotspot-press-scale));
  box-shadow: 0 0 10px rgba(0,0,0,0.6), 0 0 0 4px rgba(255, 102, 0, 0.16);
  animation: none;
  outline: none;
  padding: 0;
}

.map-hotspot.has-image-icon {
  width: clamp(28px, 3.6vw, 40px);
  height: clamp(28px, 3.6vw, 40px);
  background: transparent;
  border: 0;
  color: inherit;
  box-shadow: none;
  animation: none;
  isolation: isolate;
}

.map-hotspot.has-image-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.24) 0%, rgba(255, 102, 0, 0.12) 48%, rgba(255, 102, 0, 0) 74%);
  opacity: 0.72;
  transform: scale(1.28);
  z-index: -1;
}

.map-hotspot.has-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
  transition: filter 0.18s ease, transform 0.18s ease;
}

.map-hotspot.has-image-icon:hover img {
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.85)) brightness(1.12);
  transform: scale(1.04);
}

.map-hotspot.has-image-icon:focus-visible::before,
.map-hotspot.has-image-icon:hover::before {
  opacity: 0.88;
  transform: scale(1.36);
}

.map-hotspot.has-image-icon.is-attention::before {
  animation: map-hotspot-glow-nudge 900ms ease-out 1;
  will-change: opacity, transform;
}

.map-hotspot.has-image-icon.is-attention img {
  animation: map-hotspot-icon-nudge 900ms ease-out 1;
  will-change: transform;
}

.map-hotspot.poi-size-stage-xl {
  width: clamp(52px, 6.8vw, 80px);
  height: clamp(52px, 6.8vw, 80px);
}

.map-hotspot.poi-size-stage-lg {
  width: clamp(48px, 6.2vw, 72px);
  height: clamp(48px, 6.2vw, 72px);
}

.map-hotspot.poi-size-stage-md,
.map-hotspot.poi-size-terminal {
  width: clamp(44px, 5.8vw, 68px);
  height: clamp(44px, 5.8vw, 68px);
}

.map-hotspot.poi-size-bus {
  width: clamp(42px, 5.4vw, 62px);
  height: clamp(42px, 5.4vw, 62px);
}

.map-hotspot.poi-size-service-xl {
  width: clamp(36px, 4.8vw, 54px);
  height: clamp(36px, 4.8vw, 54px);
}

.map-hotspot-label {
  position: absolute;
  left: 50%;
  top: calc(100% - 8px);
  min-width: 90px;
  transform: translateX(-50%);
  color: var(--primary);
  font-family: var(--font-title);
  font-size: clamp(0.46rem, 1vw, 0.66rem);
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.map-hotspot.poi-size-terminal .map-hotspot-label {
  min-width: 120px;
}

.map-hotspot.poi-stage .map-hotspot-label {
  font-size: clamp(0.38rem, 0.82vw, 0.54rem);
  line-height: 0.9;
}

.map-hotspot.poi-stage.poi-size-terminal .map-hotspot-label {
  min-width: 108px;
}

.map-hotspot:active {
  --map-hotspot-press-scale: 0.92;
}

.map-hotspot.poi-stage {
  background: var(--primary);
  border-color: #fff;
}
.map-hotspot.poi-emergency {
  background: var(--danger);
  border-color: #fff;
  animation: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.6), 0 0 0 4px rgba(239, 68, 68, 0.18);
}
.map-hotspot.poi-info {
  background: #00e5ff;
  border-color: #fff;
  animation: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.6), 0 0 0 4px rgba(0, 229, 255, 0.16);
}
.map-hotspot.poi-food {
  background: #10b981;
  border-color: #fff;
  animation: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.6), 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.map-hotspot.has-image-icon.poi-stage,
.map-hotspot.has-image-icon.poi-emergency,
.map-hotspot.has-image-icon.poi-info,
.map-hotspot.has-image-icon.poi-food {
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: none;
}

.admin-poi-icon-preview {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.map-edit-active .map-hotspot.has-image-icon::before {
  animation: none;
  opacity: 0.55;
  transform: scale(1.12);
}

/* Visual marker wobbling in Edit Mode */
.map-edit-active .map-hotspot,
.map-edit-active .map-hotspot.poi-emergency,
.map-edit-active .map-hotspot.poi-info,
.map-edit-active .map-hotspot.poi-food {
  cursor: move;
  animation: hotspot-wobble 0.6s ease-in-out infinite alternate !important;
}

@keyframes hotspot-wobble {
  0% {
    transform: translate(-50%, -50%) rotate(-3deg) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) rotate(3deg) scale(1.05);
  }
}

@keyframes map-hotspot-glow-nudge {
  0% {
    opacity: 0.58;
    transform: scale(1.2);
  }
  34% {
    opacity: 0.92;
    transform: scale(1.42);
  }
  100% {
    transform: scale(1.28);
    opacity: 0.72;
  }
}

@keyframes map-hotspot-icon-nudge {
  0%, 100% {
    transform: scale(1);
  }
  34% {
    transform: scale(1.035);
  }
}

.map-hotspot.poi-flash-highlight {
  animation: map-poi-flash-highlight 0.5s ease-in-out infinite alternate !important;
  z-index: 100 !important;
}

@keyframes map-poi-flash-highlight {
  0% {
    filter: drop-shadow(0 0 2px var(--primary)) brightness(1);
    transform: translate(-50%, -50%) scale(calc(var(--map-hotspot-zoom-scale) * 1));
  }
  100% {
    filter: drop-shadow(0 0 15px var(--primary)) brightness(1.5);
    transform: translate(-50%, -50%) scale(calc(var(--map-hotspot-zoom-scale) * 1.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-hotspot.has-image-icon.is-attention::before,
  .map-hotspot.has-image-icon.is-attention img {
    animation: none;
  }
}

/* --- TIMETABLE CONFLICT WARNING --- */
.timetable-conflict-warning {
  font-family: var(--font-title);
  font-size: 0.58rem;
  color: var(--danger);
  text-transform: uppercase;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
  font-weight: 700;
  filter: drop-shadow(0 0 2px rgba(255, 0, 85, 0.35));
}

/* --- SEGMENTED ADMIN TABS --- */
.admin-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 102, 0, 0.25);
  margin-bottom: 20px;
  gap: 6px;
  overflow-x: hidden;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  flex: 1;
  padding: 10px 4px;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 8px;
  background: transparent;
  border: none !important;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.25s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: none !important;
}

.admin-tab-btn.active {
  background-color: var(--primary) !important;
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.45) !important;
}

.admin-tab-content {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.admin-tab-content.active {
  opacity: 1;
}

.admin-accordion {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 12px 12px;
  margin-top: 12px;
  overflow: hidden;
}

.admin-system-accordion {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 0 12px 12px;
}

.admin-accordion-danger {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.05);
}

.admin-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin: 0 -12px 12px;
  padding: 0 12px;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

.admin-accordion-summary::-webkit-details-marker {
  display: none;
}

.admin-accordion-summary::after {
  content: "›";
  color: var(--text-dark);
  font-size: 1rem;
  transform: rotate(90deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

.admin-accordion[open] .admin-accordion-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-accordion[open] .admin-accordion-summary::after {
  color: var(--primary);
  transform: rotate(-90deg);
}

.admin-accordion-summary-success {
  color: var(--success);
}

/* Live-Wall Chat Feed and Inline Form */
.wall-chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  padding-bottom: 30px;
}

.wall-chat-bubble {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
  transition: all 0.2s ease;
  animation: post-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wall-chat-bubble:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wall-chat-bubble.pinned {
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.045) 0%, rgba(255, 255, 255, 0.035) 100%);
}

.bubble-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.bubble-author-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bubble-author {
  font-weight: bold;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 0.75rem;
}

.bubble-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: bold;
  font-family: var(--font-title);
  text-transform: uppercase;
}

.bubble-time {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.bubble-text {
  flex: 1;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}

.bubble-body-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.wall-action-row {
  display: flex;
  align-items: center;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.wall-action-btn,
.wall-icon-btn,
.wall-reply-toggle,
.wall-reply-form button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-body);
}

.wall-action-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: bold;
}

.wall-action-btn.active {
  border-color: var(--primary);
  background: rgba(255, 102, 0, 0.15);
  color: #fff;
}

.wall-action-btn .heart-icon {
  display: inline-block;
  font-size: 0.75rem;
  filter: grayscale(1) opacity(0.7);
  transition: transform 0.2s ease;
}

.wall-action-btn.active .heart-icon {
  filter: none;
  transform: scale(1.2);
}

.wall-action-btn .like-count {
  color: var(--text-main);
}

.wall-action-btn.active .like-count {
  color: #fff;
}

.wall-icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.wall-icon-btn span {
  filter: grayscale(1) opacity(0.5);
}

.wall-icon-btn.active {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.wall-icon-btn.active span {
  filter: none;
}

.wall-comments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wall-comment {
  display: flex;
  gap: 6px;
  align-items: baseline;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  padding: 6px 8px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.wall-comment-author {
  flex: none;
  max-width: 34%;
  overflow: hidden;
  color: var(--primary);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-comment-text {
  min-width: 0;
  color: var(--text-main);
  word-break: break-word;
}

.wall-comments-more,
.wall-reply-bar {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.wall-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.wall-reply-toggle {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 800;
}

.wall-reply-toggle:hover,
.wall-reply-form button:hover,
.wall-action-btn:hover,
.wall-icon-btn:hover {
  border-color: rgba(255, 102, 0, 0.45);
  color: var(--primary);
}

.wall-reply-form {
  display: none;
  grid-template-columns: minmax(82px, 0.8fr) minmax(130px, 1.6fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.wall-reply-form.active {
  display: grid;
}

.wall-reply-form input {
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 7px 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.wall-reply-form button {
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.wall-reply-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.wall-route-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: #4285f4;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

.wall-route-btn:hover {
  background: rgba(66, 133, 244, 0.16);
  border-color: rgba(66, 133, 244, 0.45);
}

.wall-route-icon {
  font-size: 0.75rem;
}

.wall-route-label {
  font-weight: bold;
}

.admin-route-link {
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .bubble-body-row {
    align-items: stretch;
    flex-direction: column;
  }

  .wall-action-row {
    justify-content: flex-start;
  }

  .wall-reply-form {
    grid-template-columns: 1fr;
  }

  .wall-comment {
    flex-direction: column;
    gap: 2px;
  }

  .wall-comment-author {
    max-width: 100%;
  }
}

/* Animations */
@keyframes post-appear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Live Timetable Card Progress Indicator */
.timetable-live-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.timetable-live-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-stage, var(--primary)) 0%, #fff 100%);
  box-shadow: 0 0 8px var(--accent-stage, var(--primary));
  transition: width 0.5s ease-out;
  border-radius: 3px;
}

/* Live Wall Likes Animation */
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1.2); }
}

/* Buy Me A Coffee Button Styles */
.bmc-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(255, 221, 0, 0.4);
  background-color: #ffea38 !important;
}

.bmc-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 221, 0, 0.2);
}

/* --- EMERGENCY BANNER STYLES --- */
.emergency-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.25) 0%, rgba(150, 0, 0, 0.6) 100%);
  border: 2px solid #ff3b30;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 15px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: emergency-pulse 2s infinite alternate ease-in-out;
}

.emergency-banner.weather-alert {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.25) 0%, rgba(180, 70, 0, 0.6) 100%);
  border-color: #ff9500;
  box-shadow: 0 0 15px rgba(255, 149, 0, 0.4), inset 0 0 10px rgba(255, 102, 0, 0.2);
  animation: weather-pulse 2s infinite alternate ease-in-out;
}

.emergency-banner-icon {
  font-size: 1.8rem;
  animation: bell-swing 1s infinite ease-in-out alternate;
  flex-shrink: 0;
}

.emergency-banner-content {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.emergency-banner-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.emergency-banner-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.emergency-banner-chevron {
  color: #fff;
  opacity: 0.7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.emergency-banner:hover .emergency-banner-chevron {
  transform: translateX(4px);
  opacity: 1;
}

/* Active buttons in the emergency selection */
.admin-tab-content .secondary-btn.active-state {
  background-color: var(--primary) !important;
  color: #000 !important;
  border-color: var(--primary) !important;
}

@keyframes emergency-pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.3), inset 0 0 5px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 59, 48, 0.7);
  }
  100% {
    box-shadow: 0 0 22px rgba(255, 59, 48, 0.7), inset 0 0 15px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 59, 48, 1);
    background-color: rgba(180, 0, 0, 0.7);
  }
}

@keyframes weather-pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.3), inset 0 0 5px rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 22px rgba(255, 149, 0, 0.7), inset 0 0 15px rgba(255, 102, 0, 0.3);
    border-color: rgba(255, 149, 0, 1);
    background-color: rgba(200, 80, 0, 0.7);
  }
}

@keyframes bell-swing {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

/* --- Stromsparmodus Overrides (Dezent) --- */
body.low-power-active {
  background-color: #000000 !important;
  background-image: none !important;
}
body.low-power-active .app-container {
  background-color: #000000 !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.low-power-active .app-view {
  background-color: #000000 !important;
}
body.low-power-active .bottom-sheet,
body.low-power-active .bottom-sheet-body {
  background-color: #000000 !important;
  background-image: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.low-power-active .info-card,
body.low-power-active .timetable-card,
body.low-power-active .addon-card,
body.low-power-active .wall-chat-bubble,
body.low-power-active .admin-item-card,
body.low-power-active .now-next-widget {
  background-color: #000000 !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-shadow: none !important;
}
/* Stop Animations and Glows */
body.low-power-active .banner-glow,
body.low-power-active .widget-live-dot,
body.low-power-active .sos-badge-pulse,
body.low-power-active .map-hotspot {
  animation: none !important;
  box-shadow: none !important;
}
body.low-power-active .map-hotspot::before {
  animation: none !important;
  display: none !important;
}
body.low-power-active .widget-live-dot {
  background-color: var(--danger) !important;
  opacity: 1 !important;
}
body.low-power-active .sos-badge-pulse {
  background-color: var(--danger) !important;
  opacity: 1 !important;
}
body.low-power-active * {
  transition: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Low power button active state style */
#low-power-btn.active {
  color: #10b981 !important;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4));
}

/* Prevent iOS Safari auto-zooming on focus by forcing at least 16px font-size for input elements on mobile devices */
@media (max-width: 768px) {
  input[type="text"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}
