:root{
  --gold:#c9a24d;
  --dark:#0f172a;
  --bg:#f6f7f9;
  --card:#ffffff;
  --muted:#6b7280;
}

*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:Poppins,sans-serif;
  background:linear-gradient(180deg,#f7f8fa,#eef1f5);
  color:#1f2937;
  -webkit-font-smoothing:antialiased;
}

/* ================= NAVBAR ================= */
header{
  position:fixed;
  top:0;
  width:100%;
  height:100px;
  padding:0 80px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:linear-gradient(to bottom,rgba(0,0,0,.35),transparent);
  transition:.45s cubic-bezier(.4,0,.2,1);
  z-index:999;
}

header.scrolled{
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 40px rgba(0,0,0,.15);
}


.logo{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo img{height:44px}

.logo span{
  font-size:44px;
  font-weight:600;
  color:#fff;
  letter-spacing:.5px;
  transition:.35s;
}

header.scrolled .logo span{color:#000}

/* NAV LINKS */
nav a{
  margin-left:34px;
  text-decoration:none;
  font-weight:500;
  color:#fff;
  position:relative;
  letter-spacing:.4px;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:2px;
  background:linear-gradient(90deg,var(--gold),#e7c977);
  transition:.35s;
}

nav a:hover::after{width:100%}
header.scrolled nav a{color:#000}

/* ================= HERO ================= */
.hero{
  height:100vh;
  background:
    linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.8)),
    url("https://images.unsplash.com/photo-1566073771259-6a8506099945") center/cover;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding-top:100px;
}

.hero h1{
  font-family:"Playfair Display",serif;
  font-size:64px;
  letter-spacing:1px;
}

.hero p{
  margin-top:22px;
  font-size:18px;
  max-width:760px;
  opacity:.92;
}

/* ================= SECTION ================= */
section{
  padding:100px 90px;
}

.section-title{
  text-align:center;
  margin-bottom:70px;
}

.section-title h2{
  font-size:44px;
  font-family:"Playfair Display",serif;
}

.section-title p{
  margin-top:12px;
  color:#6b7280;
  font-size:15px;
}

/* ================= RESORT GRID ================= */

.resorts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
}

.resort-card{
  background:var(--card);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 25px 60px rgba(0,0,0,.12);
  transition:.45s cubic-bezier(.4,0,.2,1);
  cursor:pointer;
}

.resort-card:hover{
  transform:translateY(-14px) scale(1.01);
  box-shadow:0 40px 90px rgba(0,0,0,.25);
}

.resort-card img{
  width:100%;
  height:250px;
  object-fit:cover;
}

.resort-content{
  padding:30px;
}

.resort-content h3{
  font-size:21px;
  font-weight:600;
}

.resort-content p{
  font-size:14px;
  color:var(--muted);
  margin:10px 0;
}

.price{
  font-size:17px;
  font-weight:600;
  color:var(--gold);
  margin:18px 0;
}

/* BUTTON */
.resort-content a{
  display:inline-block;
  padding:12px 32px;
  border-radius:40px;
  background:linear-gradient(135deg,#000,#222);
  color:#fff;
  text-decoration:none;
  font-size:14px;
  letter-spacing:.3px;
  transition:.35s;
}

.resort-content a:hover{
  background:linear-gradient(135deg,var(--gold),#e7c977);
  color:#000;
}

/* ================= MODAL ================= */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px; /* ✅ creates gap from screen edges */
  z-index:2000;
}



.modal-box{
  background:#fff;
  width:100%;
  max-width:420px;          /* ✅ mobile card width */
  max-height:90vh;          /* ✅ never overflow screen */
  border-radius:22px;
  padding:18px;
  overflow-y:auto;          /* ✅ internal scroll */
  position:relative;
  animation:modalIn .35s ease;
}

@keyframes modalIn{
  from{opacity:0;transform:scale(.92)}
  to{opacity:1;transform:scale(1)}
}

.close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
  cursor:pointer;
}



/* GALLERY */
.modal-gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px;
}


.thumbs{
  display:flex;
  gap:10px;
  margin:12px 0 18px;
  overflow-x:auto;
}

.thumbs img{
  width:62px;
  height:62px;
  border-radius:12px;
  object-fit:cover;
  flex-shrink:0;
}


