/*
Theme Name: Kebun Kita Ecolodge
Theme URI: https://kebunkitabali.com
Author: BC Solutions
Description: Custom Nirjhara-style theme for Kebun Kita Ecolodge
Version: 2.0.0
Text Domain: kke
*/

/* ================================
   Tentram Homestay - STYLE
   ================================ */
/* NOTE: Google Fonts dimuat via wp_enqueue_style di functions.php
   ('kke-fonts') agar tidak render-blocking dari @import. */

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===== LOADING SCREEN (Double Door Opening) ===== */
body.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  perspective: 1800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Door panels ── */
.loading-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #3d372d;
  will-change: transform;
  transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
  backface-visibility: hidden;
}

/* Decorative inner frame (recessed panel look) */
.loading-door::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.loading-door-left {
  left: 0;
  transform-origin: left center;
}

.loading-door-left::before {
  left: 12%;
  right: 8%;
}

.loading-door-right {
  right: 0;
  transform-origin: right center;
}

.loading-door-right::before {
  left: 8%;
  right: 12%;
}

/* ── Door handles (gold dot near the center seam) ── */
.door-handle {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b68b3f;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(182, 139, 63, 0.4);
}

.loading-door-left .door-handle {
  right: 28px;
}

.loading-door-right .door-handle {
  left: 28px;
}

/* ── Center branding ── */
.loading-center {
  position: relative;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.8s ease 0.2s;
  pointer-events: none;
}

.loading-brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 4px;
  white-space: nowrap;
}

.loading-line {
  display: block;
  width: 40px;
  height: 1px;
  background: #b68b3f;
}

