.eadv-property-single__hero {
  aspect-ratio: auto;
  overflow: visible;
  padding: 0 !important;
  background: transparent !important;
}

.eadv-property-gallery,
.eadv-property-gallery * {
  box-sizing: border-box;
}

.eadv-property-gallery {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.eadv-property-gallery__mosaic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: clamp(380px, 42vw, 620px);
  gap: 3px;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  box-shadow: none !important;
}

.eadv-property-gallery__tile {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  appearance: none;
  border: 0 !important;
  border-radius: 0;
  outline-offset: -3px;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: zoom-in;
  font: inherit;
  line-height: 0 !important;
}

.eadv-property-gallery__tile--primary {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

.eadv-property-gallery--count-1 .eadv-property-gallery__tile--primary {
  grid-column: 1 / 6;
}

.eadv-property-gallery--count-2 .eadv-property-gallery__mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eadv-property-gallery--count-2 .eadv-property-gallery__tile--primary {
  grid-column: 1;
}

.eadv-property-gallery--count-2 .eadv-property-gallery__tile:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / 3;
}

.eadv-property-gallery--count-3 .eadv-property-gallery__tile--primary,
.eadv-property-gallery--count-4 .eadv-property-gallery__tile--primary {
  grid-column: 1 / 4;
}

.eadv-property-gallery--count-3 .eadv-property-gallery__tile:nth-child(n+2) {
  grid-column: 4 / 6;
}

.eadv-property-gallery--count-4 .eadv-property-gallery__tile:nth-child(2) {
  grid-column: 4;
  grid-row: 1;
}

.eadv-property-gallery--count-4 .eadv-property-gallery__tile:nth-child(3) {
  grid-column: 5;
  grid-row: 1;
}

.eadv-property-gallery--count-4 .eadv-property-gallery__tile:nth-child(4) {
  grid-column: 4 / 6;
  grid-row: 2;
}

.eadv-property-gallery__tile-image,
.eadv-property-gallery__main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  transition: transform 180ms ease, opacity 160ms ease;
}

.eadv-property-gallery__tile:hover .eadv-property-gallery__tile-image {
  transform: scale(1.015);
}

.eadv-property-gallery__tile:focus-visible,
.eadv-lightbox button:focus-visible,
.eadv-viewing-dialog button:focus-visible {
  z-index: 3;
  outline: 3px solid #fff;
  outline-offset: -5px;
  box-shadow: inset 0 0 0 1px #111827;
}

.eadv-property-gallery__photo-count,
.eadv-property-gallery__more,
.eadv-lightbox__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
}

.eadv-property-gallery__photo-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.76);
  pointer-events: none;
}

.eadv-property-gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  pointer-events: none;
}

html.eadv-dialog-open,
body.eadv-dialog-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.eadv-lightbox,
.eadv-viewing-dialog {
  box-sizing: border-box;
  border: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 160ms ease, transform 160ms ease;
}

.eadv-lightbox[open],
.eadv-viewing-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .eadv-lightbox[open],
  .eadv-viewing-dialog[open] {
    opacity: 0;
    transform: scale(0.985);
  }
}

.eadv-lightbox::backdrop {
  background: #050505;
}

.eadv-viewing-dialog::backdrop {
  background: rgba(15, 23, 42, 0.88);
}

.eadv-lightbox::backdrop,
.eadv-viewing-dialog::backdrop {
  opacity: 1;
  transition: opacity 160ms ease;
}

.eadv-lightbox {
  position: fixed;
  border: 0 !important;
  outline: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 60px 72px 96px;
  overflow: hidden;
  border-radius: 0;
  background: #050505;
  color: #fff;
}

.eadv-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.eadv-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 140ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.eadv-lightbox__image.is-switching {
  opacity: 0.25;
}

.eadv-lightbox__close,
.eadv-lightbox__nav {
  display: inline-flex;
  position: absolute;
  z-index: 4;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  transition: background-color 140ms ease, transform 140ms ease;
}

.eadv-lightbox__close {
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  font-size: 2.4rem;
  font-weight: 300;
}

.eadv-lightbox__nav {
  top: 50%;
  font-size: 3.25rem;
  font-weight: 300;
  transform: translateY(-50%);
}

.eadv-lightbox__nav--prev {
  left: max(8px, env(safe-area-inset-left));
}

.eadv-lightbox__nav--next {
  right: max(8px, env(safe-area-inset-right));
}

