:root {
  --primary-color: #248BCC;
  --secondary-color: white;
  --quiet-color: #2ecc71;
  --moderate-color: #f39c12;
  --busy-color: #e74c3c;
  --light-color: #e3e6e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, var(--primary-color), #1a5f8c);
  color: white;
  min-height: 100vh;
}

.lucerne-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.hero h1,
.hero h2 {
  display: inline;
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0;
}

.hero h1 {
  color: var(--secondary-color);
  font-weight: 400;
  font-size: 3.5rem;
}

.hero h2 {
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 5rem;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--light-color);
  max-width: 900px;
  margin: 2rem auto 0;
  line-height: 1.6;
}


.slider-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

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

.slider-header h2 {
  color: var(--secondary-color);
  font-size: 1.6rem;
  margin: 0;
}

.selected-day {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.slider-wrapper {
  position: relative;
  margin: 2rem auto;
  width: 70%;
  max-width: 500px;
}

.slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-color);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.day-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.day-marker {
  text-align: center;
  font-size: 1.1rem;
  color: var(--light-color);
  flex: 1;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.day-marker.active {
  color: var(--secondary-color) !important;
  font-weight: 800 !important;
  transform: scale(1.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tourist-overview {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem auto;
  text-align: center;
  max-width: 600px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tourist-overview h3 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.total-visitors {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.overview-status {
  font-size: 1.2rem;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
}

.comparison-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.comparison-section h2 {
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.comparison-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  flex-wrap: wrap;
  text-align: center;
}

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

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

.legend-calm {
  height: 5px;
  background: #2ecc71;
}

.legend-moderate {
  height: 10px;
  background: #f39c12;
}

.legend-busy {
  height: 15px;
  background: #e74c3c;
}

.comparison-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 380px;
  gap: 1.8rem;
  padding: 0 0 1.5rem 0;
  width: 100%;
}

.location-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  flex: 1;
  min-width: 110px;
  cursor: pointer;
}

.location-bar {
  width: 55px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: center;
  align-items: first baseline;
  padding: 12px 8px 20px;
  color: white !important;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  flex-grow: 0;
  min-height: 0;
  transition: all 0.4s cubic-bezier(0.4, 2, 0.4, 1);
  position: relative;
}

.location-bar:hover {
  transform: scale(1.15) translateY(-12px) !important;
  filter: brightness(1.25);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.location-bar span {
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 2;
  position: relative;
}

.location-label {
  margin-top: 14px;
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.location-bar-quiet {
  background: var(--quiet-color) !important;
}

.location-bar-moderate {
  background: var(--moderate-color) !important;
}

.location-bar-busy {
  background: var(--busy-color) !important;
}

.bar-height-small {
  height: 50px;
}

.bar-height-medium {
  height: 100px;
}

.bar-height-large {
  height: 300px;
}

.recommendation-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-intro,
.data-notes {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.story-intro h3,
.data-notes h3 {
  margin-bottom: 0.5rem;
}

.meta {
  margin-top: 3rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--light-color);
}

.location-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.location-modal {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  color: #333333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.location-modal-title {
  color: #248BCC;
  margin-top: 0;
  margin-bottom: 1rem;
}

.status-badge {
  font-weight: bold;
  font-size: 1.1rem;
}

.status-calm {
  color: #2ecc71;
}

.status-moderate {
  color: #f39c12;
}

.status-busy {
  color: #e74c3c;
}

.location-modal-close {
  background: #248BCC;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  margin-top: 1.5rem;
}

@media (max-width: 820px) {

  .lucerne-app {
    padding: 1.5rem 1rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.4rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .slider-container {
    padding: 2rem 1.5rem;
  }

  .slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .selected-day {
    font-size: 1.3rem;
  }

  .tourist-overview {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .total-visitors {
    font-size: 2.6rem;
  }

  .comparison-section {
    padding: 2rem 1.5rem;
  }

  .comparison-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    height: auto;
    padding: 0;
  }

  .location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
  }

  .location-label {
    flex: 0 0 45%;
    margin-top: 0;
    text-align: left;
    font-size: 0.9rem;
  }

  .location-bar-container {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 18px;
  }

  .location-bar {
    flex: 1;
    height: 100%;
    border-radius: 999px;
    padding: 0;
    transform: none !important;
    box-shadow: none;
  }

  .location-bar:hover {
    transform: none !important;
    box-shadow: none;
  }

  .location-value {
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
  }

  .stats-display {
    gap: 1rem;
    margin: 2rem 0;
  }

  .stat-card {
    padding: 1.25rem 1.5rem;
    min-width: 130px;
  }
}

@media (max-width: 480px) {

  .lucerne-app {
    padding: 1.25rem 0.75rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .slider-header h2 {
    font-size: 1.3rem;
  }

  .slider-wrapper {
    width: 95%;
    max-width: none;
  }

  .day-markers {
    width: 95%;
    max-width: none;
  }

  .selected-day {
    font-size: 1.2rem;
  }

  .comparison-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .location-row {
    display: block;
    width: 100%;
  }

  .location-label {
    width: 100%;
    margin-bottom: 0.35rem;
    text-align: left;
  }

  .location-bar-container {
    flex: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .location-bar {
    width: 100%;
    height: 18px;
    border-radius: 12px;
  }

  .location-value {
    flex: 0 0 auto;
    margin-left: 0.4rem;
    font-size: 1.1rem;
  }

  .stats-display {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .stat-card {
    width: 100%;
    min-width: 10%;
  }
}
