/* ===================================================================
   Dreamy Wave Dwelling Resort — style.css
   Accent: Forest Emerald #059669  |  Fonts: Cabinet Grotesk + DM Sans
   =================================================================== */

/* ─── Reset & Custom Properties ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-heading: 'Cabinet Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #ecfdf5;
  --accent-border: #d1fae5;
  --footer-bg: #00160f;
  --text-dark: #111827;
  --text-body: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-white: #ffffff;
  --bg-alt: #f9fafb;
  --star-color: #f59e0b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --transition: 0.25s ease;
  --navbar-height: 80px;
  --container-px: clamp(1.25rem, 4vw, 2rem);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

section[id] { scroll-margin-top: calc(var(--navbar-height) + 1rem); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1875rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section Defaults ─── */
.section {
  padding: 80px 0;
  background: var(--bg-white);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.72);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: #fff;
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  border-bottom-color: var(--border);
}
.navbar-inner {
  padding: 0 max(1.5rem, 3vw) 0 max(75px, 5vw);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-navbar {
  height: calc(var(--navbar-height) - 16px);
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.navbar.scrolled .logo-navbar { filter: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: rgba(255,255,255,0.7); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--accent); background: var(--accent-light); }
.nav-cta a {
  background: #fff;
  color: var(--text-dark) !important;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition);
}
.nav-cta a:hover { background: rgba(255,255,255,0.7) !important; }
.navbar.scrolled .nav-cta a { background: var(--accent); color: #fff !important; }
.navbar.scrolled .nav-cta a:hover { background: var(--accent-hover) !important; }
.nav-sentinel { height: var(--navbar-height); }

/* ─── Language Switcher — Desktop ─── */
.lang-switch-desk { display: flex; align-items: center; margin-left: 18px; flex-shrink: 0; }
.lang-switch-desk .lang-link { color: rgba(255,255,255,0.7); text-decoration: none; transition: color var(--transition); }
.lang-switch-desk .lang-link:hover { color: #fff; }
.lang-switch-desk .lang-active { color: #fff; }
.navbar.scrolled .lang-switch-desk .lang-link { color: var(--text-muted); }
.navbar.scrolled .lang-switch-desk .lang-link:hover { color: var(--accent); }
.navbar.scrolled .lang-switch-desk .lang-active { color: var(--text-dark); }
.lang-x13 { font-size: 0.875rem; gap: 6px; border: 1px solid rgba(37,99,235,0.5); border-radius: 20px; padding: 4px 12px; }
.navbar.scrolled .lang-x13 { border-color: rgba(37,99,235,0.3); }
.lang-x21 { font-size: 0.9375rem; gap: 8px; }
.lang-x21 .lang-divider { color: rgba(255,255,255,0.3); font-weight: 300; }
.navbar.scrolled .lang-x21 .lang-divider { color: var(--border); }
.lang-x22 { font-size: 0.875rem; gap: 4px; background: rgba(255,255,255,0.12); border-radius: 20px; padding: 4px 12px; }
.navbar.scrolled .lang-x22 { background: var(--bg-alt); }

/* ─── Language Switcher — Mobile ─── */
.lang-mob-wrap { display: none; align-items: center; gap: 8px; }
.lang-switch-mob { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; }
.lang-switch-mob .lang-link { color: rgba(255,255,255,0.7); text-decoration: none; }
.lang-switch-mob .lang-active { color: #fff; font-weight: 600; }
.navbar.scrolled .lang-switch-mob .lang-link { color: var(--text-muted); }
.navbar.scrolled .lang-switch-mob .lang-active { color: var(--text-dark); }
.lang-xm14 { flex-direction: column; }
.lang-xm14 .lang-switch-mob { order: -1; }

/* ─── Hamburger ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.navbar.scrolled .hamburger-bar { background: var(--text-dark); }

@media (max-width: 1023px) {
  .lang-switch-desk { display: none; }
  .lang-mob-wrap { display: flex; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar-inner { padding: 0 var(--container-px); }
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: visibility 0s 0.3s, opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  padding: 0.375rem 32px 40px;
  max-height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition: visibility 0s, opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color var(--transition);
}

.mobile-menu-close:hover {
  color: var(--accent);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  display: block;
  padding: 13px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--accent);
}

.mobile-nav-cta {
  margin-top: 24px;
}

.mobile-nav-cta a {
  display: block;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition);
  border-bottom: none;
}

.mobile-nav-cta a:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Menu backdrop */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
  z-index: 998;
}

.menu-backdrop.open {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s ease;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  margin-top: calc(-1 * var(--navbar-height));
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #1a1a2e;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(0,0,0,0.64) 0%,
    rgba(0,0,0,0.40) 52%,
    rgba(0,0,0,0.14) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: 33vh;
  padding-bottom: 80px;
  margin-left: max(100px, 6vw);
  margin-right: 200px;
  max-width: none;
  width: auto;
}

.hero-text {
  max-width: 700px;
}

.hero-title {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.28);
  white-space: nowrap;
}

.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

/* Desktop-only hero overlay lighten (less dark on large screens) */
@media (min-width: 1024px) {
  .hero-overlay {
    background: linear-gradient(
      108deg,
      rgba(0,0,0,0.56) 0%,
      rgba(0,0,0,0.30) 50%,
      rgba(0,0,0,0.06) 100%
    );
  }
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-body);
  line-height: 1.75;
}

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

/* ─── Rooms ─── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.room-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.room-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ─── Carousel ─── */
.carousel {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.38);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.65);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Room view-details row */
.room-view-details-row {
  padding: 12px 20px 0;
  display: flex;
  justify-content: center;
}

