/**
 * OffMarket — Premium property detail modal
 * 6-slide horizontal carousel
 */

html.om-modal-open,
body.om-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  html.om-modal-open,
  body.om-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
  }

  /* Hide the global site navbar while a property fiche is open (mobile only). */
  html.om-modal-open .mv-chrome,
  body.om-modal-open .mv-chrome {
    display: none !important;
  }
}

.om-property-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.om-property-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.om-property-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(105%);
  -webkit-backdrop-filter: blur(22px) saturate(105%);
}

.om-property-modal__shell {
  position: relative;
  z-index: 2;
  width: min(96vw, 1660px);
  height: min(88vh, 920px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) 82px;
  border-radius: 38px;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: translate3d(0, 20px, 0) scale(0.985);
  transition: transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.om-property-modal__shell::before,
.om-property-modal__shell::after {
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.om-property-modal.is-open .om-property-modal__shell {
  transform: translate3d(0, 0, 0) scale(1);
}

.om-property-modal__close {
  position: absolute;
  z-index: 50;
  top: 0;
  right: clamp(0.6rem, 1vw, 1rem);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--om-radius-pill);
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #111111;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translate(56%, -96%);
  transition:
    background 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.om-property-modal__close svg,
.om-property-modal__close span {
  color: #111111;
  stroke: #111111;
}

.om-property-modal__close:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #000000;
  transform: translate(56%, -96%) scale(1.04);
}

.om-property-modal__close:focus-visible {
  outline: 2px solid var(--om-focus-ring);
  outline-offset: 3px;
}

.om-property-modal__track::before,
.om-property-modal__track::after,
.om-property-modal__stage::before,
.om-property-modal__stage::after {
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.om-property-modal__stage {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.85rem, 1.1vw, 1.25rem) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
  box-shadow: none !important;
}

.om-property-modal__track {
  height: 100%;
  display: flex;
  gap: clamp(1.35rem, 2vw, 2.2rem);
  background: transparent !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.om-property-modal__slide {
  flex: 0 0 min(86%, 1380px);
  height: 100%;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.995), rgba(248, 247, 245, 0.98)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 46px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  opacity: 0.62;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  contain: layout paint;
  -webkit-font-smoothing: antialiased;
}

.om-property-modal__slide.is-entering {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: none;
}

.om-property-modal__slide.is-leaving {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.om-property-modal__slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Slide 01 — General */
.om-property-modal__slide--general {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: clamp(1.65rem, 2.2vw, 2.5rem);
  padding: clamp(1rem, 1.25vw, 1.35rem);
}

.om-property-modal__media {
  margin: 0;
  height: 100%;
  min-height: 0;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(17, 18, 13, 0.05);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.om-property-modal__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.om-property-modal__content {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  padding: clamp(0.55rem, 0.9vw, 0.9rem) clamp(0.45rem, 0.8vw, 0.8rem);
}

.om-property-modal__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(44, 41, 41, 0.1);
}

.om-property-modal__tags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.om-property-modal__tags span {
  min-height: 28px;
  padding: 0 0.66rem;
  border-radius: var(--om-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  line-height: 1;
  color: rgba(17, 18, 13, 0.72);
  background: rgba(17, 18, 13, 0.045);
  border: 1px solid rgba(17, 18, 13, 0.08);
}

.om-property-modal__tags span:first-child {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 25px;
  color: rgba(17, 18, 13, 0.62);
}

.om-property-modal__tags span:nth-child(2) {
  color: var(--om-ivory);
  background: var(--om-red);
  border-color: var(--om-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.om-property-modal__price {
  display: none;
}

.om-property-modal__selection {
  margin: clamp(1.7rem, 3vh, 2.4rem) 0 0;
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  line-height: 1.2;
  color: rgba(17, 18, 13, 0.5);
}

.om-property-modal__selection span {
  color: rgba(17, 18, 13, 0.42);
}

.om-property-modal__title {
  max-width: 700px;
  margin: 0.8rem 0 0;
  font-family: var(--om-font-heading);
  font-size: clamp(40px, 3.1vw, 62px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: var(--om-letter-tight);
  color: var(--om-graphite);
}

.om-property-modal__subtitle {
  margin: 0.55rem 0 0;
  font-family: var(--om-font-body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.45;
  color: rgba(44, 41, 41, 0.68);
  max-width: 36rem;
}

.om-property-modal__subtitle[hidden],
.om-property-modal__typologies[hidden] {
  display: none !important;
}

.om-property-modal__typologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.om-property-modal__typology {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(86, 84, 73, 0.14);
  background: rgba(86, 84, 73, 0.05);
  color: #565449;
  font-family: var(--om-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.om-property-modal__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.68rem;
  margin-top: clamp(1.4rem, 2.6vh, 1.9rem);
}

.om-property-modal__facts.om-property-modal__facts--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 100%;
}

.om-property-modal__facts.om-property-modal__facts--compact .om-property-modal__fact {
  min-height: 88px;
  height: 100%;
}

.om-property-modal__fact--payment strong {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.2;
  font-weight: 600;
}

.om-property-modal__slide--general .om-property-modal__selection {
  margin-top: 0;
}

.om-property-modal__slide--general .om-property-modal__title {
  margin-top: 0.45rem;
}

.om-property-modal__slide--general .om-property-modal__facts {
  margin-top: clamp(1.1rem, 2vh, 1.5rem);
}

.om-property-modal__fact {
  min-height: 78px;
  padding: 0.9rem 0.95rem;
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 251, 244, 0.26)),
    rgba(17, 18, 13, 0.024);
  border: 1px solid rgba(17, 18, 13, 0.05);
  box-shadow: none;
}

.om-property-modal__fact span {
  display: block;
  margin-bottom: 0.42rem;
  font-family: var(--om-font-body);
  font-size: var(--om-label);
  line-height: 1.15;
  letter-spacing: var(--om-letter-label);
  text-transform: uppercase;
  color: rgba(17, 18, 13, 0.42);
}

.om-property-modal__fact strong {
  display: block;
  font-family: var(--om-font-body);
  font-size: var(--om-body-md);
  line-height: 1.15;
  font-weight: 650;
  color: rgba(17, 18, 13, 0.76);
}

.om-property-modal__description {
  margin: clamp(1.1rem, 2.2vh, 1.5rem) 0 0;
  max-width: 620px;
  font-family: var(--om-font-body);
  font-size: var(--om-body-md);
  line-height: 1.45;
  color: rgba(17, 18, 13, 0.54);
}

.om-property-modal__bottom {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.om-property-modal__bottom-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}

.om-property-modal__bottom-price span {
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  line-height: 1;
  color: rgba(17, 18, 13, 0.42);
}

.om-property-modal__bottom-price strong {
  font-family: var(--om-font-heading);
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--om-graphite);
}

.om-property-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

/* CTAs inherit global om-button / om-cta system */

.om-property-modal__actions .om-cta .om-cta__icon {
  width: 26px;
  height: 26px;
  border-radius: var(--om-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.16);
  font-size: var(--om-body-sm);
  line-height: 1;
}

/* Slide 02 — About */
.om-property-modal__slide--about {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: clamp(1.4rem, 2vw, 2.2rem);
  padding: clamp(1.4rem, 2vw, 2.2rem);
}

.om-property-modal__about-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.om-property-modal__about-copy.is-editorial .om-property-modal__about-kicker,
.om-property-modal__about-copy.is-editorial [data-modal-about-title],
.om-property-modal__about-copy.is-editorial [data-modal-about-description-primary],
.om-property-modal__about-copy.is-editorial [data-modal-about-description-secondary] {
  display: none !important;
}

.om-property-modal__about-copy.is-editorial {
  justify-content: flex-start;
  gap: 0;
}

.om-property-modal__about-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.om-property-modal__about-kicker img {
  width: 76px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
}

.om-property-modal__about-kicker span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  line-height: 1;
  color: rgba(44, 41, 41, 0.4);
}

.om-property-modal__about-kicker strong {
  display: block;
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.2;
  font-weight: 500;
  color: rgba(44, 41, 41, 0.72);
}

.om-property-modal__about-copy h3,
.om-property-modal__about-copy .om-property-modal__about-title {
  max-width: 680px;
  margin: 0;
  font-family: var(--om-font-heading);
  font-size: clamp(38px, 3vw, 58px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: var(--om-letter-tight);
  color: var(--om-graphite);
}

.om-property-modal__about-copy p {
  max-width: 620px;
  margin: 1.35rem 0 0;
  font-family: var(--om-font-body);
  font-size: var(--om-body-md);
  line-height: 1.5;
  color: rgba(44, 41, 41, 0.56);
}

.om-property-modal__about-media {
  margin: 0;
  height: 100%;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
}

.om-property-modal__about-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Slide 03 — Characteristics */
.om-property-modal [hidden] {
  display: none !important;
}

.om-property-modal__slide--characteristics {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding: clamp(1.4rem, 2vw, 2.2rem);
  overflow: auto;
  min-width: 0;
}

.om-property-modal__slide--characteristics .om-property-modal__amenities--hyper {
  align-self: stretch;
}

.om-property-modal__characteristics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: clamp(1rem, 1.4vw, 1.35rem);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.om-property-modal__characteristics-body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.2vw, 1rem);
  min-width: 0;
}

.om-property-modal__characteristics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.2vw, 1.15rem);
}

