/* ==========================================================================
   Atria5 Urban Living — design system
   Direction: "Kavala Bay" — coastal-modern boutique.
   Ink charcoal + plaster paper, deep bay teal as signature accent,
   mustard ochre as a warm secondary (pulled from the real photography).
   Fraunces for display, Inter for body, IBM Plex Mono for wayfinding/data.
   ========================================================================== */

:root {
  color-scheme: light;

  /* -- palette --------------------------------------------------------- */
  --ink: #17140f;
  --ink-soft: #2a251d;
  --paper: #f2ede1;
  --paper-soft: #faf7ef;
  --stone: #e2d8c3;
  --stone-line: rgba(23, 20, 15, 0.12);
  --bay: #24443c;
  --bay-deep: #162e28;
  --bay-light: #4c7268;
  --ochre: #c1801f;
  --ochre-soft: #e8b45a;
  --muted: #635a4d;
  --muted-on-dark: rgba(242, 237, 225, 0.68);

  /* -- type --------------------------------------------------------------*/
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* -- misc --------------------------------------------------------------*/
  --max: 1180px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 24px 60px rgba(23, 20, 15, 0.12);
  --shadow-deep: 0 30px 80px rgba(12, 24, 21, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -- reset ---------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis takes over smooth scroll */
}

html.no-lenis {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--bay);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid var(--stone-line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--bay);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.06rem;
}

/* -- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
}

.btn-primary {
  background: var(--bay);
  color: var(--paper-soft);
}

.btn-primary:hover {
  background: var(--bay-deep);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--stone-line);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost-light {
  border-color: rgba(242, 237, 225, 0.32);
  background: rgba(242, 237, 225, 0.08);
  color: var(--paper-soft);
}

.btn-ghost-light:hover {
  background: rgba(242, 237, 225, 0.18);
  transform: translateY(-2px);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bay);
  font-weight: 600;
}

.text-link::after {
  content: "→";
  transition: transform 200ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 237, 225, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--stone-line);
  box-shadow: 0 12px 30px rgba(23, 20, 15, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ochre-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(36, 68, 60, 0.1);
  color: var(--bay);
}

.main-nav .nav-cta {
  margin-left: 6px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper-soft);
}

.main-nav .nav-cta:hover {
  background: var(--bay-deep);
  color: var(--paper-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.menu-toggle.is-active span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(420px, 1.14fr);
  gap: 56px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
  min-height: calc(100svh - 80px);
}

.hero-kicker {
  color: var(--bay);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  font-weight: 500;
}

.hero h1 em {
  color: var(--ochre);
  font-style: italic;
}

.hero-text {
  max-width: 42ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 7px 13px;
  border: 1px solid var(--stone-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* -- hero visual: photo panel + floor rail ----------------------------- */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  height: min(78vh, 660px);
}

.floor-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 0;
}

.floor-rail::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 1px;
  content: "";
  background: var(--stone-line);
  transform: translateX(-50%);
}

.floor-rail button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-inline: auto;
  border: 1px solid var(--stone-line);
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 260ms var(--ease);
}

.floor-rail button.is-active {
  border-color: var(--bay);
  background: var(--bay);
  color: var(--paper-soft);
  transform: scale(1.14);
}

.hero-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-deep);
}

.hero-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms var(--ease);
}

.hero-photo-frame img.is-visible {
  opacity: 1;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(190deg, rgba(23, 20, 15, 0) 40%, rgba(15, 26, 23, 0.72) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  left: 26px;
  bottom: 26px;
  color: var(--paper-soft);
}

.hero-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
}

.hero-caption span {
  display: block;
  margin-top: 4px;
  color: var(--muted-on-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 237, 225, 0.28);
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.42);
  backdrop-filter: blur(10px);
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--ochre-soft);
}

/* -- tideline divider (signature motif) --------------------------------*/
.tideline {
  display: block;
  width: 100%;
  height: 34px;
  color: var(--stone-line);
}

.tideline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* ==========================================================================
   Sections: intro / concept strip
   ========================================================================== */
.split-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.split-panel h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  max-width: 14ch;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--stone-line);
}

.stat-row div {
  min-width: 92px;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--bay);
}

.stat-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -- amenities: editorial index instead of pill cloud ------------------*/
.amenity-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--stone-line);
  border-left: 1px solid var(--stone-line);
}

.amenity-index span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-right: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
  font-size: 0.92rem;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.amenity-index span::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  content: "";
  border-radius: 50%;
  background: var(--ochre);
}

.amenity-index span:hover {
  background: var(--bay);
  color: var(--paper-soft);
}

.amenity-index span:hover::before {
  background: var(--ochre-soft);
}

/* -- signature stay banner (dark) ---------------------------------------*/
.signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-deep);
}

.signature-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.signature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signature-copy {
  padding: clamp(36px, 5vw, 64px);
  color: var(--paper-soft);
}

.signature-copy .eyebrow {
  color: var(--ochre-soft);
}

.signature-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  max-width: 16ch;
}

