/* =================================
   RESET & GLOBAL
================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}
body{
  font-family:'Poppins',sans-serif;
  background:#f4f6f9;
  color:#333;
  line-height:1.6;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:'Montserrat',sans-serif;
  letter-spacing:1px;
}
section{
  padding:70px 10%;
  text-align:center;
}
section h2{
  margin-bottom:25px;
  font-size:32px;
}

/* =================================
   HEADER
================================= */
header{
  background:linear-gradient(to right,#2c3e50,#3498db);
  color:#fff;
  text-align:center;
  padding:50px 20px;
}
header h1{
  font-size:36px;
}

/* =================================
   NAVBAR
================================= */
nav{
  background:#2c3e50;
  padding:15px 0;
  position:sticky;
  top:0;
  z-index:1000;
}
.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}
.logo{
  color:white;
  font-weight:600;
  font-size:20px;
}
.nav-links{
  display:flex;
  gap:25px;
  transition:0.3s;
}
.nav-links a{
  color:white;
  text-decoration:none;
  font-weight:500;
  transition:0.3s;
}
.nav-links a:hover{
  color:#3498db;
}
.menu-toggle{
  display:none;
  font-size:26px;
  cursor:pointer;
  color:white;
}

/* =================================
   HERO
================================= */
.hero{
  height:100vh;
  width:100%;
  background:url('images/hero.jpg') center/cover no-repeat;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
}
.hero::after{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  top:0;
  left:0;
}
.hero-text{
  position:relative;
  z-index:2;
  color:#fff;
  text-align:center;
  animation:fadeIn 1.5s ease;
}
.hero-text h1{
  font-size:48px;
  margin-bottom:15px;
}
.hero-text p{
  font-size:18px;
  opacity:0.9;
}

/* =================================
   GRID KAMAR
================================= */
.kamar-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
  margin-top:40px;
}

/* =================================
   CARD KAMAR
================================= */
.card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  overflow:hidden;
  transition:0.3s ease;
  text-align:center;
  height:420px;
  display:flex;
  flex-direction:column;
}
.card:hover{
  transform:translateY(-8px);
}
.card img{
  width:100%;
  height:220px;
  object-fit:cover;
  transition:0.3s;
}
.card:hover img{
  transform:scale(1.05);
}
.card-content{
  padding:15px;
  overflow-y:auto;
  flex:1;
}
.card h3{
  margin-top:10px;
  font-size:20px;
  font-weight:600;
  color:#222;
}
.card p{
  margin-top:6px;
  font-size:14px;
  color:#777;
}
.card button{
  margin-top:15px;
  width:70%;
  margin-left:auto;
  margin-right:auto;
}

/* =================================
   FORM BOOKING
================================= */
form{
  background:#fff;
  padding:35px;
  border-radius:14px;
  max-width:520px;
  width:100%;
  margin:auto;
}
form input,
form select{
  width:100%;
  padding:12px;
  margin:12px 0;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:14px;
}

/* =================================
   BUTTON GLOBAL
================================= */
button{
  background:#3498db;
  color:#fff;
  padding:14px;
  border:none;
  border-radius:8px;
  width:100%;
  cursor:pointer;
  transition:0.3s;
  font-size:15px;
}
button:hover{
  background:#2980b9;
}

/* =================================
   VIDEO
================================= */
.video-container{
  max-width:700px;
  margin:40px auto;
}
.video-container video{
  width:100%;
  border-radius:15px;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
}
video{
  max-width:100%;
  height:auto;
}

/* =================================
   GALLERY GRID
================================= */
.gallery-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:40px;
}
.gallery-container img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:15px;
  cursor:pointer;
  transition:0.4s;
  box-shadow:0 5px 15px rgba(0,0,0,0.15);
}
.gallery-container img:hover{
  transform:scale(1.07);
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
}

/* =================================
   REVIEW
================================= */
.review-box{
  background:#fff;
  padding:22px;
  margin:20px auto;
  max-width:520px;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(0,0,0,0.07);
}
.review-box p{
  margin:5px 0;
}

/* =================================
   FOOTER
================================= */
footer{
  background:#2c3e50;
  color:#fff;
  text-align:center;
  padding:25px;
  font-size:14px;
}

/* =================================
   MODAL DETAIL
================================= */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  justify-content:center;
  align-items:center;
}
.modal-content{
  background:white;
  padding:30px;
  width:90%;
  max-width:800px;
  border-radius:20px;
  position:relative;
  animation:zoomIn 0.3s ease;
  max-height:80vh;
  overflow-y:auto;
}
.modal-content::-webkit-scrollbar{
  width:6px;
}
.modal-content::-webkit-scrollbar-thumb{
  background:#3498db;
  border-radius:10px;
}
.close{
  position:absolute;
  right:20px;
  top:15px;
  font-size:28px;
  cursor:pointer;
}

