/* ============================================================
   TAPOVAN RESORT — ENHANCEMENTS
   Hero Slider, Video Section, Reviews, Stats, Cursor & More
   ============================================================ */

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,168,76,0.6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}
.cursor-dot.hovered { width: 12px; height: 12px; }
.cursor-ring.hovered { width: 60px; height: 60px; border-color: var(--gold); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── HERO SLIDER ── */
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; display: flex; align-items: center; }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.77, 0, 0.18, 1);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide.active img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(26,22,18,0.88) 0%,
    rgba(26,22,18,0.55) 55%,
    rgba(26,22,18,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 8%;
  max-width: 780px;
}

/* Slide indicators */
.hero-indicators {
  position: absolute;
  bottom: 6rem;
  right: 8%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}
.hero-indicator {
  width: 28px; height: 2px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.hero-indicator::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  transition: left 0s;
}
.hero-indicator.active { width: 48px; background: rgba(255,255,255,0.2); }
.hero-indicator.active::after { left: 0; transition: left 6s linear; }

/* Slide counter */
.hero-counter {
  position: absolute;
  bottom: 6rem; left: 8%;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
}
.hero-counter .current { font-size: 2rem; color: var(--gold); line-height: 1; display: inline-block; }

/* Slide nav arrows */
.hero-arrow {
  position: absolute;
  top: 50%; z-index: 4;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.hero-arrow.prev { left: 2rem; }
.hero-arrow.next { right: 2rem; }

/* Hero text animation */
.hero-content .hero-tag,
.hero-content h1,
.hero-content .hero-desc,
.hero-content .hero-actions {
  opacity: 0;
  transform: translateY(25px);
  animation: slideUp 0.8s ease forwards;
}
.hero-content .hero-tag { animation-delay: 0.3s; }
.hero-content h1 { animation-delay: 0.5s; }
.hero-content .hero-desc { animation-delay: 0.7s; }
.hero-content .hero-actions { animation-delay: 0.9s; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── VIDEO SECTION ── */
.video-section {
  padding: 8rem 8%;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.video-section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.video-section-header .section-title { color: var(--white); }
.video-section-header .section-desc { color: rgba(255,255,255,0.55); margin: 0 auto; }

/* Featured (large) video */
.video-feature {
  position: relative;
  width: 100%;
  max-height: 80vh;        /* never taller than screen */
  overflow: hidden;
  margin-bottom: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;        /* black bars if needed */
}
.video-feature video,
.video-feature iframe {
  width: 100%;
  height: auto;            /* auto height = respects video's own ratio */
  max-height: 80vh;
  object-fit: contain;     /* contain = no cropping, shows full video */
  display: block;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,22,18,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: background 0.4s ease;
}
.video-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;             /* ← higher than the overlay */
  opacity: 1;              /* ← always visible, not on hover */
  transition: opacity 0.3s ease;
}
.video-feature:not(:hover) .video-controls { opacity: 0.4; }  /* subtle when not hovering */
.video-ctrl-btn {
  width: 44px; height: 44px;
  background: rgba(26,22,18,0.75);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.video-ctrl-btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }}
.video-feature.playing .video-play-overlay { opacity: 0; pointer-events: none; }
.video-play-btn {
  width: 80px; height: 80px;
  background: rgba(201,168,76,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--dark);
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(201,168,76,0.4);
  animation: pulse-gold 2s ease infinite;
}
@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
.video-play-overlay:hover .video-play-btn { transform: scale(1.12); background: var(--gold); }
.video-play-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* Video thumbnails grid */
.video-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}
.video-thumb.active { border-color: var(--gold); }
.video-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,22,18,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.video-thumb:hover .video-thumb-overlay { background: rgba(26,22,18,0.3); }
.video-thumb-overlay i { color: var(--gold); font-size: 1.5rem; }
.video-thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(to top, rgba(26,22,18,0.9), transparent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
}

/* ── STATS COUNTER SECTION ── */
.stats {
  background: var(--gold);
  padding: 5rem 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item { }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}
.stat-number .suffix { font-size: 0.5em; font-family: var(--font-body); font-weight: 600; }
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-2);
  margin-top: 0.5rem;
}
.stat-divider {
  width: 1px;
  background: rgba(26,22,18,0.2);
  align-self: stretch;
  margin: auto 0;
}
@media (max-width: 768px) { .stat-divider { display: none; } }

