/* Additional utility styles */

.site-main {
  min-height: 60vh;
}

/* WordPress block content */
.wp-block-image,
.gallery,
figure {
  margin: 0 0 1.25rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Image hover zoom in cards */
.card img {
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* === Go to Top Button === */

.go-to-top {
  position: fixed;
  bottom: 154px;
  right: 24px;
  z-index: 9997;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--secondary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(252, 179, 50, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 66, 96, 0.4);
  transform: translateY(-3px);
}

/* === Room status badges === */
.room-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.room-status-badge--empty { background: #dcfce7; color: #166534; }
.room-status-badge--occupied { background: #dbeafe; color: #1e40af; }
.room-status-badge--soon_empty { background: #fef3c7; color: #92400e; }
.building-card__image .room-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin-top: 0;
}
.room-card__building {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.room-card__building a { color: var(--primary); }

/* === News grid homepage === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* === Lead modal === */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-modal[hidden] { display: none !important; }
.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.lead-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}
.lead-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
body.lead-modal-open { overflow: hidden; }
