/* MARTINA Property Hub — paginação e galeria v1.1.0 */

.property-pagination {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 24px 0 8px;
}

.property-pagination > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.property-pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe4ea;
  border-radius: 10px;
  background: #fff;
  color: #102a43;
  font-weight: 800;
  cursor: pointer;
}

.property-pagination button:hover:not(:disabled),
.property-pagination button.active {
  border-color: #102a43;
  background: #102a43;
  color: #fff;
}

.property-pagination button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.property-pagination small {
  color: #667085;
  font-size: 11px;
}

.property-gallery-shell {
  position: relative;
}

.property-gallery-shell > .property-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.property-gallery {
  display: grid;
  gap: 10px;
}

.property-gallery-main {
  position: relative;
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 14px;
  background-color: #e8edf2;
  background-position: center;
  background-size: cover;
  cursor: zoom-in;
  overflow: hidden;
}

.property-gallery-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(0,0,0,.48));
}

.property-gallery-main span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.property-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.property-gallery-thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #eef1f4;
  overflow: hidden;
  cursor: zoom-in;
}

.property-gallery-thumbs button.active,
.property-gallery-thumbs button:hover {
  border-color: #c89b3c;
}

.property-gallery-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.property-gallery-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef1f4;
  color: #667085;
}

.property-lightbox-open {
  overflow: hidden !important;
}

.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 64px 78px 34px;
  background: rgba(3, 12, 21, .96);
}

.property-lightbox figure {
  max-width: min(1200px, 92vw);
  max-height: calc(100vh - 110px);
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.property-lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 145px);
  object-fit: contain;
  border-radius: 8px;
}

.property-lightbox figcaption {
  color: #d0d5dd;
  font-size: 12px;
  text-align: center;
}

.property-lightbox-toolbar {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.property-lightbox-toolbar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 25px;
}

.property-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 42px;
}

.property-lightbox-nav.previous { left: 18px; }
.property-lightbox-nav.next { right: 18px; }

@media (max-width: 900px) {
  .property-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .property-gallery-main {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .property-gallery-main {
    min-height: 230px;
  }

  .property-gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-lightbox {
    padding: 62px 12px 24px;
  }

  .property-lightbox-nav {
    width: 40px;
    height: 54px;
  }
}
