:root {
  --gold-primary: #c5a059;
  --gold-dark: #a3813c;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.section-hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  max-width: 900px;
  margin: 40px auto;
}

/* NAVBAR GAYA STYLED */
.main-navbar {
  background: #1e293b;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
}

.nav-links a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

/* SCROLL FADE-IN ANIMATION (HONOR WEBSITE STYLE) */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ANTI SCAM BAR */
.scam-alert-bar {
  background: #0f172a;
  color: #f1f5f9;
  padding: 8px 15px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.scam-alert-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.scam-alert-container i {
  color: var(--gold-primary);
}

/* HERO SECTION */
.hero {
  position: relative;
  background: url('images/Mainpage.jpg') center bottom 25% / cover no-repeat;
  color: white;
  text-align: center;
  padding: 90px 20px 80px;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.resort-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.4);
  background: rgba(0,0,0,0.3);
  padding: 5px 14px;
  margin-bottom: 16px;
  border-radius: 30px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.location-tag {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-gold {
  background: var(--gold-primary);
  color: white;
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.25);
}

/* ACCOMMODATIONS CARDS GRID (GAYA PICTURE 1) */
.accommodations-section {
  max-width: 900px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.sub-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.section-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.accommodation-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.accommodation-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accommodation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-img-wrap {
  position: relative;
  height: 220px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(15, 23, 42, 0.85);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.unit-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.unit-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fef08a;
}

.unit-price small {
  font-size: 0.72rem;
  color: #e2e8f0;
  font-weight: 400;
}

.card-body {
  padding: 15px;
}

.card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-select {
  width: 100%;
  background: #f8fafc;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.accommodation-card:hover .btn-select {
  background: var(--gold-primary);
  color: #fff;
  border-color: var(--gold-primary);
}

/* UNIT SWITCHER NAVIGATION */
.unit-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 20px auto 30px;
  padding: 0 20px;
}

.tab-btn {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--gold-primary);
  color: white;
  border-color: var(--gold-primary);
}

/* MAIN DETAILS WRAPPER */
.unit-content {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.unit-content.active {
  display: block;
}

/* COMPLIMENTARY BADGE */
.badge-complimentary {
  background: #ffffff;
  border-left: 4px solid var(--gold-primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.complimentary-icon i {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.complimentary-text strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold-dark);
}

.complimentary-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* INFO CARDS & ROOMS */
.quick-info-card {
  background: #ffffff;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 30px;
}

.quick-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.info-box {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
}

.info-box i {
  color: var(--gold-primary);
}

.info-box strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-box span {
  font-size: 0.88rem;
  font-weight: 600;
}

/* MEDIA SLIDER */
.media-section { margin-bottom: 30px; }
.slider-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-top: 15px;
}

.slide-card {
  flex: 0 0 80%;
  max-width: 440px;
  scroll-snap-align: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.slide-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 16px 14px 10px;
  font-size: 0.85rem;
  pointer-events: none; /* Membolehkan klik ke media di bawah */
}

/* ROOM CARDS & AMENITIES */
.room-cards, .amenities-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.room-card, .amenity-cat {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 8px;
}

.room-badge, .amenity-cat h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.room-card ul, .amenity-cat ul { list-style: none; }
.room-card li, .amenity-cat li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-card li i, .amenity-cat li i { color: var(--gold-primary); }

/* ENQUIRY FORM */
.booking-card {
  background: #ffffff;
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #f8fafc;
}

.nights-summary-box {
  background: #f1f5f9;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}

.nights-summary-box.valid { background: #f0fdf4; color: #166534; }

.btn-wa { background: #25d366; color: white; width: 100%; }
.btn-wa:hover { background: #1eb957; }

/* NEARBY & FEATURES SECTION */
.nearby-section, .reviews-section, .house-rules {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.nearby-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nearby-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fef08a;
  color: #713f12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nearby-text h4 { font-size: 0.88rem; color: var(--text-dark); }
.nearby-text p { font-size: 0.78rem; color: var(--text-muted); }

/* FEATURES HIGHLIGHT GRID */
.features-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 8px;
  text-align: center;
}

.feature-box i {
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.feature-box h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.feature-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* REVIEWS SECTION */
.review-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 700px;
  margin: 20px auto 0;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.review-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.review-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-google-review {
  background: #4285f4;
  color: white;
}

.btn-google-review:hover {
  background: #3367d6;
}

/* RULES GRID */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.rule-item {
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-item.red { background: #fef2f2; color: #991b1b; }
.rule-item.green { background: #f0fdf4; color: #166534; }

/* FLOATING CHAT & FOOTER */
.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.chat-tooltip {
  background: #ffffff;
  color: #111111;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-btn {
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 35px;
  margin-top: 40px;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 25px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand p { font-size: 0.82rem; max-width: 320px; }
.footer-contact p { font-size: 0.82rem; margin-bottom: 4px; }
.footer-contact a { color: var(--gold-primary); text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 14px 20px; font-size: 0.75rem; color: #64748b; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .chat-tooltip { display: none; }
}

.price-negotiable-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  margin-top: 14px;
}

.price-negotiable-note i {
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.negotiable-tag {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdfaef;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--gold-primary);
}

.negotiable-tag i {
  color: var(--gold-primary);
}

.distance-badge {
  display: inline-block;
  background: var(--gold-primary, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  vertical-align: middle;
}

/* SUB-TAJUK GALERI */
.gallery-sub-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* PLAY ICON / STYLING VIDEO CARD */
.slide-card video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: 8px;
  cursor: pointer;
}

.slide-card.video-card {
  border: 1px solid rgba(197, 160, 89, 0.4);
}

/* LIGHTBOX MODAL (PHOTO & VIDEO FULLVIEW) */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s ease;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 38px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* TIKTOK BUTTON STYLE */
.btn-tiktok {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-tiktok:hover {
  background: #ff0050; /* TikTok brand accent hover */
  color: #ffffff;
  border-color: #ff0050;
  box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}