.ligeis-property {
  --immo-blue: var(--wp--preset--color--brand-primary, #3b61e7);
  --immo-blue-dark: var(--wp--preset--color--brand-primary-hover, #05207f);
  --immo-blue-light: var(--wp--preset--color--bg-secondary, #f4f6ff);
  --immo-border: var(--wp--preset--color--brand-light-blue, #adc2fa);
  --immo-text: var(--wp--preset--color--text-primary, #1d1d1b);
  --immo-text-secondary: var(--wp--preset--color--text-secondary, #4b5563);
  --immo-surface: var(--wp--preset--color--text-inverse, #fff);
  --immo-surface-tertiary: var(--wp--preset--color--bg-tertiary, #f3f4f6);
  --immo-border-default: var(--wp--preset--color--border-default, #e5e7eb);
  --immo-border-strong: var(--wp--preset--color--border-strong, #d1d5db);
  --immo-success: var(--wp--preset--color--state-success, #16a34a);
  --immo-error: var(--wp--preset--color--state-error, #dc2626);
  color: var(--immo-text);
  background: var(--immo-surface);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.ligeis-property *,
.ligeis-property *::before,
.ligeis-property *::after {
  box-sizing: border-box;
}

.ligeis-property__container {
  width: min(100% - 64px, 1280px);
  margin-inline: auto;
}

.ligeis-property h1,
.ligeis-property h2,
.ligeis-property h3 {
  font-family: "Red Hat Display", sans-serif;
  color: var(--immo-text);
}

.ligeis-property h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 900;
  line-height: 1.1;
}

.ligeis-property__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 64px;
  color: var(--immo-text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ligeis-property__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ligeis-property__header {
  margin: 20px 0 24px;
}

.ligeis-property__reference {
  margin: 0 0 10px;
  color: var(--immo-blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.ligeis-property__header h1 {
  margin: 0;
  font-size: clamp(38px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.ligeis-property__availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.ligeis-property__availability span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--immo-success);
}

.ligeis-property__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 32px;
  align-items: start;
}

.ligeis-property-gallery__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  background: var(--immo-surface-tertiary);
}

.ligeis-property-gallery__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--gallery-bg);
  background-position: center;
  background-size: cover;
  filter: blur(22px);
  opacity: 0.32;
  transform: scale(1.08);
}

.ligeis-property-gallery__main > img:not(.ligeis-property-watermark) {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ligeis-property-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  opacity: var(--ligeis-watermark-opacity, 0.4);
  color: #fff;
  font: 900 clamp(32px, 6vw, 82px)/1 "Red Hat Display", sans-serif;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.38);
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.ligeis-property-watermark.is-image {
  width: min(42%, 360px);
  height: auto;
  max-height: 42%;
  object-fit: contain;
  filter: drop-shadow(0 3px 24px rgba(0, 0, 0, 0.38));
}

.ligeis-property-gallery__placeholder,
.ligeis-property-card__media:empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--immo-surface-tertiary) 0 49.5%, var(--immo-border-strong) 50% 50.5%, var(--immo-surface-tertiary) 51%);
}

.ligeis-property-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--immo-surface);
  color: var(--immo-blue);
  transform: translateY(-50%);
  cursor: pointer;
}

.ligeis-property-gallery__arrow.is-prev { left: 16px; }
.ligeis-property-gallery__arrow.is-next { right: 16px; }
.ligeis-property-gallery__arrow.is-prev svg { transform: rotate(180deg); }

.ligeis-property-gallery__arrow svg {
  width: 24px;
  height: 24px;
}

.ligeis-property-gallery__thumb-slider {
  margin-top: 16px;
}

.ligeis-property-gallery__thumb-viewport {
  overflow: auto hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.ligeis-property-gallery__thumb-viewport::-webkit-scrollbar { display: none; }

.ligeis-property-gallery__thumbs {
  display: flex;
  gap: 16px;
}

.ligeis-property-gallery__thumbs button {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  aspect-ratio: 1.8 / 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--immo-surface-tertiary);
  cursor: pointer;
  scroll-snap-align: start;
}

.ligeis-property-gallery__thumbs button.is-active {
  border-color: var(--immo-blue);
}

.ligeis-property-gallery__thumbs img:not(.ligeis-property-watermark) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ligeis-property-gallery__thumbs .ligeis-property-watermark {
  font-size: clamp(18px, 2.5vw, 34px);
}

.ligeis-property-gallery__thumbs .ligeis-property-watermark.is-image {
  width: min(50%, 180px);
  max-height: 50%;
}

.ligeis-property__aside {
  display: grid;
  gap: 20px;
}

.ligeis-property-price-card,
.ligeis-property-contact-card {
  border: 1px solid var(--immo-border);
  border-radius: 20px;
  background: var(--immo-surface);
  padding: 24px;
}

.ligeis-property-price-card > div {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--immo-border);
}

.ligeis-property-price-card > div + div { padding-top: 18px; }
.ligeis-property-price-card > div:last-child { padding-bottom: 0; border-bottom: 0; }

.ligeis-property-price-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ligeis-property-price-card strong {
  display: block;
  color: var(--immo-blue-dark);
  font-family: "Red Hat Display", sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.ligeis-property-price-card small { font-size: 13px; }

.ligeis-property-contact-card {
  display: grid;
  gap: 18px;
  background: var(--immo-blue-light);
}

.ligeis-property-contact-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--immo-blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.ligeis-property-contact-card__phone span {
  display: inline-flex;
}

.ligeis-property-contact-card__phone svg {
  width: 24px;
  height: 24px;
}

.ligeis-property-contact-card .wp-block-button { margin: 0; }

.ligeis-property-share {
  position: relative;
  display: grid;
  gap: 10px;
}

.ligeis-property-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--immo-border);
  border-radius: 10px;
  background: #fff;
  color: var(--immo-blue);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ligeis-property-share__button svg {
  width: 20px;
  height: 20px;
}

.ligeis-property-share__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--immo-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.ligeis-property-share__menu[hidden] {
  display: none;
}

.ligeis-property-share__menu a,
.ligeis-property-share__menu button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--immo-border);
  border-radius: 9px;
  background: var(--immo-blue-light);
  color: var(--immo-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ligeis-property__details {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 64px;
  margin-top: 72px;
}

.ligeis-property__description h2 small {
  margin-left: 10px;
  color: var(--immo-blue);
  font: 800 13px/1 "Plus Jakarta Sans", sans-serif;
  text-transform: uppercase;
}

.ligeis-property__description > div {
  color: var(--immo-text);
  font-size: 16px;
  line-height: 1.4;
}

.ligeis-property__description > div p:first-child { margin-top: 0; }

.ligeis-property-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ligeis-property-features__grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--immo-border);
  border-radius: 16px;
}

.ligeis-property-features__grid span {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--immo-blue-light);
  color: var(--immo-blue);
}

.ligeis-property-features__grid svg { width: 22px; height: 22px; overflow: visible; }

.ligeis-property-features__grid strong {
  font-size: 16px;
  line-height: 1.15;
}

.ligeis-property-energy {
  margin-top: 48px;
}

.ligeis-property-energy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ligeis-property-energy-card {
  --energy-color: #94c11f;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--immo-border);
  border-radius: 16px;
}

.ligeis-property-energy-card.is-ges { --energy-color: #8b5aa5; }

.ligeis-property-energy-card > span {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
}

.ligeis-property-energy-card__score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ligeis-property-energy-card__score strong {
  color: var(--immo-text);
  font: 900 28px/1 "Red Hat Display", sans-serif;
}

.ligeis-property-energy-card__score small { color: var(--immo-text); font-size: 10px; font-weight: 700; }

.ligeis-property-energy-card__scale {
  position: relative;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--immo-border-default);
}

.ligeis-property-energy-card.is-ges .ligeis-property-energy-card__scale {
  background: var(--immo-border-default);
}

.ligeis-property-energy-card__scale i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--energy-color);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.ligeis-property-energy-card.is-visible .ligeis-property-energy-card__scale i { width: var(--energy-progress); }

.ligeis-property__contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
  margin: 96px 0;
}

