/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 400px;
  background: var(--background);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--muted);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mobile-menu-nav > a,
.mobile-menu-dropdown {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--foreground), 0.8);
  text-decoration: none;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu-nav > a:hover,
.mobile-menu-dropdown:hover {
  color: var(--primary);
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
}

.mobile-menu-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  background: rgba(var(--muted), 0.3);
  border-left: 2px solid var(--primary);
  margin-left: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.mobile-menu-dropdown-content.open {
  display: flex;
}

.mobile-menu-dropdown-content a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: rgba(var(--foreground), 0.7);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 0.25rem;
}

.mobile-menu-dropdown-content a:hover {
  color: var(--primary);
  background: rgba(var(--primary), 0.1);
}

@media (min-width: 1024px) {
  .mobile-menu-overlay {
    display: none;
  }
}

/* Booking Modal */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-bottom)) 1rem;
}

.booking-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--background), 0.8);
  backdrop-filter: blur(4px);
}

.booking-modal-content {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.booking-modal-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  padding: 1rem 1.25rem;
}

.booking-modal-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--background);
  object-fit: contain;
  padding: 0.25rem;
}

.booking-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
  min-width: 0;
}

.booking-modal-close {
  color: rgba(var(--primary-foreground), 0.9);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal-close:hover {
  color: var(--primary-foreground);
}

.booking-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.booking-modal-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.booking-location-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-top: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  text-decoration: none;
  transition: all 0.2s ease;
}

.booking-location-card:hover {
  border-color: var(--primary);
  background: rgba(var(--primary), 0.05);
}

.booking-location-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.booking-location-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.booking-location-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

.booking-location-address {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.booking-location-address svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* Chat Widget */
.chat-widget {
  position: absolute;
  bottom: 5.5rem;
  right: 0;
  width: calc(100vw - 2rem);
  max-width: 380px;
  height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.chat-widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  padding: 0.875rem 1rem;
}

.chat-widget-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--background);
  object-fit: contain;
  padding: 0.25rem;
}

.chat-widget-title {
  flex: 1;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.chat-widget-minimize {
  color: rgba(var(--primary-foreground), 0.9);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.chat-widget-minimize:hover {
  color: var(--primary-foreground);
}

.chat-widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
}

.chat-message-avatar {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--background);
  object-fit: contain;
  padding: 0.25rem;
}

.chat-message-text {
  border-radius: 0.75rem;
  border-top-left-radius: 0;
  background: var(--muted);
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.chat-form-field {
  display: flex;
  flex-direction: column;
}

.chat-form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.chat-form-field .required {
  color: var(--primary);
}

.chat-form-field input,
.chat-form-field select,
.chat-form-field textarea {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
}

.chat-form-field input:focus,
.chat-form-field select:focus,
.chat-form-field textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--primary);
}

.chat-form-field textarea {
  resize: vertical;
}

.chat-form-field input::placeholder,
.chat-form-field textarea::placeholder {
  color: var(--muted-foreground);
}

.chat-form-notice {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.chat-form-notice a {
  color: var(--primary);
  text-decoration: none;
}

.chat-form-notice a:hover {
  text-decoration: underline;
}

.chat-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 0.375rem;
  background: var(--primary);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-form-submit:hover {
  background: rgba(var(--primary), 0.9);
}

.chat-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-success {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--primary), 0.4);
  background: rgba(var(--primary), 0.1);
  font-size: 1rem;
  color: var(--foreground);
}

.chat-welcome {
  position: absolute;
  bottom: 5.5rem;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 300px;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
}

.chat-welcome-avatar {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--background);
  object-fit: contain;
  padding: 0.25rem;
}

.chat-welcome-text {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--foreground);
}

.chat-welcome-close {
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.chat-welcome-close:hover {
  color: var(--foreground);
}

@media (max-width: 640px) {
  .chat-widget {
    bottom: 5rem;
  }

  .chat-welcome {
    bottom: 5rem;
  }
}