.loading-tagline {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ── Doors open state ── */
.loading-screen.doors-open .loading-door-left {
  transform: rotateY(-92deg);
}

.loading-screen.doors-open .loading-door-right {
  transform: rotateY(92deg);
}

.loading-screen.doors-open .loading-center {
  opacity: 0;
}
/* ===== PERFORMANCE: skip rendering of below-fold sections until near viewport =====
   `content-visibility: auto` lets browser skip layout/paint work until the section
   scrolls near. `contain-intrinsic-size` reserves a placeholder height so the
   scrollbar/anchor links still work correctly before the section renders.
   Hero, navbar, and about-section stay above-fold so they render immediately. */
.rooms-section,
.faq-section,
.facilities-section,
.explore-section,
.gallery-section,
.room-facilities-section,
.other-rooms-section,
.services-section,
.packages-section,
.other-services-section,
.monthly-rentals-section,
footer,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 120px;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .nav-book {
  color: #1a1a1a;
}

.navbar.scrolled .nav-book {
  background: #1a1a1a;
  color: #fff;
}

.navbar.scrolled .hamburger span {
  background: #1a1a1a;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}

/* Logo */
.nav-logo {
  margin-right: auto; /* pushes everything else to the right */
}

.nav-logo img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Logo swap on scroll: light by default, dark when scrolled */
.nav-logo .logo-dark {
  display: none;
}
.navbar.scrolled .nav-logo .logo-light {
  display: none;
}
.navbar.scrolled .nav-logo .logo-dark {
  display: block;
}

/* Nav Links — grouped near Book Now */
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-right: 32px;
}

.nav-link {
  font-family: "Philosophy", serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.2px;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

/* ── Desktop Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-link-dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dd-chevron {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dd-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: rgba(61, 55, 45, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  z-index: 200;
}

/* Invisible hover bridge so menu doesn't close when moving from link to menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 12px 24px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* When navbar is scrolled (white bg), dropdown stays dark */
.navbar.scrolled .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-dropdown-item {
  color: #4a4a4a;
}

.navbar.scrolled .nav-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

/* ── Mobile Dropdown ── */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0;
}

.mobile-dropdown-toggle .dd-chevron {
  transition: transform 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle .dd-chevron {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-dropdown.open .mobile-dropdown-items {
  max-height: 200px;
  padding: 8px 0 4px 16px;
}

.mobile-dropdown-items a {
  font-size: 0.9rem;
  color: #4a4a4a;
  padding: 6px 0;
}

.mobile-dropdown-items a:hover {
  color: #1a1a1a;
}

/* Book Now Button */
.nav-book {
  font-family: "Lato", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  background: #3d372d;
  padding: 15px 24px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  transition: background 0.2s ease;
}

.nav-book:hover {
  background: rgba(40, 36, 30, 1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 400;
}

.mobile-book {
  display: inline-block;
  background: #1a1a1a;
  color: #fff !important;
  padding: 15px 16px;
  border-radius: 6px;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  align-content: center;
}

/* Swiper fills hero fully */
.hero-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  background-size: cover;
  background-position: center center;
  background-color: #3a4a3a;
}

/* Override Swiper built-in pagination – hide it, we use custom dots */
.hero-swiper .swiper-pagination {
  display: none;
}

/* Semi-transparent dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  pointer-events: none;
}

/* Text — positioned bottom-left */
.hero-content {
  position: absolute;
  /* bottom: 120px;
  left: 0;
  right: 0; */
  padding: 0 50px;
  z-index: 3;
  color: #fff;
  top: 300px;
}

.hero-title {
  font-family: "Philosophy", serif;
  font-size: 105px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.hero-subtitle {
  font-size: 35px;
  font-weight: 300;
  letter-spacing: 0.3px;
  opacity: 0.92;
}

/* Custom dash pagination — bottom-center */
.hero-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}

.hero-dot.active {
  width: 56px;
  background: rgba(255, 255, 255, 1);
}

/* ===== ABOUT — Sticky Text, Static Images ===== */
.about-section {
  position: relative;
  height: 150vh;
  padding: 0 60px;
  overflow: visible;
}

/* Only the text is sticky — follows scroll */
.about-sticky {
  position: sticky;
  top: 50px;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  z-index: 2;
  pointer-events: none;
}

/* Left image — positioned LOW in the section */
.elementor .about-img-left {
  position: absolute;
  left: 0;
  top: 40%;
  width: 22vw;
  max-width: 320px;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Right image — positioned HIGH in the section */
.about-img-right {
  position: absolute;
  right: 0;
  top: 2%;
  width: 22vw;
  max-width: 320px;
  height: 55vh;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Right VIDEO container — hosts amp-video layout=fill */
.about-video-right {
  position: absolute;
  right: 0;
  top: 2%;
  width: 22vw;
  max-width: 320px;
  height: 55vh;
  overflow: hidden;
  z-index: 1;
}

/* amp-video fills the container; ensure the inner <video> covers properly */
.about-video-right amp-video,
.about-video-right amp-video video {
  object-fit: cover;
  object-position: center;
}

/* Center text — starts at top, follows scroll via sticky parent */
.about-text {
  text-align: center;
  max-width: 450px;
  /* padding: 120px 24px 0; */
  z-index: 2;
}

.about-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 16px;
}

.about-loc {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.about-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
}

/* ===== ROOMS — Swiper carousel (mirrors Facilities pattern) ===== */
.rooms-section {
  padding: 100px 0 120px 60px; /* no right padding so swiper bleeds to edge */
  background: #fff;
  overflow: hidden;
}

.rooms-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.rooms-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.rooms-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 620px;
}

.rooms-swiper {
  position: relative;
  overflow: visible;
}

/* Card width drives slidesPerView: 'auto' */
.room-card.swiper-slide {
  width: 450px;
  height: auto;
  aspect-ratio: 3 / 4;
}

/* Diamond nav buttons (matches Facilities) */
.rooms-next,
.rooms-prev {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 10;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.3);
  color: #fff;
  cursor: pointer;
  border: none;
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.rooms-next svg,
.rooms-prev svg {
  transform: rotate(-45deg);
}

.rooms-next {
  right: 80px;
  top: 50%;
}
.rooms-prev {
  left: 20px;
  top: 50%;
}

.rooms-next:hover,
.rooms-prev:hover {
  background: rgb(118, 103, 50);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.rooms-next.swiper-button-disabled,
.rooms-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.room-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

/* Image is a separate layer so we can scale it on hover without moving overlay */
.room-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2c;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.room-card:hover .room-card-img {
  transform: scale(1.06);
}

/* Overlay holds text + arrow */
.room-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  /* Subtle gradient at bottom for legibility */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0) 60%
  );
  color: #fff;
}

.room-card-text {
  flex: 1;
  min-width: 0;
}

.room-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.room-desc {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.2px;
  opacity: 0.92;
}

.room-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  transform: translate(0, 0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-card:hover .room-arrow {
  transform: translate(4px, -4px);
}

/* ===== FAQ + SIDE IMAGE ===== */
.faq-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 30vw;
  min-height: 100vh;
  background: #fff;
}

.faq-content {
  padding: 100px 60px 100px 60px;
  display: flex;
  flex-direction: column;
}

.faq-header {
  margin-bottom: 56px;
}

.faq-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.faq-subtitle {
  font-size: 0.85rem;
  color: #6a6a6a;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid #d8d8d8;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  text-align: left;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #3d372d;
}

.faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6a6a6a;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Rotate chevron when open */
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Answer collapse using max-height (smooth animation) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
  padding: 0 4px 22px;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Side image container — stacked layers for crossfade */
.faq-image {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background-color: #2c2c2c;
}

.faq-image-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.faq-image-item.active {
  opacity: 1;
}

/* ===== FACILITIES ===== */
.facilities-section {
  padding: 60px; /* no right padding so swiper bleeds to edge */
  background: #fff;
  overflow: hidden;
}

.facilities-header {
  max-width: 720px;
  margin-bottom: 56px;
  padding-right: 60px;
}

.facilities-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.facilities-subtitle {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 620px;
}

.facilities-swiper {
  position: relative;
  overflow: visible;
}

.facility-card {
  width: 320px;
  height: auto;
  cursor: grab;
}

.facility-card:active {
  cursor: grabbing;
}

.facility-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2c;
  margin-bottom: 18px;
}

