/* ===========================
   BAREQ Hill Resort - Main Styles
   =========================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* BAREQ Collage Grid */
.bareq-collage-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: stretch;
}

.bareq-collage-letters {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.bareq-letter-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #1B4332;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

.bareq-letter-circle span {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 24px;
  color: #FEF9F9;
}

.bareq-collage-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
}

.bareq-collage-img {
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .bareq-collage-grid {
    gap: 16px 20px;
  }

  .bareq-letter-circle {
    width: 72px;
    height: 72px;
  }

  .bareq-letter-circle span {
    font-size: 32px;
  }

  .bareq-collage-images {
    gap: 10px;
  }

  .bareq-collage-img {
    min-height: 100px;
    border-radius: 8px;
  }
}

@media (min-width: 1024px) {
  .bareq-letter-circle {
    width: 80px;
    height: 80px;
  }

  .bareq-collage-images {
    gap: 12px;
  }

  .bareq-collage-img {
    min-height: 120px;
  }
}

/* BAREQ Collage - Leaf-shaped letter containers (legacy) */
.bareq-collage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.bareq-letter-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bareq-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #1B4332;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

.bareq-letter span {
  display: block;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 32px;
  color: #FEF9F9;
  transform: rotate(45deg);
}

.bareq-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .bareq-letter {
    width: 100px;
    height: 100px;
    font-size: 48px;
  }

  .bareq-thumb {
    width: 100px;
    height: 100px;
  }

  .bareq-letter span {
    font-size: 40px;
  }
}

/* ===========================
   Brochure card hover
   =========================== */
.brochure-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brochure-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 35px 50px 12px rgba(22, 22, 22, 0.2);
}

/* ===========================
   Rating badge
   =========================== */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #EBE2C9;
  border-radius: 6px;
}

.rating-badge span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.0458984em;
  color: #4C4734;
}

/* ===========================
   Testimonial card
   =========================== */
.testimonial-card {
  min-height: 400px;
}

@media (min-width: 1024px) {
  .testimonial-card {
    min-height: 487px;
  }
}

/* ===========================
   Mobile sticky header
   =========================== */
.mobile-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-header.scrolled,
.mobile-header.menu-open {
  background-color: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Mobile menu - full viewport overlay
   =========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.active {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #1B4332;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 1.5rem 2rem;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0);
}

.mobile-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #FEF9F9;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-link:hover {
  opacity: 0.8;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ===========================
   Hamburger animation
   =========================== */
#menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Carousel Component
   =========================== */
.carousel {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* Arrow buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.carousel-prev:hover,
.carousel-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev:disabled,
.carousel-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-prev:disabled:hover,
.carousel-next:disabled:hover {
  transform: translateY(-50%) scale(1);
}

/* Dots */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 67, 50, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #1B4332;
  transform: scale(1.3);
}

/* Testimonial section dots - on neutral background */
[data-carousel="testimonial"] .carousel-dot {
  background: rgba(27, 67, 50, 0.25);
}

[data-carousel="testimonial"] .carousel-dot.active {
  background: #1B4332;
}

[data-carousel="room"] .carousel-dot {
  background: rgba(255, 255, 255, 0.35);
}

[data-carousel="room"] .carousel-dot.active {
  background: #FFFFFF;
}

/* Facility card */
.facility-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 35px 50px 12px rgba(22, 22, 22, 0.2);
}

/* Room card */
.room-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 35px 50px 12px rgba(22, 22, 22, 0.2);
}

/* Carousel responsive slides */
@media (max-width: 639px) {
  .carousel-slide {
    width: 100% !important;
  }

  .carousel-prev {
    left: 4px;
  }

  .carousel-next {
    right: 4px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  [data-carousel="brochure"] .carousel-slide {
    width: 50%;
  }

  [data-carousel="testimonial"] .carousel-slide {
    width: 100%;
  }

  [data-carousel="room"] .carousel-slide {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  [data-carousel="brochure"] .carousel-slide {
    width: 33.3333%;
  }

  [data-carousel="testimonial"] .carousel-slide {
    width: 50%;
  }

  [data-carousel="room"] .carousel-slide {
    width: 25%;
  }
}

/* ===========================
   Scroll animations (fade-in)
   =========================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
