/* Modern Purple Theme Restaurant Map App */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f3f1ff 0%, #ebe5ff 100%);
}

/* Map container */
#map {
  width: 100%;
  height: 100%;
}

/* Glass morphism effects */
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating elements */
.floating {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(124, 37, 247, 0.1);
}

/* Search input enhancements */
#main-search {
  font-size: 1.125rem;
  line-height: 1.5;
}

#main-search:focus {
  box-shadow: 0 0 0 3px rgba(124, 37, 247, 0.1);
  border-color: transparent;
}

/* Hamburger menu styling */
#hamburger-menu {
  min-width: 200px;
  animation: slideDown 0.2s ease-out;
}

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

/* Button hover effects */
button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Custom primary color variations for purple theme */
.bg-primary-50 { background-color: #f3f1ff; }
.bg-primary-100 { background-color: #ebe5ff; }
.bg-primary-500 { background-color: #7c25f7; }
.bg-primary-600 { background-color: #6b1ee3; }

.text-primary-500 { color: #7c25f7; }
.text-primary-600 { color: #6b1ee3; }

.border-primary-500 { border-color: #7c25f7; }

.ring-primary-500 { --tw-ring-color: #7c25f7; }

/* Focus states for form elements */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 37, 247, 0.2);
}

/* Restaurant panel enhancements */
#restaurant-panel,
#restaurant-sidebar {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

/* Modal enhancements */
.modal-content {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

/* Custom scrollbar */
.overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 37, 247, 0.3) transparent;
}

.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(124, 37, 247, 0.3);
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 37, 247, 0.5);
}

/* Google Maps custom info window */
.gm-style .gm-style-iw {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(124, 37, 247, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

/* Enhanced shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(124, 37, 247, 0.1), 0 4px 6px -2px rgba(124, 37, 247, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(124, 37, 247, 0.1), 0 10px 10px -5px rgba(124, 37, 247, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(124, 37, 247, 0.25);
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category filter active state */
.category-filter.active {
  background-color: #7c25f7;
  color: white;
  border-color: #7c25f7;
}

/* Radio button styling */
input[type="radio"] {
  accent-color: #7c25f7;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
  #main-search {
    font-size: 1rem;
    padding: 1rem 1.5rem 1rem 3.5rem;
  }
  
  .floating {
    margin: 0 1rem;
  }
}

/* Loading animation for map markers */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Backdrop blur support fallback */
@supports not (backdrop-filter: blur(10px)) {
  .glass,
  .floating,
  #restaurant-panel,
  #restaurant-sidebar,
  .modal-content {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Focus visible for better accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #7c25f7;
  outline-offset: 2px;
}

/* Improved star ratings */
.star-rating {
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced hover states */
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(124, 37, 247, 0.15);
}

/* Gradient backgrounds */
.gradient-purple {
  background: linear-gradient(135deg, #7c25f7 0%, #9f75ff 100%);
}