.facility-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0 15px;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.facility-desc {
  font-size: 0.9rem;
  padding: 0 15px;
  color: #4a4a4a;
  line-height: 1.55;
  font-weight: 300;
}

/* Swiper navigation buttons — diamond shape (square rotated 45°) */
.facilities-next,
.facilities-prev {
  position: absolute;
  top: calc(50% - 40px); /* image center, accounting for text below */
  z-index: 10;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.3); /* subtle violet fill */
  /* border: 2px solid #8b5cf6; */
  color: #fff;
  cursor: pointer;
  /* Rotate the button itself 45° to make it diamond */
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

/* Counter-rotate the SVG so the arrow stays horizontal */
.facilities-next svg,
.facilities-prev svg {
  transform: rotate(-45deg);
}

.facilities-next {
  right: 80px;
}
.facilities-prev {
  left: 20px;
}

.facilities-next:hover,
.facilities-prev:hover {
  background: rgba(101, 88, 43, 0.727);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== EXPLORE TABANAN ===== */
.explore-section {
  padding: 80px 60px 100px;
  background: #fff;
  text-align: center;
}

.explore-header {
  margin-bottom: 40px;
}

.explore-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.explore-subtitle {
  font-size: 0.95rem;
  color: #4a4a4a;
  font-weight: 400;
}

.explore-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  isolation: isolate;
}

.explore-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2c;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.explore-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.explore-card:hover .explore-img {
  transform: scale(1.04);
}

.explore-card-label {
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.explore-card-buttons {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
}

.explore-btn {
  position: static;
  transform: none;
  display: inline-block;
  padding: 14px 36px;
  background: #3d372d;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.3px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.explore-btn:hover {
  background: #28241e;
  transform: scale(1.04);
}

.explore-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3d372d;
}

.explore-btn-wa:hover {
  background: #3d372d;
}

/* ===== ROOM GALLERY — Swiper carousel (mirrors Facilities pattern) ===== */
.gallery-section {
  padding: 80px 0 60px 60px; /* no right padding so swiper bleeds to edge */
  background: #fff;
  overflow: hidden;
  position: relative;
}

.gallery-swiper {
  position: relative;
  overflow: visible;
}

