/* Building Flats Page Styles */

.building-hero {
  min-height: 60vh;
  background: url('imgs/mayas-geneva.jpg') center/cover;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
}

.building-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(38, 38, 38, 0.7), rgba(38, 38, 38, 0.95));
}

.building-hero-content {
  position: relative;
  z-index: 10;
}

.building-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.building-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(225, 177, 55, 0.2);
}

.building-stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.building-stat-card .stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Amenities Section */
.amenities-section {
  padding: 2rem 0;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.amenity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(225, 177, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
}

.amenity-icon i {
  font-size: 1.25rem;
}

/* Flats Section */
.flats-section {
  padding: 5rem 0;
  background: white;
}

/* Filter Buttons */
.filter-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  background: #f5f5f5;
  color: #666;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(225, 177, 55, 0.1);
  color: var(--primary-gold);
}

.filter-btn.active {
  background: var(--primary-gold);
  color: white;
}

/* Flat Card */
.flat-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.flat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flat-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.flat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.flat-card:hover .flat-card-image img {
  transform: scale(1.1);
}

.flat-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.flat-status.available {
  background: #10b981;
  color: white;
}

.flat-status.sold {
  background: #ef4444;
  color: white;
}

.flat-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(--primary-gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
}

.flat-card-body {
  padding: 1.5rem;
}

.flat-type {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.flat-floor {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.flat-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.flat-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.flat-detail-item i {
  color: var(--primary-gold);
}

.flat-price {
    margin-left: 20px !important;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.flat-facing {
     margin-left: 15px !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f5f5;
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.flat-facing i {
  color: var(--primary-gold);
}

.btn-view-details {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-view-details:hover {
  background: var(--primary-gold);
  color: white;
}

.btn-view-details:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.btn-view-details:disabled:hover {
  background: transparent;
  color: #ccc;
}

/* Contact Banner */
.contact-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
}

.contact-banner h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-bg);
  font-family: 'Playfair Display', serif;
}

.contact-banner p {
  color: rgba(38, 38, 38, 0.8);
  font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .building-title {
    font-size: 2.5rem;
  }

  .building-stat-card {
    padding: 1rem 1.5rem;
  }

  .building-stat-card .stat-number {
    font-size: 2rem;
  }

  .amenity-item {
    font-size: 0.875rem;
  }

  .amenity-icon {
    width: 36px;
    height: 36px;
  }
}

/* Hidden class for filtering */
.flat-card.hidden {
  display: none;
}
