/* Homes Gallery Styles */

/* Capacity Badge */
.work-capacity {
  position: absolute;
  bottom: 45px;
  left: 15px;
  z-index: 2;
}

.capacity-badge {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* House Name Badge */
.work-name {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 2;
}

.name-badge {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Work Image */
.work-img {
  position: relative;
  overflow: hidden;
}

.work-img img {
  transition: transform 0.3s ease;
}

.work-item:hover .work-img img {
  transform: scale(1.05);
}

/* Work Intro */
.work-intro {
  padding: 20px 0 0 0;
}

.work-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.work-descr {
  font-size: 14px;
  opacity: 0.8;
}

/* Hover Buttons */
.work-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-buttons {
  opacity: 1;
}

.work-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 12px 24px !important;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  min-width: 120px;
}

.work-btn:hover {
  background: #111;
  color: #fff !important;
  text-decoration: none;
}

/* Hover Overlay */
.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.work-item:hover .work-overlay {
  opacity: 1;
}
