/* =============================================
   FACILITY DETAIL PAGE
   ============================================= */

/* Two-column layout */
.fac-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

/* ---- Gallery / Slider ---- */
.fac-single-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 38, 35, 0.14);
}

.fac-single-img img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.fac-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Main image area */
.fac-main-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 38, 35, 0.14);
  background: #1a3432;
}

.fac-main-img img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

/* Prev / Next arrows */
.fac-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  z-index: 2;
}

.fac-arrow:hover {
  background: rgba(200, 164, 93, 0.6);
}

.fac-arrow-prev {
  left: 14px;
}

.fac-arrow-next {
  right: 14px;
}

/* Counter badge */
.fac-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

/* Thumbnails row */
.fac-thumbs {
  display: flex;
  gap: 8px; 
  flex-wrap: wrap;
}

.fac-thumb {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #c9d5cf;
  flex-shrink: 0;
  transition: border-color 0.18s, opacity 0.18s;
  opacity: 0.65;
}

.fac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fac-thumb:hover {
  opacity: 0.9;
}

.fac-thumb.active {
  border-color: #c8a45d;
  opacity: 1;
}

/* ---- Info Panel ---- */
.fac-info .section-title {
  margin-top: 10px;
  margin-bottom: 16px;
}

.fac-desc {
  color: #4a5e59;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.fac-timings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4efe5;
  border: 1px solid #e2d9c8;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b5530;
  margin-bottom: 28px;
}

.fac-timings-icon {
  display: flex;
  align-items: center;
  color: #9a7b3f;
}

.fac-features {
  margin-bottom: 32px;
}

.fac-features h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a9e99;
  margin: 0 0 14px;
}

.fac-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fac-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #102927;
  font-size: 16px;
  line-height: 1.5;
  padding: 16px 12px;  
  background: #f7f4ee;
  border-radius: 12px;
  border: 1px solid #ede8df;
}

.fac-check {
  color: #102927;
  font-weight: 700;
  flex-shrink: 0;
}

.fac-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .fac-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {

  .fac-main-img img,
  .fac-single-img img {
    height: 280px;
  }

  .fac-features ul {
    grid-template-columns: 1fr;
  }

  .fac-thumb {
    width: 66px;
    height: 50px;
  }

  .fac-actions {
    flex-direction: column;
  }

  .fac-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* -- Facility thumbs: scroll on small screens -- */
@media (max-width: 480px) {
  .fac-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .fac-thumbs::-webkit-scrollbar {
    display: none;
  }
  .fac-thumb {
    width: 58px;
    height: 44px;
    flex-shrink: 0;
  }
  .fac-main-img img,
  .fac-single-img img {
    height: 240px;
  }
  .fac-timings {
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* -- Facility info section-title size on mobile -- */
@media (max-width: 480px) {
  .fac-info .section-title {
    font-size: clamp(26px, 7vw, 36px);
  }
  .fac-desc {
    font-size: 0.95rem;
  }
}
