/* ================================================================
   Stay MA — Client Design Layer
   "Tropical Noir Minimalism"

   Loaded after Tailwind via manifest_baseline override.
   Uses starter CSS custom property tokens where possible.
   ================================================================ */

/* ── Additional tokens not in the starter theme ── */
:root {
  --sm-heading-light: #F0EBE3;
  --sm-text-light: rgba(240, 235, 227, 0.82);
  --sm-text-muted-light: rgba(240, 235, 227, 0.45);
  --sm-border-light: rgba(240, 235, 227, 0.10);
  --sm-border-dark: rgba(28, 45, 54, 0.10);
  --sm-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================
   NAV
   ================================================================ */

.sm-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--sm-gutter);
  transition:
    background 0.45s var(--sm-ease),
    padding 0.45s var(--sm-ease),
    box-shadow 0.45s var(--sm-ease);
}

.sm-nav.is-scrolled {
  background: rgba(11, 29, 41, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 1px 0 var(--sm-border-light);
}

/* ── Brand mark ── */

.sm-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--sm-heading-light);
  text-decoration: none;
  gap: 0;
}

.sm-brand__name {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1;
}

.sm-brand__sub {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sm-text-muted-light);
  margin-top: 0.35rem;
  padding-left: 0.1rem;
}

/* ── Desktop links ── */

.sm-nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-nav__links a {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sm-text-light);
  position: relative;
  padding: 0.3rem 0;
  text-decoration: none;
  transition: color 0.3s var(--sm-ease);
}

.sm-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-brand-accent, #D4683A);
  transition: width 0.35s var(--sm-ease);
}

.sm-nav__links a:hover,
.sm-nav__links a[aria-current="page"] {
  color: var(--sm-heading-light);
}

.sm-nav__links a:hover::after,
.sm-nav__links a[aria-current="page"]::after {
  width: 100%;
}

/* ── CTA area ── */

.sm-nav__cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* ── Burger ── */

.sm-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}

.sm-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sm-heading-light);
  border-radius: 1px;
  transition: 0.35s var(--sm-ease);
}

.sm-burger span:nth-child(1) { top: 0; }
.sm-burger span:nth-child(2) { top: 9px; }
.sm-burger span:nth-child(3) { top: 18px; }

.sm-nav.is-open .sm-burger span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.sm-nav.is-open .sm-burger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-4px);
}
.sm-nav.is-open .sm-burger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ── Mobile drawer ── */

.sm-nav__drawer {
  display: none;
}

.sm-nav.is-open .sm-nav__drawer {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--color-brand-primary, #0B1D29);
  padding: 6rem var(--sm-gutter) 3rem;
  animation: smDrawerIn 0.38s var(--sm-ease) both;
  overflow-y: auto;
}

@keyframes smDrawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-nav.is-open .sm-nav__drawer { animation: none; }
}

.sm-nav__drawer a {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: 1.8rem;
  color: var(--sm-heading-light);
  text-decoration: none;
  transition: color 0.3s var(--sm-ease);
}

.sm-nav__drawer a:hover {
  color: var(--color-brand-accent, #D4683A);
}

.sm-nav__drawer .sm-btn--primary {
  display: inline-flex;
  margin-top: 1rem;
  align-self: flex-start;
}

/* ── Buttons ── */

.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--sm-ease);
  white-space: nowrap;
  line-height: 1;
}