.btn-view-details {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  transition: color var(--transition);
}

.btn-view-details:hover {
  color: var(--accent-hover);
}

.room-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-card-body h3 {
  margin-bottom: 0.6rem;
}

.room-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.room-card-buttons {
  margin-top: auto;
}

.btn-room-cta {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-room-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ─── Meals ─── */
.meals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.meals-content h2 {
  margin-bottom: 1.25rem;
}

.meals-content > p {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.meals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 1.75rem;
}

.meal-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.meal-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.meal-item > div {
  flex: 1;
}

.meal-item strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 3px;
}

.meal-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.meals-notes {
  padding: 22px 24px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
}

.meals-notes h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-hover);
}

.meals-notes p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

.meals-notes p:last-child {
  margin-bottom: 0;
}

.meals-image-wrap {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.meals-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

/* ─── Activities ─── */
.activities-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.activities-header h2 {
  margin-bottom: 0;
}

.activities-banner {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
}

.activities-banner-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* ─── Tour Blocks ─── */
.tour-blocks {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-bottom: 72px;
}

.tour-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.tour-block-right .tour-block-image {
  order: 2;
}

.tour-block-right .tour-block-content {
  order: 1;
}

.tour-block-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.tour-block-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tour-block-content {
  min-width: 0;
  overflow-wrap: break-word;
  padding: 0;
}

.tour-block:hover .tour-block-image img {
  transform: scale(1.03);
}

.tour-block-content h3 {
  margin-bottom: 0.9rem;
}

.tour-block-content > p {
  color: var(--text-body);
  margin-bottom: 1rem;
}

.tour-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-highlights li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
}

.tour-highlights li i {
  color: var(--accent);
  font-size: 0.9375rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.tour-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  background: var(--accent-light);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin-top: 1rem;
  line-height: 1.55;
}

.tour-note i {
  color: var(--accent);
  margin-right: 6px;
}

