/* ==========================================================================
   Thành Tịnh — Homes & Retreat · Design System & Restrained Motion
   Inspired by Lenis editorial pacing & Emil Kowalski's craft principles.
   ========================================================================== */

:root {
  /* Brand & Surfaces — aligned with LOGO.PNG & South Phú Quốc coastal calm */
  --surface: #ffffff;
  --surface-stone: #f4f6f5;
  --surface-stone-deep: #eaf0ee;
  --surface-dark: #0f1d1c;
  --surface-dark-elevated: #162927;

  /* Ink & Typography contrast (WCAG AA/AAA verified) */
  --ink: #122120;
  --body: #445553;
  --muted: #5d6f6d;
  --ink-on-dark: #f5f7f6;
  --muted-on-dark: #a6b7b4;

  /* Brand Actions (The Teal Rarity Rule — rare enough to feel intentional) */
  --primary: #0f766e;
  --primary-hover: #0b5c56;
  --primary-soft: #e3f3f1;
  --brand-teal: #2fbfbf;
  --brand-gold: #e8aa14;

  /* Architectural hairlines */
  --border: #dfe6e4;
  --border-strong: #c6d2cf;
  --border-on-dark: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Spacing rhythm */
  --container-max: 1200px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --section-y: clamp(4.5rem, 8.5vw, 7.5rem);

  /* Custom motion curves (steep start, quiet settle — never ease-in) */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Lenis smooth scroll base contract */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--surface);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

button,
input,
a {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-header:not(.is-scrolled) :focus-visible,
.site-footer :focus-visible,
.mobile-drawer :focus-visible,
.lightbox :focus-visible {
  outline-color: #ffffff;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: transform 180ms var(--ease-out-quint);
}

.skip-link:focus {
  top: 1rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--stone {
  background-color: var(--surface-stone);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Typography Hierarchy */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-wrap: balance;
}

.t-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.t-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink);
}

.t-lead {
  font-size: clamp(0.9375rem, 1.25vw, 1.03125rem);
  line-height: 1.82;
  color: var(--body);
  max-width: 58ch;
}

.t-chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.t-chapter__num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.t-chapter__rule {
  width: 22px;
  height: 1px;
  background-color: var(--border-strong);
}

/* ==========================================================================
   Buttons — Tactile Press Feedback (:active scale 0.97), Gated Hover
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.68rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 150ms var(--ease-out-quint);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn--light {
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid transparent;
}

.btn--ghost-light {
  background-color: rgba(15, 29, 28, 0.28);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.btn--outline {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background-color: var(--primary-hover);
  }
  .btn--light:hover {
    background-color: #edf2f1;
  }
  .btn--ghost-light:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
  }
  .btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
  }
}

/* ==========================================================================
   Header & Scroll Progress Hairline
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    background-color 240ms ease,
    border-color 240ms ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-teal);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-header.is-scrolled .scroll-progress {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
}

.brand-lockup__mark {
  width: 38px;
  height: auto;
  flex-shrink: 0;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-lockup__name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: color 220ms ease;
}

.brand-lockup__sub {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 220ms ease;
}

.site-header.is-scrolled .brand-lockup__name {
  color: var(--ink);
}

.site-header.is-scrolled .brand-lockup__sub {
  color: var(--muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
  padding-block: 0.4rem;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out-quint);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .nav-link {
  color: var(--body);
}

.site-header.is-scrolled .nav-link.is-active {
  color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    opacity: 0.72;
  }
  .site-header.is-scrolled .nav-link:hover {
    opacity: 1;
    color: var(--ink);
  }
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  min-height: 40px;
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid transparent;
}

.site-header.is-scrolled .nav-cta {
  background-color: var(--primary);
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background-color: #edf2f1;
  }
  .site-header.is-scrolled .nav-cta:hover {
    background-color: var(--primary-hover);
  }
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  transition: color 200ms ease, transform 150ms var(--ease-out-quint);
}

.mobile-toggle:active {
  transform: scale(0.94);
}

.site-header.is-scrolled .mobile-toggle {
  color: var(--ink);
}

@media (min-width: 960px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer — iOS/Vaul curve, inert when closed */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--surface-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem var(--gutter) 2.5rem;
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 360ms var(--ease-drawer),
    opacity 240ms ease;
}

.mobile-drawer.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.mobile-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  border: 1px solid var(--border-on-dark);
  transition: transform 150ms var(--ease-out-quint);
}