.sm-btn--primary {
  background: var(--color-brand-accent, #D4683A);
  color: #fff;
}

.sm-btn--primary:hover {
  background: color-mix(in srgb, var(--color-brand-accent, #D4683A) 85%, black);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(212, 104, 58, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .sm-btn--primary:hover { transform: none; }
}

/* ================================================================
   EYEBROW SYSTEM
   Overrides the starter's .eyebrow — adds the leading line rule.
   ================================================================ */

.eyebrow {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-brand-accent, #D4683A);
  text-decoration: none;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--color-brand-accent, #D4683A);
  display: inline-block;
  flex-shrink: 0;
}

.eyebrow--center {
  justify-content: center;
}

/* On dark sections the eyebrow inherits the accent colour, which works.
   No variant needed — terracotta reads on both deep ocean and warm white. */

/* ================================================================
   STATS BAR
   4-column dark grid immediately after hero.
   Gap: 1px dividers via background on the grid container.
   ================================================================ */

.sm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sm-border-light);
}

.sm-stat {
  background: var(--color-brand-primary, #0B1D29);
  padding: clamp(2.2rem, 4vw, 3.2rem) 1.5rem;
  text-align: center;
}

.sm-stat__num {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--sm-heading-light);
  line-height: 1;
  font-weight: 400;
}

.sm-stat__num em {
  font-style: italic;
  color: var(--color-brand-accent, #D4683A);
}

.sm-stat__label {
  margin-top: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sm-text-muted-light);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

@media (max-width: 532px) {
  .sm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   HERO
   Override .block-hero to match the "Tropical Noir Minimalism" layout:
   full-viewport, text bottom-aligned, specific gradient, scroll indicator.
   ================================================================ */

.sm-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--sm-gutter) clamp(3.5rem, 7vw, 6rem);
  color: var(--sm-heading-light);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}

/* Replace the starter's theme-colored overlay with the mockup gradient */
.sm-hero .block-hero__overlay,
.sm-hero .sm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 41, 0.55) 0%,
    rgba(11, 29, 41, 0.18) 32%,
    rgba(11, 29, 41, 0.45) 64%,
    rgba(11, 29, 41, 0.92) 100%
  );
}

/* Suppress the starter's ::after orb on sm-hero */
.sm-hero::after { display: none; }

.sm-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

/* Eyebrow inside hero uses the global .eyebrow rule — colour already correct */

.sm-hero__headline {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--sm-heading-light);
  margin: 1.5rem 0 1.4rem;
  text-wrap: balance;
}

.sm-hero__headline em {
  font-style: italic;
  color: var(--color-brand-accent, #D4683A);
}

.sm-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--sm-text-light);
  max-width: 50ch;
  margin-bottom: 2.4rem;
  line-height: 1.65;
}

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

/* Ghost button — light border, light text, for use on dark hero */
.sm-btn--ghost {
  background: transparent;
  border-color: rgba(240, 235, 227, 0.35);
  color: var(--sm-heading-light);
}

.sm-btn--ghost:hover {
  border-color: var(--sm-heading-light);
  background: rgba(240, 235, 227, 0.06);
}

/* Arrow nudge on hover */
.sm-arrow {
  display: inline-block;
  transition: transform 0.4s var(--sm-ease);
}
.sm-btn:hover .sm-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .sm-btn:hover .sm-arrow { transform: none; }
}

/* Scroll indicator */
.sm-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sm-text-muted-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.sm-hero__scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--sm-text-muted-light), transparent);
  animation: smScrollPulse 2.4s var(--sm-ease) infinite;
}

@keyframes smScrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sm-hero__scroll::after { animation: none; opacity: 0.5; }
}

/* Hero entrance — items animate in via CSS, no JS needed */
.sm-hero .reveal {
  animation: smHeroUp 1s var(--sm-ease) forwards;
  opacity: 0;
}
.sm-hero .reveal[data-d="1"] { animation-delay: 0.15s; }
.sm-hero .reveal[data-d="2"] { animation-delay: 0.32s; }
.sm-hero .reveal[data-d="3"] { animation-delay: 0.49s; }
.sm-hero .reveal[data-d="4"] { animation-delay: 0.66s; }

@keyframes smHeroUp {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-hero .reveal { animation: none; opacity: 1; }
}

/* ================================================================
   PROPERTY CARD
   Replaces the starter's full-bleed overlay card.
   Structure: photo (4:3) on top, content panel below.
   ================================================================ */