.om-property-modal__characteristics-grid--villa {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.om-property-modal__characteristic-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(1rem, 1.2vw, 1.2rem) clamp(1rem, 1.15vw, 1.25rem);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 251, 244, 0.92), rgba(255, 255, 255, 0.98)),
    var(--om-white);
  border: 1px solid rgba(216, 207, 188, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 28px rgba(17, 18, 13, 0.04);
}

.om-property-modal__characteristic-block--wide {
  grid-column: 1 / -1;
}

.om-property-modal__characteristic-block--wide .om-property-modal__characteristic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.2vw, 1.25rem);
}

.om-property-modal__characteristic-block--fomo {
  padding: clamp(1.05rem, 1.25vw, 1.3rem);
  background:
    linear-gradient(135deg, rgba(86, 84, 73, 0.1), rgba(86, 84, 73, 0.1)),
    #ffffff;
  border: 1px solid rgba(86, 84, 73, 0.22);
  box-shadow: 0 18px 48px rgba(86, 84, 73, 0.12);
  justify-content: center;
  gap: 0.35rem;
}

.om-property-modal__villa-fomo-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  color: #565449;
  background: rgba(86, 84, 73, 0.08);
  border: 1px solid rgba(86, 84, 73, 0.12);
}

.om-property-modal__villa-fomo-card__eyebrow {
  display: block;
  font-family: var(--om-font-body);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #565449;
}

