:root {
  --ink: #18323a;
  --purple: #563368;
  --sale-red: #ef332c;
  --muted: #667a78;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #d6e8ef;
  --green: #6f8f55;
  --green-2: #0c5f75;
  --clay: #e07d43;
  --sky: #dff6fb;
  --sea: #0087a8;
  --sun: #ffc36b;
  --sand: #f2ddb9;
  --wood: #8a5638;
  --shadow: 0 18px 42px rgba(24, 50, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(223, 246, 251, 0.92), rgba(255, 255, 255, 0) 520px),
    linear-gradient(135deg, rgba(0, 135, 168, 0.08), rgba(255, 255, 255, 0) 46%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.edit-mode {
  padding-top: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 104px;
  padding: 12px clamp(16px, 4vw, 48px);
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid rgba(86, 51, 104, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(24, 50, 58, 0.08);
  backdrop-filter: blur(12px);
}

body.edit-mode .site-header {
  top: 76px;
}

.editor-bar {
  position: fixed;
  z-index: 40;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid rgba(25, 32, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(25, 32, 29, 0.16);
  backdrop-filter: blur(14px);
}

.editor-bar[hidden] {
  display: none;
}

.editor-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--sea);
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--sea), #00a6c8);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-button.ghost {
  color: var(--sea);
  background: #ffffff;
}

.editor-button.text-tool {
  min-width: 38px;
  border-color: rgba(0, 135, 168, 0.36);
}

#text-clear {
  margin-left: 8px;
  border-color: rgba(215, 25, 32, 0.36);
  color: var(--sale-red);
}

.editor-status {
  min-width: 84px;
  color: var(--sea);
  font-size: 0.86rem;
  font-weight: 800;
}

[contenteditable="true"] {
  cursor: text;
}

body.edit-mode [data-edit-key] {
  outline: 2px dashed rgba(201, 111, 61, 0.58);
  outline-offset: 4px;
  border-radius: 4px;
}

body.edit-mode [data-edit-key]:focus {
  outline: 3px solid rgba(201, 111, 61, 0.82);
  background: rgba(255, 255, 255, 0.36);
}

body.edit-mode [data-edit-key].is-active-edit-text {
  outline: 3px solid rgba(215, 25, 32, 0.78);
  background: rgba(255, 255, 255, 0.76);
}

body.edit-mode .site-header {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}

body.edit-mode .brand {
  flex: 1 1 320px;
  align-items: flex-start;
  max-width: 100%;
}

body.edit-mode .brand > span:last-child {
  min-width: min(280px, calc(100vw - 120px));
  gap: 8px;
}

body.edit-mode .site-header [data-edit-key] {
  display: inline-block;
  max-width: 100%;
  min-height: 28px;
  min-width: 120px;
  padding: 4px 6px;
  outline-offset: 1px;
  white-space: normal;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.62);
}

body.edit-mode .brand [data-edit-key] {
  min-width: 220px;
}

body.edit-mode .header-sale-pill {
  margin-left: 0;
  min-width: 240px;
  line-height: 1.25;
}

body.edit-mode .site-header nav {
  order: 4;
  width: 100%;
  flex-wrap: wrap;
}

body.edit-mode .language-switcher {
  order: 5;
}

.editable-image {
  position: relative;
}

.hero > .editable-image {
  height: 86vh;
  min-height: 560px;
}

.hero > .editable-image > img {
  height: 100%;
}

.image-edit-button {
  display: none;
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 119, 148, 0.88);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

body.edit-mode .image-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.edit-mode .hero > .editable-image > .image-edit-button {
  top: 154px;
}

body.edit-mode .gallery-item .image-edit-button {
  top: 8px;
  left: 8px;
  right: auto;
  bottom: auto;
  max-width: none;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 0;
  background: rgba(0, 119, 148, 0.78);
  font-size: 0.72rem;
  line-height: 1;
}

body.edit-mode .surroundings-item .image-edit-button {
  top: 8px;
  left: 8px;
  right: auto;
  bottom: auto;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 0;
  background: rgba(0, 119, 148, 0.78);
  font-size: 0.72rem;
  line-height: 1;
}

.gallery-move-controls {
  display: none;
  position: absolute;
  z-index: 8;
  right: 8px;
  top: 8px;
  gap: 6px;
}

