/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --color-primary:      #1A1A1E;
  --color-secondary:    #2D2D32;
  --color-accent:       #C9A96E;
  --color-accent-dark:  #A8893E;
  --color-accent-light: #E8D5A8;
  --color-bg:           #FAFAF8;
  --color-bg-alt:       #F2EFE8;
  --color-text:         #1A1A1E;
  --color-muted:        #6B6B72;
  --color-white:        #FFFFFF;
  --color-border:       #E5E0D5;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --navbar-h: 76px;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--color-primary); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--color-muted); line-height: 1.8; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section    { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--alt  { background: var(--color-bg-alt); }
.section--dark { background: var(--color-primary); }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.65); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-header { max-width: 680px; margin-bottom: 3rem; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }

.gold-line { width: 52px; height: 3px; background: var(--color-accent); border-radius: 2px; margin: 1rem 0 1.5rem; }
.gold-line--center { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.875rem;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.35); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); }
.btn-outline-dark  { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-dark:hover  { background: var(--color-primary); color: var(--color-white); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--navbar-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.transparent { background: transparent; }
.navbar.scrolled    { background: var(--color-white); box-shadow: var(--shadow); }
.navbar-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-white); transition: color var(--transition); }
.logo-tagline { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-top: 2px; }
.navbar.scrolled .logo-name { color: var(--color-primary); }

.navbar-nav { display: flex; align-items: center; gap: 0.25rem; }
.navbar-nav a { padding: 0.5rem 0.875rem; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.88); border-radius: var(--radius); transition: var(--transition); }
.navbar.scrolled .navbar-nav a { color: var(--color-text); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--color-accent) !important; }
.nav-cta { background: var(--color-accent) !important; color: var(--color-white) !important; margin-left: 0.5rem; }
.nav-cta:hover { background: var(--color-accent-dark) !important; color: var(--color-white) !important; }

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px; margin-right: -10px;
  cursor: pointer; padding: 0; background: none; border: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--color-white); transform-origin: center;
  transition: transform 0.34s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease, background var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--color-primary); }

/* burger morphs into an X */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* navbar holds a solid dark bar while the panel is open */
.navbar.menu-open { background: var(--color-primary); box-shadow: none; }
.navbar.menu-open .logo-name { color: var(--color-white); }
.navbar.menu-open .nav-toggle span { background: var(--color-white); }

/* the CTA keeps white text even when it is the active page */
.navbar-nav a.nav-cta.active { color: var(--color-white) !important; }