.om-property-modal__villa-fomo-card__value {
  display: block;
  font-family: var(--om-font-heading);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: var(--om-letter-tight);
  color: var(--om-black);
}

.om-property-modal__villa-fomo-card__meta {
  display: block;
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.35;
  color: rgba(17, 18, 13, 0.58);
}

.om-property-modal__characteristic-block h4 {
  margin: 0 0 0.75rem;
  font-family: var(--om-font-body);
  font-size: var(--om-label);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: var(--om-letter-label);
  text-transform: uppercase;
  color: rgba(17, 18, 13, 0.58);
}

.om-property-modal__characteristic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.om-property-modal__characteristic-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(216, 207, 188, 0.35);
}

.om-property-modal__characteristic-row--muted .om-property-modal__characteristic-label {
  color: rgba(17, 18, 13, 0.62);
  font-weight: 400;
}

.om-property-modal__characteristic-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.om-property-modal__characteristic-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(86, 84, 73, 0.92);
  background: rgba(255, 251, 244, 0.9);
  border: 1px solid rgba(216, 207, 188, 0.45);
  border-radius: 10px;
}

.om-property-modal__characteristic-icon svg,
.om-property-modal__villa-fomo-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.om-property-modal__characteristic-label {
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.35;
  color: var(--om-black);
}

.om-property-modal__characteristics-payment {
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 251, 244, 0.72);
  border: 1px solid rgba(216, 207, 188, 0.45);
}

.om-property-modal__characteristics-payment h4 {
  margin: 0 0 0.4rem;
  font-family: var(--om-font-body);
  font-size: var(--om-label);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: var(--om-letter-label);
  text-transform: uppercase;
  color: rgba(17, 18, 13, 0.5);
}

.om-property-modal__characteristics-payment p {
  margin: 0;
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.45;
  color: rgba(44, 41, 41, 0.72);
  max-width: 62ch;
}

.om-property-modal__characteristics-media {
  margin: 0;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 13, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.om-property-modal__characteristics-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
}

.om-property-modal__amenities {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.om-property-modal__amenities.om-property-modal__amenities--grouped {
  height: auto;
  display: block;
  width: 100%;
  min-width: 0;
  grid-template-columns: none;
  gap: 0;
}

.om-property-modal__amenities.om-property-modal__amenities--villa {
  width: 100%;
  min-width: 0;
}

.om-property-modal__amenity-col {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 251, 244, 0.28)),
    rgba(17, 18, 13, 0.018);
  border: 1px solid rgba(17, 18, 13, 0.04);
  overflow: hidden;
}

.om-property-modal__amenity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 62px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(44, 41, 41, 0.075);
}

.om-property-modal__amenity:last-child {
  border-bottom: 0;
}

.om-property-modal__amenity-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(37, 34, 34, 0.55);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 41, 41, 0.08);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.om-property-modal__amenity-icon::before {
  content: '◇';
  font-size: 12px;
}

.om-property-modal__amenity span.om-property-modal__amenity-label {
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.2;
  color: rgba(44, 41, 41, 0.68);
}

.om-property-modal__amenity-check {
  color: rgba(37, 34, 34, 0.72);
  font-size: var(--om-body-md);
  line-height: 1;
}

.om-property-modal__amenity-image {
  margin: 0.5rem;
  border-radius: 18px;
  overflow: hidden;
  min-height: 120px;
}