.eadv-lightbox__close:hover,
.eadv-lightbox__nav:hover,
.eadv-lightbox__close:focus-visible,
.eadv-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  outline: 2px solid #fff !important;
  outline-offset: 2px;
  box-shadow: none;
}

.eadv-lightbox__close:active {
  transform: scale(0.92);
}

.eadv-lightbox__nav:hover,
.eadv-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.eadv-lightbox__nav:active {
  transform: translateY(-50%) scale(0.92);
}

.eadv-lightbox__counter {
  position: absolute;
  z-index: 3;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  min-height: 30px;
  padding: 7px 11px;
}

.eadv-lightbox__thumbs {
  display: flex;
  position: absolute;
  z-index: 3;
  right: 64px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 64px;
  justify-content: center;
  gap: 6px;
  max-width: calc(100vw - 128px);
  padding: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #6b7280 transparent;
  scroll-snap-type: inline proximity;
}

.eadv-lightbox__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  margin: 0;
  padding: 2px;
  overflow: hidden;
  appearance: none;
  border: 2px solid transparent !important;
  border-radius: 2px;
  background: #171717 !important;
  box-shadow: none !important;
  opacity: 0.62;
  cursor: pointer;
  scroll-snap-align: center;
  transition: opacity 140ms ease, border-color 140ms ease;
}

.eadv-lightbox__thumb:hover,
.eadv-lightbox__thumb:focus-visible,
.eadv-lightbox__thumb.is-active,
.eadv-lightbox__thumb[aria-current="true"] {
  border-color: #e5e7eb !important;
  opacity: 1;
}

.eadv-lightbox__thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: none;
}

.eadv-lightbox__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eadv-viewing-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 54px 24px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 20px;
  color: #0f172a;
}

.eadv-viewing-dialog__close {
  display: inline-flex;
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 14px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.eadv-viewing-dialog__close:hover,
.eadv-viewing-dialog__close:focus-visible {
  border-color: #fff;
  background: rgba(15, 23, 42, 0.96);
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.eadv-viewing-dialog form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.eadv-viewing-field,
.eadv-viewing-dialog label {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-weight: 600;
}

.eadv-viewing-field--full,
.eadv-viewing-dialog .eadv-button {
  grid-column: 1 / -1;
}

.eadv-viewing-dialog input,
.eadv-viewing-dialog select,
.eadv-viewing-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.eadv-viewing-dialog textarea {
  min-height: 104px;
}

.eadv-viewing-dialog [aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.13);
}

.eadv-viewing-dialog input:focus-visible,
.eadv-viewing-dialog select:focus-visible,
.eadv-viewing-dialog textarea:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.eadv-field-help {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 500;
}

.eadv-field-error {
  color: #991b1b;
  font-size: 0.84rem;
  font-weight: 650;
}

.eadv-field-error[hidden] {
  display: none;
}

.eadv-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.eadv-viewing-message {
  padding: 14px;
  border-radius: 10px;
}

.eadv-viewing-message--success {
  background: #ecfdf5;
}

.eadv-viewing-message--error {
  background: #fef2f2;
  color: #991b1b;
}

.eadv-property-single__details {
  display: grid;
  gap: 0;
}

.eadv-property-single__details > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 16px;
  padding-block: 15px;
  border-bottom: 1px solid var(--eadv-line);
}

.eadv-property-single__details dt {
  min-width: 0;
  line-height: 1.45;
}

.eadv-property-single__details dd {
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
  color: var(--eadv-navy);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
}