.gallery-move-button {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #fff;
  background: rgba(85, 50, 105, 0.92);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

body.edit-mode .gallery-item .gallery-move-controls {
  display: flex;
}

body.edit-mode .gallery-item .gallery-move-button {
  display: grid;
}

.gallery-move-button:hover,
.gallery-move-button:focus-visible {
  background: rgba(211, 48, 48, 0.96);
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 2px;
}

.image-remove-button {
  display: none;
  position: absolute;
  z-index: 7;
  right: 8px;
  bottom: 8px;
  min-height: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  color: #fff;
  background: rgba(211, 48, 48, 0.88);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

body.edit-mode .image-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.edit-mode .surroundings-item .image-remove-button {
  top: 8px;
  right: 8px;
  bottom: auto;
}

.gallery-add-button {
  display: none;
  margin-top: 18px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px dashed var(--sea);
  border-radius: 8px;
  color: var(--sea);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

body.edit-mode .gallery-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.surroundings-add-button {
  display: none;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px dashed var(--sea);
  border-radius: 0;
  color: var(--sea);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

body.edit-mode .surroundings-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.is-added {
  grid-column: auto;
  grid-row: auto;
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: 360px;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--purple);
  text-transform: uppercase;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand small {
  color: #72507f;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
}

.brand-mark {
  display: block;
  width: 104px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(86, 51, 104, 0.16);
  background: #f2f2f2;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 54%;
  filter: brightness(1.16) contrast(1.06) saturate(1.08);
}

.header-sale-pill {
  display: none;
}

nav {
  margin-left: auto;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
  color: #171717;
  opacity: 0.94;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--purple);
  border-color: var(--purple);
  background: transparent;
  opacity: 1;
}

.nav-sale {
  color: var(--purple);
  background: transparent;
  box-shadow: none;
  border-color: var(--purple);
}

.nav-sale:hover,
.nav-sale:focus-visible {
  color: var(--purple);
  background: transparent;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(0, 135, 168, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

.language-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid rgba(0, 135, 168, 0.16);
  color: #24414a;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher .flag {
  font-size: 1rem;
  line-height: 1;
}

.language-switcher button:first-child {
  border-left: 0;
}

.language-switcher button.is-active {
  color: #fffef9;
  background: var(--sea);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: #0d93b7;
}

.hero img {
  width: 100%;
  height: 86vh;
  min-height: 560px;
  object-fit: cover;
  filter: brightness(1.08) contrast(1.04) saturate(1.08);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 47, 59, 0.44), rgba(6, 47, 59, 0.12) 52%, rgba(6, 47, 59, 0)),
    linear-gradient(0deg, rgba(6, 47, 59, 0.18), rgba(6, 47, 59, 0));
}

.hero-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(32px, 7vw, 112px);
  bottom: clamp(58px, 13vh, 132px);
  width: min(680px, calc(100% - 64px));
  color: #fff;
  text-align: left;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.sale-badge {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(224, 125, 67, 0.95), rgba(244, 155, 85, 0.92));
  box-shadow: 0 12px 26px rgba(103, 62, 36, 0.24);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: #ffe3aa;
  margin-bottom: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 9ch;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1.06rem, 1.55vw, 1.34rem);
  font-weight: 750;
  line-height: 1.45;
}

.hero-actions,
.facts,
.details-grid,
.gallery,
.contact {
  display: grid;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 12px;
}

.for-sale-stamp {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 5vw, 72px);
  top: 34%;
  display: grid;
  place-items: center;
  width: clamp(92px, 10vw, 132px);
  aspect-ratio: 1 / 0.78;
  border: 6px solid #fff;
  border-radius: 12px;
  color: #fff;
  background: var(--sale-red);
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.28);
  font-size: clamp(1.6rem, 2.5vw, 2.55rem);
  font-weight: 950;
  line-height: 0.86;
  text-align: center;
  transform: rotate(8deg);
}

.for-sale-stamp span {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sea), #00aecd);
  box-shadow: 0 12px 24px rgba(0, 135, 168, 0.22);
}

.button.secondary {
  color: #fff7e8;
  border-color: rgba(255, 247, 232, 0.72);
  background: rgba(255, 248, 237, 0.2);
}