.signature-copy p {
  max-width: 42ch;
  margin-top: 18px;
  color: var(--muted-on-dark);
}

.signature-copy .text-link {
  margin-top: 26px;
  color: var(--ochre-soft);
}

/* -- mini gallery strip --------------------------------------------------*/
.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.strip-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  max-width: 16ch;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.mini-card:hover img {
  transform: scale(1.06);
}

.mini-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.56);
  backdrop-filter: blur(8px);
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -- CTA band ------------------------------------------------------------*/
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 56px clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--bay);
  color: var(--paper-soft);
}

.cta-band p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.7);
}

.cta-band h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  max-width: 20ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--stone-line);
}

.site-footer a {
  color: var(--muted);
  transition: color 200ms var(--ease);
}

.site-footer a:hover {
  color: var(--bay);
}

/* -- floating whatsapp button --------------------------------------------*/
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  background: #1f6b52;
  color: #f2ede1;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 30, 25, 0.32);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.float-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 30, 25, 0.4);
}

.float-whatsapp svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 40px;
  max-width: 860px;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
}

.page-hero p {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Stay type cards (studios.html)
   ========================================================================== */
.stay-types {
  display: grid;
  gap: 28px;
}

.stay-type {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}

.stay-type.is-dark {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper-soft);
}

.stay-type-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  cursor: pointer;
}

.stay-type-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.stay-type-media:hover img {
  transform: scale(1.05);
}

.gallery-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.56);
  backdrop-filter: blur(8px);
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stay-type-copy {
  padding: clamp(30px, 4vw, 48px);
}

.stay-type-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  max-width: 16ch;
}

.stay-type-copy > p {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--muted);
}

.is-dark .stay-type-copy > p {
  color: var(--muted-on-dark);
}

.is-dark .eyebrow {
  color: var(--ochre-soft);
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--stone-line);
}

.is-dark .detail-row {
  border-color: rgba(242, 237, 225, 0.16);
}

.detail-row span {
  font-size: 0.86rem;
  color: var(--muted);
}

.is-dark .detail-row span {
  color: var(--muted-on-dark);
}

.detail-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.is-dark .detail-row strong {
  color: var(--paper-soft);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 6px 12px;
  border: 1px solid var(--stone-line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.is-dark .tag-row span {
  border-color: rgba(242, 237, 225, 0.2);
  color: var(--muted-on-dark);
}

/* -- full gallery grid (studios.html) ------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
  margin-top: 40px;
}

.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-grid a.is-tall {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

.gallery-grid span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.56);
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.gallery-grid a:hover span {
  opacity: 1;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-line);
  min-height: 480px;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.02);
}

.map-chip {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(23, 20, 15, 0.72);
  backdrop-filter: blur(8px);
  color: var(--paper-soft);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.booking-panel {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}

.booking-panel h2 {
  margin-top: 8px;
  font-size: 1.7rem;
}

.booking-panel > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* -- date range calendar summary -----------------------------------------*/
.stay-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.date-field {
  padding: 12px 14px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
}

.date-field label {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-field strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.nights-chip {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(36, 68, 60, 0.1);
  color: var(--bay);
  font-size: 0.84rem;
  font-weight: 600;
  width: fit-content;
}

.nights-chip.is-visible {
  display: inline-flex;
}

.booking-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.booking-form label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.94rem;
}

.booking-form textarea {
  resize: vertical;
}

.booking-form button {
  margin-top: 6px;
  justify-content: center;
  width: 100%;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* -- contact methods grid -------------------------------------------------*/
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--stone-line);
  border-left: 1px solid var(--stone-line);
}

.contact-methods article {
  padding: 22px 24px;
  border-right: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
}

.contact-methods h3 {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-methods a {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.contact-methods a:hover {
  color: var(--bay);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-page {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal-page h1 {
  margin: 20px 0 28px;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
}

.legal-page p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-page a {
  color: var(--bay);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--bay);
}

/* ==========================================================================
   AOS / GLightbox / Swiper / Flatpickr — light overrides to match tokens
   ========================================================================== */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background: rgba(23, 20, 15, 0.5) !important;
  backdrop-filter: blur(6px);
}

.flatpickr-calendar {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft) !important;
  font-family: var(--font-body) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--bay) !important;
  border-color: var(--bay) !important;
}

.flatpickr-day.inRange {
  background: rgba(36, 68, 60, 0.14) !important;
  border-color: transparent !important;
  box-shadow: -5px 0 0 rgba(36, 68, 60, 0.14), 5px 0 0 rgba(36, 68, 60, 0.14) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .split-panel,
  .signature,
  .stay-type,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .signature-media,
  .stay-type-media {
    min-height: 320px;
  }

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

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

  .amenity-index,
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  .hero-visual {
    height: 520px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 74px 12px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--paper-soft);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 240ms var(--ease);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px 14px;
  }

  .main-nav .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .amenity-index,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .stay-dates {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-whatsapp span {
    display: none;
  }

  .float-whatsapp {
    padding: 14px;
  }
}

/* -- reveal-on-scroll fallback (AOS handles most; this is a safety net) --*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