/* Sipadan resort table */
.sipadan-resorts {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.sipadan-package-resorts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.sipadan-package-resorts th,
.sipadan-package-resorts td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.sipadan-package-resorts th {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-alt);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sipadan-package-resorts td {
  color: var(--text-body);
}

.sipadan-package-resorts tbody tr:hover td {
  background: var(--accent-light);
}

/* Sipadan dive sites */
.sipadan-sites {
  margin-top: 1.25rem;
}

.dive-sites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dive-site-row {
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.dive-site-row dt {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.dive-site-row dd {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ─── Core Activity Cards ─── */
.core-activities-section {
  margin-bottom: 56px;
}

.core-activities-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.core-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.activity-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.activity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.activity-card > img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.activity-card-body {
  padding: 18px 20px 20px;
  flex: 1;
}

.activity-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-card-body h3 i {
  color: var(--accent);
  font-size: 1rem;
}

.activity-card-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── On-site Activities ─── */
.onsite-activities-section {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.onsite-heading {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 1.4rem;
  color: var(--text-dark);
}

.onsite-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.onsite-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-hover);
  transition: background var(--transition), transform var(--transition);
}

.onsite-item:hover {
  background: var(--accent-border);
  transform: translateY(-1px);
}

.onsite-item i {
  color: var(--accent);
  font-size: 0.9375rem;
}

/* ─── Getting Here ─── */
.getting-here-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.getting-here-content h2 {
  margin-bottom: 1.5rem;
}

.getting-here-content > p {
  color: var(--text-body);
  margin-bottom: 1rem;
}

.travel-subsection-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.travel-subsection-heading:first-of-type {
  margin-top: 0;
}

.travel-subsection-heading i {
  color: var(--accent);
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
}

.flight-routes {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flight-routes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
}

.flight-routes li i {
  color: var(--accent);
  font-size: 0.45rem;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Getting here sidebar — image first */
.getting-here-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.getting-here-sidebar-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.maps-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.maps-embed-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.maps-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── Info Cards ─── */
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.info-card-eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.travel-tips-card {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.travel-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.travel-tips-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
}

.travel-tips-list li i {
  color: var(--accent);
  font-size: 0.9375rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #065f46;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #991b1b;
}

.form-success p,
.form-error p {
  margin: 4px 0 0;
  font-size: 0.9375rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required-asterisk {
  color: #dc2626;
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-body);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.14);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc2626;
  background: #fef2f2;
}

.btn-submit {
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.form-reassurance {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

/* Contact sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.info-card-location p,
.info-card-transfer p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 6px;
}

.info-card-location p:last-child,
.info-card-transfer p:last-child {
  margin-bottom: 0;
}

.info-card-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 0 !important;
}

.quick-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-facts-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
}

.quick-facts-list li i {
  color: var(--accent);
  font-size: 0.9375rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ─── Reviews ─── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
}
.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-stars {
  display: flex;
  gap: 3px;
}

.review-stars i {
  color: var(--star-color);
  font-size: 0.9375rem;
}

.review-body {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.review-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.review-country {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Footer ─── */
.footer {
  background: var(--footer-bg);
  color: #e5e7eb;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-description {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-location {
  font-size: 0.9375rem;
  color: #9ca3af;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  line-height: 1.55;
}

.footer-location i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-col-heading {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-enquiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color var(--transition), gap var(--transition);
}

.footer-enquiry:hover {
  color: #34d399;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #9ca3af;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              transform var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 24px;
}

.footer-copyright {
  font-size: 0.9375rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}
.footer-lang-flags { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.footer-flag-link { display: inline-block; opacity: 0.75; transition: opacity var(--transition); }
.footer-flag-link:hover { opacity: 1; }
.flag-svg { width: 28px; height: auto; display: block; }

/* ─── Modals ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-content h3 {
  margin-bottom: 0.9rem;
  padding-right: 32px;
}

.modal-content p {
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.modal-amenities {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-amenities li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.modal-amenities li i {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.9375rem;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}

/* ─── Responsive: Tablet (≤900px) ─── */
@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    order: -1;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .meals-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .meals-image-wrap {
    position: static;
    order: -1;
  }

  .meals-img {
    aspect-ratio: 16/9;
  }

  .core-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .getting-here-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .getting-here-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sidebar {
    position: static;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* ─── Responsive: Mobile (≤768px) ─── */
@media (max-width: 768px) {

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-container {
    margin-left: 24px;
    margin-right: 24px;
    padding-top: 33vh;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .tour-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Reset right-block ordering on mobile */
  .tour-block-right .tour-block-image {
    order: 0;
  }

  .tour-block-right .tour-block-content {
    order: 1;
  }

  .tour-blocks {
    gap: 48px;
    margin-bottom: 52px;
  }

  .activities-banner {
    max-height: 220px;
  }

  .activities-banner-img {
    height: 220px;
  }

  .core-cards-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: 1;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .modal-content {
    padding: 28px 22px;
    max-height: 90vh;
  }

  .sipadan-package-resorts th,
  .sipadan-package-resorts td {
    padding: 7px 10px;
    font-size: 0.9375rem;
  }

  /* ── Mobile font floor: body 1.0625rem (17px), floor 1rem (16px) ── */
  body { font-size: 1.0625rem; }

  .room-desc,
  .room-card-body p,
  .activity-card-body p,
  .tour-block-content > p,
  .tour-highlights li,
  .meal-item p,
  .meals-notes p,
  .meals-content > p,
  .review-body,
  .review-author,
  .info-card-location p,
  .info-card-transfer p,
  .info-card-note,
  .sidebar-card p,
  .quick-facts-list li,
  .travel-tips-list li,
  .flight-routes li,
  .onsite-item,
  .section-intro,
  .section-subheading,
  .about-content p,
  .getting-here-content > p,
  .tour-note,
  .dive-site-row dd,
  .dive-site-row dt,
  .modal-amenities li,
  .modal-content p,
  label,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea,
  .form-success p,
  .form-error p,
  .btn-view-details,
  .maps-btn,
  .footer-links a,
  .footer-description,
  .footer-location,
  .footer-enquiry,
  .info-card-eyebrow { font-size: 1rem !important; }

  /* Exceptions: 0.9375rem only */
  .footer-copyright,
  .footer-tagline,
  .form-reassurance,
  .review-country,
  .sipadan-package-resorts td { font-size: 0.9375rem !important; }

  /* Mobile footer flags */
  .footer-lang-flags { justify-content: flex-start; }
  .flag-svg { width: 32px; }
  .footer-flag-link { opacity: 0.9; }
}

/* ─── Responsive: Small Mobile (≤480px) ─── */
@media (max-width: 480px) {

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .room-card-body {
    padding: 16px 18px 20px;
  }

  .review-card {
    padding: 22px 18px;
  }

  .modal-content {
    padding: 22px 16px;
  }

  .footer {
    padding: 48px 0 24px;
  }

  .meal-item {
    gap: 12px;
  }

  .tour-note {
    font-size: 0.9375rem;
  }
}

/* ─── Desktop-only: force hamburger hidden ─── */
@media (min-width: 1024px) {
  .hamburger {
    display: none !important;
  }

  .mobile-menu,
  .menu-backdrop {
    display: none !important;
  }
}

/* ─── Print ─── */
@media print {
  .navbar,
  .hamburger,
  .mobile-menu,
  .menu-backdrop,
  .hero-cta-row,
  .maps-btn,
  .maps-embed-wrap,
  .btn-submit,
  .footer-social {
    display: none !important;
  }

  .section {
    padding: 32px 0;
  }

  .footer {
    background: #fff;
    color: #000;
  }

  .footer-description,
  .footer-links a,
  .footer-copyright {
    color: #333;
  }
}