.ligeis-property-form > p {
  max-width: 520px;
  margin: -12px 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.ligeis-property-form > p a { color: var(--immo-blue); text-decoration: none; }

.ligeis-property-form form { display: grid; gap: 14px; }

.ligeis-property-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ligeis-property-form label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ligeis-property-form input,
.ligeis-property-form select,
.ligeis-property-form textarea {
  width: 100%;
  border: 1px solid var(--immo-border);
  border-radius: 8px;
  background: var(--immo-surface);
  padding: 12px 14px;
  color: var(--immo-text);
  font: 500 15px/1.4 "Plus Jakarta Sans", sans-serif;
}

.ligeis-property-form textarea { resize: vertical; }

.ligeis-property-form__consent {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.4;
  text-transform: none !important;
}

.ligeis-property-form__consent input { width: auto; margin-top: 2px; }
.ligeis-property-form__honey { position: absolute; left: -9999px; }

.ligeis-property-form__notice {
  margin: 0 0 16px !important;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px !important;
}

.ligeis-property-form__notice.is-success { background: color-mix(in srgb, var(--immo-success) 12%, var(--immo-surface)); color: var(--immo-success); }
.ligeis-property-form__notice.is-error { background: color-mix(in srgb, var(--immo-error) 12%, var(--immo-surface)); color: var(--immo-error); }

.ligeis-property-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--immo-surface-tertiary);
}

