/* Map Navigation Styles */

/* Clickable address styling */
.address-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.address-clickable:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.address-clickable:active {
  transform: translateY(1px);
}

/* Map selection modal: stronger backdrop and dialog contrast */
#map-selection-modal {
  animation: fadeIn 0.2s ease-out;
  background-color: rgba(0, 0, 0, 0.68) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#map-selection-modal > .map-selection-modal__dialog,
#map-selection-modal > div {
  animation: slideInUp 0.3s ease-out;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dark #map-selection-modal > .map-selection-modal__dialog,
.dark #map-selection-modal > div {
  border-color: rgba(100, 116, 139, 0.65);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

#map-selection-modal .map-selection-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#map-selection-modal .map-selection-modal__subtitle {
  font-size: 0.875rem;
  color: rgb(71, 85, 105);
}

.dark #map-selection-modal .map-selection-modal__subtitle {
  color: rgb(203, 213, 225);
}

/* Ensure map app buttons are visible in light mode (Tailwind purge-safe) */
#google-maps-btn,
#apple-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

#google-maps-btn {
  background-color: #2563eb; /* blue-600 */
  color: #ffffff;
  border-color: #1d4ed8; /* blue-700 */
}

#apple-maps-btn {
  background-color: #1f2937; /* gray-800 */
  color: #ffffff;
  border-color: #374151; /* gray-700 */
}

/* Dark mode adjustments for Apple button subtle border */
.dark #apple-maps-btn {
  background-color: #111827; /* gray-900 */
  border-color: #374151; /* gray-700 */
}

/* Button hover effects */
#google-maps-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#apple-maps-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
}

/* Focus states for accessibility */
#google-maps-btn:focus,
#apple-maps-btn:focus,
#cancel-map-btn:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

/* Dark mode adjustments */
.dark .address-clickable:hover {
  text-decoration-color: #60a5fa;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #map-selection-modal > .map-selection-modal__dialog,
  #map-selection-modal > div {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
}

/* Animation keyframes */

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

/* Loading state for address elements */
.address-clickable.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success state for address elements */
.address-clickable.success {
  color: #059669;
}

/* Error state for address elements */
.address-clickable.error {
  color: #dc2626;
}

/* Dark overlay/text contrast: themes/dark-mode.css */