.button:hover,
.gallery-item:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.overview {
  padding-bottom: clamp(22px, 3vw, 38px);
}

.overview + .gallery-section {
  padding-top: clamp(24px, 3.2vw, 42px);
  padding-bottom: clamp(24px, 3.2vw, 42px);
}

.gallery-section + .video-section,
.video-section + .location-section {
  padding-top: clamp(24px, 3.2vw, 42px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.section-heading p:not(.kicker) {
  color: var(--muted);
  font-size: 1.08rem;
}

.facts {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 0 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.facts div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  min-height: 44px;
  padding: 11px 14px;
  border-bottom: 1px solid #cfcfcf;
  background: #eeeeee;
}

.facts div:nth-child(even) {
  background: #f7f7f7;
}

.facts div:first-child,
.facts div:nth-child(2) {
  border-bottom: 0;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
}

.facts strong {
  display: block;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
}

.facts span {
  color: inherit;
  font-weight: 650;
}

.note {
  color: var(--muted);
}

.details-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.details-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef9fc);
  box-shadow: 0 14px 30px rgba(0, 119, 148, 0.06);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 8px;
}

.content-add-button {
  display: none;
  width: max-content;
  margin-top: 14px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px dashed var(--sea);
  border-radius: 6px;
  color: var(--sea);
  background: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.content-add-actions {
  display: none;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 24px;
}

body.edit-mode .content-add-actions {
  display: grid;
}

body.edit-mode .content-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.edit-mode .facts div {
  padding-right: 104px;
}

.facts [data-fact-side="left"] {
  grid-column: 1;
}

.facts [data-fact-side="right"] {
  grid-column: 2;
}

.dynamic-remove-button {
  display: none;
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(215, 25, 32, 0.32);
  border-radius: 4px;
  color: var(--sale-red);
  background: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  transform: translateY(-50%);
}

body.edit-mode .dynamic-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-added-highlight] {
  position: relative;
  padding-right: 88px;
}

.list-remove-button {
  right: 0;
}

.price {
  margin-bottom: 6px;
  color: var(--sea);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 850;
  line-height: 1;
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(223, 246, 251, 0.96)),
    linear-gradient(135deg, #ffffff, var(--sky));
}

.gallery-viewer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 135, 168, 0.16);
  border-radius: 8px;
  background: #073f52;
  box-shadow: 0 18px 42px rgba(0, 119, 148, 0.13);
}

.gallery-viewer-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  padding: 0;
  border: 0;
  color: #fff;
  background: #073f52;
  cursor: zoom-in;
}

.gallery-viewer-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-viewer-main span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 119, 148, 0.82);
  font-weight: 850;
}

.gallery-viewer-nav,
.gallery-viewer-fullscreen {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: rgba(7, 63, 82, 0.58);
  font: inherit;
  cursor: pointer;
}

