html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

.lang-btn {
  color: #475569;
  transition: all .15s;
}
.lang-btn:hover { background: #f1f5f9; color: #0a64b3; }
.lang-btn.active { background: #0a64b3; color: #fff; }

.gallery-tab,
.specs-tab {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all .15s;
  cursor: pointer;
}
.gallery-tab:hover,
.specs-tab:hover { border-color: #0a64b3; color: #0a64b3; }
.gallery-tab.active,
.specs-tab.active {
  background: #0a64b3;
  color: #fff;
  border-color: #0a64b3;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-align: center;
  transition: all .2s;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: #0e7ad1;
  box-shadow: 0 10px 25px -10px rgba(8,81,143,.25);
}
.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent 40%);
  opacity: 0;
  transition: opacity .2s;
}
.gallery-thumb:hover::after { opacity: 1; }

/* Floor-plan thumbs: keep entire drawing visible, show caption strip */
.gallery-thumb.is-floorplan {
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.gallery-thumb.is-floorplan img {
  object-fit: contain;
  padding: 0.5rem 0.5rem 2.25rem;
}
.gallery-thumb.is-floorplan .fp-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(10,100,179,.95), rgba(10,100,179,.78));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.gallery-thumb.is-floorplan.is-master {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
  background: #fff;
}
.gallery-thumb.is-floorplan.is-master img {
  padding: 1rem 1rem 2.75rem;
}
.gallery-thumb.is-floorplan.is-master .fp-caption {
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}

#lightbox.open { display: flex; }
