/* Villa Mtashi Bakuriani — ev nömrələri, qonşu nişanları, fotolar,
   lightbox və 360° panorama. */

/* ---------- ev nömrəsi (village ilə eyni dil) ---------- */
.plot-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  white-space: nowrap;
}
.plot-tag.free { background: var(--ok) }
.plot-tag.hold { background: var(--hold) }
.plot-tag.sold { background: #6f7b82 }
.plot-tag.sel { background: var(--accent); outline: 2px solid #fff }
.plot-tag.dim { opacity: .25 }

/* ---------- qonşu bina nişanı ---------- */
.poi-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 11px;
  font-weight: 600;
  color: #0f2431;
  background: rgba(255, 255, 255, .88);
  border-radius: 999px;
  padding: 3px 9px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.poi-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .8);
}

/* ---------- mövsüm seçicisi: gün vaxtının altında ---------- */
.timesw.season { top: 100px }
@media (max-width: 900px) {
  .timesw.season { top: 92px }
}

/* ---------- sıra seçimi ---------- */
.types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.type {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface2);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.type b { font-family: var(--f-display); font-size: 15px; display: block }
.type span { font-size: 12px; color: var(--muted) }
.type[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }

/* ---------- 360° düymələri ---------- */
.mt-360 .btn.on,
.mt-360 .btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- qonşular siyahısı ---------- */
.nblist .nb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nblist .nb:hover b { color: var(--accent) }

/* ---------- foto qalereya ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery.wide { grid-template-columns: 1fr }
.gallery .ph {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface2);
  cursor: zoom-in;
}
.gallery.wide .ph { aspect-ratio: 3.2 / 1 }
.gallery .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery .ph:hover img { transform: scale(1.06) }
.gallery .ph:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.ph-360 {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(8, 20, 28, .7);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- lightbox ---------- */
.lightbox {
  width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #0b141a;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 10, 14, .82) }
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #000;
}
.lb-stage > img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.lb-pano {
  display: none;
  width: 100%;
  height: min(62vh, 520px);
  overflow: hidden;
  white-space: nowrap;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.lb-pano:active { cursor: grabbing }
.lb-pano img {
  display: inline-block;
  height: 100%;
  width: auto;
  pointer-events: none;
}
.lightbox.is-pano .lb-stage > img { display: none }
.lightbox.is-pano .lb-pano { display: block }

.lb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.lb-bar span { flex: 1 }
.lb-bar button {
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.lb-bar button:hover { background: rgba(255, 255, 255, .12) }

@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr) }
}
