/* P6: non-critical styles for residences.css — critical nav/hero/units remain inline */
/* GALLERY */
/* GALLERY SYSTEM */
.unit-gallery { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; grid-template-rows:280px 280px; gap:4px; margin-bottom:48px; }
.gal-main { grid-column:1/3; grid-row:1/3; }
.gal-item { background:var(--forest-mid); position:relative; overflow:hidden; }
.gal-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.5s ease; }
.gal-item:hover img { transform:scale(1.04); }
.gal-ph { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:rgba(255,255,255,0.2); font-size:0.55rem; letter-spacing:0.15em; text-transform:uppercase; text-align:center; padding:16px; }

/* FLOOR PLAN */
.floorplan-wrap { display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start;margin-top:60px; }
.fp-img { background:var(--white); overflow:hidden; min-height:400px; display:flex; align-items:center; justify-content:center; } .fp-img img { width:100%; height:100%; object-fit:contain; display:block; }
.fp-img svg { opacity:0.25; }
/* .fp-specs { } */
.spec-row { display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--sand-dark); }
.spec-label { font-size:0.7rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--text-light); }
.spec-val { font-family:'Cormorant Garamond',serif;font-size:1.2rem;color:var(--forest); }
.price-box { background:var(--forest);padding:32px;margin-top:28px; }
.price-from { font-size:0.58rem;letter-spacing:0.25em;text-transform:uppercase;color:var(--gold-light);margin-bottom:8px; }
.price-num { font-family:'Cormorant Garamond',serif;font-size:2.2rem;color:var(--white);font-weight:300; }
.price-sub { font-size:0.7rem;color:rgba(255,255,255,0.35);margin-top:4px; }

