.arq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.arq-modal {
  background: var(--arq-surface);
  border: 1px solid var(--arq-border);
  border-radius: var(--arq-radius);
  box-shadow: var(--arq-shadow);
  max-width: min(520px, 100%);
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.arq-modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--arq-border);
  font-weight: 600;
}
.arq-modal-body { padding: 1rem; overflow-y: auto; }
.arq-modal-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--arq-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arq-input-wrap {
  position: relative;
}
.arq-input-wrap .arq-input {
  padding-right: 2.25rem;
}
.arq-input-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--arq-border);
  background: var(--arq-surface2);
  color: var(--arq-muted);
  cursor: pointer;
  display: none;
  line-height: 1;
  font-size: 1.1rem;
}
.arq-input-clear.is-visible { display: inline-flex; align-items: center; justify-content: center; }
.arq-input-clear:hover { color: var(--arq-text); border-color: var(--arq-accent); }

.arq-map-circle {
  width: 220px;
  height: 220px;
  border: 1px solid var(--arq-border);
  border-radius: 999px;
  background: var(--arq-surface2);
  overflow: hidden;
  margin-top: 0.5rem;
}
.arq-map-circle iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.arq-drawer-toggle {
  width: 100%;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--arq-border);
  border-radius: var(--arq-radius);
  background: var(--arq-surface2);
  cursor: pointer;
  color: var(--arq-text);
}
.arq-drawer-toggle .arq-drawer-arrow {
  transition: transform 0.15s ease;
  color: var(--arq-muted);
}
.arq-drawer-toggle.is-open .arq-drawer-arrow { transform: rotate(180deg); color: var(--arq-text); }
.arq-drawer-panel {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--arq-border);
  border-radius: var(--arq-radius);
  background: var(--arq-surface);
}

/* Diálogo nativo estilo ventana: adopta los colores del tema activo.
   No se aplican colores por tipo; solo cambia el icono semántico. */
.arq-native-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(94vw, 28rem);
  width: 100%;
  color: var(--arq-text);
  z-index: 10000;
}
.arq-native-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.arq-native-dialog__panel {
  margin: 0;
  max-height: 90vh;
}
.arq-native-dialog__header {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  background: color-mix(in srgb, var(--arq-text) 6%, transparent);
}
.arq-native-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  color: inherit;
  opacity: 0.85;
  flex-shrink: 0;
}
.arq-native-dialog__title {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arq-native-dialog__close {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  border: 1px solid var(--arq-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.15s ease, filter 0.15s ease;
}
.arq-native-dialog__close:hover {
  background: color-mix(in srgb, var(--arq-text) 12%, transparent);
  filter: brightness(1.1);
}
.arq-native-dialog__close:focus-visible {
  outline: 2px solid var(--arq-accent, #38bdf8);
  outline-offset: 2px;
}
.arq-native-dialog__msg {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
