/* Location Modal Overlay */
.location-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms ease;
  padding: 16px;
}

.location-modal-overlay--visible {
  opacity: 1;
}

/* Modal Box */
.location-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 300ms ease;
}

.location-modal-overlay--visible .location-modal {
  transform: translateY(0);
}

/* Close Button */
.location-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 200ms ease;
}

.location-modal__close:hover {
  background: #e5e7eb;
  color: #1a1a2e;
}

/* Icon */
.location-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Title */
.location-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

/* Description */
.location-modal__text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 24px;
}

/* Action Buttons */
.location-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 200ms ease;
  border: none;
}

/* Accept Button */
.location-modal__btn--accept {
  background: #DA6630;
  color: #ffffff;
}

.location-modal__btn--accept:hover {
  background: #c55828;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.location-modal__btn--accept:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Decline Button */
.location-modal__btn--decline {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.location-modal__btn--decline:hover {
  border-color: #DA6630;
  color: #DA6630;
}

/* Spin animation for loading state */
@keyframes location-spin {
  to {
    transform: rotate(360deg);
  }
}

.location-modal__spinner {
  animation: location-spin 1s linear infinite;
}

/* Closing transition state */
.location-modal-overlay.is-closing {
  opacity: 0;
  transition: opacity 300ms ease;
}

.location-modal-overlay.is-closing .location-modal {
  transform: translateY(20px);
  transition: transform 300ms ease;
}

/* Mobile responsive (max-width: 480px) */
@media (max-width: 480px) {
  .location-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .location-modal {
    padding: 32px 20px 24px;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }

  .location-modal__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .location-modal__title {
    font-size: 1.1rem;
  }

  .location-modal__text {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .location-modal__btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