/* DEVELOPMENT MAP */
.devmap-section { background:var(--charcoal);padding:100px 48px; }
.devmap-section .eyebrow { color:var(--gold); }
.devmap-section .section-title { color:var(--white); }
.devmap-section .divider { background:var(--gold); }
.devmap-ph { margin-top:48px;background:linear-gradient(135deg, #1a2a1c, #2c3b2d, #1e2d20);min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;position:relative;border:1px dashed rgba(201,169,110,0.15); }
.devmap-label { font-size:0.65rem;letter-spacing:0.25em;text-transform:uppercase;color:rgba(255,255,255,0.3); }
.devmap-icon { font-size:2.5rem;opacity:0.3; }
.devmap-note { font-size:0.72rem;line-height:1.8;color:rgba(255,255,255,0.25);text-align:center;max-width:400px; }
.devmap-legend { display:flex;gap:32px;margin-top:32px;flex-wrap:wrap;justify-content:center; }
.legend-item { display:flex;align-items:center;gap:8px;font-size:0.65rem;letter-spacing:0.12em;text-transform:uppercase; }
.legend-dot { width:10px;height:10px;border-radius:50%;flex-shrink:0; }
.dot-available { background:#4CAF50; }
.dot-reserved { background:#FFDE59; box-shadow: inset 0 0 0 1px rgba(31,43,34,0.12); }   /* the site plan's reserved yellow */
.dot-sold { background:#e53935; }
.legend-item span { color:rgba(255,255,255,0.4); }

/* AVAILABILITY TABLE */
.availability { background:var(--sand); }
.avail-intro { max-width:600px;margin-bottom:48px; }
.avail-intro p { font-size:0.9rem;line-height:1.9;color:var(--text-light); }
.table-container { position: relative; width: 100%; }
.table-wrapper { position: relative; width: 100%; }
.avail-wrap { overflow-x:auto; position: relative; width: 100%; }
.avail-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 20;
}
.avail-wrap::-webkit-scrollbar { height: 8px; }
.avail-wrap::-webkit-scrollbar-track { background: var(--sand-dark); }
.avail-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.avail-wrap::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
.top-scrollbar { overflow-x: auto; overflow-y: hidden; height: 8px; margin-bottom: 10px; width: 100%; }
.top-scrollbar-inner { height: 1px; min-width: 100%; }
.top-scrollbar::-webkit-scrollbar { height: 8px; }
.top-scrollbar::-webkit-scrollbar-track { background: var(--sand-dark); }
.top-scrollbar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.top-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
.avail-table { width:100%;border-collapse:collapse;font-size:0.8rem; }
.avail-table th { font-size:0.58rem;letter-spacing:0.18em;text-transform:uppercase;color:var(--text-light);text-align:left;padding:12px 14px;background:var(--white);border-bottom:2px solid var(--sand-dark); }
.avail-table td { padding:13px 14px;border-bottom:1px solid var(--sand-dark);background:var(--white);color:var(--text); }
.avail-table tr:hover td { background:var(--sand); }
.badge { display:inline-block;font-size:0.55rem;letter-spacing:0.12em;text-transform:uppercase;padding:4px 10px;background:rgba(78,102,82,0.1);color:var(--forest-light);border:1px solid rgba(78,102,82,0.2); }
.badge-reserved { background:rgba(201,169,110,0.12);color:#a07840;border-color:rgba(201,169,110,0.3); }
.avail-price { font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:var(--forest); }
.avail-note { margin-top:20px;font-size:0.7rem;color:var(--text-light);font-style:italic; }
.scroll-hint, .top-scrollbar { display: none; }
.scroll-hint { font-size: 0.7rem; color: var(--text-light); margin-bottom: 0; }
.scroll-gradient {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 8px;
  width: 60px;
  background: linear-gradient(to left, var(--sand), transparent);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}
.top-scrollbar { margin-bottom: 0; }
.top-scrollbar-inner { height: 1px; background: var(--sand-dark); }
.enquire-btn { display:inline-block;margin-top:28px;font-size:0.65rem;letter-spacing:0.2em;text-transform:uppercase;background:var(--gold);color:var(--forest);padding:14px 32px;text-decoration:none;transition:all 0.3s;border:none;cursor:pointer;font-family:'Jost',sans-serif;font-weight:500; }
.enquire-btn:hover { background:var(--gold-light); }


@media (max-width:900px) {
  section,.unit-section,.devmap-section,.availability { padding:60px 24px; }
  .unit-header { grid-template-columns:1fr;gap:40px; }
  .unit-gallery { grid-template-columns:1fr; }
  .floorplan-wrap { grid-template-columns:1fr; }
}






@media (max-width:900px) {
  .unit-gallery { grid-template-columns:1fr 1fr; grid-template-rows:200px 200px 200px; }
  .gal-main { grid-column:1/3; grid-row:1/2; }
}
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 900px) {
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 28px 20px;
  }
}
/* ---- Shared base (both plans) ---- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              background 0.3s ease, border-color 0.3s ease;
}
.floating-whatsapp .wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* ================= PLAN A — refined circle ================= */
.floating-whatsapp.wa--circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.28);
}
.floating-whatsapp.wa--circle .wa-label { display: none; }   /* icon only */
.floating-whatsapp.wa--circle:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 28px rgba(26, 26, 24, 0.38);
}

/* ================= PLAN B — luxury pill (ACTIVE) ================= */
.floating-whatsapp.wa--pill {
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 110, 0.4);
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.3);
}
.floating-whatsapp.wa--pill .wa-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.floating-whatsapp.wa--pill:hover {
  transform: translateY(-3px);
  background: var(--forest);
  border-color: var(--gold-light);
  box-shadow: 0 12px 28px rgba(26, 26, 24, 0.4);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .floating-whatsapp { bottom: 20px; right: 20px; }

  .floating-whatsapp.wa--circle { width: 48px; height: 48px; }

  /* Pill collapses to an icon-only circle on small screens (optional) */
  .floating-whatsapp.wa--pill {
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }
  .floating-whatsapp.wa--pill .wa-label { display: none; }
}
/*
 * Shell / positioning — uncomment when GAIA_OPEN_HOUSE_POPUP_ENABLED is true:
 *
 * #gaia-popup {
 *   position: fixed;
 *   z-index: 9999;
 *   background: #1A1F1A;
 *   box-shadow: 0 24px 64px rgba(0,0,0,0.45);
 *   transform: translateY(120%);
 *   transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
 *   font-family: 'Jost', sans-serif;
 * }
 * #gaia-popup.visible { transform: translateY(0); }
 * @media (min-width: 640px) {
 *   #gaia-popup { bottom: 32px; left: 32px; width: 340px; border-radius: 10px; overflow: hidden; }
 * }
 * @media (max-width: 639px) {
 *   #gaia-popup { bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0; overflow: hidden; }
 *   .gp-drag-handle { display: flex; justify-content: center; padding: 10px 0 0; }
 * }
 * .gp-gold-bar { height: 3px; background: linear-gradient(90deg, #C9A96E, #D4B882, #C9A96E); }
 * .gp-drag-handle { display: none; }
 * .gp-drag-handle-bar { width: 36px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; }
 */

