/* ==========================================================================
   Marjaan Luxury Apartments — brand tokens
   Colors sampled directly from the live Springnest site.
   ========================================================================== */
:root {
  --brown-dark:   #4a3020;
  --brown:        #623d22;
  --gold:         #86710a;
  --gold-dark:    #6e5c08;
  --cream:        #fdfaf0;
  --cream-deep:   #f6f0dd;
  --text-body:    #4a4a4a;
  --text-heading: #5c4626;
  --white:        #ffffff;
  --border-soft:  rgba(74, 48, 32, 0.14);

  --font-display: 'Marcellus', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.6rem; letter-spacing: 0.04em; }
h2 { font-size: 2.1rem; letter-spacing: 0.03em; }
h3 { font-size: 1.5rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-header h2 { margin-bottom: 0.4em; }
.section-header p { font-size: 1.1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border: 1px solid var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }

/* ---- Top contact bar ---- */
.topbar { background: var(--brown-dark); color: var(--white); font-size: 0.85rem; }
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-phone { color: var(--white); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { color: var(--white); opacity: 0.85; font-size: 0.95rem; }
.topbar-social a:hover { opacity: 1; }
.topbar-weather { display: flex; align-items: center; gap: 6px; opacity: 0.9; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--brown-dark);
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
/* Pages with a full-bleed hero photo directly under the nav (class
   "hero-page" on <body>) start with a transparent nav overlaid on that
   photo, until the visitor scrolls, at which point body.nav-locked (set
   by main.js) switches it to the same solid, locked bar used elsewhere. */
.hero-page .site-header {
  position: absolute;
  top: var(--topbar-h, 40px);
  left: 0; right: 0;
  background: transparent;
  box-shadow: none;
}
body.nav-locked.hero-page .site-header {
  position: fixed;
  top: 0;
  background: var(--brown-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand img { height: 72px; width: auto; flex-shrink: 0; }
.nav-cluster { display: flex; align-items: center; gap: 28px; }
.main-nav { min-width: 0; }
.main-nav > ul { display: flex; gap: 19px; flex-wrap: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 0;
  display: inline-block;
  white-space: nowrap;
}
.main-nav > ul > li.is-active > a,
.main-nav > ul > li > a:hover { color: #e8d9a8; }
.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brown-dark);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.main-nav li.has-children:hover .submenu { display: block; }
.main-nav .submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
}
.main-nav .submenu a:hover { background: rgba(255,255,255,0.08); }
.nav-book-btn { white-space: nowrap; flex-shrink: 0; padding: 11px 22px; font-size: 0.85rem; font-weight: 700; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
}
.mobile-menu-toggle span { display: block; height: 2px; background: var(--white); }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav-cluster { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-page .site-header { position: sticky; top: 0; background: var(--brown-dark); }
  body.mobile-nav-open .mobile-nav {
    display: block;
    background: var(--brown-dark);
    padding: 8px 24px 24px;
  }
  .mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav > ul > li > a {
    color: var(--white);
    padding: 12px 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-nav ul ul { padding-left: 16px; }
  .mobile-nav ul ul li a { border-bottom: none; text-transform: none; color: #e8d9a8; font-size: 0.9rem; padding: 8px 0; }
  .mobile-nav .btn { margin-top: 12px; }
}

/* ---- Hero (page header banner with background image) ---- */
.page-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
@media (max-width: 700px) {
  .page-hero { min-height: 380px; }
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(40, 26, 14, 0.38);
}
.page-hero h1 { position: relative; color: var(--white); margin: 0; z-index: 1; text-transform: uppercase; letter-spacing: 0.12em; font-size: 3.4rem; }
@media (max-width: 700px) { .page-hero h1 { font-size: 2rem; } }

/* ---- Homepage hero carousel ---- */
.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: rgba(20,14,8,0.28); }
.home-hero-inner { position: relative; z-index: 1; width: 100%; padding: 0 24px; text-align: center; }
.home-hero h1 { color: var(--white); font-size: 4rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15; }
.hero-subtitle { font-family: var(--font-display); font-size: 1.6rem; margin-top: -0.2em; }
.home-hero-inner .btn { margin-top: 20px; }
@media (max-width: 700px) {
  .home-hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.15rem; }
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; background: none; border: none; color: var(--white);
  font-size: 3rem; line-height: 1; cursor: pointer; padding: 8px 16px;
  opacity: 0.75; transition: opacity 0.15s ease;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow-prev { left: 8px; }
.hero-arrow-next { right: 8px; }

.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--white);
  background: transparent; padding: 0; cursor: pointer; opacity: 0.7;
}
.hero-dots button.is-active { background: var(--white); opacity: 1; }

@media (max-width: 700px) {
  .hero-arrow { font-size: 2rem; padding: 6px 10px; }
}

.booking-widget {
  max-width: 760px;
  margin: 18px auto 70px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
}
.booking-widget label { display: block; font-size: 0.95rem; color: var(--text-heading); margin-bottom: 6px; text-align: left; }
.booking-widget label::after { content: ':'; }
.booking-widget input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  box-sizing: border-box;
}
.booking-widget button {
  align-self: auto;
  height: 44px;
  padding: 0 22px;
  font-size: 0.82rem;
  font-weight: 400;
  box-sizing: border-box;
}

/* ---- Intro text block ---- */
.intro-block { max-width: 900px; margin: 0 auto; text-align: center; padding: 72px 24px 0; }
.intro-heading { font-size: 2.3rem; color: var(--text-heading); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.45; margin-bottom: 0.8em; }
.intro-block p { font-size: 1.1rem; line-height: 1.75; }
@media (max-width: 700px) { .intro-heading { font-size: 1.7rem; } }

/* ---- Amenity icon grid ---- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.amenities-grid .amenity i { display: block; font-size: 2.2rem; color: var(--gold); margin-bottom: 10px; }
.amenities-grid .amenity { font-size: 0.95rem; color: var(--brown); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 700px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Room cards (home + accommodation) ---- */
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.room-card { text-align: center; }
.room-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.room-card h3 { margin: 18px 0 8px; }
.room-card .room-specs { color: var(--brown); font-size: 0.95rem; margin-bottom: 16px; }
.room-card .room-specs strong { color: var(--text-heading); }
@media (max-width: 700px) { .room-grid { grid-template-columns: 1fr; } }

/* ---- Split feature slideshow (STAY / EXPLORE / ...) ---- */
.feature-split { position: relative; margin-bottom: 56px; }
.feature-slide-full { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-slide-full.is-active { display: grid; }
.feature-slide-full img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 800px) {
  .feature-slide-full.is-active { display: block; }
  .feature-slide-full .feature-media { margin-bottom: 24px; }
}

.feature-carousel-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.feature-carousel-wrap .feature-split { flex: 1; margin-bottom: 0; min-width: 0; }
.feature-media { position: relative; }
.feature-arrow {
  background: none; border: none; color: var(--gold-dark);
  font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 8px 6px;
  flex-shrink: 0;
}
.feature-arrow:hover { color: var(--brown); }
@media (max-width: 800px) {
  .feature-carousel-wrap { flex-wrap: wrap; justify-content: center; }
  .feature-carousel-wrap .feature-split { order: 2; flex-basis: 100%; }
  .feature-arrow-prev { order: 1; }
  .feature-arrow-next { order: 3; }
}

/* ---- Booking banner (photo background CTA) ---- */
.booking-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.booking-banner::after { content: ''; position: absolute; inset: 0; background: rgba(30,20,10,0.45); }
.booking-banner > * { position: relative; z-index: 1; }
.booking-banner h2 { color: var(--white); }
.booking-banner-heading { font-size: 3rem; text-transform: uppercase; letter-spacing: 0.04em; max-width: 900px; }
.booking-banner-parallax { min-height: 1100px; background-attachment: fixed; }
@media (max-width: 700px) {
  .booking-banner-heading { font-size: 1.9rem; }
  /* background-attachment:fixed is unreliable on mobile browsers, so the photo scrolls normally there */
  .booking-banner-parallax { min-height: 600px; background-attachment: scroll; }
}

/* ---- Reviews ---- */
.review-list { display: flex; flex-direction: column; gap: 18px; max-width: 780px; }
.review-card { background: var(--cream); padding: 24px 28px; }
.review-card h3 { margin-bottom: 6px; color: var(--gold-dark); font-size: 1.2rem; }
.review-card .review-author { margin-top: 14px; font-weight: 600; color: var(--text-heading); }
.review-card .review-origin { color: var(--gold-dark); font-size: 0.9rem; }
.reviews-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .reviews-layout { grid-template-columns: 1fr; } }

