/* Domira Real Estate: property page. Builds on the theme's properties-details styles. */

/* Gallery: a fixed shape keeps the page from jumping when photos differ. */
.domira-slides {
  display: grid;
  touch-action: pan-y;
}
.domira-slides > .image {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.domira-slides > .image.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}
.domira-gallery__main .image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
@media (prefers-reduced-motion: reduce) {
  .domira-slides > .image,
  .domira-slides > .image.is-active {
    transition: none;
  }
}
.domira-thumb {
  flex: none;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.domira-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.domira-thumb.is-active,
.domira-thumb:hover {
  opacity: 1;
  border-color: var(--Primary, #fe5631);
}

/* Map and video blocks. */
.properties-map .wrap-map {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
}
.widget-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.widget-video .popup-youtube,
.widget-video .btn-360 {
  border: 0;
  cursor: pointer;
}
.widget-video.is-playing {
  aspect-ratio: 16 / 9;
}
.widget-video.is-playing iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}
.widget-video .btn-360 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Attachments are links. */
a.attachments-item {
  color: inherit;
  text-decoration: none;
}

/* Schedule a tour: the day picker. */
.list-date .date-item {
  position: relative;
  cursor: pointer;
}
.list-date .date-item input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.list-date .date-item:has(input:checked),
.list-date .date-item:has(input:checked) span {
  color: #fff;
  background: var(--Text-primary, #101010);
  border-color: var(--Text-primary, #101010);
}
.list-date .date-item:has(input:focus-visible) {
  outline: 2px solid var(--Primary, #fe5631);
  outline-offset: 2px;
}

/* Quick search status tabs. */
.sidebar-filter .nav-tab-form .nav-link-item {
  position: relative;
  cursor: pointer;
}
.sidebar-filter .nav-tab-form input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Sidebar forms use the plugin's field spacing; the hidden spam trap stays hidden. */
.sidebar-right .domira-form {
  gap: 16px;
}
.sidebar-right .domira-hp {
  position: absolute;
  left: -9999px;
}

/* Reviews sit inside the details column. */
.properties-details .domira-reviews {
  margin: 0;
}

/* Compare button next to the heart and share buttons: filled once the property is in the comparison. */
.list-action a.domira-compare-btn.is-active {
  color: #fff;
  background-color: var(--Primary, #fe5631);
  border-color: var(--Primary, #fe5631);
}

.domira-agency-tag{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:1.3;color:var(--Text, #6b7280);margin-bottom:4px}
.domira-agency-tag img{width:20px;height:20px;border-radius:4px;object-fit:cover}
