/* Domira Real Estate: Quick View modal and Compare tray / table. */

/* Switch off: hide the compare buttons and tray. */
.domira-compare-off .card-house .compare,
.domira-compare-off .domira-compare {
  display: none !important;
}
.card-house .wrap-btn .compare.is-active {
  color: #fff;
  background: var(--Primary, #fe5631);
}

/* Modal. */
.domira-modal .modal-content {
  position: relative;
  border: 0;
  border-radius: 16px;
}
.domira-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background-color: #fff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.domira-modal .modal-body {
  padding: 24px;
}
.domira-loading {
  margin: 60px 0;
  text-align: center;
}

/* Quick View. */
.domira-qv {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.domira-qv__main {
  border-radius: 12px;
  overflow: hidden;
  background: var(--Bg-light, #f9f7f3);
}
.domira-qv__main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.domira-qv__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}
.domira-qv__thumbs .domira-thumb {
  flex: none;
  width: 84px;
  height: 64px;
}
.domira-qv__tags {
  display: flex;
  gap: 8px;
}
.domira-qv__tags .tag {
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--Bg-light, #f9f7f3);
  text-transform: uppercase;
}
.domira-qv__agent img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.domira-qv__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.domira-qv .compare.is-active {
  color: #fff;
  background: var(--Primary, #fe5631);
  border-color: var(--Primary, #fe5631);
}
.domira-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  overflow: hidden;
  opacity: 0.7;
}
.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);
}
@media (max-width: 767px) {
  .domira-qv {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .domira-modal .modal-body {
    padding: 16px;
  }
}

/* Compare tray: a handle and a panel on the right edge that slide together. Closed, only the handle shows. */
.domira-compare {
  --dre-panel: 164px;
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  transform: translate(var(--dre-panel), -50%);
  transition: transform 0.3s ease;
}
.domira-compare.is-open {
  transform: translate(0, -50%);
}
.domira-compare__tab {
  position: relative;
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: var(--Text-primary, #101010);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.18);
}
.domira-compare__tab i {
  transition: transform 0.3s ease;
}
.domira-compare.is-open .domira-compare__tab i {
  transform: rotate(180deg);
}
.domira-compare__count {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--Primary, #fe5631);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.domira-compare__panel {
  order: 2;
  box-sizing: border-box;
  width: var(--dre-panel);
  padding: 14px;
  border: 1px solid var(--Line, #e4e4e4);
  border-right: 0;
  border-radius: 0 0 0 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.domira-compare__list {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.domira-compare__list li {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.domira-compare__list img,
.domira-compare__list .domira-noimg {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: cover;
}
.domira-compare__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--Text-primary, #101010);
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.domira-compare__panel .domira-link {
  display: block;
  margin: 10px auto 0;
  font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .domira-compare,
  .domira-compare__tab i {
    transition: none;
  }
}

/* Comparison table. */
.domira-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.domira-compare-table th,
.domira-compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--Line, #e4e4e4);
  text-align: left;
  vertical-align: top;
}
.domira-compare-table thead th {
  min-width: 180px;
  font-weight: 400;
}
.domira-compare-table thead th:first-child {
  min-width: 110px;
}
.domira-compare-table__photo {
  display: block;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}
.domira-compare-table__photo img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.domira-compare-table tbody th {
  width: 130px;
  color: var(--Text-secondary, #5c6368);
}
.domira-compare-table .link {
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

/* Short message at the bottom of the screen. */
.domira-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1060;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--Text-primary, #101010);
  color: #fff;
  transform: translateX(-50%);
}

/* Text buttons inside the modal and tray (the dashboard stylesheet is not loaded on listing pages). */
.domira-modal .domira-link,
.domira-compare .domira-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--Text-primary, #101010);
  cursor: pointer;
}
.domira-modal .domira-link.is-danger {
  color: #a4281a;
}
.domira-compare:not(.is-open) .domira-compare__panel {
  border-color: transparent;
  box-shadow: none;
}

.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}