body.nav-open { overflow: hidden; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0d1f12 0%, #09131d 45%, #1a0e12 100%);
  background-size: cover; background-position: center;
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.62) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 780px; padding: 0 var(--pad); }
.hero-eyebrow { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1.5rem; }
.hero h1 { color: var(--color-white); text-shadow: 0 2px 24px rgba(0,0,0,0.45); margin-bottom: 1.25rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.scroll-chevron { width: 18px; height: 18px; border-right: 2px solid rgba(255,255,255,0.5); border-bottom: 2px solid rgba(255,255,255,0.5); transform: rotate(45deg); animation: bounce 1.6s infinite; }
@keyframes bounce { 0%,100%{transform:rotate(45deg) translate(0,0)} 50%{transform:rotate(45deg) translate(3px,3px)} }

/* ===== AERIAL GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); grid-auto-rows: 190px; gap: 0.75rem; }
.gallery-grid--mosaic { grid-template-columns: repeat(4,1fr); grid-auto-rows: 215px; }
.gallery-grid--heritage { grid-template-columns: repeat(4,1fr); grid-auto-rows: 250px; }
.gallery-grid--heritage .gallery-item img { filter: sepia(0.12) saturate(0.95); }
.heritage-caption { text-align: center; margin-top: 1.5rem; font-style: italic; color: var(--color-muted); letter-spacing: 0.04em; font-size: 0.9rem; }
.gallery-item { overflow: hidden; border-radius: 4px; margin: 0; position: relative; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--feature { grid-column: span 2; grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; }
  .gallery-grid--mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; }
  .gallery-grid--heritage { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gallery-item--feature { grid-column: span 2; grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }
}

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(10,12,14,0.93); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); transform: scale(0.9); opacity: 0; transition: transform 0.22s cubic-bezier(0.2,0.8,0.2,1), opacity 0.22s ease; }
.lightbox.open img { transform: scale(1); opacity: 1; }
.lightbox-close { position: absolute; top: 1rem; right: 1.4rem; width: 42px; height: 42px; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.4rem; line-height: 1; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ===== HIGHLIGHTS STRIP ===== */
.highlights { display: grid; grid-template-columns: repeat(4,1fr); background: var(--color-secondary); }
.highlight-item { padding: 2rem 1.25rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.06); transition: var(--transition); cursor: default; }
.highlight-item:last-child { border-right: none; }
.highlight-item:hover { background: rgba(255,255,255,0.04); }
.highlight-icon { width: 44px; height: 44px; color: var(--color-accent); margin: 0 auto 0.875rem; }
.highlight-item h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 0.2rem; }
.highlight-item p  { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header { padding: calc(var(--navbar-h) + 3.5rem) 0 3rem; background: var(--color-primary); text-align: center; }
.page-header h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.page-header p  { color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; align-items: center; }
.breadcrumb a { color: var(--color-accent); }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg,#1a3020,#0d1c2e); height: 500px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.stat { padding: 1.25rem; background: var(--color-bg-alt); border-radius: var(--radius); border-left: 3px solid var(--color-accent); }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--color-accent); display: block; line-height: 1; }
.stat-lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-top: 0.2rem; display: block; }
.about-features { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1.5rem; }
.about-features li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; color: var(--color-text); }
.about-features li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 7px; height: 7px; background: var(--color-accent); transform: rotate(45deg); }