.sm-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: visible; /* allow body panel to extend below photo */
  box-shadow: 0 1px 2px rgba(28, 45, 54, 0.04), 0 18px 40px -24px rgba(28, 45, 54, 0.28);
  transition: transform 0.55s var(--sm-ease), box-shadow 0.55s var(--sm-ease);
  display: flex;
  flex-direction: column;
}

/* Override starter .property-card's aspect-ratio and overflow constraints */
.sm-card.property-card {
  aspect-ratio: auto;
  overflow: hidden; /* keep for border-radius clipping */
}

/* Override starter's GSAP initial state (opacity:0; transform:translateY(40px))
   The starter CSS sets these expecting GSAP to animate them in.
   Our cards use a CSS entrance animation instead. */
.block-property-grid__items > .sm-card {
  opacity: 1;
  transform: none;
  animation: smCardIn 0.7s var(--sm-ease) both;
}
.block-property-grid__items > .sm-card:nth-child(2) { animation-delay: 0.1s; }
.block-property-grid__items > .sm-card:nth-child(3) { animation-delay: 0.2s; }
.block-property-grid__items > .sm-card:nth-child(4) { animation-delay: 0.1s; }
.block-property-grid__items > .sm-card:nth-child(5) { animation-delay: 0.2s; }
.block-property-grid__items > .sm-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes smCardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .block-property-grid__items > .sm-card { animation: none; }
}

/* Override starter .property-card__link height:100% so body panel can expand */
.sm-card .property-card__link {
  height: auto;
  flex: 1;
}

.sm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(28, 45, 54, 0.06), 0 28px 60px -24px rgba(28, 45, 54, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .sm-card:hover { transform: none; }
}

/* Inner link fills the card — no text-decoration */
.sm-card__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Photo area */
.sm-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-brand-primary, #0B1D29);
}

.sm-card__media img,
.sm-card__media picture,
.sm-card__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--sm-ease);
}

.sm-card:hover .sm-card__media img,
.sm-card:hover .sm-card__media picture img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .sm-card:hover .sm-card__media img,
  .sm-card:hover .sm-card__media picture img { transform: none; }
}

/* Placeholder when no photo */
.sm-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-text-muted-light);
}

/* Badge (editorial tag, e.g. "Ocean View") */
.sm-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 29, 41, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--sm-heading-light);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  pointer-events: none;
}

/* Content panel */
.sm-card__body {
  padding: 1.4rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sm-card__name {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-brand-primary, #0B1D29);
  line-height: 1.1;
  margin: 0;
}

.sm-card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #6b7f8a;
  margin-top: 0.4rem;
}

.sm-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
  font-size: 0.8rem;
  color: #3d5564;
}

.sm-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Footer: price left, CTA right */
.sm-card__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 45, 54, 0.09);
}

.sm-card__price {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sm-card__price small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7f8a;
  line-height: 1.4;
}

.sm-card__price b {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--color-brand-primary, #0B1D29);
  line-height: 1;
}

.sm-card__price span {
  font-size: 0.72rem;
  color: #6b7f8a;
  margin-top: 0.15rem;
}

/* "View villa →" CTA text */
.sm-card__cta {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-brand-accent, #D4683A);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sm-card:hover .sm-card__cta .sm-arrow {
  transform: translateX(4px);
}

/* Shortlist button position — reuse starter's class, just reposition */
.sm-card .property-card__shortlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* ================================================================
   PHOTO BREAK
   Full-bleed fixed-background section with centred blockquote.
   Background image passed as CSS custom property --pb-bg from template.
   ================================================================ */

.block-photo-break {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem var(--sm-gutter);
  color: var(--sm-heading-light);
  isolation: isolate;
  overflow: hidden;
}

/* Background layer — fixed attachment gives parallax on desktop */
.block-photo-break::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--pb-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Dark overlay */
.block-photo-break::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 29, 41, 0.60);
}

