/* Building Types: top-selling model cards. */
.building-models {
  max-width: 1200px;
  margin: 50px auto 70px;
  font-family: "Inter", Arial, sans-serif;
}

.building-models h2 {
  margin: 0;
  color: #1a2e56;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.building-models-copy {
  margin: 18px 0 34px;
  color: #64748b;
  font-size: 18px;
}

.building-models-grid {
  display: block;
  overflow: hidden;
  padding: 4px 4px 42px;
}

.building-models-grid:not(.is-swiper-active) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.building-models-grid:not(.is-swiper-active) .swiper-slide {
  width: 100% !important;
}

.building-models-grid .swiper-pagination {
  display: none;
  bottom: 8px;
}

.building-models-grid.is-swiper-active .swiper-pagination {
  display: block;
}

.building-models-grid .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #aeb7c4;
  opacity: 1;
}

.building-models-grid .swiper-pagination-bullet-active {
  background: #97172d;
}

.building-model-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f0f1f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  transition: box-shadow .3s ease;
  cursor: pointer;
}

.building-model-card:focus-visible {
  outline: 3px solid #97172d;
  outline-offset: 3px;
}

.building-model-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

.building-model-card img {
  width: 100%;
  height: 224px;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.building-model-card h3 {
  margin: 20px 20px 8px;
  color: #1a2e56;
  font-size: 21px !important;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.building-model-card p {
  flex: 1;
  margin: 0 20px 16px;
  color: #4b5563;
  font-size: 14px;
}

.building-model-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: auto 20px 20px;
  border: 2px solid #1a2e56;
  border-radius: 8px;
  color: #1a2e56;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.building-model-card a:hover,
.building-model-card a:focus {
  color: #fff;
  background: #1a2e56;
}

@media (max-width: 900px) {
  .building-models-grid:not(.is-swiper-active) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .building-models { margin: 35px auto 50px; }
  .building-models-grid:not(.is-swiper-active) .swiper-wrapper {
    grid-template-columns: 1fr;
  }
  .building-model-card img { height: 210px; }
}