.mobile-drawer__close:active {
  transform: scale(0.95);
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-block: auto;
}

.mobile-drawer__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-on-dark);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: #ffffff;
}

.mobile-drawer__link span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted-on-dark);
  font-variant-numeric: tabular-nums;
}

.mobile-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.5rem;
}

.mobile-drawer__meta {
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
}

/* ==========================================================================
   Section 1 — Full-Viewport Editorial Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--surface-dark);
  overflow: hidden;
  padding-top: 96px;
}

.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 24, 23, 0.56) 0%, rgba(12, 24, 23, 0.22) 38%, rgba(12, 24, 23, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 24, 23, 0.62) 0%, rgba(12, 24, 23, 0.16) 62%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(5rem, 12vh, 9rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.15rem;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-gold);
}

.hero__title {
  max-width: 16ch;
  margin-bottom: 1.3rem;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
  line-height: 1.78;
  color: rgba(245, 247, 246, 0.9);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1.1rem;
}

.hero__footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(245, 247, 246, 0.82);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Section 2 — Sticky-Split Story (Lenis Signature Pattern, Calm Adaptation)
   ========================================================================== */
.split-sticky {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .split-sticky {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
  .split-sticky__aside {
    position: sticky;
    top: 108px;
  }
}

.story-copy {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-list {
  margin-top: 2.2rem;
  border-top: 1px solid var(--border);
}

.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.fact-row__label {
  font-size: 0.875rem;
  color: var(--muted);
}

.fact-row__val {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}

.story-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.photo-card {
  margin: 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--surface-stone-deep);
}

.photo-frame--tall {
  aspect-ratio: 4 / 5;
}

.photo-frame--wide {
  aspect-ratio: 4 / 3;
}

.photo-frame--cinema {
  aspect-ratio: 16 / 10;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .photo-trigger:hover .photo-frame img,
  .photo-frame--interactive:hover img {
    transform: scale(1.025);
  }
}

.photo-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.photo-caption__idx {
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.75rem;
}

/* ==========================================================================
   Section 3 — Phòng Nghỉ (Sliding Tab Indicator + Gallery Switcher)
   ========================================================================== */
.rooms-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 860px) {
  .rooms-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.room-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.room-tabs__indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  transition:
    transform 240ms var(--ease-out-quint),
    width 240ms var(--ease-out-quint);
  pointer-events: none;
}

.room-tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--body);
  transition: color 180ms ease;
}

.room-tab[aria-selected="true"] {
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .room-tab[aria-selected="false"]:hover {
    color: var(--ink);
  }
}

.room-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  transition: opacity 180ms ease, filter 180ms ease;
}

.room-stage.is-swapping {
  opacity: 0.65;
  filter: blur(2px);
}

@media (min-width: 900px) {
  .room-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.room-viewer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.room-main-btn {
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
}

.room-main-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-stone);
}

.room-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 200ms ease,
    filter 200ms ease,
    transform 450ms var(--ease-out-expo);
}

.room-main-img.is-fading {
  opacity: 0.55;
  filter: blur(2px);
}

.room-zoom-pill {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: rgba(15, 29, 28, 0.72);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
}

.room-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.room-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.72;
  transition:
    opacity 180ms ease,
    border-color 180ms ease,
    transform 150ms var(--ease-out-quint);
}

.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-thumb:active {
  transform: scale(0.97);
}

.room-thumb[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .room-thumb:hover {
    opacity: 1;
  }
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.room-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.room-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.room-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.room-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
}

.room-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  font-size: 0.86rem;
  color: var(--body);
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.room-features svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.room-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
}

.room-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

/* ==========================================================================
   Section 4 — Sự Chăm Sóc Từ Gia Đình (Asymmetric Editorial Photo Pair)
   ========================================================================== */
.care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .care-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.care-list {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.care-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.9rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.care-item__icon {
  color: var(--primary);
  margin-top: 2px;
}

.care-item__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.care-item__desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.care-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
  align-items: start;
}

.care-photos__col--offset {
  margin-top: clamp(1.5rem, 4vw, 3.25rem);
}

/* ==========================================================================
   Section 5 — Khám Phá Nam Đảo Phú Quốc (Distances + Real Illustrated Map)
   ========================================================================== */
.island-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 980px) {
  .island-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
  .island-aside {
    position: sticky;
    top: 108px;
  }
}

.distance-table {
  margin-top: 1.85rem;
  border-top: 1px solid var(--border);
}

