.compare-modal[hidden] {
  display: none;
}

button.compare-map-open--card,
button.compare-submit--card {
  padding: 2px 6px;
  width: 100%;
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.compare-modal__dialog {
  position: relative;
  width: min(1400px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compare-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.compare-modal__title {
  font-weight: 700;
  font-size: 15px;
}

.compare-modal__close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
}

.compare-modal__body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.compare-modal__iframe {
  display: block;
  width: 100%;
  height: min(85vh, 900px);
  border: 0;
}
