/* ============================================================
   HAVEN LIVIN — STYLE SYSTEM
   Brand: Navy / Steel Blue / Teal, paired with Fraunces (display)
   + Public Sans (body) + IBM Plex Mono (data/numbers).
   Signature device: the "key tag" — a punched hotel-style tag
   used for availability badges and price tags site-wide.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* --- Brand colors (fixed) --- */
  --navy: #0B1F3B;
  --blue: #1F5FAF;
  --teal: #1FA7A1;
  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  --text-dark: #1E293B;

  /* --- Derived tones --- */
  --navy-deep: #071529;
  --navy-soft: rgba(11, 31, 59, 0.06);
  --teal-soft: rgba(31, 167, 161, 0.12);
  --teal-deep: #168883;
  --border-soft: #E2E8F0;
  --text-muted: #5B6B82;
  --text-on-dark: #C9D6E8;
  --warn-amber: #B7791F;

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-data: 'IBM Plex Mono', 'Courier New', monospace;

  /* --- Spacing scale --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* --- Shape & shadow --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 59, 0.06), 0 1px 3px rgba(11, 31, 59, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 59, 0.10);
  --shadow-lg: 0 24px 48px rgba(11, 31, 59, 0.16);
  --shadow-glow-teal: 0 8px 24px rgba(31, 167, 161, 0.28);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

html {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 90px;
}

body {
  /* No overflow or positioning rules on body — any of these break
     position:fixed elements (like Tawk.to chat) on iOS Safari.
     Horizontal overflow is prevented at the .page-wrapper level instead. */
}

.page-wrapper {
  overflow-x: hidden;
  width: 100%;
  /* No position:relative — it creates a stacking context that can
     interfere with fixed-position third-party widgets on iOS */
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { line-height: 1.65; color: var(--text-muted); overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--text-muted); max-width: min(540px, 100%); }

.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head h2 { margin-top: 0.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
}
.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section--navy { background: var(--navy); color: var(--text-on-dark); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--gray { background: var(--gray-light); }

@media (max-width: 760px) {
  .section { padding-block: var(--space-xl); }
  .section--tight { padding-block: var(--space-lg); }
  .hero { padding-block: var(--space-md) var(--space-lg); }
  .page-header { padding-block: var(--space-md); }
}

.grid { display: grid; gap: var(--space-md); }
.grid > * { min-width: 0; max-width: 100%; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   REVEAL-ON-SCROLL (JS toggles .is-visible)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }

@media (hover: hover) {
  .btn--teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(31,167,161,0.32); }
  .btn--outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
  .btn--outline-navy:hover { background: var(--navy); color: var(--white); }
  .btn--ghost:hover { background: var(--teal-soft); color: var(--teal-deep); }
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-glow-teal);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn--outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost {
  background: var(--navy-soft);
  color: var(--navy);
}

.btn--block { width: 100%; }
@media (max-width: 640px) {
  .btn--block { white-space: normal; word-break: break-word; }
}
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }

/* ============================================================
   SIGNATURE ELEMENT — THE KEY TAG
   A hotel-checkout-style tag with a punched hole, used for
   availability badges and price tags throughout the site.
   ============================================================ */
.key-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem 0.5rem 1.6rem;
  border-radius: 3px 10px 10px 3px;
  box-shadow: var(--shadow-sm);
}
.key-tag::before {
  /* the punched hole */
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-deep);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 0 0 2px var(--white);
}
.key-tag--teal { background: var(--teal); }
.key-tag--teal::before { background: var(--teal-deep); }
.key-tag--light {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.key-tag--light::before { background: var(--gray-light); }
.key-tag--available { background: var(--teal); }
.key-tag--available::after {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--border-soft);
  box-shadow: 0 2px 16px rgba(11,31,59,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav__logo img, .nav__logo svg { height: 48px; width: auto; }
@media (max-width: 380px) {
  .nav__logo img, .nav__logo svg { height: 40px; }
}
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding-block: 0.3rem;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%; height: 2px;
  background: var(--teal);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--teal-deep); }