.eadv-property-single__actions {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.eadv-property-single__actions > .eadv-button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border-radius: 11px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.eadv-property-single__actions > .eadv-button:hover,
.eadv-property-single__actions > .eadv-button:focus-visible {
  filter: none;
  transform: translateY(-1px);
}

.eadv-property-single__actions > .eadv-button--primary:hover,
.eadv-property-single__actions > .eadv-button--primary:focus-visible {
  border-color: #9b7640;
  background: #d5b47e;
}

.eadv-property-single__actions > .eadv-button--secondary:hover,
.eadv-property-single__actions > .eadv-button--secondary:focus-visible {
  background: #f8fafc;
}

@media (max-width: 900px) {
  .eadv-property-gallery__mosaic {
    height: clamp(330px, 50vw, 500px);
  }
}

@media (max-width: 700px) {
  .eadv-property-single__hero {
    padding: 0;
  }

  .eadv-property-gallery__mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    height: auto;
    gap: 3px;
    overflow: hidden;
  }

  .eadv-property-gallery--count-2 .eadv-property-gallery__mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .eadv-property-gallery__tile--primary,
  .eadv-property-gallery--count-1 .eadv-property-gallery__tile--primary,
  .eadv-property-gallery--count-2 .eadv-property-gallery__tile--primary,
  .eadv-property-gallery--count-3 .eadv-property-gallery__tile--primary,
  .eadv-property-gallery--count-4 .eadv-property-gallery__tile--primary {
    grid-column: 1 / 13;
    grid-row: 1;
    aspect-ratio: 16 / 10;
  }

  .eadv-property-gallery__tile:not(.eadv-property-gallery__tile--primary) {
    grid-row: 2;
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }

  .eadv-property-gallery--count-2 .eadv-property-gallery__tile:nth-child(2) {
    grid-column: 1 / 13;
    grid-row: 2;
  }

  .eadv-property-gallery--count-3 .eadv-property-gallery__tile:nth-child(n+2) {
    grid-column: span 6;
  }

  .eadv-property-gallery--count-4 .eadv-property-gallery__tile:nth-child(n+2) {
    grid-column: span 4;
  }

  .eadv-property-gallery__photo-count {
    right: 10px;
    bottom: 10px;
  }

  .eadv-lightbox {
    padding: 54px 12px 82px;
  }

  .eadv-lightbox__nav {
    width: 46px;
    height: 46px;
    font-size: 2.7rem;
  }

  .eadv-lightbox__nav--prev {
    left: 4px;
  }

  .eadv-lightbox__nav--next {
    right: 4px;
  }

  .eadv-lightbox__close {
    width: 46px;
    height: 46px;
    right: 8px;
  }

  .eadv-lightbox__thumbs {
    right: 10px;
    left: 10px;
    justify-content: flex-start;
    max-width: calc(100vw - 20px);
  }

  .eadv-lightbox__thumb {
    flex-basis: 58px;
    width: 58px;
    height: 44px;
  }

  .eadv-viewing-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 54px 16px 20px;
  }

  .eadv-viewing-dialog form {
    grid-template-columns: minmax(0, 1fr);
  }

  .eadv-viewing-field--full,
  .eadv-viewing-dialog .eadv-button {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .eadv-property-single__details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .eadv-property-single__details dd {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eadv-property-gallery__tile-image,
  .eadv-lightbox,
  .eadv-lightbox::backdrop,
  .eadv-lightbox__image,
  .eadv-lightbox__close,
  .eadv-lightbox__nav,
  .eadv-lightbox__thumb,
  .eadv-viewing-dialog,
  .eadv-viewing-dialog::backdrop,
  .eadv-viewing-dialog__close,
  .eadv-property-single__actions > .eadv-button {
    scroll-behavior: auto;
    transition: none;
  }
}

/* Consistent lightbox navigation surfaces in every interaction state. */
.eadv-lightbox .eadv-lightbox__nav {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border: 1px solid rgba(255, 252, 246, .82) !important;
  background: rgba(18, 24, 21, .72) !important;
  color: #fffdf7 !important;
  font-size: 46px;
  opacity: .96;
  text-shadow: none;
}

.eadv-lightbox .eadv-lightbox__nav--prev {
  left: max(16px, env(safe-area-inset-left));
}

.eadv-lightbox .eadv-lightbox__nav--next {
  right: max(16px, env(safe-area-inset-right));
}

.eadv-lightbox .eadv-lightbox__nav:hover {
  border-color: #fffdf7 !important;
  background: rgba(39, 49, 44, .9) !important;
  opacity: 1;
}

.eadv-lightbox .eadv-lightbox__nav:focus-visible {
  border-color: #fffdf7 !important;
  background: rgba(39, 49, 44, .9) !important;
  outline: 3px solid #fffdf7 !important;
  outline-offset: 3px;
  opacity: 1;
}

@media (max-width: 700px) {
  .eadv-lightbox .eadv-lightbox__nav {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    font-size: 38px;
  }

  .eadv-lightbox .eadv-lightbox__nav--prev {
    left: max(6px, env(safe-area-inset-left));
  }

  .eadv-lightbox .eadv-lightbox__nav--next {
    right: max(6px, env(safe-area-inset-right));
  }
}
