/* bahamas.css — page-specific styles for bahamas.html */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.bth-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bth-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}

.bth-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,23,20,0.88) 0%, rgba(7,23,20,0.2) 55%, transparent 100%);
}

.bth-hero__content {
  position: relative; z-index: 1;
  padding: 0 72px 64px;
}

.bth-hero__title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800; line-height: 1;
  text-transform: uppercase; color: #fff;
  letter-spacing: 0.02em; margin-bottom: 12px;
}

.bth-hero__sub {
  font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,0.7);
}

/* ══════════════════════════════════════
   INTRO
══════════════════════════════════════ */
.bth-intro { background: #fff; }

/* ══════════════════════════════════════
   GALLERY SLIDER
══════════════════════════════════════ */
.bth-gallery {
  background: #f7fafa;
  padding: 0 0 72px;
  overflow: hidden;
}

.bth-gallery__track-outer {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  width: 90%;
  margin: 0 auto;
}

.bth-gallery__track-outer:active { cursor: grabbing; }

.bth-gallery__track {
  display: flex;
  gap: 16px;
  transition: transform 0.7s cubic-bezier(0.77,0,0.18,1);
  will-change: transform;
}

.bth-gallery__slide {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bth-gallery__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.bth-gallery__img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6),
              inset 0 -100px 80px rgba(0,0,0,0.75);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.bth-gallery__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: scale 0.5s ease;
  scale: 1;
}

.bth-gallery__slide:hover .bth-gallery__img-wrap img { scale: 1.05; }

.bth-gallery__slide-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 24px;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 4px;
}

.bth-gallery__slide-tag {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; background: #319391;
  padding: 4px 12px; border-radius: 100px;
  align-self: flex-start; margin-bottom: 6px;
}

.bth-gallery__slide-title {
  font-size: 15px; font-weight: 800;
  color: #fff; line-height: 1.2;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.bth-gallery__slide-desc {
  font-size: 12px; font-weight: 300;
  color: #fff; line-height: 1.5;
}

.bth-gallery__controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 0 48px;
}

.bth-gallery__counter {
  display: flex; align-items: center;
  gap: 10px; font-size: 13px;
  letter-spacing: 0.08em; color: #111;
}

.bth-gallery__counter-current { font-weight: 600; font-size: 15px; }
.bth-gallery__counter-total   { color: #aaa; }

.bth-gallery__counter-sep {
  width: 24px; height: 1px;
  background: #ccc; display: block;
}

.bth-gallery__progress {
  flex: 1; height: 2px;
  background: #e5e5e5; border-radius: 2px;
  overflow: hidden;
}

.bth-gallery__progress-bar {
  height: 100%; background: #319391;
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.77,0,0.18,1);
  width: 0%;
}

.bth-gallery__nav { display: flex; gap: 8px; }

.bth-gallery__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #111;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.bth-gallery__btn svg { width: 18px; height: 18px; }

.bth-gallery__btn:hover {
  background: #319391; border-color: #319391; color: #fff;
}

.bth-gallery__btn:active  { transform: scale(0.92); }
.bth-gallery__btn:disabled { opacity: 0.3; pointer-events: none; }

/* ══════════════════════════════════════
   VIP SPLIT
══════════════════════════════════════ */
.bth-vip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.bth-vip__img-wrap {
  overflow: hidden; position: relative;
  min-height: 580px;
}

.bth-vip__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s ease;
}

.bth-vip__img-wrap:hover .bth-vip__img { transform: scale(1.04); }

.bth-vip__content {
  background: #071712;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 80px;
}

.bth-vip__content .section-eyebrow { color: rgba(255,255,255,0.6); }

.bth-vip__content .section-title { color: #fff; }

.bth-vip__content .section-title::after {
  background:
    linear-gradient(to right, transparent, #fff 50%, transparent) no-repeat,
    rgba(255,255,255,0.2);
  background-size: 40% 100%, 100% 100%;
}

.bth-vip__text {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
}

.bth-vip__text + .bth-vip__text { margin-top: 16px; }

/* ══════════════════════════════════════
   AMENITIES
══════════════════════════════════════ */
.bth-amenities {
  background: #fff;
  padding: 0 0 80px;
}

.bth-amenities__btn-mobile-wrap { display: none; }
.bth-amenities__btn-desktop { display: inline-flex; }

.bth-amenities__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 76%;
  margin: 8px auto 0;
  padding: 0;
}

.bth-amenity {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}

.bth-amenity__icon {
  width: 72px; height: 72px; object-fit: contain;
  filter: invert(46%) sepia(54%) saturate(427%) hue-rotate(141deg) brightness(90%) contrast(89%);
  opacity: 0.85;
  transition: filter 0.4s, transform 0.4s;
}

.bth-amenity__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #4a6362;
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .bth-hero { height: 50vh; min-height: 320px; }
  .bth-hero__content { padding: 0 24px 40px; width: 100%; text-align: center; }
  .bth-hero__title { font-size: clamp(36px, 10vw, 56px); }
  .bth-hero__sub { max-width: 100%; text-align: center; text-align-last: center; }

  .bth-gallery { padding: 0 0 48px; }
  .bth-gallery__track-outer { width: 100%; padding: 0 16px; }
  .bth-gallery__slide { flex: 0 0 85%; border-radius: 20px; }
  .bth-gallery__img-wrap { aspect-ratio: 4 / 3; }
  .bth-gallery__controls { padding: 12px 20px 0; gap: 16px; }

  .bth-vip { grid-template-columns: 1fr; min-height: auto; }
  .bth-vip__img-wrap { min-height: 260px; order: -1; }
  .bth-vip__content {
    padding: 48px 24px 56px;
    align-items: center;
    text-align: center; text-align-last: center;
  }
  .bth-vip__content .section-title::after { left: 50%; transform: translateX(-50%); }
  .bth-vip__text { text-align: justify; hyphens: none; }

  .bth-amenities { padding: 0 0 48px; }
  .bth-amenities__btn-desktop { display: none; }
  .bth-amenities__btn-mobile-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 24px 0;
  }

  .bth-amenities__row {
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 0;
    padding: 36px calc((100% - 62vw) / 2) 28px;
    margin-top: 0;
  }
  .bth-amenities__row::-webkit-scrollbar { display: none; }

  .bth-amenity {
    flex: 0 0 62vw;
    scroll-snap-align: center;
    transform: scale(0.7) translateY(10px);
    opacity: 0.28;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.45s ease;
  }

  .bth-amenity.is-active {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .bth-amenity.is-active .bth-amenity__icon {
    filter: invert(46%) sepia(54%) saturate(427%) hue-rotate(141deg) brightness(90%) contrast(89%)
            drop-shadow(0 0 14px rgba(49,147,145,0.55));
    opacity: 1;
  }

  .bth-amenity__icon { width: 64px; height: 64px; }
}