.nav__actions { display: flex; align-items: center; gap: 0.8rem; }
.nav__actions .btn { display: none; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-soft);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 0.85rem 0.2rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border-soft);
}
.nav__mobile .btn { margin-top: 0.8rem; }

@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__actions .btn { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 60%, #061224 100%);
  overflow: hidden;
  padding-block: var(--space-2xl) var(--space-3xl);
}
.hero::before {
  /* ambient harbor-light glow */
  content: '';
  position: absolute;
  top: -200px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(31,167,161,0.22), transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .container > * { min-width: 0; max-width: 100%; }
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__copy .eyebrow { color: var(--teal); }
.hero__copy .eyebrow::before { background: var(--teal); }
.hero h1 { color: var(--white); margin-top: 0.9rem; }
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero__lede { color: var(--text-on-dark); font-size: 1.15rem; max-width: 100%; margin-top: 1.2rem; }
.hero__ctas { display: flex; flex-direction: column; gap: 0.9rem; margin-top: var(--space-lg); }
.hero__ctas .btn { width: 100%; justify-content: center; }
@media (min-width: 480px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero__ctas .btn { width: auto; }
  .hero__lede { max-width: 480px; }
}

.hero__stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}
.hero__stat { min-width: 0; flex: 1 1 auto; }
.hero__stat .num {
  font-family: var(--font-data);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}
.hero__stat .label {
  font-size: 0.82rem;
  color: var(--text-on-dark);
}

