/* Contenedor del widget SevenRooms fijo y centrado */
.sevenrooms-widget-container {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Modal propio para el modo Explore */
/* Centrado explícito: los resets tipo Tailwind (`* { margin: 0 }`) anulan
   el margin:auto con el que el navegador centra los <dialog>. */
dialog.srwp-modal {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;
  box-sizing: border-box;
  width: min(95vw, 900px);
  height: min(90vh, 900px);
  height: min(90dvh, 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

dialog.srwp-modal:not([open]) {
  display: none;
}

.srwp-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.srwp-modal__box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Barra propia para el botón de cerrar: no tapa nada del iframe */
.srwp-modal__bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 44px;
  padding: 0 6px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.srwp-modal__frame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
}

.srwp-modal__close {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #222;
  font-size: 28px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

.srwp-modal__close:hover,
.srwp-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  dialog.srwp-modal {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}

html.srwp-modal-open {
  overflow: hidden;
}

.sevenrooms-widget-container iframe {
  max-height: 90vh !important;
  max-height: 90dvh !important;
  max-width: 95vw !important;
  margin: auto !important;
}