.gp-body {
  padding: 24px 24px 24px;
}
.gp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gp-eyebrow {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A96E;
  margin: 0 0 8px;
}
.gp-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: #F5F0E8;
  margin: 0;
  line-height: 1.2;
}
.gp-title em {
  color: #C9A96E;
  font-style: italic;
}
.gp-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.gp-close:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}
.gp-details {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.gp-detail-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 4px;
}
.gp-detail-value {
  font-size: 13px;
  color: #F5F0E8;
  margin: 0;
}
.gp-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin: 0 0 18px;
}
.gp-cta {
  display: block;
  background: #C9A96E;
  color: #1A1F1A;
  text-align: center;
  padding: 13px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s;
}
.gp-cta:hover {
  background: #D4B882;
}
.gp-location {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  margin: 10px 0 0;
}

/* studios-2026: start studio-bar.css */
/**
 * Studio Collection launch bar + "New" nav marker
 * Shared across: index, index_fr (bar) and every page that shows the nav (marker).
 * Include via PHP in page <head> like enquiry-form.css (path: includes/css/studio-bar.css)
 */

/* STUDIO BAR (fixed above the fixed nav; the live CSS sets overflow-x:hidden on html AND body,
   which breaks position:sticky, so the bar is fixed and the body is padded by its height) */
:root { --sb-h: 42px; }

