.midgard-offer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.midgard-offer-tab {
  padding: 0.65rem 1.15rem;
  border: 1px solid #a4aeb9;
  border-radius: 0.25rem;
  background: #fff;
  color: #102e52;
  cursor: pointer;
}

.midgard-offer-tab[aria-pressed="true"] {
  background: #102e52;
  color: #fff;
}

.midgard-flats-hidden {
  display: none !important;
}

.midgard-offer-results {
  padding-block: 1rem 4rem;
  color: #102e52;
}

.midgard-offer-results :is(h2, h3, p, strong, a) {
  color: #102e52;
}

.midgard-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.midgard-offer-grid li {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #c7cfd8;
  border-radius: 0.25rem;
  background: #fff;
}

.midgard-offer-grid :is(h3, p) {
  margin: 0;
}

.midgard-offer-grid a {
  text-decoration: underline;
}

.midgard-filter-crossed-out {
  display: none !important;
}

.midgard-genplan-frame {
  position: relative;
}

.midgard-genplan-zones {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.midgard-genplan-zone path {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2px;
  pointer-events: all;
  cursor: pointer;
}

.midgard-genplan-zone text {
  opacity: 0;
  fill: #102e52;
  stroke: #fff;
  stroke-width: 7px;
  paint-order: stroke;
  font: 700 23px Arial, sans-serif;
}

.midgard-genplan-zone:is(:hover, :focus-visible, [aria-pressed="true"]) path {
  fill: rgb(0 126 106 / 45%);
  stroke: #fff;
}

.midgard-genplan-zone:is(:hover, :focus-visible, [aria-pressed="true"]) text {
  opacity: 1;
}

.filter-controls > .filter-row:has(> .filter__cost) {
  flex-wrap: wrap;
}

.filter-controls .filter-row > .filter__cost.filter__item,
.filter-controls .filter-row > .filter__cost ~ .filter__item {
  display: flex !important;
  flex: 1 1 21rem;
  width: 100%;
  max-width: min(100%, 34rem);
  min-width: 0;
}

.apart-slider__image {
  position: relative;
}

.midgard-plan-open {
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  z-index: 3;
  padding: 0.65rem 1rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.25rem;
  background: #fff;
  color: #17283b;
  cursor: zoom-in;
}

.midgard-plan-dialog {
  width: min(90vw, 70rem);
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  padding: 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
}

.midgard-plan-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.midgard-plan-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.midgard-plan-controls button,
.midgard-price-note summary {
  cursor: pointer;
}

.midgard-plan-viewport {
  max-height: 73vh;
  overflow: auto;
}

.midgard-plan-viewport img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.midgard-plan-viewport--zoomed img {
  width: 200%;
  max-width: none;
  max-height: none;
}

.apart-aside__prices-list-item {
  position: relative;
}

.apart-aside__prices-list-item .apart-aside__prices-list-card-head {
  padding-inline-end: 3.25rem;
}

.midgard-price-note {
  position: absolute;
  inset-block-start: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 2;
}

.midgard-price-note[open] {
  z-index: 3;
}

.midgard-price-note summary {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-inline-start: auto;
  border: 1px solid #102e52;
  border-radius: 50%;
  background: #fff;
  color: #102e52;
  font-weight: 700;
  line-height: 1;
  list-style: none;
}

.midgard-price-note summary::-webkit-details-marker {
  display: none;
}

.midgard-price-note summary:is(:hover, :focus-visible),
.midgard-price-note[open] summary {
  background: #102e52;
  color: #fff;
}

.midgard-price-note p {
  position: absolute;
  inset-inline-end: 0;
  width: min(23rem, 65vw);
  margin: 0.4rem 0 0;
  padding: 0.75rem;
  border: 1px solid #c7cfd8;
  border-radius: 0.4rem;
  background: #fff;
  color: #102e52;
  box-shadow: 0 0.3rem 1.2rem rgb(16 46 82 / 15%);
}
