/**
 * @file
 * Location modal (native dialog) styles.
 */

#sse-location-dialog {
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  padding: 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#sse-location-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.sse-location-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.sse-location-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  background: var(--color-bg, #fff);
  flex-shrink: 0;
}

.sse-location-dialog__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-fg, #000);
}

.sse-location-dialog__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-fg-muted, #666);
  font-size: 1.5rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.sse-location-dialog__close:hover {
  background: var(--color-surface, #f5f5f5);
  color: var(--color-fg, #000);
}

.sse-location-dialog__close:focus {
  outline: 2px solid var(--color-focus, #0066cc);
  outline-offset: 2px;
}

.sse-location-dialog__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  background: var(--color-bg, #fff);
}

#sse-location-map {
  width: 100%;
  height: 400px;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 4px;
}

/* Link and button styles for location triggers */
.sse-location-modal-link {
  color: var(--color-link, #0066cc);
  text-decoration: underline;
  cursor: pointer;
}

.sse-location-modal-link:hover {
  color: var(--color-link-hover, #0052a3);
}

.sse-location-modal-button {
  margin-left: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  background: var(--color-link, #0066cc);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sse-location-modal-button:hover {
  background: var(--color-link-hover, #0052a3);
}

.sse-location-modal-button:focus {
  outline: 2px solid var(--color-focus, #0066cc);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  #sse-location-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  #sse-location-map {
    height: 300px;
  }
}

/* Animation */
@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#sse-location-dialog[open] {
  animation: dialogFadeIn 0.2s ease-out;
}
