/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables - Krems Style Colors */
:root {
  /* Primary Colors */
  --primary-blue: #0066cc;
  --primary-blue-dark: #004499;
  --primary-blue-light: #3399ff;
  
  /* Secondary Colors */
  --gold: #d4af37;
  --gold-light: #f4d865;
  --gold-dark: #b8941f;
  
  /* Zone Colors */
  --blue-zone: #0066cc;
  --green-zone: #27ae60;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #000000;
  
  /* Status Colors */
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --info: #3498db;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  min-height: 80px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 50px;
  width: auto;
}

.site-title h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
}

.site-title .subtitle {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 400;
}

.navigation {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-blue);
  background-color: var(--gray-50);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }
  
  .navigation {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 50%, var(--gold-dark) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 60px 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* Hero Search */
.hero-search {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .search-wrapper {
    flex-direction: column;
    gap: 15px;
  }
}

.autocomplete {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius-lg);
  background: white;
  color: var(--gray-800);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.search-input::placeholder {
  color: var(--gray-500);
}

/* Suggestions */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  margin-top: 5px;
  list-style: none;
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  color: var(--gray-700);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--gray-50);
  color: var(--primary-blue);
}

/* Search Button */
.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.search-btn:active {
  transform: translateY(0);
}

.search-btn svg {
  transition: transform 0.3s ease;
}

.search-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .search-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Main Content */
.main {
  padding: 60px 0;
}

/* Quick Info Cards */
.quick-info {
  margin-bottom: 80px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-800);
}

.info-card p {
  color: var(--gray-600);
  margin-bottom: 15px;
  line-height: 1.5;
}

.info-card .price {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 5px 15px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}

.blue-zone-card .price {
  background: var(--blue-zone);
}

.green-zone-card .price {
  background: var(--green-zone);
}

.facilities-card .price {
  background: var(--gray-600);
}

/* Results Section */
.results-section {
  margin-bottom: 80px;
  animation: fadeInUp 0.6s ease;
}

.results-section.hidden {
  display: none;
}

.results-header {
  text-align: center;
  margin-bottom: 50px;
}

.results-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.results-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Result Cards */
.result-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 30px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.card-icon-header {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.card-header p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* Zone Result Content */
.zone-result-content,
.pricing-result-content {
  padding: 30px;
}

.zone-display {
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 20px;
}

.zone-display.blue-zone {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-left: 4px solid var(--blue-zone);
}

.zone-display.green-zone {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  border-left: 4px solid var(--green-zone);
}

.zone-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.zone-icon {
  font-size: 2.5rem;
}

.zone-details h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 5px 0;
}

.zone-details .zone-subtitle {
  color: var(--gray-600);
  margin: 0 0 10px 0;
}

.confidence-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.confidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.confidence-dot.green {
  background: var(--success);
}

.confidence-dot.yellow {
  background: var(--warning);
}

.confidence-dot.red {
  background: var(--error);
}

.confidence-dot.gray {
  background: var(--gray-400);
}

.zone-meta {
  display: grid;
  gap: 8px;
}

.meta-item {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.meta-item strong {
  color: var(--gray-800);
}

/* Pricing Content */
.pricing-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.price-highlight {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.operating-hours {
  font-size: 1rem;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: 10px 15px;
  border-radius: var(--radius-md);
  display: inline-block;
}

.bonus-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff9c4, #fff59d);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-light);
}

.bonus-icon {
  font-size: 1.2rem;
}

.restriction-info,
.daily-max-info {
  background: var(--gray-50);
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-700);
}

/* Calculator */
.calculator-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.duration-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.number-input {
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.number-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.calculate-button {
  padding: 15px 25px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.calculate-button:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cost-result {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.cost-result.show {
  opacity: 1;
  transform: translateY(0);
}

.cost-display {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, var(--success), #229954);
  color: white;
  border-radius: var(--radius-lg);
}

.cost-amount {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cost-duration {
  font-size: 1rem;
  opacity: 0.9;
}

/* Map Container */
.map-container {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.map {
  height: 100%;
  width: 100%;
}

.map-legend {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  z-index: 1000;
}

.map-legend h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-700);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.blue-zone {
  background: var(--blue-zone);
}

.legend-color.blue-zone-stein {
  background: #004499;
}

.legend-color.green-zone {
  background: var(--green-zone);
}

.legend-icon {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  border-radius: 2px;
  color: white;
}

.legend-icon.parking-icon {
  background: var(--gray-700);
}

/* Additional Info Section */
.additional-info {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

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

.info-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.info-card-large {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.info-card-large:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 180px;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 15px;
}

.card-content p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-light);
}

.footer-section p {
  color: var(--gray-300);
  line-height: 1.6;
}

.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-spinner p {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 10000;
  transform: translateX(100%);
  transition: var(--transition);
  max-width: 400px;
}

.notification:not(.hidden) {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.notification-text {
  color: var(--gray-800);
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  transition: var(--transition);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  color: var(--gray-800);
}

.notification.success {
  border-left: 4px solid var(--success);
  background: #f0f9f0;
}

.notification.error {
  border-left: 4px solid var(--error);
  background: #fdf2f2;
}

.notification.warning {
  border-left: 4px solid var(--warning);
  background: #fef9e7;
}

.notification.info {
  border-left: 4px solid var(--info);
  background: #f0f8ff;
}

/* Custom Map Markers */
.custom-marker-icon {
  background: transparent;
  border: none;
}

.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
}

.custom-marker svg {
  transform: rotate(45deg);
}

.custom-facility-icon {
  background: transparent;
  border: none;
}

.parking-marker,
.bus-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: bold;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.parking-marker {
  background: var(--gray-700);
}

.bus-marker {
  background: var(--error);
}

/* Facility Popup */
.facility-popup {
  min-width: 200px;
}

.facility-popup h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.facility-details p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.facility-details p:last-child {
  margin-bottom: 0;
}

.special-info {
  color: var(--warning) !important;
  font-weight: 500 !important;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

/* Utility Classes */
.hidden {
  display: none !important;
}

.no-data {
  text-align: center;
  color: var(--gray-500);
  font-style: italic;
  padding: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .main {
    padding: 40px 0;
  }
  
  .quick-info,
  .results-section,
  .additional-info {
    margin-bottom: 50px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .results-header h2 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .result-card,
  .info-card,
  .info-card-large {
    margin-bottom: 20px;
  }
  
  .card-header {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .zone-result-content,
  .pricing-result-content,
  .calculator-content {
    padding: 20px;
  }
  
  .zone-main {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .duration-inputs {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .map-legend {
    position: static;
    margin-top: 15px;
    background: var(--white);
    backdrop-filter: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-input {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .search-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .results-header h2,
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .zone-display {
    padding: 20px;
  }
  
  .zone-details h4 {
    font-size: 1.3rem;
  }
  
  .cost-amount {
    font-size: 1.8rem;
  }
  
  .notification {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: none;
  }
}