/* ── TESTIMONIALS / REVIEWS ── */
.reviews {
  padding: 8rem 8%;
  background: var(--cream-2);
  text-align: center;
  overflow: hidden;
}
.reviews-header { margin-bottom: 4rem; }
.reviews-track {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  height: 320px;            /* fixed — page never shifts */
  overflow: hidden;
}
@media (max-width: 768px) {
  .reviews-track {
    height: 480px;           /* more room for wrapped text on mobile */
  }
}
.review-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.review-card.active {
  opacity: 1;
  pointer-events: auto;
}
.review-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.review-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.review-text::before { content: '\201C'; color: var(--gold); font-size: 3rem; line-height: 0; vertical-align: -1rem; margin-right: 0.3rem; }
.review-text::after { content: '\201D'; color: var(--gold); font-size: 3rem; line-height: 0; vertical-align: -1rem; margin-left: 0.3rem; }
.review-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.review-author .name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
}
.review-author .meta {
  font-size: 0.8rem;
  color: var(--text-light);
}
.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.review-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}
.review-dot.active { background: var(--gold); transform: scale(1.3); }
.review-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.review-nav button {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.review-nav button:hover { background: var(--gold); color: var(--dark); }

/* ── EXPERIENCE / USP STRIP ── */
.experience-strip {
  background: var(--dark-2);
  padding: 4rem 8%;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.experience-strip::-webkit-scrollbar { display: none; }
.exp-item {
  flex: 1;
  min-width: 200px;
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  transition: background 0.3s ease;
}
.exp-item:hover { background: rgba(201,168,76,0.06); }
.exp-item:last-child { border-right: none; }
.exp-icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.exp-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.exp-desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ── PARALLAX QUOTE BANNER ── */
.quote-banner {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.quote-banner-bg {
  position: absolute;
  inset: -60px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  /* EDIT: Replace with your most scenic resort photo */
  background-image: url('../images/parallax-bg.jpg');
}
.quote-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,22,18,0.72);
}
.quote-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 5%;
}
.quote-banner-content blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.quote-banner-content cite {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* ── AVAILABILITY / BOOKING MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.85);
  backdrop-filter: blur(6px);
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--white);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  background: var(--dark);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { color: var(--white); font-size: 1.6rem; }
.modal-header h3 em { color: var(--gold-light); }
.modal-close {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.modal-close:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.modal-body { padding: 2.5rem; }
.modal-body .form-group { margin-bottom: 1.2rem; }
.modal-body .form-group label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 0.5rem;
}
.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
  width: 100%;
  border: 1px solid var(--cream-2);
  border-bottom: 2px solid transparent;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: var(--cream);
  transition: border-bottom-color 0.3s ease;
}
.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus { border-bottom-color: var(--gold); }
.modal-body .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-room-select {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.room-option {
  border: 2px solid var(--cream-2);
  padding: 1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.room-option:hover { border-color: var(--gold-light); }
.room-option.selected { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.room-option .r-icon { font-size: 1.4rem; display: block; margin-bottom: 0.4rem; }
.room-option .r-name { font-size: 0.75rem; font-weight: 600; color: var(--dark); }
.room-option .r-price { font-family: var(--font-display); font-size: 1rem; color: var(--gold-dark); }
.modal-footer {
  padding: 1.5rem 2.5rem 2.5rem;
  display: flex;
  gap: 1rem;
}
.modal-footer .btn { flex: 1; justify-content: center; }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 6.5rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--dark);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--gold);
  padding: 0.6rem 8%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dark);
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.announcement-bar a { text-decoration: underline; color: var(--dark); font-weight: 700; }
.announcement-close {
  position: absolute;
  right: 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
}
.announcement-close:hover { opacity: 1; }

/* ── PAYMENT INFO SECTION ── */
.payment-info {
  padding: 6rem 8%;
  background: var(--cream);
}
.payment-info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.payment-options { }
.payment-option {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem;
  background: var(--white);
  margin-bottom: 1.2rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(26,22,18,0.05);
}
.payment-option:hover { border-left-color: var(--gold); transform: translateX(5px); }
.payment-option-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}
.payment-option-info h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.payment-option-info p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }
.availability-widget {
  background: var(--dark);
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}
.availability-widget h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.availability-widget p { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 1.8rem; }
.availability-widget .form-group { margin-bottom: 1rem; }
.availability-widget label {
  display: block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.availability-widget input,
.availability-widget select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 2px solid transparent;
  color: var(--white);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-bottom-color 0.3s ease;
}
.availability-widget input:focus,
.availability-widget select:focus { border-bottom-color: var(--gold); }
.availability-widget input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); }
.availability-widget select option { background: var(--dark-2); }
.avail-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: none;
}
.avail-result.show { display: block; }
.avail-result p { color: var(--gold-light); font-size: 0.85rem; }

/* ── INSTAGRAM FEED PLACEHOLDER ── */
.insta-section {
  padding: 5rem 8%;
  text-align: center;
  background: var(--dark);
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.insta-item:hover img { transform: scale(1.1); }
.insta-item-overlay {
  position: absolute; inset: 0;
  background: rgba(26,22,18,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
  color: white; font-size: 1.3rem; opacity: 0;
}
.insta-item:hover .insta-item-overlay { background: rgba(26,22,18,0.5); opacity: 1; }
@media (max-width: 768px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── MOBILE ADJUSTMENTS ── */
@media (max-width: 768px) {
  .experience-strip { flex-direction: column; }
  .exp-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .hero-arrow { display: none; }
  .payment-info-inner { grid-template-columns: 1fr; }
  .modal-room-select { grid-template-columns: 1fr; }
  .modal-footer { flex-direction: column; }
  .quote-banner-bg { background-attachment: scroll; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── PAGE TRANSITION ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99990;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
/* ── SAMSUNG / ANDROID BROWSER FIX ── */
.hero {
  height: 100vh;
  height: 100dvh;          /* dynamic viewport — fixes Samsung browser */
}

.hero-slide img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

.hero-slide.active img {
  -webkit-transform: scale(1);
  transform: scale(1);
}

.hero-overlay {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Fix for Samsung Internet video issues */
video {
  -webkit-playsinline: true;
  playsinline: true;
}
