/* =========================
   Grundindstillinger
========================= */

:root {
  --page-background: #f3f1ec;
  --surface: #ffffff;
  --surface-muted: #e8e7e2;
  --text: #1e211f;
  --text-muted: #6f746f;
  --border: #d8d7d2;
  --accent: #2c4638;
  --accent-hover: #20352a;
  --shadow: 0 16px 45px rgba(23, 27, 24, 0.14);
  --radius-large: 24px;
  --radius-medium: 15px;
  --content-width: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-background);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.section-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(44, 70, 56, 0.96);
  box-shadow: 0 8px 28px rgba(20, 35, 28, 0.14);
  backdrop-filter: blur(16px);
}


.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle__burger {
  display: block;
}

.menu-toggle__line {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle__close-icon {
  display: none;
  width: 22px;
  height: 22px;
  margin: auto;
  object-fit: contain;
  filter: invert(1);
}

.menu-toggle.is-open .menu-toggle__burger {
  display: none;
}

.menu-toggle.is-open .menu-toggle__close-icon {
  display: block;
}

.logo {
  flex-shrink: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #ffffff;
}


/* =========================
   Intro
========================= */

.hero {
  padding-top: clamp(52px, 8vw, 110px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.hero__text {
  max-width: 1040px;
}

.hero h1 {
  max-width: 1030px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero__address {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}


/* =========================
   Galleri på forsiden
========================= */

.gallery {
  padding-bottom: clamp(70px, 9vw, 125px);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 12px;
  height: clamp(500px, 56vw, 720px);
}

.main-image-wrapper {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--surface-muted);
}

.main-image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface-muted);
  cursor: zoom-in;
}

.main-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

/*
  Stående billeder og billeder markeret med fit: "contain"
  vises i en låst ramme uden at ændre galleriets størrelse.
*/
.main-gallery-image.is-contained,
.preview-button img.is-contained {
  object-fit: contain;
  padding: clamp(8px, 1.4vw, 20px);
  background: var(--surface-muted);
}

.main-image-button:hover .main-gallery-image:not(.is-contained) {
  transform: scale(1.012);
}

.gallery-arrow,
.modal-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.gallery-arrow:hover,
.modal-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow--previous {
  left: 18px;
}

.gallery-arrow--next {
  right: 18px;
}

.gallery-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 23, 21, 0.72);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gallery-previews {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.preview-button {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--surface-muted);
  cursor: pointer;
}

.preview-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 350ms ease,
    filter 350ms ease;
}

.preview-button:hover img:not(.is-contained) {
  transform: scale(1.035);
  filter: brightness(0.9);
}

.preview-button__number {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(20, 23, 21, 0.7);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.gallery-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 210px));
  gap: 12px;
  margin-top: 16px;
}

.gallery-action {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.gallery-action:hover {
  border-color: rgba(44, 70, 56, 0.5);
  background: #fafaf8;
  transform: translateY(-1px);
}


.gallery-action.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.gallery-action.is-active .gallery-action__text small {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-action.is-active:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}


.gallery-action__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-action__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.gallery-action__text strong {
  font-size: 0.96rem;
}

.gallery-action__text small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}


/* =========================
   Pris og boligoplysninger
========================= */

.property-overview {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  padding-bottom: clamp(80px, 10vw, 145px);
}

.price-block {
  position: sticky;
  top: 112px;
}

.price {
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
}

.monthly-cost {
  margin: 18px 0 0;
  color: var(--text-muted);
}

.property-grid {
  min-width: 0;
  border-top: 1px solid var(--border);
}

.property-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 24px;
  align-items: start;
  padding: 21px 4px;
  border-bottom: 1px solid var(--border);
}

.property-row span {
  color: var(--text-muted);
}

.property-row strong {
  max-width: 360px;
  font-size: 1.02rem;
  text-align: right;
}


/* =========================
   Økonomi
========================= */

.financial-section {
  padding: clamp(72px, 9vw, 120px) 0;
  background: #dfe7e6;
}

.financial-heading {
  max-width: 750px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.financial-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.info-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(38, 54, 51, 0.08);
}

.info-card h3 {
  margin: 0 0 26px;
  color: #193451;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  letter-spacing: -0.03em;
}

.info-list {
  margin: 0;
}

.info-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 18px 16px;
}