.hero__visual { position: relative; overflow: hidden; }
@media (max-width: 479px) {
  .hero__floating-tag { display: none; }
}
.hero__frame {
  position: relative;
  z-index: 1; /* contains the photo's z-index so it can't paint above the floating tag below */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__floating-tag {
  position: absolute;
  z-index: 2; /* must stay above .hero__frame once a real photo loads inside it */
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: min(260px, 70%);
  animation: float-tag 5s ease-in-out infinite;
}
.hero__floating-tag__photo {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.hero__floating-tag__body { padding: var(--space-md); }
@media (prefers-reduced-motion: reduce) { .hero__floating-tag { animation: none; } }
@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__floating-tag .addr { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.hero__floating-tag .meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.hero__floating-tag .price {
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ============================================================
   IMAGE PLACEHOLDERS
   (clearly-labeled stand-ins — see /assets/README)
   ============================================================ */
.placeholder-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #DCE6F2 0%, #C7D6E8 100%);
  color: var(--blue);
  min-height: 220px;
  overflow: hidden;
}
.placeholder-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.placeholder-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,31,59,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,59,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.placeholder-img__label {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.placeholder-img__label svg { margin-inline: auto; opacity: 0.8; }
.placeholder-img--portrait { aspect-ratio: 4/5; min-height: 0; }
.placeholder-img--wide { aspect-ratio: 16/10; min-height: 0; }
.placeholder-img--square { aspect-ratio: 1/1; min-height: 0; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border-soft); }
.trust-strip .grid { padding-block: var(--space-lg); }
.trust-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.trust-item .icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
}
.trust-item h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.trust-item p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   CARDS — LISTINGS
   ============================================================ */
.listing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
}
.listing-card__media { position: relative; }
.listing-card__media .key-tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
}
.listing-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.listing-card__title { font-size: 1.15rem; }
.listing-card__loc {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.listing-card__desc { font-size: 0.92rem; margin: 0; }
.listing-card__terms {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.8rem;
  margin-top: auto;
}
.listing-card__terms > div { min-width: 0; }
.listing-card__terms .figure {
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  display: block;
  overflow-wrap: break-word;
}
.listing-card__terms .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.listing-card__cta { margin-top: 0.4rem; }

/* ============================================================
   SECTION: CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  color: var(--white);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,0.88); margin-top: 0.4rem; }
.cta-band .btn--teal { background: var(--white); color: var(--teal-deep); box-shadow: var(--shadow-md); }
@media (hover: hover) { .cta-band .btn--teal:hover { background: var(--gray-light); } }

/* ============================================================
   TEAM
   ============================================================ */
.team-card { text-align: left; }
.team-card .placeholder-img { border-radius: var(--radius-md); margin-bottom: var(--space-sm); }
.team-card h4 { margin-bottom: 0.1rem; }
.team-card .role { font-family: var(--font-data); font-size: 0.78rem; color: var(--teal-deep); font-weight: 600; }
.team-card p.bio { font-size: 0.9rem; margin-top: 0.5rem; }

/* ============================================================
   ABOUT — STORY / WHY US
   ============================================================ */
.why-item {
  display: flex; gap: 1rem; padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-soft);
}
.why-item:last-child { border-bottom: none; }
.why-item .num {
  font-family: var(--font-data);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 2.2rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-sm); }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.form-field .error {
  font-size: 0.78rem;
  color: #B42318;
  display: none;
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #B42318; }
.form-field.has-error .error { display: block; }
.form-row { display: grid; gap: var(--space-sm); }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-success {
  display: none;
  background: var(--teal-soft);
  color: var(--teal-deep);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  font-weight: 600;
  margin-top: var(--space-sm);
}
.form-success.is-visible { display: flex; align-items: center; gap: 0.6rem; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-item__q .plus { transition: transform 0.3s var(--ease); flex-shrink: 0; margin-left: 1rem; color: var(--teal); }
.faq-item.is-open .faq-item__q .plus { transform: rotate(135deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item__a p { padding-bottom: var(--space-md); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark); padding-block: var(--space-2xl) var(--space-lg); }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .nav__logo svg { height: 32px; }
.footer-brand p { color: var(--text-on-dark); margin-top: var(--space-sm); max-width: 280px; font-size: 0.9rem; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); margin-bottom: var(--space-sm); }
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-on-dark);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s var(--ease);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(201,214,232,0.6);
}
.social-row { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   FLOATING ACTION BUTTONS — Live chat + WhatsApp
   ============================================================ */
@media (max-width: 760px) {
  }

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  animation: msg-in 0.25s var(--ease);
}
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg--bot { background: var(--white); color: var(--text-dark); align-self: flex-start; box-shadow: var(--shadow-sm); }
.chat-msg--user { background: var(--teal); color: var(--white); align-self: flex-end; }
.chat-typing { display: flex; gap: 4px; align-self: flex-start; padding: 0.7rem 0.9rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing-bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-quick-btn {
  font-size: 0.8rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 0.7rem 0.9rem;
  min-height: 44px;
  color: var(--navy);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chat-quick-btn--whatsapp {
  background: #DFF7E8;
  border-color: #25D366;
  color: #128C4A;
}

/* ============================================================
   MEDIA BLOCK — alternating image + text sections
   (used for Property Quality / Lifestyle sections on the home page)
   ============================================================ */
.media-block {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  overflow: hidden;
}
.media-block > * { min-width: 0; max-width: 100%; }
@media (min-width: 860px) {
  .media-block { grid-template-columns: 1fr 1fr; }
}
.media-block .placeholder-img { border-radius: var(--radius-lg); min-height: 360px; }
.media-block__copy .btn { margin-top: var(--space-md); }

/* ============================================================
   LISTING DETAIL PAGE + GALLERY + LIGHTBOX
   ============================================================ */
.listing-detail { display: grid; gap: var(--space-xl); }
.listing-detail > * { min-width: 0; max-width: 100%; }
@media (min-width: 960px) {
  .listing-detail { grid-template-columns: 1.3fr 0.9fr; align-items: start; }
  .listing-detail__sidebar { position: sticky; top: 100px; }
}

.gallery__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gray-light);
  box-shadow: var(--shadow-md);
}
.gallery__main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: zoom-in;
}
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11,31,59,0.55); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none; transition: background 0.2s var(--ease);
}
.gallery__arrow--prev { left: 1rem; }
.gallery__arrow--next { right: 1rem; }
.gallery__counter {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  background: rgba(11,31,59,0.7); color: var(--white);
  font-family: var(--font-data); font-size: 0.75rem;
  padding: 0.25rem 0.65rem; border-radius: 999px;
}
.gallery__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.9rem; }
.gallery__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-soft); border: none; padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.gallery__dot.is-active { background: var(--teal); transform: scale(1.35); }
.gallery__thumbs {
  display: flex; gap: 0.6rem; margin-top: 0.9rem;
  overflow-x: auto; padding-bottom: 0.3rem;
}
.gallery__thumb {
  width: 84px; height: 60px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; border: 2px solid transparent;
  cursor: pointer; opacity: 0.65; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
  background: none; padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.is-active { border-color: var(--teal); opacity: 1; }

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7,15,25,0.94);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 88vw; max-height: 76vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: var(--white);
  font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0.8;
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.lightbox-arrow--prev { left: 1.2rem; }
.lightbox-arrow--next { right: 1.2rem; }
@media (min-width: 700px) {
  .lightbox-arrow--prev { left: 2rem; }
  .lightbox-arrow--next { right: 2rem; }
}
.lightbox-counter { color: rgba(255,255,255,0.7); font-family: var(--font-data); font-size: 0.85rem; margin-top: 1rem; }