.ligeis-property-map__canvas {
  width: 100%;
  height: 520px;
  min-height: 520px;
  z-index: 0;
}

.ligeis-property-map__canvas.is-error {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--immo-error);
  text-align: center;
}

.ligeis-property-map__canvas.is-error::after {
  content: attr(data-map-error);
}

.ligeis-property-map__fallback {
  display: grid;
  place-content: center;
  min-height: 520px;
  text-align: center;
}

.ligeis-property-map .leaflet-control-attribution {
  font-size: 10px;
}

.ligeis-property-related {
  padding: 96px 0;
  background: var(--immo-blue-light);
}

.ligeis-property-related h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.ligeis-property-related mark {
  background: transparent;
  color: var(--immo-blue);
}

.ligeis-property-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ligeis-property-related__action { display: table; margin: 32px auto 0; }

@media (max-width: 1024px) {
  .ligeis-property__hero { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .ligeis-property__details { gap: 32px; }
  .ligeis-property__contact-section { gap: 32px; }
  .ligeis-property-features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .ligeis-property__container { width: min(100% - 32px, 1280px); }
  .ligeis-property__breadcrumb { padding-top: 24px; font-size: 9px; }
  .ligeis-property__header { margin-top: 14px; }
  .ligeis-property__header h1 { font-size: 36px; }
  .ligeis-property__reference { font-size: 11px; }
  .ligeis-property__availability { font-size: 11px; }

  .ligeis-property__hero { display: flex; flex-direction: column; gap: 16px; }
  .ligeis-property-gallery { width: 100%; }
  .ligeis-property-gallery__main { aspect-ratio: 1.8 / 1; border-radius: 12px; }
  .ligeis-property-gallery__arrow { width: 36px; height: 36px; font-size: 26px; }
  .ligeis-property-gallery__arrow.is-prev { left: 8px; }
  .ligeis-property-gallery__arrow.is-next { right: 8px; }
  .ligeis-property-gallery__thumb-slider { margin-top: 8px; }
  .ligeis-property-gallery__thumbs { gap: 8px; }
  .ligeis-property-gallery__thumbs button { flex-basis: calc((100% - 24px) / 4); border-radius: 8px; }
  .ligeis-property__aside { width: 100%; gap: 12px; }
  .ligeis-property-price-card,
  .ligeis-property-contact-card { border-radius: 12px; padding: 18px; }
  .ligeis-property-price-card strong { font-size: 26px; }

  .ligeis-property__details { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
  .ligeis-property-features { order: -1; }
  .ligeis-property h2 { margin-bottom: 16px; font-size: 28px; }
  .ligeis-property-features__grid { gap: 8px; }
  .ligeis-property-features__grid > div { min-height: 52px; padding: 8px; border-radius: 10px; }
  .ligeis-property-features__grid span { flex-basis: 32px; width: 32px; height: 32px; }
  .ligeis-property-features__grid svg { width: 18px; height: 18px; }
  .ligeis-property-features__grid strong { font-size: 15px; }
  .ligeis-property__description h2 small { display: block; margin: 8px 0 0; }
  .ligeis-property__description > div { font-size: 14px; }
  .ligeis-property-energy { margin-top: 36px; }
  .ligeis-property-energy__grid { grid-template-columns: 1fr; }

  .ligeis-property__contact-section { display: flex; flex-direction: column; gap: 32px; margin: 48px 0; }
  .ligeis-property-map { order: -1; width: 100%; min-height: 360px; margin-left: 0; }
  .ligeis-property-map__canvas,
  .ligeis-property-map__fallback { height: 360px; min-height: 360px; }
  .ligeis-property-form__row { grid-template-columns: 1fr; }
  .ligeis-property-form > p { font-size: 16px; }

  .ligeis-property-related { padding: 48px 0; }
  .ligeis-property-related h2 { font-size: 34px; }
  .ligeis-property-related__grid { grid-template-columns: 1fr; gap: 16px; }
}