.block-photo-break__quote {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.22;
  max-width: 18ch;
  margin: 0;
  text-align: center;
}

.block-photo-break__quote em {
  font-style: italic;
  color: var(--color-brand-accent, #D4683A);
}

.block-photo-break__quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sm-text-muted-light);
}

/* iOS doesn't support background-attachment:fixed inside overflow:hidden.
   Fall back to scroll — still looks good, just no parallax. */
@supports (-webkit-overflow-scrolling: touch) {
  .block-photo-break::before {
    background-attachment: scroll;
  }
}

/* ================================================================
   FEATURE GRID
   Dark 4-column "Why stay with us" section.
   1px dividers via gap + background on the grid container (same as stats bar).
   ================================================================ */

.block-feature-grid {
  background: var(--color-brand-primary, #0B1D29);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.block-feature-grid__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sm-gutter);
}

/* Section heading */
.block-feature-grid__head {
  text-align: center;
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
}

.block-feature-grid__heading {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--sm-heading-light);
  line-height: 1.1;
  margin: 1rem 0 0;
  text-wrap: balance;
}

.block-feature-grid__heading em {
  font-style: italic;
  color: var(--color-brand-accent, #D4683A);
}

/* 4-col grid — 1px dividers via gap + background */
.block-feature-grid__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sm-border-light);
  border: 1px solid var(--sm-border-light);
}

