:root {
  --ink: #353E5A;
  --primary: #526E70;
  --accent: #D7846A;
  --sand: #F2ECE4;
  --slate: #6A6560;
  /* Palette-ready settings (added 2026-10-09; palette #3 Sunset Terracotta adopted the same day):
     --on-accent = text color on an accent-colored fill (buttons, stats strip);
     --accent-ink = the accent when used as small TEXT on a light background (darker for readability). */
  --on-accent: #262B40;
  --accent-ink: #945B49;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Fraunces', serif; color: var(--ink); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Names in a "track record" / "past projects" list that link to a building page on this site. They sit in
   dark body text, so the default link color alone was not enough -- they read as plain text (Carlos,
   2026-10-07). Underline + brand color makes the link obvious. */
a.track-link { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
a.track-link:hover { text-decoration-color: currentColor; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  padding: 1.1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .brand { color: #fff; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; }
/* Menu type matches brickellkeyrealestate.com (measured at 1280px 2026-10-19: 14.08px / weight 500 / 20px gap). */
.main-nav { display: flex; gap: 1.25rem; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); text-decoration: none; }

/* Neighborhoods/Market Reports dropdowns -- desktop: hover/focus reveals a
   floating menu; mobile (see max-width:768px below): always-expanded
   inline sublist instead, since there's no hover on touch. */
.nav-dropdown { position: relative; }
.nav-caret { font-size: 0.6em; margin-left: 0.15em; opacity: 0.7; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--ink); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 0.4rem 0; margin-top: 0.6rem;
  min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 20;
  /* Carlos (2026-10-26): on shorter windows the bottom items fell below the screen and could not be reached (the
     header is sticky, so the page cannot be scrolled to them). Never let a dropdown be taller than the window; if
     it is, it scrolls inside itself. */
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  overflow-y: auto; overscroll-behavior: contain;
}
/* Long lists (the 14 neighborhoods) go in two columns so they are about half as tall and fit short laptop screens. */
.nav-dropdown-menu.nav-dd-long { columns: 2; column-gap: 0; min-width: 400px; }
.nav-dropdown-menu.nav-dd-long a { break-inside: avoid; }
/* The last dropdown (Market Reports) opens toward the left so a two-column menu cannot run off the right edge. */
.nav-dropdown.nav-dd-end .nav-dropdown-menu.nav-dd-long { left: auto; right: 0; }
/* Invisible bridge over the margin-top gap above -- without it, moving the
   mouse straight down off the link exits .nav-dropdown's hover box (which
   only wraps the link itself) before reaching the menu, so :hover is lost
   and the menu closes before a click can land on it. */
.nav-dropdown::before {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 0.6rem;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.55rem 1rem; font-size: 0.88rem;
  white-space: nowrap; color: rgba(255,255,255,0.8);
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
/* "More" group in the top bar: a label, not a link. */
.nav-more-label { color: rgba(255,255,255,0.85); font-size: 0.95rem; cursor: default; }
.nav-more:hover .nav-more-label, .nav-more:focus-within .nav-more-label { color: var(--accent); }
.nav-more .nav-dropdown-menu { left: auto; right: 0; }
/* Mobile-only expand button next to each dropdown parent (shown inside the max-width:768px block). */
.nav-sub-toggle { display: none; }

/* Logos -- ROInversion sits on a square canvas and only inks ~65% of the
   width, so it needs a noticeably larger height than BHHS (which fills its
   canvas completely) to read as the same visual weight -- same ratio
   Brickell Key uses, this isn't a Guide2Miami-specific quirk. */
.logo-bhhs-wrap, .logo-roi-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-bhhs { height: 44px; width: auto; display: block; }
.logo-roi  { height: 72px; width: auto; display: block; }

/* Language switcher -- ported from brickellkeyrealestate.com's global.css,
   using this site's own accent instead of Brickell Key's navy/gold. */
.lang-switcher {
  display: flex; gap: 0.5rem;
  margin-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 0.75rem;
}
.lang-btn { color: rgba(255,255,255,0.65); font-size: 0.78rem; font-weight: 600; }
.lang-btn:hover { color: var(--accent); }

/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 1px; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
}
.btn-primary:hover { opacity: 0.9; }

.hero { padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: var(--slate); max-width: 640px; margin: 0 auto 2rem; }

/* Dark hero variant -- ported from brickellkeyrealestate.com, used on
   sections with a photo/gradient background instead of the plain
   centered .hero above (left-aligned, white text). */
.hero-h1 { color: #fff; font-size: 2.7rem; line-height: 1.2; max-width: 660px; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin: 1rem 0 2rem; }

.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Building page "Recent Sales" table -- individual closed transactions, not
   the rolled-up Market Snapshot numbers. min-width forces horizontal scroll
   on narrow viewports (via the wrapping div's overflow-x:auto) instead of
   squeezing seven columns unreadably. */
.recent-sales-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 640px; }
.recent-sales-table th {
  text-align: left; padding: 0.6rem 0.75rem;
  background: var(--ink); color: #fff; font-weight: 600;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.recent-sales-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #eee; color: #444; }
.recent-sales-table tbody tr:hover { background: var(--sand); }
.recent-sales-table .tower { display: block; font-size: 0.7rem; color: var(--slate); }
.recent-sales-table th[data-sort-key] { cursor: pointer; user-select: none; white-space: nowrap; }
.recent-sales-table th[data-sort-key]:hover { background: #17403a; }
.recent-sales-table th[data-sort-key]:not([aria-sort])::after { content: ' \21C5'; opacity: 0.4; }
.recent-sales-table th[aria-sort="ascending"]::after { content: ' \25B2'; font-size: 0.65rem; }
.recent-sales-table th[aria-sort="descending"]::after { content: ' \25BC'; font-size: 0.65rem; }
.recent-sales-controls { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.6rem; font-size: 0.85rem; color: var(--slate); }
.recent-sales-controls select { margin-left: 0.4rem; padding: 0.3rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; font: inherit; color: var(--ink); background: #fff; }
/* Phase toggle above the building Market Snapshot (Brickell Place: All / Phase I / Phase II) */
.phase-toggle { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.phase-toggle[hidden] { display: none; }
.phase-toggle-btn { background: #fff; border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 0.35rem 1rem; font: 600 0.85rem inherit; cursor: pointer; }
.phase-toggle-btn:hover { border-color: var(--accent); }
.phase-toggle-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.recent-sales-footer { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; font-size: 0.8rem; color: var(--slate); }
.recent-sales-footer button { background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: 4px; padding: 0.3rem 0.8rem; font: 600 0.8rem inherit; cursor: pointer; }
.recent-sales-footer button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Compact variant of .fact-strip for the two half-width Market Snapshot
   boxes: all five stats stay on one row instead of wrapping to a second. */
.fact-strip.fact-strip-compact { grid-template-columns: repeat(5, 1fr); gap: 0.35rem; padding: 1rem 0; }
.fact-strip.fact-strip-compact .fact-num { font-size: 1.15rem; }
.fact-strip.fact-strip-compact .fact-label { font-size: 0.56rem; letter-spacing: 0.03em; line-height: 1.25; display: block; margin-top: 0.15rem; }
@media (max-width: 560px) {
  .fact-strip.fact-strip-compact { grid-template-columns: repeat(3, 1fr); row-gap: 0.9rem; }
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}
.neighborhood-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.neighborhood-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.13); }
.neighborhood-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center; display: block; background: var(--sand); }
.neighborhood-card .card-body { padding: 1.25rem; }
.neighborhood-card h3 { margin: 0 0 0.5rem; }
.neighborhood-card p { color: var(--slate); font-size: 0.92rem; margin: 0; }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3rem 0 2rem; margin-top: 3rem; font-size: 0.85rem; line-height: 1.8; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-logos {
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  flex-wrap: wrap; padding-bottom: 2rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-bhhs { height: 88px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-logo-roi  { height: 128px; width: auto; }
.footer-logo-mls  { height: 40px; width: auto; opacity: 0.85; flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 2rem; align-items: start; }
.footer-grid > div:last-child p { max-height: 340px; overflow-y: auto; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.8rem; text-align: center; }

.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: #25D366; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 40;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float.whatsapp-hidden { opacity: 0; pointer-events: none; transition: opacity 0.2s; }

/* Sticky bottom bar -- shown once the hero scrolls out of view, hidden
   again near the footer. See the scroll-driven toggle script in
   BaseLayout.astro (not IntersectionObserver -- see that script's comment
   for why). */
.sticky-bar {
  /* bottom:0, not offset -- translateY(100%) below only fully hides the bar
     when its resting position is flush with the viewport edge (an earlier
     bottom:5rem attempt left ~14px of the bar always peeking into view --
     the math doesn't cancel out once `bottom` is nonzero). The WhatsApp
     float would otherwise overlap this bar's bottom-right; instead of
     offsetting position, BaseLayout.astro's script hides the WhatsApp
     float (.whatsapp-hidden) whenever the sticky bar is showing, so only
     one bottom-right CTA is ever visible at once. */
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink); border-top: 2px solid var(--accent);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  z-index: 90; box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-label { color: #fff; font-size: 0.85rem; }
.sticky-bar-ctas { display: flex; gap: 0.75rem; flex-shrink: 0; }
.sticky-bar-outline {
  display: inline-block; border: 1px solid rgba(255,255,255,0.5);
  color: #fff; padding: 0.5rem 1.25rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.sticky-bar-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.sticky-bar-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.5rem; line-height: 1; padding: 0.25rem 0.4rem; cursor: pointer;
  flex-shrink: 0; transition: color 0.15s;
}
.sticky-bar-close:hover, .sticky-bar-close:focus-visible { color: #fff; }

/* ============================================================
   Added 2026-09-03 for /search/, /listing/, /market-reports/,
   /about/, /contact/, /blog/ -- ported from brickellkeyrealestate.com's
   global.css, remapped from its navy/gold/teal palette to this site's
   own ink/primary/accent/sand/slate tokens.
   ============================================================ */

/* Section backgrounds */
.section-white { background: #fff;  padding: 5rem 0; }
.section-light { background: var(--sand); padding: 5rem 0; }
.section-navy  { background: var(--ink);  padding: 5rem 0; color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); padding: 4rem 0 3rem; color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }

.section-eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.5rem; display: block;
}
.section-white .section-eyebrow, .section-light .section-eyebrow { color: var(--accent-ink); }
.section-intro { max-width: 680px; color: var(--slate); margin-bottom: 2.5rem; }

.btn-outline {
  display: inline-block; border: 2px solid var(--primary); color: var(--primary);
  padding: 0.7rem 1.6rem; border-radius: 4px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* Grids */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Agent bio cards */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.agent-card { background: var(--sand); border-radius: 4px; padding: 2rem; text-align: center; }
.agent-card .agent-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 1rem; border: 3px solid var(--accent); background: var(--ink); display: block; }
.agent-card h3 { color: var(--ink); margin-bottom: 0.4rem; }
.agent-card .agent-title { color: var(--accent-ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; }
.agent-card p { color: var(--slate); font-size: 0.92rem; margin-top: 1rem; line-height: 1.75; text-align: left; }

/* Stats strip */
.stats-strip { background: var(--accent); padding: 2rem 0; color: var(--on-accent); }
.stats-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stats-strip .stat-number { font-size: 2rem; font-weight: 700; display: block; font-family: 'Fraunces', serif; }
.stats-strip .stat-label  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }

/* Report cards (live market-stat tiles) */
.report-card { background: #fff; border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.07); border-left: 4px solid var(--accent); }
.report-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--ink); }

/* Pre-construction spotlight */
.precon-spotlight {
  background: linear-gradient(120deg, var(--ink) 60%, var(--primary) 100%);
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  padding: 3rem;
  min-height: 420px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.precon-spotlight h2 { color: #fff; }
.precon-spotlight p { color: rgba(255,255,255,0.8); }

/* Pre-construction spotlight carousel (homepage) -- one project at a time with left/right arrows;
   see src/lib/precon-carousel.ts. Side arrows on desktop, bottom corners on phones. */
.precon-carousel { position: relative; outline-offset: 4px; }
.precon-carousel .precon-spotlight { padding-left: 4.75rem; padding-right: 4.75rem; padding-bottom: 3.5rem; }
.precon-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(10,14,28,0.45); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0 0 0.15rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background 0.15s ease;
}
.precon-arrow:hover, .precon-arrow:focus-visible { background: color-mix(in srgb, var(--accent) 92%, transparent); outline: none; }
.precon-arrow-prev { left: 0.9rem; }
.precon-arrow-next { right: 0.9rem; }
.precon-counter {
  position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.75rem; color: rgba(255,255,255,0.8); background: rgba(10,14,28,0.45);
  padding: 0.2rem 0.75rem; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.precon-carousel[data-single] .precon-arrow, .precon-carousel[data-single] .precon-counter { display: none; }
.precon-carousel[data-single] .precon-spotlight { padding-left: 3rem; padding-right: 3rem; padding-bottom: 3rem; }
@media (max-width: 768px) {
  .precon-carousel .precon-spotlight { padding: 2rem 1.25rem 4.75rem; }
  .precon-arrow { top: auto; bottom: 0.7rem; transform: none; width: 2.4rem; height: 2.4rem; font-size: 1.4rem; }
  .precon-arrow-prev { left: 1rem; }
  .precon-arrow-next { right: 1rem; }
  .precon-counter { bottom: 1rem; }
}

/* Why Miami section */
.why-list { display: flex; flex-direction: column; gap: 2rem; }
.why-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.why-num {
  font-size: 2rem; font-weight: 700; color: var(--accent);
  font-family: 'Fraunces', serif; flex-shrink: 0; line-height: 1;
  min-width: 2.5rem;
}
.why-item h3 { color: #fff; margin-bottom: 0.4rem; font-size: 1.05rem; }
.why-item p  { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }

/* Cards */
.card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center; background: var(--sand); }
.card-body { padding: 1.25rem; }

/* Building grid -- ported from brickellkeyrealestate.com's .building-card
   pattern (src/pages/buildings/index.astro + global.css), same class names,
   colors mapped onto this site's own tokens (--navy->--ink, --gold->--accent,
   --lgray->--sand, --mgray->--slate) so it matches the rest of the Miami
   site's palette rather than importing Brickell Key's navy/gold verbatim. */
.buildings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.building-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  transition: transform 0.2s, box-shadow 0.2s;
}
.building-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.13); }
.building-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center; display: block; background: var(--sand); }
.building-card-body { padding: 1.25rem; }
.building-card-body h3 { margin: 0.35rem 0 0.25rem; font-size: 1.2rem; color: var(--ink); }
.building-card-body .meta { font-size: 0.82rem; color: var(--slate); margin: 0 0 0.5rem; }
.building-card-body .price { font-weight: 600; color: var(--ink); font-size: 0.92rem; margin: 0.35rem 0; }

.building-card-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.building-card-actions a {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.building-card-actions .for-sale,
.building-card-actions .for-rent { background: var(--ink); color: #fff; }
.building-card-actions .for-sale:hover,
.building-card-actions .for-rent:hover { opacity: 0.88; color: #fff; text-decoration: none; }

.building-card-view {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.building-card-view:hover { opacity: 0.9; color: #fff; text-decoration: none; }

/* Amenities icon grid -- ported from brickellkeyrealestate.com */
.amenity-icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.5rem; margin-top: 1rem; }
.amenity-icon-card { display: flex; align-items: flex-start; gap: 0.75rem; }
.amenity-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.amenity-icon svg { width: 20px; height: 20px; }
.amenity-icon-card span:last-child { font-size: 0.9rem; color: #444; line-height: 1.45; padding-top: 0.4rem; }

/* Badge */
.badge {
  display: inline-block; background: var(--sand); color: var(--ink);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 2px;
}

/* Fact strip -- live market-stats banners */
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 1rem; text-align: center; padding: 1.5rem 0; }
.fact-strip .fact-num { font-size: 1.8rem; font-weight: 700; color: #fff; display: block; font-family: 'Fraunces', serif; }
.fact-strip .fact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.65); }

/* Answer box (AEO pattern) */
.answer-box { background: var(--sand); border-left: 4px solid var(--accent); border-radius: 0 4px 4px 0; padding: 1.5rem 2rem; margin: 2rem 0; }
.answer-box h2 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--ink); }
.answer-box p { margin: 0; font-size: 0.95rem; color: var(--ink); }

/* Form styles (contact form, listing detail contact form) */
.contact-form label { display: block; font-weight: 500; margin-top: 1.25rem; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.7rem 1rem; border: 1px solid #D0D5DD; border-radius: 4px;
  font-size: 0.95rem; font-family: 'Inter', sans-serif; color: var(--ink); background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.form-note { font-size: 0.78rem; color: var(--slate); margin-top: 1rem; line-height: 1.6; }

/* Blog post body */
.blog-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--ink); }
.blog-content h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.6rem; color: var(--ink); }
.blog-content p  { color: #444; line-height: 1.75; margin-bottom: 1rem; max-width: 720px; }
.blog-content ul, .blog-content ol { padding-left: 1.25rem; color: #444; line-height: 2; max-width: 720px; margin-bottom: 1rem; }
.blog-content a  { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--ink); }
.blog-content strong { color: var(--ink); }
/* Images, tables and pull quotes inside posts (added 2026-10-20 with the first charts). */
.blog-content img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin: 1.5rem 0 0.4rem; }
.blog-content img + em { display: block; font-size: 0.78rem; color: var(--slate); font-style: normal; margin-bottom: 1.5rem; max-width: 720px; }
.blog-content table { display: block; overflow-x: auto; max-width: 720px; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.blog-content th, .blog-content td { padding: 0.55rem 0.85rem; text-align: left; white-space: nowrap; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.blog-content th { background: var(--sand); color: var(--ink); font-weight: 600; }
.blog-content blockquote { max-width: 720px; margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--accent); }
.blog-content blockquote p { font-size: 1.05rem; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; padding-top: 0.75rem; }
  .grid-2col, .grid-3col, .about-grid, .stats-strip-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-white, .section-light, .section-navy { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .precon-spotlight { grid-template-columns: 1fr; padding: 2rem; }
  .hero-h1 { font-size: 2rem; }

  /* Building cards were staying at a fixed 3-column grid down to phone
     width, squeezing each card to ~110px -- images and the For Sale/For
     Rent buttons became illegible. Step down to 2 columns here, then 1
     column on phones proper (480px breakpoint below). */
  .buildings-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .building-card-body { padding: 1rem; }
  .building-card-body h3 { font-size: 1.05rem; }
  .building-card-actions a { font-size: 0.74rem; padding: 0.5rem 0.35rem; }

  /* Scale header logos back so they don't crowd the hamburger */
  .logo-bhhs { height: 34px; }
  .logo-roi  { height: 56px; }

  .main-nav {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    /* Carlos (2026-10-20): the open menu was taller than the phone screen and could not be scrolled. Cap it to the
       visible screen below the header and let it scroll inside itself. */
    max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    /* extra room so the last items clear the floating WhatsApp button and a phone's bottom toolbar */
    padding-bottom: 5.5rem;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 0.6rem 0; font-size: 1rem; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-toggle { display: flex; }

  /* No hover on touch. Each dropdown (Neighborhoods, Pre-Construction, Market Reports, More) is COLLAPSED by default:
     the link still goes to its page, and the arrow button beside it opens the sublist inline. (Always-expanded made
     the menu about 75 items long -- Carlos, 2026-10-20.) */
  .nav-dropdown { width: 100%; display: flex; flex-wrap: wrap; align-items: center; }
  .nav-dropdown > a { flex: 1; border-bottom: none; }
  .nav-sub-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1rem; cursor: pointer;
  }
  .nav-sub-toggle span { transition: transform 0.15s; }
  .nav-dropdown.sub-open .nav-sub-toggle span,
  .nav-more.sub-open .nav-caret { transform: rotate(180deg); }
  .nav-more-label { display: block; flex: 1; padding: 0.6rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); cursor: pointer; }
  .nav-more-label .nav-caret { display: inline-block; margin-left: 0.4em; }
  .nav-caret { display: none; }
  .nav-dropdown-menu {
    display: none; width: 100%; position: static; border: none; box-shadow: none;
    background: transparent; margin: 0 0 0.4rem; padding: 0;
    /* the whole mobile menu panel scrolls, so a sublist must not scroll or split into columns on its own */
    max-height: none; overflow: visible; columns: auto; min-width: 0;
  }
  /* Hover/focus must not open a sublist on touch (it would get stuck open); only the toggle does. */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.sub-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu.nav-dd-long { columns: auto; min-width: 0; }
  .nav-dropdown-menu a { padding: 0.5rem 0 0.5rem 1rem; font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

  .whatsapp-float { width: 48px; height: 48px; bottom: 1.25rem; right: 1.25rem; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .sticky-bar { flex-direction: column; align-items: flex-start; padding: 0.75rem 1rem; }
  .sticky-bar-label { padding-right: 2rem; }
  .sticky-bar-close { position: absolute; top: 0.4rem; right: 0.5rem; }
  .sticky-bar-ctas { gap: 0.5rem; }
}
@media (max-width: 480px) {
  .fact-strip { grid-template-columns: 1fr; }
  .buildings-grid { grid-template-columns: 1fr; }
  .building-card-body { padding: 1.25rem; }
  .building-card-body h3 { font-size: 1.15rem; }
  .building-card-actions a { font-size: 0.8rem; padding: 0.55rem 0.5rem; }
}

/* Anchor jumps (e.g. /pre-construction/#coconut-grove) must clear the sticky header, which wraps to two lines on narrower desktops. */
[id] { scroll-margin-top: 8rem; }
