/* t295 house quick-view modal */
body.hqv-open { overflow: hidden; }

.hqv {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hqv.is-open { display: flex; }

.hqv__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 32, 0.55);
  backdrop-filter: blur(3px);
}

.hqv__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  overflow: hidden;
}

.hqv__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #1a2030;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hqv__close:hover { background: #fff; color: var(--color-primary, #e77600); }

.hqv__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  min-height: 0;
  flex: 1;
}

.hqv__gallery {
  display: flex;
  flex-direction: column;
  background: #f4efe8;
  min-height: 0;
}

.hqv__stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 0.5rem;
}
.hqv__img {
  max-width: 100%;
  max-height: min(58vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.hqv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #1a2030;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hqv__nav:hover { color: var(--color-primary, #e77600); }
.hqv__nav--prev { left: 0.6rem; }
.hqv__nav--next { right: 0.6rem; }

.hqv__thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 1rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hqv__thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 3.1rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.hqv__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hqv__thumb.is-active {
  border-color: var(--color-primary, #e77600);
}

.hqv__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.5rem 1.35rem;
  gap: 1rem;
  min-height: 0;
  overflow: auto;
}
.hqv__info-top { display: flex; flex-direction: column; gap: 0.35rem; }
.hqv__heart {
  align-self: flex-start;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--color-primary, #e77600) 35%, #ddd);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary, #e77600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hqv__heart.is-on {
  background: color-mix(in srgb, var(--color-primary, #e77600) 12%, #fff);
}
.hqv__title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: #1a2740;
}
.hqv__kurz {
  margin: 0;
  color: #5c6575;
  font-size: 1rem;
}
.hqv__meta {
  margin: 0.15rem 0 0;
  color: var(--color-primary, #e77600);
  font-weight: 600;
  font-size: 0.95rem;
}
.hqv__desc {
  margin: 0.65rem 0 0;
  color: #3d4656;
  font-size: 0.95rem;
  line-height: 1.55;
}
.hqv__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hqv__actions .btn {
  text-align: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .hqv {
    padding: 0;
    align-items: stretch;
  }
  .hqv__sheet {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }
  .hqv__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: auto;
  }
  .hqv__stage { min-height: 220px; }
  .hqv__img { max-height: 42vh; }
  .hqv__info { padding: 1.1rem 1.1rem 1.5rem; }
}

.hqv__price {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--color-navy, #002337);
}
.hqv__price-note {
  margin: 0.1rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-muted, #9fa6a6);
}


/* t933: keep quick-view images and arrows inside the viewport */
.hqv, .hqv__sheet, .hqv__gallery, .hqv__stage {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hqv__stage {
  overflow: hidden;
}
.hqv__img {
  max-width: 100%;
  object-fit: contain;
}
.hqv__nav--prev { left: max(0.35rem, env(safe-area-inset-left, 0px)); }
.hqv__nav--next { right: max(0.35rem, env(safe-area-inset-right, 0px)); }
@media (max-width: 860px) {
  .hqv__nav {
    width: 44px;
    height: 44px;
  }
  .hqv__img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}