.thumbs img:hover{opacity:1}

/* FORM */
.modal-content input,
.modal-content select{
  width:100%;
  padding:12px 14px;
  margin:10px 0;
  border-radius:10px;
  border:1px solid #d1d5db;
  font-size:14px;
}

.modal-price{
  font-weight:600;
  font-size:16px;
  color:var(--gold);
  margin:14px 0;
}

/* ================= FOOTER ================= */
footer{
  padding:50px;
  text-align:center;
  background:#fff;
  border-top:1px solid #e5e7eb;
  font-size:14px;
  color:#6b7280;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  header{padding:0 22px;height:90px}
  nav{display:none}
  section{padding:70px 22px}
  .hero h1{font-size:40px}
  .hero p{font-size:16px}
}

@media(max-width:768px){
  .modal-box{
    grid-template-columns:1fr;
    max-height:90vh;
    overflow:auto;
  }
}
@media(max-width:768px){
  .modal-box{
    grid-template-columns:1fr;
    gap:24px;
    padding:22px;
    border-radius:22px;
  }

  .modal-gallery img{
    max-height:260px;
    object-fit:cover;
  }
}

/* ================= BOOKING BUTTONS ================= */
.booking-actions{
  display:flex;
  gap:14px;
  margin-top:24px;
}

@media(max-width:600px){
  .booking-actions{
    flex-direction:column;
  }

  .view-btn{
    width:100%;
    text-align:center;
  }
}


.view-btn{
  flex:1;
  padding:14px 22px;
  border-radius:30px;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  letter-spacing:.3px;
  transition:.35s ease;
}

/* BOOK NOW */
#openBooking{
  background:linear-gradient(135deg,#000,#222);
  color:#fff;
}

#openBooking:hover{
  background:linear-gradient(135deg,var(--gold),#e2c26c);
  color:#000;
  transform:translateY(-2px);
}

/* WHATSAPP SEND */
#sendWhatsapp{
  background:linear-gradient(135deg,#25d366,#1ebe5d);
  color:#fff;
}

#sendWhatsapp:hover{
  background:linear-gradient(135deg,#1ebe5d,#128c7e);
  transform:translateY(-2px);
}

/* MOBILE */
@media(max-width:600px){
  .booking-actions{
    flex-direction:column;
  }
}
.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
  color:#fff;
}

header.scrolled .menu-toggle{color:#000}

.mobile-nav{
  position:fixed;
  top:100px;
  right:-100%;
  width:100%;
  height:calc(100vh - 100px);
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-top:40px;
  transition:.4s ease;
  z-index:998;
}

.mobile-nav a{
  text-decoration:none;
  font-size:18px;
  color:#000;
  margin:16px 0;
  font-weight:500;
}

.mobile-nav .book{
  margin-top:25px;
  padding:12px 32px;
  background:#000;
  color:#fff;
  border-radius:30px;
}

/* SEARCH BOX */
.search-box{
  position:relative;
}

.search-box input{
  width:260px;
  padding:10px 38px 10px 16px;
  border-radius:30px;
  border:none;
  outline:none;
  font-size:14px;
}

.search-box i{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#555;
}

/* Navbar scroll color fix */
header.scrolled .search-box input{
  background:#f1f5f9;
}

/* Hide search on mobile */
@media(max-width:900px){
  .search-box{display:none}
}


/* RESPONSIVE */
@media(max-width:900px){
  nav{display:none}
  .menu-toggle{display:block}
}

/* MOBILE SEARCH ICON */
.mobile-search-icon{
  display:none;
  font-size:22px;
  cursor:pointer;
  color:#fff;
}

header.scrolled .mobile-search-icon{color:#000}

/* MOBILE SEARCH OVERLAY */
.mobile-search{
  position:fixed;
  top:100px;
  left:0;
  width:100%;
  background:#fff;
  padding:15px;
  display:none;
  z-index:998;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.mobile-search-box{
  position:relative;
}

.mobile-search-box input{
  width:100%;
  padding:14px 40px 14px 16px;
  border-radius:30px;
  border:1px solid #ddd;
  font-size:16px;
}

.mobile-search-box span{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:26px;
  cursor:pointer;
}

/* MOBILE ONLY */
@media(max-width:900px){
  .mobile-search-icon{display:block}
}