:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --secondary: #ec4899;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --background: #f0f9ff;
  --card: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f0f9ff 0%, #fdf2f8 100%);
  min-height: 100vh;
}

.glass {
  background: rgba(255, 255, 255, 0.95);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

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

.hidden {
  display: none !important;
}

.car-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.car-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #a5f3fc, #f0abfc);
}

.price-tag {
  background: linear-gradient(135deg, var(--success), var(--primary));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: var(--success);
  color: white;
}

.badge-warning {
  background: var(--warning);
  color: white;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

/* Payment System Styles */
.payment-tab {
  background: white;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  transition: all 0.3s ease;
}

.payment-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  color: white;
}

.payment-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.payment-method {
  transition: all 0.3s ease;
}

.payment-method.hidden {
  display: none;
}

.payment-method.active {
  display: block;
}

/* Animation for success message */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* PayPal button styles */
#mockPayPalButton {
  background: #ffc439;
  border: 1px solid #f2c200;
}

#mockPayPalButton:hover {
  background: #f2c200;
  border-color: #e6b800;
}

/* Processing states */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.btn-secondary.favorited {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Map InfoWindow Z-Index Fix */
.gm-style-iw, .infowindow, .leaflet-popup, .gm-style-iw-c, .gm-style-iw-t {
  z-index: 2147483647 !important; /* Max z-index */
}

/* Ensure chat widget is above map but below modals */
#chat-widget {
  z-index: 900;
}

#chat-bubble {
  z-index: 899;
}