.gallery-viewer-nav {
  top: 50%;
  width: 46px;
  height: 66px;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.gallery-viewer-prev {
  left: 0;
}

.gallery-viewer-next {
  right: 0;
}

.gallery-viewer-fullscreen {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

.gallery-viewer-nav:hover,
.gallery-viewer-fullscreen:hover,
.gallery-viewer-nav:focus-visible,
.gallery-viewer-fullscreen:focus-visible {
  background: rgba(7, 63, 82, 0.86);
}

.gallery {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 2px;
  scroll-snap-type: x mandatory;
}

body.edit-mode .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 14px 0 4px;
  scroll-snap-type: none;
}

.gallery-item {
  position: relative;
  flex: 0 0 clamp(96px, 13vw, 154px);
  overflow: hidden;
  min-height: 72px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0;
  background: #0d93b7;
  box-shadow: none;
  cursor: pointer;
  opacity: 0.78;
  scroll-snap-align: start;
}

body.edit-mode .gallery-item {
  flex: none;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  border-color: rgba(0, 135, 168, 0.24);
  opacity: 1;
}

.gallery-item.is-active-gallery {
  border-color: var(--sea);
  opacity: 1;
}

.gallery-item.is-large {
  grid-column: auto;
  grid-row: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item span {
  display: none;
}

body.edit-mode .gallery-item > span[data-edit-key],
body.edit-mode .gallery-item > span[data-gallery-item-title] {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  display: block;
  padding: 6px 8px;
  color: #fff;
  background: rgba(7, 63, 82, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.gallery-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.gallery-pagination button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 135, 168, 0.28);
  border-radius: 0;
  color: var(--sea);
  background: rgba(255, 254, 249, 0.82);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.gallery-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.gallery-pagination span {
  min-width: 104px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.video-section {
  padding-bottom: clamp(24px, 3.2vw, 42px);
  background: linear-gradient(180deg, rgba(223, 246, 251, 0.96), rgba(255, 255, 255, 0.96));
}

.tour-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.compact-heading {
  display: grid;
  grid-template-rows: auto minmax(2.1em, auto) minmax(3.1em, auto);
  align-content: start;
  gap: 8px;
  min-height: 184px;
  margin-bottom: 14px;
}

.compact-heading h2 {
  font-size: clamp(1.9rem, 3.35vw, 3.2rem);
  line-height: 1.02;
  min-height: 2.08em;
}

.compact-heading p:last-child {
  max-width: 54ch;
  min-height: 3.1em;
}

.surroundings-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.video-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.surroundings-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(0, 135, 168, 0.16);
  background: #dff6fb;
  box-shadow: 0 12px 28px rgba(0, 119, 148, 0.09);
}

.surroundings-viewer {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0, 135, 168, 0.16);
  background: #dff6fb;
  box-shadow: 0 12px 28px rgba(0, 119, 148, 0.09);
}

.surroundings-viewer img,
.surroundings-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surroundings-viewer span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 11px 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 63, 82, 0), rgba(7, 63, 82, 0.8));
  font-size: 0.95rem;
  font-weight: 850;
}

.surroundings-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(7, 63, 82, 0.56);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.surroundings-nav:hover,
.surroundings-nav:focus-visible {
  background: rgba(7, 63, 82, 0.86);
}

.surroundings-prev {
  left: 0;
}

.surroundings-next {
  right: 0;
}

.surroundings-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scroll-snap-type: x mandatory;
}

.surroundings-grid figure {
  flex: 0 0 112px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  opacity: 0.72;
  scroll-snap-align: start;
}

.surroundings-grid figure.is-active-surroundings {
  border-color: var(--sea);
  opacity: 1;
}

.surroundings-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 63, 82, 0), rgba(7, 63, 82, 0.78));
  font-size: 0.86rem;
  font-weight: 850;
}

.surroundings-grid figcaption {
  padding: 5px 7px;
  font-size: 0.72rem;
}

.video-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0, 135, 168, 0.16);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(6, 55, 68, 0.68), rgba(6, 55, 68, 0.22)),
    url("assets/villa-meer-aussen-pool-web.webp") center / cover;
  box-shadow: 0 18px 42px rgba(0, 119, 148, 0.13);
}

.video-panel.has-video {
  background: #052f3b;
}

.video-panel video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #052f3b;
}

.video-panel.has-video video {
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: auto 24px 24px;
  max-width: 560px;
  color: #fffef9;
}

.video-panel.has-video .video-placeholder {
  display: none;
}

.video-placeholder span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  font-weight: 850;
  line-height: 1;
}

.video-placeholder p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 254, 249, 0.86);
  font-size: 1.04rem;
}

.video-edit-button {
  display: none;
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  color: #fff;
  background: rgba(0, 119, 148, 0.88);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

body.edit-mode .video-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.location-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(223, 246, 251, 0.9)),
    linear-gradient(135deg, rgba(0, 135, 168, 0.12), rgba(255, 255, 255, 0.18));
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.map-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef9fc);
  box-shadow: 0 14px 30px rgba(0, 119, 148, 0.08);
}

.map-label {
  width: max-content;
  margin-bottom: 18px;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid rgba(0, 135, 168, 0.2);
  color: var(--sea);
  background: linear-gradient(135deg, #ffffff, #dff6fb);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.map-copy-card address {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.map-link {
  width: max-content;
}

.map-panel iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: var(--sky);
  box-shadow: 0 18px 42px rgba(0, 119, 148, 0.13);
}