.info-list__row:nth-child(odd) {
  background: #f1f3f4;
}

.info-list__row dt,
.info-list__row dd {
  margin: 0;
}

.info-list__row dt {
  color: #193451;
}

.info-list__row dd {
  color: #193451;
  font-weight: 780;
  text-align: right;
  white-space: nowrap;
}

.info-list__row--secondary dt,
.info-list__row--secondary dd {
  color: #193451;
}

.info-list__row--wrap {
  align-items: start;
}

.info-list__row--wrap dd {
  max-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.financial-disclaimer {
  max-width: 850px;
  margin: 24px 0 0;
  color: #526261;
  font-size: 0.88rem;
}



/* =========================
   Beskrivelse
========================= */

.description {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
  padding-top: clamp(80px, 10vw, 145px);
  padding-bottom: clamp(80px, 10vw, 145px);
}

.section-heading {
  align-self: start;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.description__content {
  max-width: 790px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.description__content p {
  margin: 0 0 1.35em;
}

.description__lead {
  color: var(--accent);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 720;
  line-height: 1.4;
}

.description__content h3 {
  margin: 2.3em 0 0.65em;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.description__closing {
  margin-top: 2.4em !important;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  font-weight: 700;
}



/* =========================
   Kort
========================= */

.map-section {
  padding: clamp(72px, 9vw, 125px) 0;
  background: #e5ebe9;
}

.map-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.map-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.map-external-link {
  display: inline-flex;
  flex-shrink: 0;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(44, 70, 56, 0.28);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.map-external-link svg,
.map-detail svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-external-link svg {
  width: 20px;
  height: 20px;
}

.map-frame {
  position: relative;
  width: 100%;
  height: clamp(390px, 52vw, 620px);
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--surface-muted);
  box-shadow: 0 12px 36px rgba(26, 43, 38, 0.1);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.map-detail {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.map-detail svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--accent);
}

.map-detail div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.map-detail strong {
  line-height: 1.25;
}

.map-detail span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* =========================
   Kontakt
========================= */

.contact {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-top: clamp(56px, 8vw, 110px);
  margin-bottom: 80px;
  padding: clamp(35px, 6vw, 74px);
  border-radius: var(--radius-large);
  background: var(--accent);
  color: #ffffff;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.contact p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  background: #ffffff;
  color: var(--accent);
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
}


/* =========================
   Footer
========================= */

.site-footer {
  padding: 28px 20px 38px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.88rem;
}


/* =========================
   Modal
========================= */

.gallery-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0d0f0d;
  color: #ffffff;
}

.gallery-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 300px);
  width: 100%;
  height: 100%;
}

.modal-main {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;

  /* Billedet er stort, men der er stadig plads til teksten under */
  padding: 12px 58px;
  background: #0d0f0d;
}

.modal-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 1500px);
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 8px 0;
}

.modal-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.modal-figure figcaption {
  position: static;
  min-height: 24px;
  max-width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.modal-close {
  position: absolute;
  z-index: 6;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.modal-close img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: invert(1);
}

.modal-arrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.modal-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-arrow--previous {
  left: 8px;
}

.modal-arrow--next {
  right: 8px;
}

.modal-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #191c19;
}

.modal-sidebar__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 12px;
}

.modal-sidebar__heading p {
  margin: 0;
  font-weight: 750;
}

.modal-sidebar__heading span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
}