/* Card width drives slidesPerView: 'auto' */
.gallery-item.swiper-slide {
  width: 380px;
  height: auto;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2c;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* Diamond nav buttons (matches Facilities) */
.gallery-next,
.gallery-prev {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.15);
  color: #fff;
  cursor: pointer;
  border: none;
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.gallery-next svg,
.gallery-prev svg {
  transform: rotate(-45deg);
}

.gallery-next {
  right: 80px;
}
.gallery-prev {
  left: 20px;
}

.gallery-next:hover,
.gallery-prev:hover {
  background: rgba(101, 88, 43, 0.35);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.gallery-next.swiper-button-disabled,
.gallery-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== ROOM FACILITIES — icon list ===== */
.room-facilities-section {
  padding: 80px 60px 80px;
  background: #fff;
}

.room-facilities-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.room-facilities-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.room-facilities-subtitle {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.facility-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 24px 80px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 400;
}

.facility-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #1a1a1a;
  flex-shrink: 0;
}

/* ===== OTHER ROOMS (reuses .facility-card from homepage) ===== */
.other-rooms-section {
  padding: 60px 0 100px 60px;
  background: #fff;
  overflow: hidden;
}

.other-rooms-header {
  margin-bottom: 32px;
  padding-right: 60px;
}

.other-rooms-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.other-rooms-swiper {
  position: relative;
  overflow: visible;
}

/* Diamond nav buttons (same pattern as facilities) */
.other-rooms-next,
.other-rooms-prev {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 10;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.3);
  color: #fff;
  border: none;
  cursor: pointer;
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.other-rooms-next svg,
.other-rooms-prev svg {
  transform: rotate(-45deg);
}

.other-rooms-next {
  right: 80px;
}
.other-rooms-prev {
  left: 20px;
}

.other-rooms-next:hover,
.other-rooms-prev:hover {
  background: rgba(101, 88, 43, 0.727);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

/* ===== FOOTER ===== */
.footer {
  background: #3d372d;
  color: #fff;
  padding: 50px 60px 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1.4fr 1fr auto;
  gap: 48px;
  align-items: center;
  justify-items: center;
}

.footer-logo img {
  width: 150px;
  height: 150px;
  /* border-radius: 50%;
  object-fit: cover; */
  display: block;
}

.footer-col {
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: 300;
  color: #e8e3d8;
  align-self: center;
}

.footer-label {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.footer-address-p {
margin-bottom: 15px;  
}

.footer-address-item {
margin-bottom: 15px;
}

.footer-address-item strong {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-address-item p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-self: end;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 36px;
  height: 36px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.footer-nav {
  grid-column: 2 / 5; /* span across phone+social cols */
  justify-self: end;
  display: flex;
  gap: 40px;
  margin-top: 30px;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.footer-nav a {
  color: #fff;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.7;
}

/* ===== RESPONSIVE =====
   Breakpoints:
   - Desktop (≥ 769px) — full desktop layout
   - Tablet  (≤ 768px) — 2-column grids, hamburger nav, medium spacing
   - Mobile  (≤ 480px) — 1-column stacked, tightest spacing
*/

/* ---------- TABLET (≤ 768px) ---------- */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
  }
  .nav-book {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-inner {
    padding: 0 32px;
  }

  /* Hero */
  .hero-content {
    padding: 0 40px;
    bottom: 110px;
    top: 220px;
  }
  .hero-title {
    font-size: 64px;
  }
  .hero-subtitle {
    font-size: 22px;
  }
  .nav-logo img {
    width: 150px;
    height: 120px;
  }

  /* About — disable sticky, side accent photos, centered text */
  .about-section {
    height: auto;
    min-height: auto;
    padding: 80px 32px;
    overflow: hidden;
  }
  .about-sticky {
    position: static;
    height: auto;
    padding: 220px 0;
    align-items: center;
    pointer-events: auto;
  }
  .elementor .about-img-left,
  .about-img-left {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    width: 26vw;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .about-img-right {
    position: absolute;
    right: 0;
    top: 50px;
    width: 26vw;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .about-video-right {
    position: absolute;
    right: 0;
    top: 50px;
    width: 26vw;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .about-text {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
  }
  .about-title {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  .about-loc,
  .about-desc {
    font-size: 0.9rem;
  }

  /* Rooms swiper — mirror Facilities mobile pattern */
  .rooms-section {
    padding: 80px 0 100px 40px;
  }
  .rooms-header {
    padding-right: 40px;
    margin-bottom: 40px;
  }
  .room-card.swiper-slide {
    width: 320px;
  }
  .room-card-overlay {
    padding: 24px;
  }
  .rooms-next {
    right: 40px;
  }
  /* .rooms-prev { display: none; } */

  /* FAQ — stacked */
  .faq-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .faq-content {
    padding: 80px 40px;
  }
  .faq-header {
    margin-bottom: 40px;
  }
  .faq-image {
    height: 60vh;
    min-height: 380px;
  }

  /* Facilities */
  .facilities-section {
    padding: 80px 0 100px 40px;
  }
  .facilities-header {
    padding-right: 40px;
    margin-bottom: 40px;
  }
  .facilities-next {
    right: 40px;
  }
  .facilities-prev {
  left: 0;
}
  /* .facilities-prev { display: none; } */

  /* Explore Tabanan */
  .explore-section {
    padding: 80px 40px 100px;
  }
  .explore-card {
    aspect-ratio: 16 / 8;
  }
  .explore-card-label {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  /* Gallery swiper — tablet */
  .gallery-section {
    padding: 80px 0 60px 40px;
  }
  .gallery-item.swiper-slide {
    width: 320px;
    aspect-ratio: 4 / 3;
  }
  .gallery-next {
    right: 40px;
  }
  /* .gallery-prev { display: none; } */

  /* Room Facilities — keep 2 cols */
  .room-facilities-section {
    padding: 80px 40px;
  }
  .facility-list {
    grid-template-columns: repeat(2, max-content);
    gap: 20px 60px;
  }

  /* Other Rooms swiper */
  .other-rooms-section {
    padding: 60px 0 100px 40px;
  }
  .other-rooms-header {
    padding-right: 40px;
  }
  .other-rooms-next {
    right: 40px;
  }
  /* .other-rooms-prev { display: none; } */

  /* Footer — 2-row layout on tablet */
  .footer {
    padding: 50px 40px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-social{
    justify-self: center;
  }
  .footer-nav {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 1.05rem;
  }
}

/* ---------- MOBILE (≤ 480px) — overrides tablet for small phones ---------- */
@media (max-width: 480px) {
  /* Navbar */
  .nav-inner {
    padding: 0 20px;
  }

  /* Hero */
  .hero-content {
    padding: 0 20px;
    top: 250px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    font-size: 16px;
  }

  /* About — smaller corner photos, tighter spacing */
  .about-section {
    padding: 150px 16px;
  }
  .about-sticky {
    padding: 90px 0;
  }
  .elementor .about-img-left,
  .about-img-left {
    width: 180px;
    /* max-width: 0; */
  }
  .about-img-right {
    width: 130px;
    max-width: 120px;
  }
  .about-video-right {
    width: 130px;
    max-width: 120px;
  }
  .about-text {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 8px;
  }
  .about-title {
    font-size: 1.35rem;
  }
  .about-loc,
  .about-desc {
    font-size: 0.8rem;
  }

  /* Rooms swiper — mobile */
  .rooms-section {
    padding: 60px 0 80px 20px;
  }
  .rooms-header {
    padding-right: 20px;
    margin-bottom: 32px;
  }
  .room-card.swiper-slide {
    width: 280px;
    aspect-ratio: 4 / 5;
  }
  .room-card-overlay {
    padding: 20px;
  }
  .rooms-next {
    right: 20px;
  }

  /* FAQ */
  .faq-content {
    padding: 60px 20px 40px;
  }
  .faq-header {
    margin-bottom: 32px;
  }
  .faq-image {
    display: none;
  }

  /* Facilities */
  .facilities-section {
    padding: 60px 0 80px 20px;
  }
  .facilities-header {
    padding-right: 20px;
    margin-bottom: 32px;
  }
  .facility-card {
    width: 300px !important;
    /* margin: 30px !important; */
  }
  .facilities-next {
    right: 20px;
  }

  /* Explore */
  .explore-section {
    padding: 60px 20px 80px;
  }
  .explore-card {
    aspect-ratio: 4 / 3;
  }
  .explore-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
  .explore-card-label {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    white-space: normal;
    padding: 0 16px;
  }
  .explore-card-buttons {
    bottom: 18px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Gallery swiper — mobile */
  .gallery-section {
    padding: 60px 0 40px 20px;
  }
  .gallery-item.swiper-slide {
    width: 280px;
    aspect-ratio: 3 / 4;
  }
  .gallery-next {
    right: 20px;
  }

  /* Room Facilities — 1 column */
  .room-facilities-section {
    padding: 60px 20px;
  }
  .facility-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Other Rooms */
  .other-rooms-section {
    padding: 40px 0 80px 20px;
  }
  .other-rooms-header {
    padding-right: 20px;
  }
  .other-rooms-next {
    right: 20px;
  }

  /* Footer — 1 column stacked */
  .footer {
    padding: 40px 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-social {
    justify-self: center;
  }
  .footer-nav {
    grid-column: 1;
    justify-self: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1rem;
  }
}

/* ===== SERVICES (services.html) — mirrors Facilities ===== */
.services-section {
  padding: 100px 60px 60px; /* no right padding so swiper bleeds to edge */
  background: #fff;
  overflow: hidden;
}

.services-header {
  max-width: 720px;
  margin-bottom: 40px;
  padding-right: 60px;
}

.services-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.services-swiper {
  position: relative;
  overflow: visible;
}

/* Swiper navigation buttons — diamond shape (matches facilities) */
.services-next,
.services-prev {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 10;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.18);
  border: 1.5px solid #65582b;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.services-next svg,
.services-prev svg {
  transform: rotate(-45deg);
}

.services-next {
  right: 80px;
}
.services-prev {
  left: 20px;
}

.services-next:hover,
.services-prev:hover {
  background: rgba(101, 88, 43, 0.727);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.services-next.swiper-button-disabled,
.services-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 480px) {
  .services-section {
    padding: 60px 0 80px 20px;
  }
  .services-header {
    padding-right: 20px;
    margin-bottom: 32px;
  }
  .services-section .facility-card {
    width: 260px !important;
  }
  .services-next {
    right: 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .services-section {
    padding: 60px 0 80px 20px;
  }
  .services-header {
    padding-right: 20px;
    margin-bottom: 32px;
  }
  .services-section .facility-card {
    width: 260px !important;
  }
  .services-next {
    right: 20px;
  }
}

/* ===== MONTHLY RENTAL POP-UP ===== */
.rental-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.rental-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.rental-popup-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.rental-popup-overlay.open .rental-popup-card {
  transform: scale(1) translateY(0);
}

.rental-popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.rental-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition:
    opacity 0.6s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.rental-popup-close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .rental-popup-card {
    max-width: 92vw;
    border-radius: 10px;
  }
  .rental-popup-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
}

/* ===== HERO CTA — Book Services button (airport_service.html) ===== */
.hero-cta {
  position: absolute;
  right: 50px;
  bottom: 40px;
  z-index: 4;
  display: inline-block;
  padding: 16px 32px;
  background: #65582b;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.3px;
  border-radius: 4px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-cta:hover {
  background: #a17a35;
  transform: translateY(-2px);
}

/* ===== AIRPORT TRANSFER PACKAGES ===== */
.packages-section {
  padding: 100px 60px 100px;
  background: #fff;
}

.packages-header {
  text-align: center;
  margin-bottom: 64px;
}

.packages-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  color: #3d372d;
  letter-spacing: 0.3px;
}

.packages-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* hairline dividers between cells */
  border-top: 1px solid transparent;
}

.package-item {
  padding: 36px 32px;
  border-right: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
}

/* remove right border on last column */
.package-item:nth-child(3n) {
  border-right: none;
}
/* remove bottom border on last row */
.packages-grid .package-item:nth-last-child(-n + 3) {
  border-bottom: none;
}

.package-from {
  font-size: 0.78rem;
  color: #8a8a8a;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.package-loc {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.package-price {
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ===== MOTORBIKE RENTAL ===== */
.motorbike-section {
  padding: 100px 60px 100px;
  background: #fff;
}

.motorbike-header {
  text-align: center;
  margin-bottom: 64px;
}

.motorbike-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  color: #3d372d;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.motorbike-subtitle {
  font-size: 0.95rem;
  color: #4a4a4a;
  font-weight: 400;
}

.motorbike-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.motorbike-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.motorbike-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.motorbike-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #e8e3d8;
}

.motorbike-info {
  padding: 24px 28px 28px;
}

.motorbike-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.motorbike-price-day {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.motorbike-price-month {
  font-size: 1rem;
  color: #65582b;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ===== OTHER SERVICES — mirrors Facilities/Services swiper ===== */
.other-services-section {
  padding: 60px 60px 100px;
  background: #fff;
  overflow: hidden;
}

.other-services-header {
  max-width: 720px;
  margin-bottom: 40px;
  padding-right: 60px;
}

.other-services-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.other-services-swiper {
  position: relative;
  overflow: visible;
}

.other-services-next,
.other-services-prev {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 10;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.35);
  border: 1.5px solid #65582b;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.other-services-next svg,
.other-services-prev svg {
  transform: rotate(-45deg);
}

.other-services-next {
  right: 80px;
}
.other-services-prev {
  left: 20px;
}

.other-services-next:hover,
.other-services-prev:hover {
  background: rgba(101, 88, 43, 0.727);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.other-services-next.swiper-button-disabled,
.other-services-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Tablet — Airport Service page */
@media (max-width: 768px) {
  .hero-cta {
    right: 32px;
    bottom: 100px;
    padding: 18px 20px;
    font-size: 18px;
  }

  .packages-section {
    padding: 80px 40px;
  }
  .packages-header {
    margin-bottom: 48px;
  }
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset desktop nth-child rules and apply 2-col borders */
  .package-item {
    padding: 32px 24px;
    border-right: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
  }
  .package-item:nth-child(3n) {
    border-right: 1px solid #cfcfcf;
  }
  .package-item:nth-child(2n) {
    border-right: none;
  }
  .packages-grid .package-item:nth-last-child(-n + 3) {
    border-bottom: 1px solid #cfcfcf;
  }
  .packages-grid .package-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  /* Motorbike Rental — tablet: 2 columns */
  .motorbike-section {
    padding: 80px 40px;
  }
  .motorbike-header {
    margin-bottom: 48px;
  }
  .motorbike-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .other-services-section {
    padding: 40px 0 100px 40px;
  }
  .other-services-header {
    padding-right: 40px;
    margin-bottom: 32px;
  }
  .other-services-next {
    right: 40px;
  }
  .other-services-prev {
    display: none;
  }
}

/* Mobile — Airport Service page */
@media (max-width: 480px) {
  .hero-cta {
    right: 20px;
    bottom: 90px;
    padding: 16px 18px;
    font-size: 16px;
  }

  .packages-section {
    padding: 60px 20px;
  }
  .packages-header {
    margin-bottom: 36px;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .package-item,
  .package-item:nth-child(3n),
  .package-item:nth-child(2n) {
    border-right: none;
    border-bottom: 1px solid #cfcfcf;
    padding: 28px 8px;
  }
  .packages-grid .package-item:nth-last-child(-n + 3),
  .packages-grid .package-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid #cfcfcf;
  }
  .packages-grid .package-item:last-child {
    border-bottom: none;
  }

  /* Motorbike Rental — mobile: 1 column */
  .motorbike-section {
    padding: 60px 20px;
  }
  .motorbike-header {
    margin-bottom: 36px;
  }
  .motorbike-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .motorbike-info {
    padding: 20px;
  }

  .other-services-section {
    padding: 40px 0 80px 20px;
  }
  .other-services-header {
    padding-right: 20px;
    margin-bottom: 28px;
  }
  .other-services-next {
    right: 20px;
  }
}

/* ===== BOOKING MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(40, 40, 40, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 95vh;
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px 32px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f1f1f1;
}

.modal-head {
  margin-bottom: 18px;
}

.modal-eyebrow {
  font-size: 0.85rem;
  color: #1a1a1a;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2c;
  border-radius: 4px;
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-label {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.modal-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  padding: 6px 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-field input:focus {
  border-bottom-color: #b68b3f;
}

.modal-submit {
  align-self: flex-end;
  margin-top: 8px;
  background: transparent;
  border: none;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #1a1a1a;
  cursor: pointer;
  padding: 4px 2px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.modal-submit:hover {
  color: #b68b3f;
  transform: translateX(-2px);
}

/* prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 22px 20px 26px;
    border-radius: 12px;
  }
  .modal-title {
    font-size: 1.7rem;
  }
  .modal-submit {
    font-size: 1.35rem;
    letter-spacing: 1.5px;
  }
}

/* ===== MONTHLY RENTALS (monthly_rental.html) ===== */
.monthly-rentals-section {
  padding: 100px 60px 60px;
  background: #fff;
  overflow: hidden;
}

.monthly-rentals-header {
  text-align: center;
  margin-bottom: 56px;
}

.monthly-rentals-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 400;
  color: #3d372d;
  line-height: 1.15;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.monthly-rentals-subtitle {
  font-size: 0.95rem;
  color: #4a4a4a;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.monthly-rentals-swiper {
  position: relative;
  overflow: visible;
}

/* Card */
.rental-card {
  width: 320px;
  height: auto;
  cursor: grab;
}

.rental-card:active {
  cursor: grabbing;
}

.rental-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2c;
  border-radius: 4px;
  margin-bottom: 16px;
}

.rental-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rental-info-left {
  flex: 1;
  min-width: 0;
}
.rental-info-right {
  flex-shrink: 0;
  text-align: left;
  padding-top: 4px;
}

.rental-name {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.rental-price {
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.rental-save-label {
  font-size: 0.8rem;
  color: #1a1a1a;
  font-weight: 400;
  margin-bottom: 2px;
}

.rental-save-price {
  font-size: 0.85rem;
  color: #b68b3f;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Diamond nav buttons (matches Facilities/Services) */
.monthly-rentals-next,
.monthly-rentals-prev {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 10;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 88, 43, 0.18);
  border: 1.5px solid #65582b;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%) rotate(45deg);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.monthly-rentals-next svg,
.monthly-rentals-prev svg {
  transform: rotate(-45deg);
}

.monthly-rentals-next {
  right: 80px;
}
.monthly-rentals-prev {
  left: 20px;
}

.monthly-rentals-next:hover,
.monthly-rentals-prev:hover {
  background: rgba(101, 88, 43, 0.35);
  border-color: #65582b;
  transform: translateY(-50%) rotate(45deg) scale(1.08);
}

.monthly-rentals-next.swiper-button-disabled,
.monthly-rentals-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Tablet */
@media (max-width: 768px) {
  .monthly-rentals-section {
    padding: 80px 0 100px 40px;
  }
  .monthly-rentals-header {
    padding-right: 40px;
    margin-bottom: 40px;
    text-align: left;
  }
  .rental-card {
    width: 300px;
  }
  .monthly-rentals-next {
    right: 40px;
  }
  /* .monthly-rentals-prev { display: none; } */
}

/* Mobile */
@media (max-width: 480px) {
  .monthly-rentals-section {
    padding: 60px 0 80px 20px;
  }
  .monthly-rentals-header {
    padding-right: 20px;
    margin-bottom: 32px;
  }
  .rental-card {
    width: 260px;
  }
  .monthly-rentals-next {
    right: 20px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS =====
 * content-visibility: auto skips rendering of off-screen sections until scrolled into view.
 * Reduces initial layout/paint cost dramatically on long pages (mobile FCP/LCP boost).
 * contain-intrinsic-size reserves placeholder space so it doesn't cause layout shift.
 * Hero section is excluded — must paint immediately for LCP.
 */
.about-section,
.rooms-section,
.facilities-section,
.explore-section,
.gallery-section,
.room-facilities-section,
.other-rooms-section,
.faq-section,
.services-section,
.packages-section,
.motorbike-section,
.discover-section,
.accommodation-section,
.destination-section,
.hashtag-gallery-section,
.monthly-rentals-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* GPU acceleration hints for swiper sliders (smoother on mobile, less jank) */
.swiper-slide {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Honor user's reduce-motion preference (also helps perf) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== MOBILE-SPECIFIC PERFORMANCE TWEAKS =====
 * Only the safe ones. Background-attachment fixed → scroll prevents fullscreen
 * repaints during scroll. Other tweaks (backdrop-filter, * transitions) were
 * removed because they were ADDING expensive effects not reducing them.
 */
@media (max-width: 768px) {
  /* Disable fixed/parallax backgrounds on mobile (forces fullscreen repaints during scroll) */
  .hero-section,
  .about-section,
  .destination-section {
    background-attachment: scroll !important;
  }
}

/* ===== IMAGE PERF =====
 * Basic responsive image hygiene. No aspect-ratio attr() — that CSS feature
 * isn't supported yet, would just be ignored. Real fix is to set width/height
 * attributes on <img> tags directly (Elementor does this automatically).
 */
img {
  height: auto;
  max-width: 100%;
}