.contact {
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-recipient-editor {
  margin-top: 24px;
  padding: 14px;
  border: 1px dashed var(--sea);
  border-radius: 8px;
  color: var(--sea);
  background: #ffffff;
  font-weight: 850;
}

.contact-recipient-editor[hidden] {
  display: none;
}

.spam-check {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

address {
  margin-top: 28px;
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.contact-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef9fc);
  box-shadow: 0 12px 32px rgba(0, 119, 148, 0.1);
}

.form-message-field {
  grid-column: auto;
  grid-row: auto;
}

.form-message-field textarea {
  min-height: 150px;
}

label {
  display: grid;
  gap: 7px;
  color: #4a4038;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 111, 61, 0.35);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--sea);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(90deg, #0087a8, #33b8cc);
}

#lightbox,
#image-editor,
#video-editor {
  width: min(980px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #0d93b7;
  box-shadow: var(--shadow);
}

#lightbox::backdrop,
#image-editor::backdrop,
#video-editor::backdrop {
  background: rgba(0, 105, 132, 0.68);
}

#lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

#lightbox p {
  margin: 0;
  padding: 15px 18px 18px;
  color: #fff;
  font-weight: 800;
}

.lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: rgba(0, 119, 148, 0.82);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(0, 119, 148, 0.96);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 119, 148, 0.88);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.image-editor-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #eef9fc);
}

.image-editor-form h2 {
  margin-bottom: 2px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#image-editor .button.secondary {
  color: var(--sea);
  border-color: var(--sea);
  background: #fff;
}

.dialog-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: #7a241d;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
  }

  .header-sale-pill {
    margin-left: 0;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero img {
    height: 88vh;
  }

  .hero > .editable-image {
    height: 88vh;
  }

  .hero-overlay {
    left: 28px;
    bottom: 58px;
    width: min(620px, calc(100% - 56px));
  }

  .hero h1 {
    max-width: 10ch;
  }

  .facts,
  .details-grid,
  .map-panel,
  .contact {
    grid-template-columns: 1fr 1fr;
  }

  .details-grid article:first-child,
  .map-copy-card {
    grid-column: 1 / -1;
  }

  .gallery {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px;
  }

  .brand {
    flex: 1 1 100%;
    min-width: 0;
    font-size: 1.45rem;
  }

  .brand-mark {
    width: 74px;
    height: 54px;
  }

  .header-sale-pill {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .editor-bar {
    left: 10px;
    right: 10px;
    justify-content: space-between;
    gap: 6px;
  }

  .editor-button {
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .editor-status {
    display: none;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .language-switcher {
    margin-left: 0;
  }

  nav a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .nav-sale {
    min-height: 34px;
    padding: 8px 10px;
  }

  .gallery-viewer-main {
    aspect-ratio: 4 / 3;
  }

  .gallery-viewer-nav {
    width: 38px;
    height: 54px;
  }

  .gallery-viewer-main span {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.9rem;
  }

  .gallery-item {
    flex-basis: 92px;
  }

  .hero,
  .hero img,
  .hero > .editable-image {
    min-height: 720px;
  }

  .hero-overlay {
    left: 20px;
    right: 20px;
    bottom: 42px;
    width: auto;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 16vw, 4.7rem);
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .for-sale-stamp {
    right: 18px;
    top: 28%;
    width: 82px;
    border-width: 4px;
    font-size: 1.42rem;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(6, 47, 59, 0.48), rgba(6, 47, 59, 0.16) 70%, rgba(6, 47, 59, 0.04)),
      linear-gradient(0deg, rgba(0, 105, 132, 0.22), rgba(0, 105, 132, 0.04));
  }

  .hero-actions,
  .facts,
  .details-grid,
  .map-panel,
  .tour-layout,
  .gallery,
  .contact,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-message-field {
    grid-column: auto;
    grid-row: auto;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .content-add-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .facts [data-fact-side="left"],
  .facts [data-fact-side="right"] {
    grid-column: auto;
  }

  .map-copy-card,
  .map-panel iframe {
    min-height: 300px;
  }

  .map-link {
    width: 100%;
  }

  .video-panel {
    aspect-ratio: 4 / 3;
  }

  .surroundings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-heading {
    min-height: 0;
  }

  .video-placeholder {
    inset: auto 16px 16px;
  }

  .gallery-item.is-large {
    grid-column: auto;
    grid-row: auto;
  }

  footer {
    flex-direction: column;
  }
}
