/* Native Planner home click-to-zoom (from Native Rent site.css) */
.figure img.nr-zoomable,
.figure button.nr-zoom-trigger img {
  cursor: zoom-in;
}
.figure button.nr-zoom-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  text-align: left;
}
.figure button.nr-zoom-trigger:focus-visible {
  outline: 3px solid var(--ac);
  outline-offset: 2px;
}
.figure button.nr-zoom-trigger img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--bd);
  background: var(--co);
  display: block;
}
.figure.nr-zoom-hint:hover::after {
  content: "Click to enlarge";
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ac);
  font-weight: 600;
}
.nr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: rgba(11, 11, 18, 0.92);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.nr-lightbox[hidden] { display: none; }
.nr-lightbox__dialog {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 8px 48px;
  box-sizing: border-box;
  outline: none;
}
/* Fit mode: nearly full viewport; Close is fixed so it doesn't eat dialog space */
.nr-lightbox__img {
  display: block;
  max-width: 98vw;
  max-height: calc(100vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  /* Prefer crisp pixel sizing from JS (naturalWidth); avoid CSS transform scale */
  image-rendering: auto;
  -ms-interpolation-mode: nearest-neighbor;
}
.nr-lightbox__img.nr-lightbox__img--zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-in;
  /* Actual / 2×: width/height set in px by JS from natural dimensions */
}
.nr-lightbox__img.nr-lightbox__img--zoomed-out {
  cursor: zoom-out;
}
.nr-lightbox__hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1002;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 156, 255, 0.45);
  background: rgba(28, 22, 48, 0.92);
  color: #B79CFF;
  font: 600 12px/1.2 var(--font);
  pointer-events: none;
  white-space: nowrap;
}
.nr-lightbox__caption {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1002;
  margin: 0;
  max-width: min(70ch, 92vw);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(11, 11, 18, 0.72);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #E5E7EB;
  pointer-events: none;
}
.nr-lightbox__close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1003;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #1C1630;
  color: #B79CFF;
  font: 600 15px/1.2 var(--font);
  cursor: pointer;
}
.nr-lightbox__close:hover {
  filter: brightness(1.12);
}
.nr-lightbox__close:focus-visible {
  outline: 3px solid #B79CFF;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .nr-lightbox__dialog { padding: 52px 4px 56px; }
  .nr-lightbox__img { max-width: 100vw; max-height: calc(100vh - 64px); }
  .nr-lightbox__hint { bottom: 10px; font-size: 11px; }
  .nr-lightbox__caption { bottom: 36px; font-size: 12px; }
}
body.nr-lightbox-open { overflow: hidden; }
.nr-zoomable{cursor:zoom-in;}

/* What you get grid: keep equal 160px thumbs (preview-extras rule loses to zoom height:auto) */
.view-grid .feature-card figure.figure {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem;
}
.view-grid .feature-card figure.figure > .nr-zoom-trigger {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0.5rem;
}
.view-grid .feature-card figure.figure img,
.view-grid .feature-card figure.figure button.nr-zoom-trigger img {
  width: 100%;
  max-width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top left;
  border-radius: 0.5rem;
  border: 0;
  background: #fff;
  margin-bottom: 0;
}
.view-grid .feature-card figure.figure.nr-zoom-hint:hover::after {
  display: none;
}