.studio-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  min-height: var(--sb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  background: var(--forest, #2C3B2D);
  border-bottom: 1px solid rgba(201, 169, 110, 0.28);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}
.studio-bar[hidden] { display: none; }

.studio-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: rgba(253, 250, 245, 0.88);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  padding: 10px 0;
  transition: color 0.3s;
}
.studio-bar-link:hover { color: var(--white, #FDFAF5); }

.sb-new {
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold, #C9A96E);
  font-weight: 500;
  padding-right: 18px;
  border-right: 1px solid rgba(201, 169, 110, 0.45);
}

.sb-text strong { font-weight: 400; color: var(--gold-light, #D4B882); }
.sb-short { display: none; }

.sb-arrow {
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #C9A96E);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.sb-arrow::after { content: '\2192'; }
.studio-bar-link:hover .sb-arrow { gap: 14px; }

.studio-bar-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(253, 250, 245, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
}
.studio-bar-close:hover { color: var(--gold-light, #D4B882); }
.studio-bar-close svg { display: block; }

/* While the bar shows: pad the page, push the fixed nav down, keep the hero fold aligned */
body.has-studio-bar { padding-top: var(--sb-h); }
body.has-studio-bar nav#mainNav { top: var(--sb-h); }
body.has-studio-bar .hero { height: calc(100vh - var(--sb-h)); }

/* Nav marker next to Studios: a small gold dot (text label is visually hidden, read by screen readers) */
.nav-new {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold, #C9A96E);
  vertical-align: super;
  margin-left: 5px;
  position: relative;
  top: -1px;
}
.nav-new span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .studio-bar { padding: 0 48px 0 16px; }
  .studio-bar-link { gap: 12px; font-size: 0.72rem; }
  .sb-new { padding-right: 12px; letter-spacing: 0.26em; }
  .sb-text .sb-long { display: none; }
  .sb-short { display: inline; }
  .sb-arrow { display: none; }
}

/* Contact card: photo instead of the logo box (all pages) */
.cs-photo.cs-photo-img { border: 0; background: none; overflow: hidden; }
.cs-photo.cs-photo-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 1; display: block; }

/* Residences availability: Studios tab, not yet in the list */
.af-btn-soon, .af-btn-soon:hover { cursor: not-allowed; pointer-events: none; border: 1px solid #D8D1C1; color: #8E8A7E; background: #E7E2D6; opacity: 0.72; }
.af-btn-soon .af-new { background: rgba(201, 169, 110, 0.8); color: var(--forest, #2C3B2D); }
.af-new { display: inline-block; margin-left: 8px; padding: 2px 6px; background: var(--gold, #C9A96E); color: var(--forest, #2C3B2D); font-size: 0.5rem; letter-spacing: 0.18em; vertical-align: 1px; }


/* Footer: Instagram + Facebook (all pages) */
.footer-social { display: flex; align-items: center; gap: 22px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.3s; white-space: nowrap; }
.footer-social a:hover { color: var(--gold, #C9A96E); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; display: block; flex: none; }
.footer-social .sh { text-transform: none; letter-spacing: 0.06em; font-size: 0.72rem; }
@media (max-width: 900px) { .footer-social { justify-content: center; } }

/* Contact card: follow line under the intro */
.cs-social { margin-top: 18px; font-size: 0.78rem; line-height: 1.7; color: rgba(255, 255, 255, 0.5); max-width: 380px; }
.cs-social a { color: var(--gold-light, #D4B882); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 169, 110, 0.5); }
.cs-social a:hover { color: var(--gold, #C9A96E); }
/* studios-2026: end studio-bar.css */

/* studios-2026: start gallery.css */
/* Card gallery: swipe on touch, arrows and dots elsewhere */
.st-gal { position: relative; background: var(--forest-mid); }
.st-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 16 / 10; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-gal-track::-webkit-scrollbar { display: none; }
.st-gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; scroll-snap-align: start; }
.st-gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.st-gal-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.5); cursor: pointer; pointer-events: auto; }
.st-gal-dots button.on { background: var(--gold); }
.st-gal-tag { position: absolute; left: 14px; top: 12px; font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); background: rgba(5, 12, 8, 0.45); padding: 5px 9px; }
.st-gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(253, 250, 245, 0.9); color: var(--forest); font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; padding: 0 0 2px; }
.st-gal-prev { left: 10px; } .st-gal-next { right: 10px; }
.st-gal:hover .st-gal-arrow, .st-gal-arrow:focus-visible { opacity: 1; }
/* touch devices: keep the arrows visible so the strip reads as scrollable (Tomas 2026-09-22); swipe still works */
@media (hover: none) { .st-gal-arrow { opacity: 0.9; width: 30px; height: 30px; font-size: 1.15rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); } }

/* Floor plans open large on click (residences .fp-img, studios .st-plan once a drawing is in) */
.fp-img img, .st-plan:not(.is-pending) img { cursor: zoom-in; }
.fp-img img:focus-visible { outline: 2px solid var(--gold, #C9A96E); outline-offset: -3px; }
.st-img-modal { position: fixed; inset: 0; z-index: 500; background: rgba(5, 12, 8, 0.92); display: flex; align-items: center; justify-content: center; padding: 60px 16px 20px; cursor: zoom-out; }
.st-img-modal img { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.st-img-close { position: absolute; right: 14px; top: 8px; width: 44px; height: 44px; border: 0; background: none; color: rgba(255, 255, 255, 0.85); font-size: 2.2rem; line-height: 1; cursor: pointer; }
.st-img-close:hover { color: var(--gold-light, #D4B882); }
.st-img-close:focus { outline: none; }
.st-img-close:focus-visible { outline: 1px solid rgba(212, 184, 130, 0.75); outline-offset: -5px; border-radius: 50%; }
.st-img-hint { display: none; }
/* phones in portrait: fit-to-width would enlarge a plan by barely a fifth, so the sheet is shown at two thirds of the screen height and pans sideways */
@media (max-width: 700px) and (orientation: portrait) {
  .st-img-modal { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 60px 0 44px; cursor: default; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .st-img-modal img { flex: none; height: min(66vh, 600px); width: auto; max-width: none; max-height: none; margin: 0 16px; }
  /* studio sheets: a little larger, so the drawing (two fifths of the sheet) nearly fills the screen; gallery.js opens the view on it */
  .st-img-sheet img { height: min(72vh, 660px); height: min(72dvh, 660px); }
  /* the site plan (portrait, dense): shown at two and a half screen widths and panned in both directions; the cross or Escape closes */
  .st-img-map { overflow: auto; align-items: flex-start; }
  .st-img-map img { height: auto; width: 250vw; margin: 0 16px 24px; }
  .st-avail-map img, .devmap-ph img { cursor: zoom-in; }
  .st-avail-map, .devmap-ph { position: relative; }
  .st-avail-map::after, .devmap-ph::after { content: ''; position: absolute; right: 9px; top: 9px; width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
    background: rgba(253, 250, 245, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C3B2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 11px no-repeat;
    box-shadow: 0 1px 4px rgba(44, 59, 45, 0.16); }
  .st-img-close { position: fixed; right: 10px; top: 8px; }
  .st-img-hint { display: block; position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); pointer-events: none; }
}

/* Residences page: unit galleries. Slides are figures with their own provenance tag */
.st-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; scroll-snap-align: start; }
.st-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-slide-tag { position: absolute; left: 14px; top: 12px; font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); background: rgba(5, 12, 8, 0.45); padding: 5px 9px; }
.unit-gal { margin-bottom: 48px; }
.unit-gal .st-gal-track { aspect-ratio: 16 / 8; }
@media (min-width: 901px) {
  /* desktop: one large photo and four small ones, like the original grid; the swipe strip stays for phones (Tomas 2026-09-15) */
  .unit-gal { background: transparent; }
  .unit-gal .st-gal-track { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 280px 280px; gap: 4px; aspect-ratio: auto; overflow: visible; scroll-snap-type: none; }
  .unit-gal .st-slide { flex: none; height: auto; background: var(--forest-mid); }
  .unit-gal .st-slide:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
  .unit-gal .st-gal-dots, .unit-gal .st-gal-arrow { display: none; }
}
@media (max-width: 900px) {
  .unit-gal .st-gal-track { aspect-ratio: 16 / 10; }
  /* residences, phones: the plan box kept a 400px minimum height, leaving ~80px of blank white above and below each plan */
  .fp-img { min-height: 0; }
  .floorplan-wrap { margin-top: 40px; gap: 32px; }
}
/* studios-2026: end gallery.css */

/* residences-2026-11: floor plan tabs and Left / Right spec rows (plans redrawn from the architect's CAD) */
.fp-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.fp-tab { font:inherit; font-size:0.62rem; letter-spacing:0.18em; text-transform:uppercase; padding:10px 18px; border:1px solid var(--sand-dark); background:transparent; color:var(--forest); cursor:pointer; }
.fp-tab[aria-pressed="true"], .fp-tab[aria-selected="true"] { background:var(--forest); border-color:var(--forest); color:var(--gold-light); }
.fp-controls { display:flex; flex-wrap:wrap; gap:10px 22px; margin-bottom:14px; }
.fp-controls .fp-tabs { margin-bottom:0; }
.fp-tab:focus-visible { outline:2px solid var(--gold, #C9A96E); outline-offset:2px; }
.fp-img[hidden], .fp-specs [hidden] { display:none !important; }
/* Tomas 21 Nov: on desktop the plan took more than one screen; plan column 20% narrower (2fr of 5), specs get the room */
@media (min-width:901px) { .floorplan-wrap { grid-template-columns:2fr 3fr; gap:72px; } }
.spec-row:has(.spec-val + .spec-val) { display:grid; grid-template-columns:1fr 6.6em 6.6em; gap:12px; }
.spec-row:has(.spec-val + .spec-val) .spec-val { text-align:right; }
.spec-head .spec-label { color:var(--forest); font-weight:600; }
.spec-head .spec-val { font-family:inherit; font-size:0.62rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--forest); font-weight:600; }
.spec-total .spec-val { font-weight:600; }
.fp-caption, .fp-note { font-size:0.74rem; line-height:1.7; color:var(--text-light); margin:14px 0 0; }
@media (max-width:600px) {
  .spec-row:has(.spec-val + .spec-val) { grid-template-columns:1fr 5.6em 5.6em; gap:8px; }
  .spec-row:not(.spec-head):has(.spec-val + .spec-val) .spec-val { font-size:1.05rem; }
}