/* ---- Homepage reviews carousel (one at a time) ---- */
.review-carousel {
  position: relative;
  width: auto;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.review-slide {
  display: none;
  text-align: center;
  padding: 30px 40px;
  height: 340px;
  overflow-y: auto;
  flex-direction: column;
  justify-content: center;
}
.review-slide.is-active { display: flex; }
.review-slide h3 { font-size: 1.6rem; margin-bottom: 16px; }
.review-slide p { font-size: 1.25rem; line-height: 1.7; }
.review-slide p.is-long { font-size: 1rem; }
.reviews-band { padding: 32px 0; }
.review-slide .review-author { margin-top: 22px; font-size: 1.1rem; }
.review-slide .review-origin { font-size: 1rem; }
.review-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; }
.review-arrow { background: none; border: none; color: var(--gold-dark); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.review-arrow:hover { color: var(--brown); }
.review-dots { display: flex; gap: 10px; }
.review-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold-dark); background: transparent; padding: 0; cursor: pointer; }
.review-dots button.is-active { background: var(--gold-dark); }
@media (max-width: 700px) {
  .review-slide { padding: 24px 12px; height: 300px; }
  .review-slide p { font-size: 1.1rem; }
  .review-slide p.is-long { font-size: 0.9rem; }
}

/* ---- Gallery ---- */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-filters button {
  background: var(--white);
  border: 1px solid var(--border-soft);
  padding: 8px 18px;
  font-family: var(--font-body);
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gallery-filters button.is-active { background: var(--gold); color: var(--white); border-color: var(--gold); }
.gallery-grid { column-count: 4; column-gap: 12px; }
.gallery-grid figure { margin: 0 0 12px; break-inside: avoid; }
.gallery-grid img { width: 100%; cursor: pointer; }
@media (max-width: 960px) { .gallery-grid { column-count: 3; } }
@media (max-width: 640px) { .gallery-grid { column-count: 2; } }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20,14,8,0.9);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 32px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-height: 90vh; max-width: 90vw; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: var(--white); font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---- Explore attractions ---- */
.attractions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.attractions-grid i { display: block; font-size: 1.9rem; color: var(--gold); margin-bottom: 10px; }
@media (max-width: 700px) { .attractions-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Offers ---- */
.offer-card { border: 1px solid var(--border-soft); padding: 32px; margin-bottom: 20px; }
.offer-empty { text-align: center; color: var(--brown); padding: 40px 0; }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; }
.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--brown); }
.contact-form .field { margin-bottom: 20px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  background: #f7f5ef;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info h3 { color: var(--gold-dark); margin-bottom: 16px; }
.contact-info p { margin: 6px 0; }
.contact-info a { color: var(--gold-dark); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

.form-success { background: var(--cream); border: 1px solid var(--gold); padding: 18px 22px; margin-bottom: 24px; }
.form-error { background: #fbeaea; border: 1px solid #c0392b; color: #7a2323; padding: 18px 22px; margin-bottom: 24px; }

/* ---- Location map ---- */
.location-map { width: 100%; height: 520px; border: 1px solid var(--border-soft); }
.map-pin {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* ---- Room detail pages ---- */
.room-hero-img { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 28px; }
.room-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; margin-top: 40px; }
.room-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.room-photo-grid img { aspect-ratio: 4/3; object-fit: cover; cursor: pointer; }
.room-specs-box { background: var(--cream); padding: 28px; }
.room-specs-box dl { margin: 0 0 20px; }
.room-specs-box dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brown); }
.room-specs-box dd { margin: 0 0 12px; font-size: 1.2rem; color: var(--text-heading); font-family: var(--font-display); }
.room-specs-box ul li { padding: 5px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.95rem; }
.room-video { margin-top: 40px; }
.room-video video { width: 100%; }
@media (max-width: 800px) { .room-detail-grid { grid-template-columns: 1fr; } .room-photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Footer ---- */
.site-footer { background: var(--brown-dark); color: var(--white); padding: 48px 0 20px; text-align: center; }
.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.footer-socials a:hover { background: var(--gold-dark); }
.footer-address { font-style: italic; margin-bottom: 16px; }
.footer-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; margin-bottom: 24px; }
.footer-nav a:hover { color: #e8d9a8; }
.footer-bottom { font-size: 0.8rem; opacity: 0.8; display: flex; justify-content: center; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom a { text-decoration: underline; }

/* ---- WhatsApp floating button ---- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25); z-index: 100;
}
