/* ═══════════════════════════════════════════════════════
   HOTEL FACILITIES PAGE — Tabbed Showcase
   facilities.css
   ═══════════════════════════════════════════════════════ */

#facilities-page {
  background: var(--cream);
  position: relative;
}

/* ══════════════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════════════ */
.fp-intro {
  background: var(--cream);
  padding: 72px 40px 64px;
  text-align: center;
}
.fp-intro .heading-divider {
  margin-right: auto;
  margin-left: auto;
}


.fp-intro-text {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   SHOWCASE — TAB NAVIGATION
══════════════════════════════════════════════════════ */
.fp-showcase {
  background: var(--white);
}

.fp-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* Desktop: 4 in a row */
  background: var(--navy-dark);
  border-bottom: none;
}

.fp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  transition: background 0.25s;
  text-align: center;
}

/* Vertical separator between tabs */
.fp-tab + .fp-tab {
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* Remove left border on first item of second row (mobile grid) */
.fp-tab:hover {
  background: rgba(255,255,255,0.05);
}

.fp-tab.active {
  background: rgba(45,106,53,1);
}

/* Gold bottom indicator */
.fp-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.fp-tab.active::after {
  transform: scaleX(1);
}

.fp-tab-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,168,76,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 16px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  flex-shrink: 0;
}
.fp-tab.active .fp-tab-icon,
.fp-tab:hover .fp-tab-icon {
  border-color: var(--green);
  color: var(--green);
  background: #fff;
}

.fp-tab-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.25s;
  line-height: 1.3;
}
.fp-tab.active .fp-tab-label,
.fp-tab:hover .fp-tab-label {
  color: var(--white);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABS
══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .fp-tabs { grid-template-columns: repeat(4, 1fr); }
  .fp-tab { padding: 20px 12px; gap: 8px; }
  .fp-tab-icon { width: 36px; height: 36px; font-size: 14px; }
  .fp-tab-label { font-size: 10px; letter-spacing: 0.08em; }
}

@media (max-width: 600px) {
  /* Switch to 2×2 grid — each tab gets full breathing room */
  .fp-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reset left borders — re-apply cleanly for grid */
  .fp-tab + .fp-tab {
    border-left: none;
  }

  /* Right border on col 1 items */
  .fp-tab:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  /* Top border on row 2 items */
  .fp-tab:nth-child(3),
  .fp-tab:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .fp-tab { padding: 20px 16px; gap: 10px; }
  .fp-tab-icon { width: 38px; height: 38px; font-size: 15px; }
  .fp-tab-label { font-size: 11px; }

  /* Gold indicator on active — works on all 4 sides */
  .fp-tab::after {
    bottom: 0;
    height: 2px;
  }
}

@media (max-width: 400px) {
  .fp-tab { padding: 18px 12px; }
  .fp-tab-icon { width: 34px; height: 34px; font-size: 14px; }
  .fp-tab-label { font-size: 10px; }
}


/* ══════════════════════════════════════════════════════
   TAB PANELS
══════════════════════════════════════════════════════ */
.fp-panels {
  position: relative;
}

.fp-panel {
  display: none;
  animation: fpFadeIn 0.45s ease forwards;
}
.fp-panel.active {
  display: block;
}

@keyframes fpFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel inner — split layout */
.fp-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* Photo side */
.fp-panel-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  min-height: 420px;
}
.fp-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  inset: 0;
}
.fp-panel:hover .fp-panel-photo img {
  transform: scale(1.04);
}

/* Placeholder */
.fp-panel-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.fp-panel-photo-placeholder i {
  font-size: 56px;
  color: rgba(201,168,76,0.25);
}
.fp-panel-photo-placeholder span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.20);
}

/* Content side */
.fp-panel-content {
  background: var(--white);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-panel-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}
.fp-panel-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--navy-dark);
  line-height: 1.15;
  margin: 0 0 20px;
}
.fp-panel-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.fp-panel-ornament .orn-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  display: block;
}
.fp-panel-ornament .orn-icon {
  color: var(--gold);
  font-size: 8px;
}
.fp-panel-desc {
  line-height: 1.80;
  margin: 0 0 28px;
}

/* Highlights list */
.fp-panel-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-panel-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}
.fp-panel-highlights li i {
  color: var(--green-hover);
  font-size: 11px;
  width: 16px;
  flex-shrink: 0;
}

/* CTA inside panel */
.fp-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  align-self: flex-start;
}
.fp-panel-cta:hover {
  background: var(--navy);
  color: var(--white);
}
.fp-panel-cta i { font-size: 12px; }

/* ══════════════════════════════════════════════════════
   QUICK FACILITIES STRIP
══════════════════════════════════════════════════════ */
.fp-quick {
  background: var(--green);
  padding: 60px 40px;
  position: relative;
}
.fp-quick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.fp-quick-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.fp-quick-head {
  text-align: center;
  margin-bottom: 40px;
}
.fp-quick-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.fp-quick-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--white);
  margin: 0;
}
.fp-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fp-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  transition: border-color 0.25s, background 0.25s;
}

.fp-quick-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201,168,76,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 17px;
  transition: background 0.25s;
  background: #fff;
}

.fp-quick-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .fp-intro { padding: 56px 28px 48px; }
  .fp-panel-content { padding: 40px 36px; }
  .fp-panel-inner { min-height: 440px; }
  .fp-quick { padding: 48px 28px; }
  .fp-quick-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (max-width: 767px) {
  .fp-intro { padding: 44px 20px 36px; }

  .fp-tabs { gap: 0; }
  .fp-tab { min-width: 120px; padding: 18px 12px; gap: 8px; }
  .fp-tab-icon { width: 34px; height: 34px; font-size: 14px; }
  .fp-tab-label { font-size: 10px; }

  .fp-panel-inner {
    grid-template-columns: 1fr;
  }
  .fp-panel-photo {
    min-height: 280px;
    height: 280px;
    position: relative;
  }
  .fp-panel-photo img {
    position: absolute;
  }
  .fp-panel-content {
    padding: 36px 24px;
  }

  .fp-quick { padding: 40px 20px; }
  .fp-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
  .fp-tab { min-width: 100px; padding: 16px 10px; }
  .fp-tab-label { letter-spacing: 0.06em; }
  .fp-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-panel-content { padding: 28px 20px; }
  .fp-panel-title { font-size: 26px; }
}

/* ══════════════════════════════════════════════════════
   GYM & SPA — SPLIT PHOTO
══════════════════════════════════════════════════════ */
.fp-panel-photo--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  position: relative;
}

.fp-split-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.fp-split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fp-split-photo:hover img {
  transform: scale(1.06);
}

/* Label tag at bottom of each split */
.fp-split-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(8, 16, 28, 0.55);
  border: 1px solid rgba(201,168,76,0.40);
  padding: 5px 14px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Thin gold divider between the two photos */
.fp-panel-photo--split::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  opacity: 0.40;
  z-index: 2;
  transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 767px) {
  .fp-panel-photo--split {
    grid-template-columns: 1fr 1fr;
  }
  .fp-split-photo {
    min-height: 180px;
  }
}