/* About page - features grid */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.feature-card { padding: 2rem 1.5rem; background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 3px solid var(--color-accent); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ===== VILLAS ===== */
.villas-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.villa-card   { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.villa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.villa-img    { height: 210px; background: linear-gradient(135deg,#1a3020,#102030); position: relative; overflow: hidden; }
.villa-img img { width: 100%; height: 100%; object-fit: cover; }
.villa-badge  { position: absolute; top: 1rem; right: 1rem; background: var(--color-accent); color: var(--color-white); font-size: 0.7rem; font-weight: 600; padding: 0.28rem 0.7rem; border-radius: 20px; letter-spacing: 0.04em; }
.villa-body   { padding: 1.5rem; }
.villa-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.villa-body p  { font-size: 0.875rem; margin-bottom: 1.25rem; }
.villa-tags   { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.villa-tag    { font-size: 0.72rem; padding: 0.25rem 0.7rem; background: var(--color-bg-alt); border-radius: 20px; color: var(--color-muted); font-weight: 500; }

/* Full villa listing (accommodation page) */
.villa-listing { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.villa-listing-img { background: linear-gradient(135deg,#1a3020,#102030); min-height: 220px; }
.villa-listing-img img { width: 100%; height: 100%; object-fit: cover; }
.villa-listing-body { padding: 2rem; }
.villa-listing-body h3 { margin-bottom: 0.5rem; }
.villa-listing-body p  { font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ===== RESTAURANTS ===== */
.restaurants-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.rest-card  { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: grid; grid-template-columns: 200px 1fr; }
.rest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rest-img   { background: linear-gradient(135deg,#2d1a10,#1a102d); min-height: 180px; }
.rest-img img { width: 100%; height: 100%; object-fit: cover; }
.rest-body  { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.rest-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.rest-body p  { font-size: 0.875rem; line-height: 1.7; }
.rest-link  { display: inline-block; margin-top: 1rem; font-size: 0.82rem; font-weight: 600; color: var(--color-accent); letter-spacing: 0.04em; }
.rest-link:hover { color: var(--color-accent-dark); }

/* ===== RECREATION ===== */
.rec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.rec-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 1; }
.rec-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.rec-bg   { position: absolute; inset: 0; transition: transform var(--transition); }
.rec-item:hover .rec-bg { transform: scale(1.06); }
.rec-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 1.25rem; }
.rec-overlay h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 0.15rem; }
.rec-overlay p  { font-size: 0.76rem; color: rgba(255,255,255,0.65); }

/* Recreation page - list */
.rec-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.rec-listing { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(360px, 46%) 1fr; }
.rec-listing-img { background: linear-gradient(135deg,#0d2a1a,#0d1a2a); min-height: 300px; }
.rec-listing-img img { width:100%; height:100%; object-fit:cover; }
.rec-listing-img--placeholder { position: relative; background: linear-gradient(135deg,#123322,#0d1f2b); }
.rec-listing-img--placeholder::after { content: "🎾"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: 0.5; }
.rec-listing-body { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.rec-listing-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.rec-listing-body ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.5rem; }
.rec-listing-body li { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 0.25rem; }

/* ===== FACILITIES ===== */
.fac-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.fac-card { text-align: center; padding: 2rem 1rem; border-radius: var(--radius); background: var(--color-white); box-shadow: var(--shadow); transition: var(--transition); }
.fac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-bottom: 3px solid var(--color-accent); }
.fac-icon  { width: 52px; height: 52px; background: rgba(201,169,110,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--color-accent); }
.fac-icon svg { width: 26px; height: 26px; }
.fac-card h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.fac-card p  { font-size: 0.78rem; }

/* Facilities page - detail listing */
.fac-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0; border-bottom: 1px solid var(--color-border); }
.fac-detail:last-child { border-bottom: none; }
.fac-detail.reverse { direction: rtl; }
.fac-detail.reverse > * { direction: ltr; }
.fac-detail-img  { border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg,#1a2d1a,#0d1a2d); height: 300px; }
.fac-detail-img img { width:100%; height:100%; object-fit:cover; }
.fac-detail-body ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.75rem; }
.fac-detail-body li { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 0.3rem; }

/* ===== CTA BANNER ===== */
.cta-banner { padding: 5rem 0; text-align: center; background: var(--color-primary); position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,169,110,0.12) 0%, transparent 70%); }
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 2rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start; }
.contact-icon { width: 42px; height: 42px; flex-shrink: 0; background: rgba(201,169,110,0.12); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--color-accent); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-text h4 { font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-text p, .contact-text a { font-size: 0.875rem; color: var(--color-muted); transition: color var(--transition); }
.contact-text a:hover { color: var(--color-accent); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; height: 420px; background: var(--color-bg-alt); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
.footer { background: #111113; padding: 4rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-name { font-family: var(--font-display); color: var(--color-white); font-size: 1.4rem; }
.footer-brand .logo-tagline { display: block; color: var(--color-accent); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 1rem; line-height: 1.75; }
.footer-col h5 { color: var(--color-white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; font-family: var(--font-body); }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a  { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ===== FADE-IN ANIMATION ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .fac-grid { grid-template-columns: repeat(3,1fr); }
  .villas-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  /* ---- mobile menu panel ---- */
  .navbar-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--navbar-h); left: 0; right: 0; bottom: 0;
    padding: 1.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(165deg, #212127 0%, var(--color-primary) 55%, #131316 100%);
    border-top: 1px solid rgba(201,169,110,0.28);
    overflow-y: auto; overscroll-behavior: contain; z-index: 199;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.34s cubic-bezier(0.4,0,0.2,1),
                transform 0.34s cubic-bezier(0.4,0,0.2,1),
                visibility 0s linear 0.34s;
  }
  .navbar-nav.open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition-delay: 0s;
  }

  /* links fade up one after another as the panel opens */
  .navbar-nav li {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
  }
  .navbar-nav.open li { opacity: 1; transform: translateY(0); }
  .navbar-nav.open li:nth-child(1) { transition-delay: 0.07s; }
  .navbar-nav.open li:nth-child(2) { transition-delay: 0.12s; }
  .navbar-nav.open li:nth-child(3) { transition-delay: 0.17s; }
  .navbar-nav.open li:nth-child(4) { transition-delay: 0.22s; }
  .navbar-nav.open li:nth-child(5) { transition-delay: 0.27s; }
  .navbar-nav.open li:nth-child(6) { transition-delay: 0.32s; }
  .navbar-nav.open li:nth-child(7) { transition-delay: 0.37s; }
  .navbar-nav.open li:nth-child(8) { transition-delay: 0.42s; }

  .navbar-nav a {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display); font-size: 1.45rem; font-weight: 500;
    color: rgba(255,255,255,0.92) !important;
    padding: 1.05rem 0.25rem; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    -webkit-tap-highlight-color: transparent;
  }
  /* small gold chevron on each row */
  .navbar-nav a::after {
    content: ''; width: 7px; height: 7px; flex: none;
    border-right: 1.5px solid var(--color-accent);
    border-bottom: 1.5px solid var(--color-accent);
    transform: rotate(-45deg); opacity: 0.4;
    transition: transform var(--transition), opacity var(--transition);
  }
  .navbar-nav a:active { color: var(--color-accent) !important; }
  .navbar-nav a:active::after { transform: rotate(-45deg) translate(3px,3px); opacity: 1; }
  .navbar-nav a.active::after { opacity: 1; }

  /* Contact becomes a proper gold button at the foot of the panel */
  .nav-cta {
    display: flex !important; justify-content: center !important;
    margin: 1.75rem 0 0 !important; padding: 1.1rem 1.5rem !important;
    font-family: var(--font-body) !important; font-size: 0.82rem !important;
    font-weight: 600 !important; letter-spacing: 0.14em; text-transform: uppercase;
    border-radius: var(--radius) !important; border-bottom: none !important;
    box-shadow: 0 10px 30px rgba(201,169,110,0.28);
  }
  .nav-cta::after { display: none; }

  .highlights { grid-template-columns: repeat(2,1fr); }
  .highlight-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .highlight-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }
  .highlight-item:nth-child(even) { border-right: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img { height: 300px; }
  .features-grid { grid-template-columns: 1fr; }
  .villas-grid { grid-template-columns: 1fr; }
  .villa-listing { grid-template-columns: 1fr; }
  .restaurants-grid { grid-template-columns: 1fr; }
  .rest-card { grid-template-columns: 1fr; }
  .rest-img { min-height: 200px; }
  .rec-grid { grid-template-columns: repeat(2,1fr); }
  .rec-item.wide { grid-column: span 1; aspect-ratio: 1; }
  .fac-grid { grid-template-columns: repeat(2,1fr); }
  .fac-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .fac-detail.reverse { direction: ltr; }
  .rec-list { grid-template-columns: 1fr; }
  .rec-listing { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-nav, .navbar-nav li, .nav-toggle span { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
@media (max-width: 480px) {
  .navbar-nav a { font-size: 1.3rem; padding: 0.95rem 0.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .fac-grid { grid-template-columns: repeat(2,1fr); }
  .about-features { grid-template-columns: 1fr; gap: 0.85rem; }
}

/* -----------------------------------------------------------
   Language switcher
   ----------------------------------------------------------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-inline-start: 0.75rem;
  padding: 0.4rem 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--color-accent); color: var(--color-accent); }
.navbar.scrolled .lang-switch { color: var(--color-text); border-color: rgba(0,0,0,0.2); }
.navbar.scrolled .lang-switch:hover { color: var(--color-accent); border-color: var(--color-accent); }
.navbar.menu-open .lang-switch { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }

@media (max-width: 768px) {
  /* inside the mobile panel it becomes a full-width row like the others */
  .navbar-nav .lang-switch {
    justify-content: center;
    margin: 1rem 0 0; padding: 0.9rem 1rem;
    font-size: 0.78rem;
    border-color: rgba(255,255,255,0.25);
  }
  .navbar-nav .lang-switch::after { display: none; }
}