.om-property-modal__amenity-image img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: block;
  object-fit: cover;
}

/* Slides 04 & 05 — Galleries */
.om-property-modal__slide--gallery {
  position: relative;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.om-property-modal__gallery {
  height: 100%;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  border-radius: 32px;
  overflow: hidden;
}

.om-property-modal__gallery figure {
  margin: 0;
  overflow: hidden;
}

.om-property-modal__gallery figure:first-child {
  grid-row: 1 / span 2;
}

.om-property-modal__gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.om-property-modal__gallery-card {
  position: absolute;
  left: clamp(1.3rem, 2vw, 2rem);
  bottom: clamp(1.3rem, 2vw, 2rem);
  z-index: 3;
  min-width: 220px;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.om-property-modal__gallery-card span {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  line-height: 1;
  color: rgba(44, 41, 41, 0.42);
}

.om-property-modal__gallery-card strong,
.om-property-modal__gallery-card .om-property-modal__gallery-count {
  display: block;
  margin: 0;
  font-family: var(--om-font-body);
  font-size: var(--om-body-md);
  line-height: 1.1;
  font-weight: 500;
  color: var(--om-graphite);
}

.om-property-modal__gallery-card p {
  margin: 0.2rem 0 0;
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.2;
  color: var(--om-graphite);
}

.om-property-modal__gallery-card button {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  color: var(--om-graphite);
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  cursor: pointer;
}

/* Slide 06 — Layout */
.om-property-modal__slide--layout {
  display: grid;
  grid-template-columns: 36% 64%;
  gap: clamp(1.2rem, 2vw, 2rem);
  padding: clamp(1.6rem, 2.4vw, 2.6rem);
  overflow-y: auto;
}

.om-property-modal__layout-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.om-property-modal__layout-copy h3 {
  margin: 0;
  font-family: var(--om-font-heading);
  font-size: clamp(40px, 3.2vw, 62px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: var(--om-letter-tight);
  color: var(--om-graphite);
}

.om-property-modal__layout-tabs {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.3rem;
  padding: 0.25rem;
  border-radius: var(--om-radius-pill);
  background: rgba(17, 18, 13, 0.045);
}

.om-property-modal__layout-tabs button {
  min-height: 38px;
  padding: 0 1rem;
  border-radius: var(--om-radius-pill);
  border: 0;
  background: transparent;
  color: rgba(44, 41, 41, 0.56);
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  cursor: pointer;
}

.om-property-modal__layout-tabs button.is-active {
  background: rgba(255, 255, 255, 0.82);
  color: var(--om-graphite);
}

.om-property-modal__layout-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.om-property-modal__layout-meta span {
  display: block;
  font-family: var(--om-font-body);
  font-size: var(--om-label);
  color: rgba(17, 18, 13, 0.42);
}

.om-property-modal__layout-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--om-font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--om-graphite);
}

.om-property-modal__layout-copy > div > p {
  max-width: 360px;
  margin: 0;
  font-family: var(--om-font-body);
  font-size: var(--om-small-readable);
  line-height: 1.45;
  color: rgba(44, 41, 41, 0.54);
}

.om-property-modal__plan,
.om-property-modal__plan-frame {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: clamp(0.75rem, 1.2vw, 1.25rem);
  border-radius: 28px;
  overflow: visible;
  background: #ffffff;
  border: 1px solid rgba(17, 18, 13, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.om-property-modal__plan-image,
.om-property-modal__plan img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 100%);
  object-fit: contain;
  object-position: center;
  display: block;
}

.om-property-modal__plan-placeholder {
  margin: 0;
  padding: 2rem;
  font-family: var(--om-font-body);
  font-size: var(--om-body-md);
  line-height: 1.45;
  text-align: center;
  color: rgba(44, 41, 41, 0.48);
}

.om-property-modal__plan-placeholder--premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 28rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 18, 13, 0.08);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.om-property-modal__plan-placeholder-title {
  display: block;
  font-family: var(--om-font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  color: #111111;
}

.om-property-modal__plan-placeholder-copy {
  display: block;
  font-size: var(--om-body-md);
  line-height: 1.5;
  color: rgba(44, 41, 41, 0.62);
}

/* Navigation arrows */
.om-property-modal__arrows {
  position: absolute;
  z-index: 10;
  left: clamp(1.2rem, 2vw, 2rem);
  right: clamp(1.2rem, 2vw, 2rem);
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.om-property-modal__arrow {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border-radius: var(--om-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.1) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #111111 !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 260ms ease,
    background 260ms ease,
    color 260ms ease,
    opacity 260ms ease;
}

.om-property-modal__arrow svg,
.om-property-modal__arrow span {
  color: #111111 !important;
  stroke: #111111 !important;
}

.om-property-modal__arrow:hover:not(:disabled) {
  transform: scale(1.06);
  color: #000000 !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.om-property-modal__arrow:hover:not(:disabled) svg,
.om-property-modal__arrow:hover:not(:disabled) span {
  color: #000000 !important;
  stroke: #000000 !important;
}

.om-property-modal__arrow:disabled {
  opacity: 0.26;
  cursor: default;
  transform: none;
}

.om-property-modal__arrow:focus-visible {
  outline: 2px solid var(--om-focus-ring);
  outline-offset: 3px;
}

/* Bottom tabs */
.om-property-modal__tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 1.4vw, 1.4rem);
  height: 82px;
  padding: 0 clamp(1.5rem, 2vw, 2.2rem) 0.95rem;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  align-items: end;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.om-property-modal__tabs::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.14),
    rgba(0, 0, 0, 0.04),
    rgba(255, 255, 255, 0)
  ) !important;
}