/* Each cell */
.block-feature-grid__item {
  background: var(--color-brand-primary, #0B1D29);
  padding: clamp(2rem, 3vw, 2.6rem);
}

.block-feature-grid__icon {
  width: 44px;
  height: 44px;
  color: var(--color-brand-accent, #D4683A);
  margin-bottom: 1.6rem;
  display: block;
  stroke-width: 1.4;
}

.block-feature-grid__title {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--sm-heading-light);
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.block-feature-grid__body {
  font-size: 0.9rem;
  color: var(--sm-text-light);
  line-height: 1.65;
  margin: 0;
}

/* Responsive: 2-col on tablet, 1-col on mobile */
@media (max-width: 900px) {
  .block-feature-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .block-feature-grid__items {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   TOUR TEASERS
   Portrait 3:4 overlay cards with hover-reveal description.
   Light section background; content at bottom under gradient.
   ================================================================ */

.block-tour-teaser {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background: var(--color-warm-cream, #FAF8F5);
}

.block-tour-teaser__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sm-gutter);
}

/* Header row: heading left, "see all" link right */
.block-tour-teaser__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.block-tour-teaser__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.block-tour-teaser__heading {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-brand-primary, #0B1D29);
  line-height: 1.1;
  margin: 0;
}

.block-tour-teaser__heading em {
  font-style: italic;
  color: var(--color-brand-accent, #D4683A);
}

/* Ghost dark button variant (light bg context) */
.sm-btn--ghost-dark {
  background: transparent;
  border: 1px solid rgba(28, 45, 54, 0.25);
  color: var(--color-brand-primary, #0B1D29);
  font-size: 0.78rem;
}

.sm-btn--ghost-dark:hover {
  border-color: var(--color-brand-primary, #0B1D29);
  background: rgba(28, 45, 54, 0.04);
}

/* 4-column auto-fill grid of portrait cards */
.block-tour-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Individual tour card */
.sm-tour {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: var(--sm-heading-light);
  box-shadow: 0 1px 2px rgba(28, 45, 54, 0.06), 0 18px 40px -24px rgba(28, 45, 54, 0.32);
  text-decoration: none;
  cursor: pointer;
}

/* Background photo */
.sm-tour__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: var(--color-brand-primary, #0B1D29);
  transition: transform 1.2s var(--sm-ease);
}

.sm-tour:hover .sm-tour__bg {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .sm-tour:hover .sm-tour__bg { transform: none; }
}

/* Gradient overlay — dark at bottom, transparent at top */
.sm-tour::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(11, 29, 41, 0.92) 0%,
    rgba(11, 29, 41, 0.35) 45%,
    rgba(11, 29, 41, 0.08) 100%
  );
}

/* Card content */
.sm-tour__content {
  position: relative;
  z-index: 1;
}

.sm-tour__cat {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-accent, #D4683A);
  margin-bottom: 0.5rem;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-weight: 600;
}

.sm-tour__name {
  font-family: var(--font-heading, 'DM Serif Display', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--sm-heading-light);
}

/* Description — hidden by default, reveals on hover */
.sm-tour__desc {
  font-size: 0.82rem;
  color: var(--sm-text-light);
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--sm-ease),
    opacity 0.4s var(--sm-ease),
    margin-top 0.4s var(--sm-ease);
}

.sm-tour:hover .sm-tour__desc {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.6rem;
}

@media (prefers-reduced-motion: reduce) {
  .sm-tour__desc { transition: none; }
  .sm-tour:hover .sm-tour__desc { max-height: none; opacity: 1; margin-top: 0.6rem; }
}

/* ================================================================
   FOOTER
   Dark 4-column layout: brand+blurb | Properties | Explore | Contact
   ================================================================ */

.sm-footer {
  background: var(--color-brand-primary, #0B1D29);
  color: var(--sm-text-light);
  padding: clamp(3.5rem, 6vw, 5rem) var(--sm-gutter) 2.2rem;
  border-top: 1px solid var(--sm-border-light);
}

/* Top grid */
.sm-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--sm-border-light);
}

/* Brand column */
.sm-footer__brand-mark {
  display: inline-flex;
  margin-bottom: 1.2rem;
}

.sm-footer__blurb {
  font-size: 0.88rem;
  max-width: 32ch;
  color: var(--sm-text-light);
  line-height: 1.6;
}

/* Column headings */
.sm-footer__heading {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sm-text-muted-light);
  margin: 0 0 1.3rem;
}

/* Nav lists */
.sm-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sm-footer__col ul a {
  font-size: 0.88rem;
  color: var(--sm-text-light);
  text-decoration: none;
  transition: color 0.3s var(--sm-ease);
}

.sm-footer__col ul a:hover {
  color: var(--color-brand-accent, #D4683A);
}

/* Contact column */
.sm-footer__contact p {
  font-size: 0.88rem;
  margin: 0 0 0.7rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.sm-footer__contact a {
  color: var(--sm-text-light);
  text-decoration: none;
  transition: color 0.3s var(--sm-ease);
}

.sm-footer__contact a:hover {
  color: var(--color-brand-accent, #D4683A);
}

.sm-footer__contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--sm-text-muted-light);
}

/* @ symbol substitute for missing mail icon */
.sm-footer__contact-icon--at {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sm-text-muted-light);
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Bottom bar */
.sm-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 1.8rem auto 0;
  font-size: 0.74rem;
  color: var(--sm-text-muted-light);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.sm-footer__pura-vida {
  font-style: italic;
}

.sm-footer__legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sm-footer__legal a {
  color: var(--sm-text-muted-light);
  text-decoration: none;
  transition: color 0.3s var(--sm-ease);
}

.sm-footer__legal a:hover {
  color: var(--color-brand-accent, #D4683A);
}

/* Responsive: 2-col on tablet */
@media (max-width: 900px) {
  .sm-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Single column on mobile */
@media (max-width: 540px) {
  .sm-footer__top {
    grid-template-columns: 1fr;
  }

  .sm-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 820px) {
  .sm-nav__links,
  .sm-nav__cta .sm-btn--primary {
    display: none;
  }

  .sm-burger {
    display: block;
  }
}

/* ─── Signature: "A Day in Manuel Antonio" ───────────────────────────────── */
.sm-day { position: relative; background: var(--color-brand-primary, #0B1D29); }
.sm-day__track { display: block; }
.sm-day__beat {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.sm-day__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-day__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--color-brand-primary, #0B1D29) 92%, transparent) 0%,
    transparent 55%);
}
.sm-day__caption { position: relative; z-index: 1; padding: clamp(1.5rem, 5vw, 4rem); color: var(--color-surface-muted, #FDFAF5); }
.sm-day__time {
  font-family: var(--font-body, sans-serif);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; color: var(--color-brand-accent, #D4683A);
  margin: 0 0 0.5rem;
}
.sm-day__line { font-family: var(--font-heading, serif); font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.1; margin: 0; max-width: 18ch; }
.sm-day__ticks { display: none; }
.sm-day__tick { background: color-mix(in srgb, var(--color-brand-accent, #D4683A) 35%, transparent); }
.sm-day__tick.is-active { background: var(--color-brand-accent, #D4683A); }

/* Enhanced (desktop + GSAP + motion): beats stack absolutely and exactly one is
   visible at a time. JS toggles .is-active per scroll progress; the opacity
   transition dissolves between frames so captions never pile up. */
@media (min-width: 768px) {
  .sm-day--enhanced .sm-day__track { position: relative; height: 100vh; height: 100svh; }
  .sm-day--enhanced .sm-day__beat {
    position: absolute; inset: 0; min-height: 0;
    opacity: 0; transition: opacity 0.7s ease;
  }
  .sm-day--enhanced .sm-day__beat.is-active { opacity: 1; }
  .sm-day--enhanced .sm-day__ticks {
    display: flex; gap: 0.5rem;
    position: absolute; bottom: clamp(1.5rem, 5vw, 4rem); right: clamp(1.5rem, 5vw, 4rem);
    z-index: 2;
  }
  .sm-day--enhanced .sm-day__tick { width: 2.5rem; height: 2px; transition: background 0.3s ease; }
}

/* ─── Region intro — Tropical Noir editorial ─────────────────────────────── */
.sm-region-intro { background: var(--color-brand-primary, #0B1D29); color: var(--color-surface-muted, #FDFAF5); padding: clamp(3rem, 8vw, 7rem) 0; }
.sm-region-intro__inner {
  max-width: 75rem; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .sm-region-intro__inner { grid-template-columns: 5fr 7fr; } }
.sm-region-intro__media img { width: 100%; height: auto; display: block; }
.sm-region-intro__eyebrow { color: var(--color-brand-accent, #D4683A); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; margin: 0 0 1rem; }
.sm-region-intro__name { font-family: var(--font-heading, serif); font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; margin: 0 0 1.25rem; }
.sm-region-intro__desc { font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.6; margin: 0 0 1.5rem; max-width: 46ch; }
.sm-region-intro__link {
  color: var(--color-brand-accent, #D4683A);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; text-decoration: none;
}
.sm-region-intro__link:hover { color: color-mix(in srgb, var(--color-brand-accent, #D4683A) 85%, black); }

/* ─── Testimonial — featured quote over photo ────────────────────────────── */
.sm-testimonial { position: relative; min-height: 70vh; min-height: 70svh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.sm-testimonial__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-testimonial__scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--color-brand-primary, #0B1D29) 70%, transparent);
}
.sm-testimonial__figure { position: relative; z-index: 1; margin: 0; padding: clamp(2rem, 6vw, 5rem); max-width: 50rem; color: var(--color-surface-muted, #FDFAF5); }
.sm-testimonial__eyebrow { color: var(--color-brand-accent, #D4683A); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; margin: 0 0 1.5rem; }
.sm-testimonial__quote { font-family: var(--font-heading, serif); font-size: clamp(1.5rem, 4vw, 2.75rem); line-height: 1.25; margin: 0 0 1.5rem; }
.sm-testimonial__cite { font-style: normal; font-size: 1rem; opacity: 0.85; }
