/* =========================
   HERO SLIDER
========================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 80vh;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.65));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.hero-slider h2 {
  font-size: 3rem;
  margin-bottom: .5rem;
}

.hero-slider p {
  font-size: 1.2rem;
  max-width: 520px;
}

/* =========================
   NAV ARROWS
========================= */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: .5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 6px;
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

.hero-nav:hover {
  background: rgba(0,0,0,.8);
}

/* =========================
   GRID STYLING
========================= */
.home-section {
  padding: 4rem 0;
}

.home-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.grid-wrapper {
  position: relative;
  overflow: visible;
}

.home-section-layanan .section-nav,
.home-section-destinasi .section-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.05);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  pointer-events: auto;
}

.home-section-layanan .section-nav.prev,
.home-section-destinasi .section-nav.prev {
  left: -18px;
}

.home-section-layanan .section-nav.next,
.home-section-destinasi .section-nav.next {
  right: -18px;
}

/* Pastikan button nav tidak menutupi grid-item */
.home-section-layanan .section-nav,
.home-section-destinasi .section-nav {
  pointer-events: auto;
}

.home-section-layanan .grid-item,
.home-section-destinasi .grid-item {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.home-section-layanan .section-nav:hover,
.home-section-destinasi .section-nav:hover {
  background: rgba(0,0,0,.12);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: transform .2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.grid-item:hover {
  transform: translateY(-4px);
}

.grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.grid-item h3 {
  padding: 1rem;
  font-size: 1.1rem;
}

.villa-price {
  padding: 0 1rem 1rem;
  color: #e11d48;
  font-weight: bold;
}

/* FAQ styling */
.home-section.faq details.faq-item {
  margin-bottom: 1rem;
}

.home-section.faq summary {
  cursor: pointer;
}

.home-section.faq .faq-answer {
  margin-top: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.6);
  padding: 0.75rem 1rem;
}