.modal-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 2px 5px 24px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-thumbnail {
  flex: 0 0 auto;
  width: 100%;
  padding: 5px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.modal-thumbnail:hover {
  background: rgba(255, 255, 255, 0.06);
}

.modal-thumbnail.is-active {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.modal-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
}

.modal-thumbnail img.is-contained {
  object-fit: contain;
  padding: 5px;
  background: #252925;
}


/* =========================
   Fokus og tilgængelighed
========================= */

button:focus-visible,
a:focus-visible {
  outline: 3px solid #b6d4c2;
  outline-offset: 3px;
}


/* =========================
   Mindre computerskærme
========================= */

@media (max-width: 1150px) {
  .info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card:last-child {
    grid-column: 1 / -1;
  }
}


/* =========================
   Tablet
========================= */

@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 68px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(44, 70, 56, 0.98);
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 220ms ease,
      padding 220ms ease,
      opacity 180ms ease;
  }

  .site-nav.is-open {
    max-height: 430px;
    padding-top: 10px;
    padding-bottom: 14px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.96rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .gallery-layout {
    grid-template-columns: minmax(0, 2.3fr) minmax(170px, 0.7fr);
    height: clamp(460px, 68vw, 620px);
  }

  .property-overview,
  .description {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .price-block {
    position: static;
  }

  .contact {
    align-items: start;
    flex-direction: column;
  }

  .modal-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .modal-main {
    padding-inline: 46px;
  }

  .modal-sidebar {
    padding-inline: 10px;
  }
}


/* =========================
   Mobil og smalle tablets
========================= */

@media (max-width: 720px) {
  .section-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
  }

  .gallery-layout {
    display: block;
    height: auto;
  }

  .main-image-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 17px;
  }

  .gallery-previews {
    display: none;
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .gallery-arrow--previous {
    left: 10px;
  }

  .gallery-arrow--next {
    right: 10px;
  }

  .gallery-counter {
    right: 10px;
    bottom: 10px;
  }

  .gallery-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-action {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 10px 6px;
    text-align: center;
  }

  .gallery-action__icon {
    width: 26px;
    height: 26px;
  }

  .gallery-action__text {
    align-items: center;
  }

  .gallery-action__text strong {
    font-size: 0.82rem;
  }

  .gallery-action__text small {
    display: none;
  }

  .map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .map-frame {
    height: min(72vh, 500px);
    border-radius: 17px;
  }

  .map-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .property-row {
    gap: 12px;
    padding-block: 18px;
  }

  .property-row strong {
    max-width: 58%;
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .info-card:last-child {
    grid-column: auto;
  }

  .description__content h3 {
    margin-top: 1.9em;
  }

  .contact {
    margin-top: 42px;
    margin-bottom: 40px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .contact__actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .modal-layout {
    display: flex;
    flex-direction: column;
  }

  .modal-main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 52px 5px 5px;
  }

  .modal-figure {
    gap: 7px;
    padding-bottom: 4px;
  }

  .modal-figure figcaption {
    max-width: calc(100% - 24px);
    padding-inline: 4px;
    font-size: 0.76rem;
  }

  .modal-close {
    top: 7px;
    left: 7px;
    width: 42px;
    height: 42px;
  }

  .modal-close img {
    width: 19px;
    height: 19px;
  }

  .modal-arrow {
    width: 42px;
    height: 42px;
  }

  .modal-arrow--previous {
    left: 5px;
  }

  .modal-arrow--next {
    right: 5px;
  }

  .modal-sidebar {
    flex: 0 0 136px;
    width: 100%;
    padding: 7px 8px 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .modal-sidebar__heading {
    padding: 0 4px 5px;
  }

  .modal-thumbnails {
    flex-direction: row;
    gap: 7px;
    padding: 0 14px 3px 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .modal-thumbnail {
    width: 104px;
    padding: 4px;
  }
}


/* =========================
   Meget små skærme
========================= */

@media (max-width: 430px) {
  .site-header {
    padding-inline: 14px;
  }

  .logo {
    font-size: 0.98rem;
  }

  .hero__address {
    font-size: 0.95rem;
  }

  .gallery-action {
    min-height: 80px;
  }

  .gallery-action__icon {
    width: 24px;
    height: 24px;
  }

  .gallery-action__text strong {
    font-size: 0.76rem;
  }

  .map-external-link {
    width: 100%;
    justify-content: center;
  }

  .price {
    font-size: 2.45rem;
  }

  .property-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .property-row strong {
    max-width: none;
    text-align: left;
  }

  .info-card {
    padding: 19px 14px;
  }

  .info-list__row {
    gap: 10px;
    padding: 15px 12px;
  }

  .info-list__row dt {
    font-size: 0.9rem;
  }

  .info-list__row dd {
    font-size: 0.92rem;
  }

  .info-list__row--wrap {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .info-list__row--wrap dd {
    max-width: none;
    text-align: left;
  }
}


/* =========================
   Lav skærm i vandret format
========================= */

@media (max-height: 560px) and (orientation: landscape) {
  .modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .modal-main {
    padding: 5px 44px;
  }

  .modal-sidebar {
    width: auto;
    padding: 8px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .modal-thumbnails {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal-thumbnail {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
