/* Facilities page specific styles */

/* Page Banner Height Override */
.page-banner {
  height: clamp(300px, 35vh, 500px) !important;
}

.page-banner.scrolled {
  height: clamp(150px, 20vh, 300px) !important;
}

/* Animation Classes - Members Page Style */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.facility-filter-container {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.facility-filter {
  /* Liquid Glass Base */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 0 0 rgba(255, 255, 255, 0.25);
  
  color: #2c3e50;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  
  /* Smooth transitions */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  
  /* Text styling */
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.facility-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  transition: left 0.5s ease;
}

.facility-filter:hover::before {
  left: 100%;
}

.facility-filter:hover {
  background: rgba(0, 210, 190, 0.15);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(0, 210, 190, 0.5);
  box-shadow: 
    0 12px 48px 0 rgba(0, 210, 190, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 4px 0 rgba(0, 210, 190, 0.2);
  color: #00D2BE;
  transform: translateY(-2px) scale(1.02);
}

.facility-filter.active {
  background: linear-gradient(135deg, 
    rgba(0, 210, 190, 0.9) 0%, 
    rgba(0, 170, 170, 0.9) 50%,
    rgba(0, 130, 150, 0.9) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px 0 rgba(0, 210, 190, 0.4),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.3),
    0 4px 12px 0 rgba(0, 210, 190, 0.3);
  color: #ffffff;
  transform: scale(1.05);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.facility-filter.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.3) 0%, 
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.facilities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.facilities-list > li {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.facilities-list > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.facility-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.facility-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.facility-item {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.facility-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.facility-image {
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.facility-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.facility-type {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  background: #e8eaf6;
  color: #1a237e;
  width: fit-content;
}

.facility-content h3 {
  margin: 0 0 0.5rem 0;
  color: #1a237e;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.facility-content p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.facility-specs {
  margin-bottom: 1rem;
}

.facility-specs h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.spec-label {
  color: #666;
}

.spec-value {
  color: #333;
  font-weight: 500;
}

.facility-applications {
  margin-bottom: 1rem;
}

.facility-applications h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.application-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.application-tag {
  background: #f0f4ff;
  color: #1a237e;
  padding: 0.3rem 0.7rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.application-tag:hover {
  background: #4dd0e1;
  color: white;
}










.facility-detail-status.operational {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.facility-detail-status.maintenance {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: currentColor;
  animation: facilityPulse 2s infinite;
}

@keyframes facilityPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.facility-category-badge {
  display: inline-block;
  background: #e8eaf6;
  color: #1a237e;
  padding: 0.4rem 1rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.facility-detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}

.facility-detail-section {
  margin-bottom: 2rem;
}

.facility-detail-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.facility-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-row {
  display: flex;
  gap: 1rem;
}

.spec-row strong {
  min-width: 100px;
  color: #666;
  font-weight: 600;
}

.spec-row span {
  color: #444;
  flex: 1;
}

.facility-detail-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.facility-detail-applications .application-tag {
  background: #2196F3;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.facility-detail-applications .application-tag:hover {
  background: #1976D2;
  transform: translateY(-2px);
}

.facility-detail-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid #f0f0f0;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 900px) {
  .facility-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .facility-modal-overlay {
    padding: 1rem;
  }
  
  .facility-modal-header,
  .facility-modal-body {
    padding: 1.5rem;
  }
  
  .spec-row {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .spec-row span {
    text-align: left;
  }
  
  .facility-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .facility-list {
    grid-template-columns: 1fr;
  }
  
  .facility-item {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .facility-filter-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0.5rem;
  }
  
  .facility-filter {
    width: 100%;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    white-space: normal;
    line-height: 1.3;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .facility-filter-container {
    gap: 0.6rem;
    margin: 1.2rem 0.5rem;
  }
  
  .facility-filter {
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
    min-height: 2.2rem;
  }
}

/* Dynamic Facility Card Styles */
.facility-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.facility-content h3 {
  margin: 0;
  color: #1a237e;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.facility-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.facility-year {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #e0e0e0;
}

/* Responsive adjustments for dynamic cards */
@media (max-width: 768px) {
  .facilities-list {
    grid-template-columns: 1fr;
  }
  
  .facility-image {
    height: 250px;
  }
  
  .facility-content {
    padding: 1.2rem;
  }
  
  .facility-content h3 {
    font-size: 1.1rem;
  }
}