.listing-detail__price-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.listing-detail__price-box .row { display: flex; justify-content: space-between; padding-block: 0.6rem; border-bottom: 1px solid var(--border-soft); }
.listing-detail__price-box .row:last-of-type { border-bottom: none; }
.listing-detail__price-box .row .figure { font-family: var(--font-data); font-weight: 600; color: var(--navy); }
.listing-detail__not-found { text-align: center; padding: var(--space-3xl) 0; }

/* ============================================================
   FILTER BAR (Listings page)
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
  box-sizing: border-box;
  width: 100%;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field label { font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; }
.filter-field select, .filter-field input {
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
  min-width: 160px;
}
.filter-field select:focus, .filter-field input:focus { outline: none; border-color: var(--teal); }

@media (max-width: 640px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-field { width: 100%; }
  .filter-field select, .filter-field input { min-width: 0; width: 100%; box-sizing: border-box; }
  /* Checkbox row: put checkbox and label text on the same line */
  .filter-field:last-child label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
  }
}
.filter-result-count { font-size: 0.88rem; color: var(--text-muted); margin-bottom: var(--space-md); }
.no-results { text-align: center; padding: var(--space-2xl) 0; color: var(--text-muted); }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-block: var(--space-xl) var(--space-lg);
  color: var(--white);
}
.page-header .eyebrow { color: var(--teal); }
.page-header .eyebrow::before { background: var(--teal); }
.page-header h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 2.9rem); margin-top: 0.6rem; }
.page-header p { color: var(--text-on-dark); max-width: 560px; margin-top: 0.8rem; }

/* ============================================================
   MISC
   ============================================================ */
.divider { height: 1px; background: var(--border-soft); margin-block: var(--space-xl); }
.badge-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   HOVER — TOUCH DEVICE SAFETY
   All remaining rules that change background/color/transform
   are scoped to hover-capable devices only, preventing iOS/Android
   "stuck hover" where a touch tap permanently applies hover styling.
   ============================================================ */
@media (hover: hover) {
  .footer-col a:hover { color: var(--teal); }
  .social-row a:hover { background: var(--teal); color: var(--navy-deep); }
  .fab:hover     .chat-quick-btn:hover { background: var(--teal-soft); border-color: var(--teal); }
  .chat-quick-btn--whatsapp:hover { background: #c9f0d6; border-color: #1fb456; }
    .gallery__arrow:hover { background: rgba(11,31,59,0.85); }
  .lightbox-close:hover { opacity: 1; }
  .lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
}

/* ============================================================
   TAWK.TO — ensure the chat widget is never hidden by our CSS
   Fixed-position elements from third-party scripts can be
   accidentally clipped by overflow or z-index rules.
   ============================================================ */
#tawkchat-container,
#tawk-bubble-container,
.tawk-min-container,
.tawk-bubble-container,
[id^="tawk-"],
[class^="tawk-"],
iframe[src*="tawk.to"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   Positioned bottom-LEFT so it never overlaps Tawk.to (bottom-right)
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  left: 1.5rem;
  z-index: 9000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  .whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  }
}
