.rhs-property-details .rhs-property-gallery--carousel {
  display: block;
  margin: 0;
}

.rhs-property-gallery__stage {
  position: relative;
}

.rhs-property-details
  .rhs-property-gallery--carousel
  .rhs-property-gallery__viewport {
  display: flex;
  overflow-x: auto;
  border: 1px solid rgb(11 52 66 / 12%);
  border-radius: var(--vm-card-radius, 1rem);
  background: #e9e5dc;
  box-shadow: 0 1.25rem 3rem rgb(11 52 66 / 13%);
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rhs-property-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.rhs-property-gallery__viewport:focus-visible {
  outline: 3px solid var(--vm-action-color, #d99e82);
  outline-offset: 3px;
}

.rhs-property-details
  .rhs-property-gallery--carousel
  .rhs-property-gallery__slide,
.rhs-property-details
  .rhs-property-gallery--carousel
  .rhs-property-gallery__slide:first-child {
  display: block;
  min-width: 100%;
  flex: 0 0 100%;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  aspect-ratio: 16 / 10;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.rhs-property-gallery__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.rhs-property-gallery__slide a:focus-visible {
  outline: 4px solid var(--vm-action-color, #d99e82);
  outline-offset: -6px;
}

.rhs-property-details
  .rhs-property-gallery--carousel
  .rhs-property-gallery__slide
  img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
}

.rhs-property-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0 0 0.15rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 50%;
  background: rgb(11 52 66 / 82%);
  box-shadow: 0 0.4rem 1.2rem rgb(0 0 0 / 20%);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.rhs-property-gallery__arrow--previous {
  left: 1rem;
}

.rhs-property-gallery__arrow--next {
  right: 1rem;
}

.rhs-property-gallery__arrow:hover,
.rhs-property-gallery__arrow:focus-visible {
  background: var(--wp--preset--color--mare, #176b87);
  transform: translateY(-50%) scale(1.04);
}

.rhs-property-gallery__arrow:focus-visible {
  outline: 3px solid var(--vm-action-color, #d99e82);
  outline-offset: 3px;
}

.rhs-property-gallery__arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.rhs-property-gallery__counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgb(11 52 66 / 82%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.rhs-property-gallery__thumbnails {
  display: flex;
  overflow-x: auto;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.2rem 0.2rem 0.55rem;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgb(11 52 66 / 25%) transparent;
}

.rhs-property-gallery__thumbnails button {
  width: 6.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 0.65rem;
  background: #e9e5dc;
  cursor: pointer;
  opacity: 0.65;
  transition:
    border-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.rhs-property-gallery__thumbnails button:hover,
.rhs-property-gallery__thumbnails button:focus-visible,
.rhs-property-gallery__thumbnails button[aria-current="true"] {
  border-color: var(--vm-action-color, #d99e82);
  opacity: 1;
  transform: translateY(-0.1rem);
}

.rhs-property-gallery__thumbnails button:focus-visible {
  outline: 2px solid var(--wp--preset--color--mare, #176b87);
  outline-offset: 2px;
}

.rhs-property-details
  .rhs-property-gallery__thumbnails
  button
  img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
}

body.rhs-gallery-lightbox-open {
  overflow: hidden;
}

.rhs-property-lightbox[hidden] {
  display: none;
}

.rhs-property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  box-sizing: border-box;
  min-width: 100vw;
  min-height: 100dvh;
  padding: 3.75rem 5.5rem 2rem;
  place-items: center;
  background: rgb(0 0 0 / 96%);
  color: #fff;
  animation: rhs-lightbox-fade-in 180ms ease-out;
  isolation: isolate;
  overscroll-behavior: contain;
}

.rhs-property-lightbox__figure {
  display: grid;
  max-width: 100%;
  max-height: calc(100dvh - 5.75rem);
  gap: 0.75rem;
  justify-items: center;
  margin: 0;
}

.rhs-property-lightbox__image {
  display: block;
  width: auto;
  max-width: calc(100vw - 11rem);
  height: auto;
  max-height: calc(100dvh - 8.5rem);
  border-radius: 0.2rem;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 45%);
  object-fit: contain;
}

.rhs-property-lightbox__caption {
  max-width: min(62rem, calc(100vw - 4rem));
  color: rgb(255 255 255 / 88%);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.rhs-property-lightbox__counter {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 2;
  color: rgb(255 255 255 / 72%);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rhs-property-lightbox__close,
.rhs-property-lightbox__arrow {
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 72%);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.rhs-property-lightbox__close {
  position: absolute;
  top: 0.55rem;
  right: 0.9rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  font-size: 2.3rem;
  font-weight: 200;
}

.rhs-property-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3.5rem;
  height: 4.5rem;
  font-size: 3.3rem;
  font-weight: 200;
  transform: translateY(-50%);
}

.rhs-property-lightbox__arrow--previous {
  left: 0.65rem;
}

.rhs-property-lightbox__arrow--next {
  right: 0.65rem;
}

.rhs-property-lightbox__close:hover,
.rhs-property-lightbox__close:focus-visible,
.rhs-property-lightbox__arrow:hover,
.rhs-property-lightbox__arrow:focus-visible {
  color: #fff;
}

.rhs-property-lightbox__close:hover,
.rhs-property-lightbox__close:focus-visible {
  transform: scale(1.08);
}

.rhs-property-lightbox__arrow:hover,
.rhs-property-lightbox__arrow:focus-visible {
  transform: translateY(-50%) scale(1.08);
}

.rhs-property-lightbox__close:focus-visible,
.rhs-property-lightbox__arrow:focus-visible {
  border-radius: 0.35rem;
  outline: 2px solid var(--vm-action-color, #d99e82);
  outline-offset: 2px;
}

@keyframes rhs-lightbox-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.rhs-property-summary {
  margin-block: 0;
}

.rhs-property-details .rhs-property-facts {
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.rhs-property-details
  .rhs-property-facts
  .rhs-property-fact {
  min-width: 0;
  min-height: 6.5rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid rgb(11 52 66 / 11%);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 0.55rem 1.5rem rgb(11 52 66 / 6%);
}

.rhs-property-details
  .rhs-property-facts
  .rhs-property-fact.is-wide {
  grid-column: span 2;
}

.rhs-property-details
  .rhs-property-facts
  .rhs-property-fact--address {
  grid-column: span 3;
}

.rhs-property-details
  .rhs-property-facts
  .rhs-property-fact--features {
  grid-column: 1 / -1;
}

.rhs-property-details
  .rhs-property-facts
  .rhs-property-fact--address {
  border-color: rgb(217 158 130 / 38%);
  background: #fcf5f1;
}

.rhs-property-details
  .rhs-property-facts
  .rhs-property-fact--features {
  border-color: rgb(23 107 135 / 20%);
  background: rgb(23 107 135 / 6%);
}

.rhs-property-details .rhs-property-facts dt {
  color: var(--vm-accent, #c4493d);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.rhs-property-details .rhs-property-facts dd {
  overflow-wrap: anywhere;
  margin: 0.4rem 0 0;
  color: var(--wp--preset--color--mare-scuro, #0b3442);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  font-weight: 750;
  line-height: 1.35;
}

.rhs-property-floor-plans,
.rhs-property-map,
.rhs-property-video,
.rhs-property-description {
  margin-block: 0;
}

.rhs-property-details > .rhs-property-details__price,
.rhs-property-details > .rhs-property-gallery--carousel,
.rhs-property-details > .rhs-property-video,
.rhs-property-details > .rhs-property-summary,
.rhs-property-details > .rhs-property-description,
.rhs-property-details > .rhs-property-map,
.rhs-property-details > .rhs-property-floor-plans {
  margin-block: 0;
}

.rhs-property-details
  > :is(
    .rhs-property-details__price,
    .rhs-property-gallery--carousel,
    .rhs-property-video,
    .rhs-property-summary,
    .rhs-property-description,
    .rhs-property-map,
    .rhs-property-floor-plans
  )
  + :is(
    .rhs-property-details__price,
    .rhs-property-gallery--carousel,
    .rhs-property-video,
    .rhs-property-summary,
    .rhs-property-description,
    .rhs-property-map,
    .rhs-property-floor-plans
  ) {
  margin-top: var(--vm-property-content-spacing, 2rem);
}

.rhs-property-description {
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid rgb(11 52 66 / 12%);
  border-radius: var(--vm-card-radius, 1rem);
  background:
    linear-gradient(135deg, rgb(243 238 229 / 78%), #fff 48%);
  box-shadow: 0 1rem 2.75rem rgb(11 52 66 / 8%);
}

.rhs-property-description__content {
  max-width: 74ch;
  color: var(--wp--preset--color--mare-scuro, #0b3442);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  line-height: 1.78;
}

.rhs-property-description__content > :first-child {
  margin-top: 0;
}

.rhs-property-description__content > :last-child {
  margin-bottom: 0;
}

.rhs-property-description__content p,
.rhs-property-description__content ul,
.rhs-property-description__content ol,
.rhs-property-description__content blockquote {
  margin-block: 0 1.15em;
}

.rhs-property-description__content strong,
.rhs-property-description__content b {
  color: #082a36;
  font-weight: 800 !important;
}

.rhs-property-description__content a {
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.rhs-property-description__content ul,
.rhs-property-description__content ol {
  padding-left: 1.35em;
}

.rhs-property-description__content blockquote {
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 0.25rem solid var(--vm-action-color, #d99e82);
  color: rgb(11 52 66 / 78%);
}

.rhs-property-media-section__header {
  margin-bottom: 1.25rem;
}

.rhs-property-media-section__header p {
  margin: 0 0 0.35rem;
  color: var(--wp--preset--color--mare, #176b87);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rhs-property-media-section__header h2 {
  margin: 0;
  color: var(--wp--preset--color--mare-scuro, #0b3442);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.rhs-property-floor-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rhs-property-floor-plan {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(11 52 66 / 12%);
  border-radius: var(--vm-card-radius, 1rem);
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(11 52 66 / 8%);
}

.rhs-property-floor-plan--image a {
  display: block;
  overflow: hidden;
  background: #f4f1ea;
}

.rhs-property-floor-plan--image img {
  display: block;
  width: 100%;
  height: clamp(14rem, 24vw, 21rem);
  object-fit: contain;
  transition: transform 220ms ease;
}

.rhs-property-floor-plan--image a:hover img,
.rhs-property-floor-plan--image a:focus-visible img {
  transform: scale(1.02);
}

.rhs-property-floor-plan--image a:focus-visible,
.rhs-property-floor-plan--pdf:focus-visible,
.rhs-property-video__external a:focus-visible {
  outline: 3px solid var(--vm-action-color, #d99e82);
  outline-offset: 3px;
}

.rhs-property-floor-plan--image figcaption {
  padding: 0.8rem 1rem;
  color: var(--wp--preset--color--mare-scuro, #0b3442);
  font-size: 0.82rem;
  font-weight: 750;
}

.rhs-property-floor-plan--pdf {
  display: grid;
  min-height: 9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  color: var(--wp--preset--color--mare-scuro, #0b3442);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.rhs-property-floor-plan--pdf:hover {
  box-shadow: 0 1rem 2.5rem rgb(11 52 66 / 14%);
  transform: translateY(-0.12rem);
}

.rhs-property-floor-plan--pdf > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.rhs-property-floor-plan--pdf strong,
.rhs-property-floor-plan--pdf small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhs-property-floor-plan--pdf small {
  color: rgb(11 52 66 / 65%);
}

.rhs-property-floor-plan__pdf-icon {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--vm-accent, #c4493d);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.rhs-property-video {
  width: min(100%, 62rem);
  max-width: 62rem;
  margin-inline: auto;
}

.rhs-property-video__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(11 52 66 / 12%);
  border-radius: var(--vm-card-radius, 1rem);
  background: #071f28;
  box-shadow: 0 1.25rem 3rem rgb(11 52 66 / 14%);
}

.rhs-property-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rhs-property-video__external {
  margin: 0.8rem 0 0;
  text-align: right;
}

.rhs-property-video__external a {
  color: var(--wp--preset--color--mare, #176b87);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.rhs-property-video__external a:hover {
  text-decoration: underline;
}

.rhs-property-map__frame {
  position: relative;
  overflow: hidden;
  height: clamp(21rem, 42vw, 30rem);
  border: 1px solid rgb(11 52 66 / 12%);
  border-radius: var(--vm-card-radius, 1rem);
  background: #e9e5dc;
  box-shadow: 0 1.25rem 3rem rgb(11 52 66 / 12%);
}

.rhs-property-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rhs-property-map__external {
  margin: 0.8rem 0 0;
  text-align: right;
}

.rhs-property-map__external a {
  color: var(--wp--preset--color--mare, #176b87);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.rhs-property-map__external a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {
  .rhs-property-lightbox {
    padding: 3.5rem 3.6rem 1.5rem;
  }

  .rhs-property-lightbox__image {
    max-width: calc(100vw - 7.2rem);
    max-height: calc(100dvh - 8rem);
  }

  .rhs-property-details .rhs-property-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhs-property-details
    .rhs-property-facts
    .rhs-property-fact--address,
  .rhs-property-details
    .rhs-property-facts
    .rhs-property-fact--features {
    grid-column: 1 / -1;
  }

  .rhs-property-floor-plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rhs-property-lightbox {
    padding: 3.5rem 0.75rem 1.25rem;
  }

  .rhs-property-lightbox__figure {
    max-height: calc(100dvh - 4.75rem);
  }

  .rhs-property-lightbox__image {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 8rem);
  }

  .rhs-property-lightbox__caption {
    max-width: calc(100vw - 2rem);
  }

  .rhs-property-lightbox__arrow {
    top: auto;
    bottom: 0.55rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgb(255 255 255 / 26%);
    border-radius: 50%;
    background: rgb(11 52 66 / 75%);
    font-size: 2.25rem;
    transform: none;
  }

  .rhs-property-lightbox__arrow--previous {
    left: 0.75rem;
  }

  .rhs-property-lightbox__arrow--next {
    right: 0.75rem;
  }

  .rhs-property-lightbox__arrow:hover,
  .rhs-property-lightbox__arrow:focus-visible {
    transform: scale(1.06);
  }

  .rhs-property-details
    .rhs-property-gallery--carousel
    .rhs-property-gallery__slide,
  .rhs-property-details
    .rhs-property-gallery--carousel
    .rhs-property-gallery__slide:first-child {
    aspect-ratio: 4 / 3;
  }

  .rhs-property-gallery__arrow {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.7rem;
  }

  .rhs-property-gallery__arrow--previous {
    left: 0.65rem;
  }

  .rhs-property-gallery__arrow--next,
  .rhs-property-gallery__counter {
    right: 0.65rem;
  }

  .rhs-property-gallery__counter {
    bottom: 0.65rem;
  }

  .rhs-property-gallery__thumbnails button {
    width: 4.8rem;
    height: 3.5rem;
  }

  .rhs-property-details .rhs-property-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .rhs-property-details
    .rhs-property-facts
    .rhs-property-fact.is-wide {
    grid-column: span 1;
  }

  .rhs-property-details
    .rhs-property-facts
    .rhs-property-fact {
    min-height: 0;
  }

  .rhs-property-floor-plans__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rhs-property-floor-plan--image img {
    height: auto;
    min-height: 14rem;
    max-height: 24rem;
  }

  .rhs-property-map__frame {
    height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhs-property-lightbox {
    animation: none;
  }
}