.distance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.distance-row__place {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

.distance-row__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.distance-row__time {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.island-visuals {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
}

.map-card__btn {
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
}

.map-card__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #d6eef5;
}

.map-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.35rem 0.2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.map-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

/* ==========================================================================
   Section 6 — Thư Viện Khoảnh Khắc (Curated Asymmetric Gallery + Lightbox)
   ========================================================================== */
.gallery-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 820px) {
  .gallery-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .g-item--1 { grid-column: span 5; aspect-ratio: 4 / 3; }
  .g-item--2 { grid-column: span 4; aspect-ratio: 4 / 3.8; }
  .g-item--3 { grid-column: span 3; aspect-ratio: 3 / 3.8; }
  .g-item--4 { grid-column: span 3; aspect-ratio: 3 / 3.7; }
  .g-item--5 { grid-column: span 5; aspect-ratio: 5 / 3.7; }
  .g-item--6 { grid-column: span 4; aspect-ratio: 4 / 3.7; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-stone-deep);
  aspect-ratio: 4 / 3;
  text-align: left;
  transition: transform 150ms var(--ease-out-quint);
}

@media (min-width: 900px) {
  .gallery-item {
    aspect-ratio: auto;
    height: 100%;
    min-height: 250px;
  }
}

.gallery-item:active {
  transform: scale(0.985);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease-out-expo);
}

.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 29, 28, 0.72) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.94;
  transition: opacity 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item__cap {
    opacity: 0;
  }
  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: scale(1.03);
  }
  .gallery-item:hover .gallery-item__cap,
  .gallery-item:focus-visible .gallery-item__cap {
    opacity: 1;
  }
}

/* ==========================================================================
   Section 7 — Liên Hệ & Đặt Phòng Trực Tiếp
   ========================================================================== */
.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
}

@media (min-width: 900px) {
  .contact-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.copy-btn__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: opacity 180ms ease, filter 180ms ease;
}

.copy-btn__label.is-swapping {
  opacity: 0.4;
  filter: blur(2px);
}

.contact-details {
  border-top: 1px solid var(--border);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-row__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row__val {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-row__link {
  color: var(--ink);
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-row__link:hover {
    color: var(--primary);
  }
}

/* ==========================================================================
   Footer — Deep Coastal Forest-Slate
   ========================================================================== */
.site-footer {
  background-color: var(--surface-dark);
  color: var(--ink-on-dark);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 2.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-on-dark);
}

@media (min-width: 820px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-end;
  }
}

.footer-logo {
  width: 172px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-on-dark);
  max-width: 36ch;
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.8125rem;
  color: rgba(245, 247, 246, 0.85);
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover,
  .back-top-btn:hover {
    color: var(--brand-teal);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: rgba(245, 247, 246, 0.85);
  transition: color 180ms ease, transform 150ms var(--ease-out-quint);
}

.back-top-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Lightbox Modal — Scale 0.96 -> 1, Centered Origin, Keyboard & Accessible
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background-color: rgba(11, 21, 20, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out-quint);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__dialog {
  position: relative;
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transform: scale(0.96);
  transition: transform 240ms var(--ease-out-quint);
}

.lightbox.is-open .lightbox__dialog {
  transform: scale(1);
}

.lightbox__stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-height: 76vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
  transition: opacity 180ms ease, filter 180ms ease;
}

.lightbox__img.is-swapping {
  opacity: 0.55;
  filter: blur(2px);
}

.lightbox__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(245, 247, 246, 0.88);
  font-size: 0.84rem;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  transition:
    background-color 160ms ease,
    transform 150ms var(--ease-out-quint);
}

.lightbox__btn:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .lightbox__btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
  }
}

.lightbox__close {
  position: fixed;
  top: 1.15rem;
  right: 1.15rem;
}

/* ==========================================================================
   Restrained Scroll Reveal (One Subtle Pass — Never Distracting)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 540ms var(--ease-out-expo),
    transform 540ms var(--ease-out-expo);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Accessibility — Reduced Motion Two-Variant Support (Gentler, Not Zero)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transform: none;
    transition: opacity 220ms ease;
  }
  .hero__media,
  [data-parallax] {
    transform: none !important;
  }
  .lightbox__dialog {
    transform: none;
  }
  .mobile-drawer {
    transform: none;
    transition: opacity 200ms ease;
  }
  .btn:active,
  .room-thumb:active,
  .gallery-item:active,
  .lightbox__btn:active {
    transform: none;
  }
}