.om-property-modal__tabs button {
  position: relative;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--om-font-body);
  font-size: var(--om-body-sm);
  line-height: 1;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition:
    color 260ms ease,
    opacity 260ms ease;
}

.om-property-modal__tabs button span {
  color: rgba(255, 255, 255, 0.72);
  transition: color 260ms ease;
}

.om-property-modal__tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.36rem;
  height: 2px;
  border-radius: var(--om-radius-pill);
  background: rgba(255, 255, 255, 0.18);
  transition:
    background 220ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.om-property-modal__tabs button.is-active {
  color: #ffffff;
}

.om-property-modal__tabs button.is-active span {
  color: #ffffff;
}

.om-property-modal__tabs button.is-active::after {
  background: #ffffff;
}

.om-property-modal__tabs button:focus-visible {
  outline: 2px solid var(--om-focus-ring);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .om-property-modal__characteristics-layout {
    grid-template-columns: 1fr;
  }

  .om-property-modal__characteristics-media {
    min-height: 210px;
    max-height: 280px;
  }
}

@media (max-width: 767px) {
  .om-property-modal__characteristics-grid,
  .om-property-modal__characteristics-grid--villa {
    grid-template-columns: 1fr;
  }

  .om-property-modal__characteristic-block--wide {
    grid-column: auto;
  }

  .om-property-modal__characteristic-block--wide .om-property-modal__characteristic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .om-property-modal__slide {
    flex-basis: min(88%, 1240px);
  }

  .om-property-modal__title {
    font-size: clamp(36px, 2.8vw, 52px);
  }

  .om-property-modal__facts {
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .om-property-modal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    z-index: 9999;
  }

  .om-property-modal__backdrop {
    background: rgba(17, 18, 13, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .om-property-modal__shell {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    grid-template-rows: unset;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    background: var(--om-white) !important;
    box-shadow: 0 -18px 60px rgba(17, 18, 13, 0.28);
    transform: translate3d(0, 16px, 0);
    opacity: 0;
    transition:
      transform 240ms ease,
      opacity 240ms ease;
  }

  .om-property-modal.is-open .om-property-modal__shell {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  .om-property-modal__close {
    position: absolute;
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: 0.75rem;
    z-index: 40;
    transform: none;
    min-width: 52px;
    min-height: 52px;
    border-radius: 999px;
    background: rgba(255, 251, 244, 0.96);
    color: var(--om-black);
    border: 1px solid rgba(17, 18, 13, 0.1);
    box-shadow: 0 12px 30px rgba(17, 18, 13, 0.16);
  }

  .om-property-modal__close:hover {
    transform: scale(1.04);
  }

  .om-property-modal__stage {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: calc(3.35rem + env(safe-area-inset-top, 0px)) 0 0 !important;
    background: var(--om-white) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .om-property-modal__track {
    height: 100%;
    gap: 0;
  }

  .om-property-modal__slide {
    flex: 0 0 100%;
    height: 100%;
    min-height: 0 !important;
    max-height: 100%;
    contain: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .om-property-modal__slide--general,
  .om-property-modal__slide--about,
  .om-property-modal__slide--layout,
  .om-property-modal__slide--characteristics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
  }

  .om-property-modal__slide--characteristics {
    gap: 0.75rem;
    padding-top: 0.35rem;
  }

  .om-property-modal__slide--layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.35rem;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-copy,
  .om-property-modal__slide--layout .om-property-modal__layout-copy > div {
    display: contents;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-copy h3 {
    order: 1;
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.05;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-tabs {
    order: 2;
    width: 100%;
    display: flex;
    margin-top: 0;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-tabs button {
    flex: 1 1 0;
    min-height: 42px;
    text-align: center;
    justify-content: center;
  }

  .om-property-modal__slide--layout .om-property-modal__plan,
  .om-property-modal__slide--layout .om-property-modal__plan-frame {
    order: 3;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.65rem;
    overflow: visible;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(216, 207, 188, 0.42);
    box-shadow: 0 10px 28px rgba(17, 18, 13, 0.05);
  }

  .om-property-modal__slide--layout .om-property-modal__plan-image,
  .om-property-modal__slide--layout .om-property-modal__plan img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-meta {
    order: 4;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-meta > div {
    min-width: 0;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-meta strong {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    line-height: 1.25;
    word-break: break-word;
  }

  .om-property-modal__slide--layout [data-modal-layout-description] {
    order: 5;
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(17, 18, 13, 0.62);
  }

  .om-property-modal__slide--layout .om-property-modal__actions {
    order: 6;
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .om-property-modal__slide--layout .om-property-modal__actions .om-cta,
  .om-property-modal__slide--layout .om-property-modal__actions .om-button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-body {
    gap: 0.75rem;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-grid--villa {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(216, 207, 188, 0.42);
    box-shadow: 0 12px 32px rgba(17, 18, 13, 0.06);
    overflow: hidden;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block--fomo {
    order: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      'icon eyebrow'
      'icon value'
      'icon meta';
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(86, 84, 73, 0.14);
    box-shadow: none;
  }

  .om-property-modal__amenities--villa .om-property-modal__villa-fomo-card__icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .om-property-modal__amenities--villa .om-property-modal__villa-fomo-card__eyebrow {
    grid-area: eyebrow;
    font-size: 0.62rem;
  }

  .om-property-modal__amenities--villa .om-property-modal__villa-fomo-card__value {
    grid-area: value;
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
  }

  .om-property-modal__amenities--villa .om-property-modal__villa-fomo-card__meta {
    grid-area: meta;
    font-size: 0.82rem;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block--info {
    order: 2;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block--comfort {
    order: 3;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block--privacy {
    order: 4;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block:not(.om-property-modal__characteristic-block--fomo) {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block h4 {
    margin: 0;
    padding: 0.95rem 1rem 0.35rem;
    border-top: 1px solid rgba(216, 207, 188, 0.35);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: rgba(17, 18, 13, 0.5);
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block--info h4 {
    border-top: 0;
    padding-top: 0.85rem;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-block--privacy .om-property-modal__characteristic-list {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-row {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 0.8rem;
    min-height: 58px;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(216, 207, 188, 0.28);
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-row:last-child {
    border-bottom: 0;
    padding-bottom: 0.85rem;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-row--muted {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-row:not(.om-property-modal__characteristic-row--muted)::after {
    content: '✓';
    font-size: 0.95rem;
    line-height: 1;
    color: rgba(17, 18, 13, 0.42);
    justify-self: end;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--om-white);
    border-color: rgba(216, 207, 188, 0.5);
    color: rgba(17, 18, 13, 0.72);
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristic-label {
    font-size: 0.94rem;
    line-height: 1.35;
    color: var(--om-black);
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-payment {
    margin: 0;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(216, 207, 188, 0.42);
    box-shadow: 0 10px 28px rgba(17, 18, 13, 0.05);
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-payment h4 {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-payment p {
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: none;
  }

  .om-property-modal__amenities--villa .om-property-modal__characteristics-media {
    display: none;
  }

  .om-property-modal__amenities--hyper .om-property-modal__hyper-media {
    max-height: 38svh;
  }

  .om-property-modal__amenities--hyper .om-property-modal__hyper-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .om-property-modal__media,
  .om-property-modal__about-media {
    width: 100%;
    height: clamp(220px, 30vh, 280px);
    min-height: 220px;
    max-height: 280px;
    flex-shrink: 0;
    border-radius: 20px;
  }

  .om-property-modal__media img,
  .om-property-modal__about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .om-property-modal__title,
  .om-property-modal__about-copy h3,
  .om-property-modal__about-copy .om-property-modal__about-title {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .om-property-modal__description,
  .om-property-modal__about-copy p,
  .om-property-modal__subtitle {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }

  .om-property-modal__fact span,
  .om-property-modal__selection,
  .om-property-modal__bottom-price span {
    font-size: 12px;
  }

  .om-property-modal__fact strong {
    font-size: 15px;
  }

  .om-property-modal__content {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0;
    flex: 1 1 auto;
  }

  .om-property-modal__facts,
  .om-property-modal__facts.om-property-modal__facts--compact,
  .om-property-modal__amenities:not(.om-property-modal__amenities--grouped),
  .om-property-modal__layout-meta {
    grid-template-columns: 1fr;
  }

  .om-property-modal__characteristics-grid {
    grid-template-columns: 1fr;
  }

  .om-property-modal__plan,
  .om-property-modal__plan-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .om-property-modal__plan-image,
  .om-property-modal__plan img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  .om-property-modal__tabs {
    position: relative;
    flex: 0 0 auto;
    z-index: 30;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
    height: auto;
    min-height: 76px;
    grid-template-columns: unset;
    align-items: stretch;
    padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(17, 18, 13, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-overflow-scrolling: touch;
  }

  .om-property-modal__tabs::-webkit-scrollbar {
    display: none;
  }

  .om-property-modal__tabs button {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 46px;
    height: auto;
    padding: 0 0.8rem 0.5rem;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.2;
    color: rgba(255, 251, 244, 0.62);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .om-property-modal__tabs button:first-child {
    margin-left: 0.85rem;
  }

  .om-property-modal__tabs button:last-child {
    margin-right: 0.85rem;
  }

  .om-property-modal__tabs button span {
    flex-shrink: 0;
  }

  .om-property-modal__tabs::before {
    display: none;
  }

  .om-property-modal__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .om-property-modal__gallery figure {
    height: 220px;
  }

  .om-property-modal__gallery figure:first-child {
    grid-row: auto;
    height: 260px;
  }

  .om-property-modal__arrows {
    display: none !important;
  }

  .om-property-modal__tabs button.is-active,
  .om-property-modal__tabs button.is-active span {
    color: var(--om-white);
  }

  .om-property-modal__bottom {
    position: static;
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    background: transparent;
    z-index: auto;
  }

  .om-property-modal__bottom-price {
    justify-content: space-between;
    width: 100%;
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .om-property-modal__bottom-price strong {
    font-size: clamp(1.5rem, 6vw, 2rem);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .om-property-modal__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .om-property-modal__actions .om-cta,
  .om-property-modal__actions .om-button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .om-property-modal {
    align-items: end;
  }

  .om-property-modal__shell {
    width: 100%;
    height: 94vh;
    border-radius: 30px 30px 0 0;
    grid-template-rows: 1fr auto;
  }

  .om-property-modal__stage {
    overflow: hidden;
    padding: 1rem;
  }

  .om-property-modal__track {
    height: auto;
    gap: 1rem;
  }

  .om-property-modal__slide {
    flex: 0 0 100%;
    height: auto;
    min-height: 74vh;
    opacity: 1;
  }

  .om-property-modal__arrows {
    display: none;
  }

  .om-property-modal__slide--general,
  .om-property-modal__slide--about,
  .om-property-modal__slide--layout {
    grid-template-columns: 1fr;
  }

  .om-property-modal__media,
  .om-property-modal__about-media {
    height: 320px;
  }

  .om-property-modal__facts,
  .om-property-modal__amenities:not(.om-property-modal__amenities--grouped),
  .om-property-modal__layout-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-property-modal__characteristics-grid {
    grid-template-columns: 1fr;
  }

  .om-property-modal__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .om-property-modal__gallery figure {
    height: 220px;
  }

  .om-property-modal__gallery figure:first-child {
    grid-row: auto;
    height: 280px;
  }

  .om-property-modal__tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    height: auto;
    min-height: 72px;
    grid-template-columns: unset;
    -webkit-overflow-scrolling: touch;
  }

  .om-property-modal__tabs button {
    flex: 0 0 auto;
    min-width: 128px;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .om-property-modal__facts,
  .om-property-modal__amenities:not(.om-property-modal__amenities--grouped) {
    grid-template-columns: 1fr;
  }

  .om-property-modal__characteristics-grid {
    grid-template-columns: 1fr;
  }

  .om-property-modal__layout-meta {
    grid-template-columns: 1fr;
  }

  .om-property-modal__slide--layout .om-property-modal__layout-meta {
    grid-template-columns: 1fr;
  }
}

/* Appartement fiche — blur all property images (modal + detail page). */
.om-property-modal.is-hyper-theme img,
.om-property-detail-page.is-hyper-theme img {
  filter: blur(5px) saturate(1.04);
  transform: scale(1.08);
}

.om-property-modal.is-hyper-theme .om-button--dark {
  background: #565449 !important;
  border-color: #565449 !important;
}

.om-property-modal.is-hyper-theme .om-button--dark:hover {
  background: #454238 !important;
  border-color: #454238 !important;
}

.om-property-modal.is-hyper-theme .om-property-modal__tabs button.is-active {
  color: #565449;
}

.om-property-modal.is-hyper-theme .om-property-modal__tabs button.is-active span {
  color: #565449;
}

.om-property-modal__about-editorial {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.om-property-modal__about-editorial[hidden] {
  display: none !important;
}

.om-property-modal__about-block {
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 18, 13, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.om-property-modal__about-block h4 {
  margin: 0 0 0.45rem;
  font-family: var(--om-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #565449;
}

.om-property-modal__about-block p {
  margin: 0;
  font-size: var(--om-body-md);
  line-height: 1.55;
  color: rgba(44, 41, 41, 0.78);
}

.om-property-modal__about-highlight {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(86, 84, 73, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(86, 84, 73, 0.12);
}

.om-property-modal__about-highlight strong {
  font-family: var(--om-font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1;
  color: var(--om-graphite);
}

.om-property-modal__about-highlight span {
  font-size: var(--om-body-md);
  line-height: 1.45;
  color: rgba(44, 41, 41, 0.72);
}

.om-property-modal__amenities--hyper {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  grid-template-columns: none;
  gap: 0;
}

.om-property-modal__hyper-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.om-property-modal__hyper-body {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.om-property-modal__hyper-title {
  margin: 0;
  font-family: var(--om-font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  font-weight: 500;
  color: var(--om-graphite);
}

.om-property-modal__hyper-intro {
  margin: 0;
  max-width: 42rem;
  font-size: var(--om-body-md);
  line-height: 1.55;
  color: rgba(44, 41, 41, 0.72);
}

.om-property-modal__hyper-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.om-property-modal__hyper-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 18, 13, 0.06);
}

.om-property-modal__hyper-feature h4 {
  margin: 0 0 0.35rem;
  font-size: 15px;
  line-height: 1.25;
  color: var(--om-graphite);
}

.om-property-modal__hyper-feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(44, 41, 41, 0.68);
}

.om-property-modal__hyper-feature-icon,
.om-property-modal__hyper-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(86, 84, 73, 0.07);
  color: #565449;
  flex-shrink: 0;
}

.om-property-modal__hyper-feature-icon svg,
.om-property-modal__hyper-fact-icon svg {
  width: 20px;
  height: 20px;
}

.om-property-modal__hyper-facts {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 18, 13, 0.06);
}

.om-property-modal__hyper-facts h4 {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #565449;
}

.om-property-modal__hyper-facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.om-property-modal__hyper-fact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(44, 41, 41, 0.78);
}

.om-property-modal__hyper-payment {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(86, 84, 73, 0.04);
  border: 1px solid rgba(86, 84, 73, 0.1);
}

.om-property-modal__hyper-payment h4 {
  margin: 0 0 0.4rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #565449;
}

.om-property-modal__hyper-payment p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(44, 41, 41, 0.76);
}

.om-property-modal__hyper-media {
  margin: 0;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: min(32vh, 260px);
  border-radius: 22px;
  overflow: hidden;
  background: #f4f1ec;
  border: 1px solid rgba(17, 18, 13, 0.06);
}

.om-property-modal__hyper-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: min(32vh, 260px);
  object-fit: cover;
  display: block;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general {
  min-height: 0;
  overflow: hidden;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 0;
  grid-template-rows: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__selection {
  margin-top: 0.65rem;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__title {
  margin-top: 0.35rem;
  font-size: clamp(30px, 2.35vw, 46px);
  line-height: 1.04;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__subtitle {
  margin-top: 0.45rem;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__typologies {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__facts {
  margin-top: 0.75rem;
  flex-shrink: 0;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__description {
  margin-top: 0.75rem;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
  flex: 0 1 auto;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__bottom {
  flex-shrink: 0;
  margin-top: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
  align-self: stretch;
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 247, 245, 0) 0%,
    rgba(248, 247, 245, 0.94) 16%,
    #f8f7f5 100%
  );
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__bottom-price {
  display: none;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__actions {
  width: 100%;
  flex-wrap: nowrap;
}

.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__actions .om-cta,
.om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__actions .om-button {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

@media (max-width: 1100px) {
  .om-property-modal__hyper-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-property-modal__hyper-facts-list {
    grid-template-columns: 1fr;
  }

  .om-property-modal__hyper-media {
    min-height: 200px;
    max-height: 280px;
  }
}

@media (max-width: 767px) {
  .om-property-modal__hyper-features,
  .om-property-modal__hyper-facts-list {
    grid-template-columns: 1fr;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__content {
    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__title {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__bottom {
    position: static;
    bottom: auto;
    margin-top: 0.75rem;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__bottom-price {
    display: flex;
    white-space: normal;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__actions {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }

  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__actions .om-cta,
  .om-property-modal.is-hyper-theme .om-property-modal__slide--general .om-property-modal__actions .om-button {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-property-modal,
  .om-property-modal__shell,
  .om-property-modal__track,
  .om-property-modal__slide {
    transition: none;
  }

  .om-property-modal__slide.is-entering,
  .om-property-modal__slide.is-leaving {
    opacity: 1;
    transform: none;
  }
}