/* =================================
   DETAIL FOTO MODAL
================================= */
.detail-foto{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:15px;
  margin-top:20px;
}
.detail-foto img{
  width:100%;
  border-radius:12px;
  cursor:pointer;
  transition:0.3s;
}
.detail-foto img:hover{
  transform:scale(1.05);
}


/* ==============================
   LIGHTBOX
============================== */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.95);
  justify-content:center;
  align-items:center;
  z-index:9999;
  overflow:hidden;
}

.lightbox img{
  max-width:90%;
  max-height:80%;
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}

/* Tombol previous & next */
.prev, .next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:40px;
  color:white;
  cursor:pointer;
  padding:15px;
  user-select:none;
  z-index:10000;
  background:rgba(0,0,0,0.3);
  border-radius:50%;
  transition:0.3s;
}

.prev:hover, .next:hover{
  background:rgba(0,0,0,0.6);
  color:#3498db;
}

.prev{left:20px;}
.next{right:20px;}

/* Tombol close */
.close-lightbox{
  position:absolute;
  top:15px;
  right:20px;
  font-size:35px;
  color:white;
  cursor:pointer;
  font-weight:bold;
  z-index:10000;
  background:rgba(0,0,0,0.3);
  padding:8px 12px;
  border-radius:50%;
  transition:0.3s;
}

.close-lightbox:hover{
  color:#3498db;
  background:rgba(0,0,0,0.6);
}


/* =================================
   GALLERY GRID FIX UKURAN
================================= */
.gallery-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); /* kolom lebih kecil */
  gap:15px;
  margin-top:40px;
}

.gallery-container img{
  width:100%;
  aspect-ratio: 4/3;  /* semua foto proporsinya 4:3 */
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  transition:0.3s;
  box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.gallery-container img:hover{
  transform:scale(1.05);
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
}

/* Mobile responsive lightbox */
@media (max-width:768px){
  .lightbox img{
    max-width:95%;
    max-height:70%;
  }
  .prev, .next{
    font-size:32px;
    padding:12px;
  }
  .close-lightbox{
    font-size:30px;
    padding:6px 10px;
  }
}
@media (max-width:480px){
  .lightbox img{
    max-width:100%;
    max-height:65%;
  }
  .prev, .next{
    font-size:28px;
    padding:10px;
  }
  .close-lightbox{
    font-size:28px;
    padding:5px 8px;
  }
}

/* =================================
   MODAL BOOKING BUTTON
================================= */
.modal-booking{
  display:inline-block;
  margin-top:20px;
  padding:12px 25px;
  background:#3498db;
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:500;
  transition:0.3s;
}
.modal-booking:hover{
  background:#2980b9;
}

/* =================================
   ANIMATION
================================= */
@keyframes fadeIn{
  from{opacity:0;transform:translateY(25px);}
  to{opacity:1;transform:translateY(0);}
}
@keyframes zoomIn{
  from{transform:scale(0.8);opacity:0;}
  to{transform:scale(1);opacity:1;}
}

/* =================================
   RESPONSIVE
================================= */
@media(max-width:768px){
  .menu-toggle{display:block;}
  .nav-links{
    position:absolute;
    top:70px;
    right:20px;
    background:#34495e;
    width:200px;
    flex-direction:column;
    display:none;
    padding:20px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
  }
  .nav-links a{margin:10px 0;}
  .nav-links.active{display:flex;}
  section{padding:50px 6%;}
  .hero{height:80vh;}
  .hero-text h1{font-size:32px;}
  .hero-text p{font-size:16px;}
  .video-container{max-width:90%;}
  .kamar-container{grid-template-columns:1fr;}
  .gallery-container{grid-template-columns:1fr 1fr;}
}
@media(max-width:500px){
  .gallery-container{grid-template-columns:1fr;}
}
/* ========================
   BUTTON WHATSAPP
======================== */
.wa{
  display:inline-block;
  margin-top:20px;
  padding:14px 25px;
  background:#25D366;
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  transition:0.3s;
}
.wa:hover{background:#1ebe5d;}

/* Form reservasi */
.booking-form {
  max-width: 500px;
  margin: auto;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Check in & Check out */
.date-group {
  display: flex;
  gap: 10px;
}

.date-group input {
  flex: 1;
}

/* Mobile */
@media (max-width: 600px) {
  .date-group {
    flex-direction: column;
  }
}

.booking-form {
  max-width: 500px;
  margin: auto;
  padding: 20px;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Check in & check out sejajar */
.date-group {
  display: flex;
  gap: 10px;
}

.date-group div {
  flex: 1;
}

/* Mobile */
@media (max-width: 600px) {
  .date-group {
    flex-direction: column;
  }
}