/* P6: non-critical styles for studios.css — critical nav/hero remain inline */
/* UNIT SECTIONS */
.unit-section { padding:100px 48px;border-bottom:1px solid var(--sand-dark); }
.unit-section:nth-child(even) { background:var(--white); }
.unit-header { display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start;margin-bottom:60px; }
.unit-tag { display:inline-block;font-size:0.58rem;letter-spacing:0.25em;text-transform:uppercase;background:var(--gold);color:var(--forest);padding:6px 14px;margin-bottom:20px;font-weight:500; }
.unit-price { font-family:'Cormorant Garamond',serif;font-size:2.4rem;font-weight:300;color:var(--forest);line-height:1; }
.unit-price-sub { font-size:0.72rem;color:var(--text-light);margin-top:6px; }
.unit-features { display:flex;flex-direction:column;gap:10px;margin-top:28px; }
.unit-feat { font-size:0.82rem;color:var(--text-light);display:flex;align-items:center;gap:10px; }
.unit-feat::before { content:'';width:20px;height:1px;background:var(--gold);flex-shrink:0; }
.unit-cta { display:inline-block;margin-top:28px;font-size:0.65rem;letter-spacing:0.2em;text-transform:uppercase;background:var(--gold) !important;color:var(--forest) !important;padding:14px 28px;text-decoration:none;transition:all 0.3s;font-weight:500; }
.unit-cta:hover { background:var(--gold-light) !important; }

/* 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 */

/* studios-2026: start studios.css */
/* ============================================================
   Studios page (studio / studios_fr), October 2026.
   Everything else on the page reuses the residences stylesheet.
   ============================================================ */


/* Hero styles in critical */
/* Choose */
.st-choose { padding: 80px 48px; background: var(--white); border-bottom: 1px solid var(--sand-dark); }
.st-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.st-card { border: 1px solid var(--sand-dark); padding: 0; background: var(--sand); display: flex; flex-direction: column; overflow: hidden; }
.st-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.st-card .unit-tag { margin-bottom: 18px; align-self: flex-start; }
.st-tag-jungle { background: var(--forest-light); color: var(--white); }
.st-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; color: var(--forest); line-height: 1.1; }
.st-card-size { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-top: 8px; }
.st-card-price { font-family: 'Cormorant Garamond', serif; font-size: 2.7rem; font-weight: 300; color: var(--forest); margin-top: 20px; line-height: 1; }
.st-card-price span { font-family: 'Jost', sans-serif; font-size: 0.9rem; color: var(--text-light); margin-left: 4px; }
.st-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.st-ladder div { border: 1px solid var(--sand-dark); background: var(--white); padding: 9px 6px 8px; text-align: center; }
.st-ladder span { display: block; font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); }
.st-ladder b { display: block; font-family: 'Jost', sans-serif; font-weight: 400; font-size: 1.05rem; color: var(--forest); margin-top: 3px; }
.st-ladder-2, .st-ladder-two { grid-template-columns: 1fr 1fr; }
.st-ladder-2 span { letter-spacing: 0.1em; font-size: 0.54rem; }
.st-ladder i { display: block; font-style: normal; font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: #B08A45; margin-top: 4px; }   /* a reserved rung (site plan of 6 October 2026) */
.st-rung-res b { color: var(--text-light); }
.st-card-list { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.st-card-list li { font-size: 0.82rem; line-height: 1.55; color: var(--text-light); display: flex; gap: 10px; }
.st-card-list li::before { content: ''; width: 16px; height: 1px; background: var(--gold); flex-shrink: 0; margin-top: 0.7em; }
.st-ask { display: inline-block; text-align: center; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 13px 20px; text-decoration: none; font-weight: 500; border: 1px solid var(--forest); color: var(--forest); transition: all 0.3s; }
.st-ask:hover { background: var(--forest); color: var(--white); }
.st-intro { max-width: 720px; }
/* phones: one short line, so the first studio picture shows on the first screen of this section (Tomas 21 Nov) */
.st-intro-short { display: none; }
@media (max-width: 700px) {
  .st-intro-long { display: none; }
  .st-intro-short { display: block; }
  .st-choose .st-cards { margin-top: 24px; }
}
.st-note { font-size: 0.74rem; line-height: 1.7; color: var(--text-light); margin-top: 26px; max-width: 720px; }

/* Floor plan slots: the image shows when the file exists, the placeholder otherwise */
.st-plan { position: relative; margin: 0 0 22px; aspect-ratio: 4 / 3; background: #F3EFE3; border: 1px solid var(--sand-dark); overflow: hidden; }
.st-plan img { width: 100%; height: 100%; object-fit: contain; display: block; }
.st-plan figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-plan-pending { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 0.74rem; line-height: 1.6; color: var(--text-light); background: var(--white); border: 1px dashed rgba(201, 169, 110, 0.6); }
.st-plan-pending span { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--forest); margin-bottom: 4px; }
/* Until the drawing exists the slot is a one-line strip, not an empty 4:3 box (Tomas 2026-09-11: desktop looked hollow) */
.st-plan.is-pending { aspect-ratio: auto; }
.st-plan.is-pending img { display: none; }
.st-plan.is-pending figcaption { display: none; }
.st-plan.is-pending .st-plan-pending { display: flex; position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 10px; text-align: left; padding: 14px 18px; }
.st-plan.is-pending .st-plan-pending span { display: inline; font-size: 1.05rem; margin: 0; }

/* Penthouse card spans the grid */
.st-card-wide { grid-column: 1 / -1; border-color: var(--gold); }
.st-wide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.st-card-wide .st-card-body { padding: 32px 36px 34px; }
.st-wide-grid .st-gal { height: 100%; }
.st-wide-grid .st-gal-track { aspect-ratio: auto; height: 100%; min-height: 420px; }
.st-wide-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 20px; }
.st-wide-plans:has(.is-pending) { grid-template-columns: 1fr; }
.st-wide-plans .st-plan { margin: 0; aspect-ratio: 4 / 3; }

/* Returns */
.studio-returns { padding: 80px 48px 64px; }
.sr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sr-figure { border: 1px solid rgba(201, 169, 110, 0.35); padding: 40px; }
.sr-num { font-family: 'Cormorant Garamond', serif; font-size: 4.4rem; font-weight: 300; line-height: 1; color: var(--white); }
.sr-num span { font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-left: 12px; }
.sr-note { font-size: 0.78rem; line-height: 1.8; color: rgba(255, 255, 255, 0.55); margin-top: 18px; }

/* Proof */
.st-proof { background: var(--sand); padding: 80px 48px; border-bottom: 1px solid var(--sand-dark); }
.st-proof .section-title { color: var(--forest); }
.st-proof .body-text { color: var(--text-light); }
.st-proof .body-text a { color: var(--forest); text-decoration: none; border-bottom: 1px solid rgba(201, 169, 110, 0.7); }
.st-proof-top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.st-proof-photo { margin: 0; position: relative; }
.st-proof-photo .photo-tag { position: absolute; left: 12px; top: 10px; 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-proof-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; display: block; background: var(--forest-mid); }
.st-proof-photo figcaption { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-top: 12px; }

/* Google reviews line under the buyer quotes, same as the home page */
.st-star { font-size: 1.1rem; line-height: 1; }

/* Ownership and steps */
.studio-own { padding: 80px 48px; background: var(--white); border-bottom: 1px solid var(--sand-dark); }
.so-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.so-grid .body-text + .body-text { margin-top: 18px; }
.steps .spec-val { text-align: right; max-width: 62%; font-size: 0.82rem; }

/* FAQ, collapsible */

/* Form: the studio pack needs three fields, the message box is hidden on this page */
body.st-page .lf-field-message { display: none; }

/* Mobile action bar */

@media (max-width: 900px) {
  .st-cards { grid-template-columns: 1fr; gap: 16px; }
  .st-proof-top, .sr-grid, .so-grid { grid-template-columns: 1fr; gap: 36px; }
  .st-wide-grid { grid-template-columns: 1fr; }
  .st-wide-grid .st-gal-track { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .st-card-body { padding: 22px 20px 24px; }
  .st-video { max-width: 260px; }
  .sr-num { font-size: 3.4rem; }
  .sr-figure { padding: 28px; }
  .steps .spec-val { max-width: 58%; }
}

/* Desktop: the proof photo was a 4:5 portrait next to a short text column; 4:3 keeps the building and the beach and halves the empty green around the text */
@media (min-width: 901px) {
  .st-proof-photo img { aspect-ratio: 4 / 3; max-height: 470px; object-position: center 62%; }
}

/* Penthouse card: its two plan slots follow the same compact-until-drawn rule (the wide-card grid sets their own ratio) */
.st-cards .st-wide-plans .st-plan.is-pending { aspect-ratio: auto; height: auto; min-height: 0; }
@media (min-width: 601px) and (max-width: 900px) {
  .st-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .st-card-wide { grid-column: auto; }
  .st-card-wide .st-wide-grid { flex: 1; grid-template-rows: auto 1fr; }
  .st-card-wide .st-card-body { padding: 22px 20px 24px; }
}

/* Penthouse pair: side by side on desktop; below that one frame with two tabs, like the Jungle card, so the card keeps the height of its neighbours */
.st-wide-plans .st-ph-tabs { display: none; }
#pp-studio:checked ~ .st-plan-tabs label[for="pp-studio"], #pp-grande:checked ~ .st-plan-tabs label[for="pp-grande"] { background: #F3EFE3; border-bottom-color: #F3EFE3; box-shadow: inset 0 2px 0 var(--gold); cursor: default; }
#pp-studio:checked ~ .st-plan-tabs label[for="pp-studio"] b, #pp-grande:checked ~ .st-plan-tabs label[for="pp-grande"] b { color: var(--forest); }
#pp-studio:focus-visible ~ .st-plan-tabs label[for="pp-studio"], #pp-grande:focus-visible ~ .st-plan-tabs label[for="pp-grande"] { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (max-width: 900px) {
  .st-wide-plans { display: block; position: relative; margin: 0 0 22px; }
  .st-wide-plans .st-ph-tabs { display: grid; }
  .st-wide-plans .st-plan { border-top: 0; }
  .st-wide-plans .st-plan figcaption { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #pp-studio:checked ~ .st-plan-phg, #pp-grande:checked ~ .st-plan-phs { display: none; }
  .st-wide-plans:has(.is-pending) .st-ph-tabs.st-ph-tabs { display: none; }
  .st-wide-plans:has(.is-pending) .st-plan { display: block !important; border-top: 1px solid var(--sand-dark); margin-bottom: 8px; }
}

/* Desktop shows both penthouse drawings side by side, so their two tab radios are not a focus stop there */
@media (min-width: 901px) { .st-wide-plans > .st-swap-in { display: none; } }
.st-plan img:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

/* Plans open large on click: a small corner mark says so (clicks pass through to the drawing) */
.st-plan:not(.is-pending)::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); }

/* Jungle Studio: one plan frame, two drawings (garden on floor 1, balcony on floors 2 and 3). Radio inputs, so it works without script */
.st-plan-swap { position: relative; margin: 0 0 22px; }
.st-plan-swap .st-plan { margin: 0; border-top: 0; }
.st-swap-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-plan-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--sand-dark); border-bottom: 0; }
.st-plan-tabs label { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 6px 8px; cursor: pointer; background: var(--white); border-bottom: 1px solid var(--sand-dark); transition: background 0.2s; }
.st-plan-tabs label + label { border-left: 1px solid var(--sand-dark); }
.st-plan-tabs b { font-weight: 500; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); }
.st-plan-tabs span { font-size: 0.7rem; line-height: 1.3; color: var(--text-light); }
.st-plan-tabs label:hover { background: #FBF8F0; }
#jp-garden:checked ~ .st-plan-tabs label[for="jp-garden"], #jp-balcony:checked ~ .st-plan-tabs label[for="jp-balcony"] { background: #F3EFE3; border-bottom-color: #F3EFE3; box-shadow: inset 0 2px 0 var(--gold); cursor: default; }
#jp-garden:checked ~ .st-plan-tabs label[for="jp-garden"] b, #jp-balcony:checked ~ .st-plan-tabs label[for="jp-balcony"] b { color: var(--forest); }
#jp-garden:focus-visible ~ .st-plan-tabs label[for="jp-garden"], #jp-balcony:focus-visible ~ .st-plan-tabs label[for="jp-balcony"] { outline: 2px solid var(--gold); outline-offset: -2px; }
#jp-garden:checked ~ .st-plan-balcony, #jp-balcony:checked ~ .st-plan-garden { display: none; }
.st-plan-swap .st-plan figcaption { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }  /* the tabs already say it */
/* until the drawings are on the server: one "coming soon" strip, no tabs */
.st-plan-swap:has(.is-pending) .st-plan-tabs, .st-plan-swap:has(.is-pending) .st-plan-balcony { display: none; }
.st-plan-swap:has(.is-pending) .st-plan-garden { display: block; border-top: 1px solid var(--sand-dark); }
.st-cards .st-wide-plans .st-plan.is-pending .st-plan-pending { position: static; }

/* Availability: site plan + Building G sketch + studio list in one block */
.st-avail-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; margin-top: 36px; }
.st-avail-map { margin: 0; position: sticky; top: 96px; }
.st-avail-map img { width: 100%; height: auto; display: block; border: none; }
.st-avail-map .devmap-legend { margin-top: 18px; gap: 24px; }
.st-avail .legend-item span { color: var(--text-light); }
.st-avail-main { min-width: 0; }
.st-avail-sec { margin: 0 0 32px; background: var(--white); border: 1px solid var(--sand-dark); padding: 26px 26px 20px; }
.st-avail-sec-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--forest); margin: 0 0 12px; }
.st-avail-sec .st-sec-svg { width: 100%; height: auto; display: block; font-family: 'Jost', sans-serif; }

/* studio page: linked hover sync */
.st-map-wrap { position: relative; display: block; border: 1px solid var(--sand-dark); }
.st-map-wrap > img { width: 100%; height: auto; display: block; border: none; }
.st-map-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.st-map-overlay [data-code] {
  pointer-events: auto;
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill .15s ease, stroke .15s ease;
}
.st-map-overlay [data-code].is-hot {
  fill: rgba(201, 169, 110, 0.38);
  stroke: #C9A96E;
  stroke-width: 2;
}
.st-avail .avail-table tr[data-code] { cursor: pointer; }
.st-avail .avail-table tr[data-code].is-hot td {
  background: rgba(201, 169, 110, 0.3) !important;
}

.st-avail-sec .st-sec-m { display: none; }
@media (max-width: 600px) { .st-avail-sec .st-sec-d { display: none; } .st-avail-sec .st-sec-m { display: block; } }
.st-avail-sec figcaption { font-size: 0.85rem; line-height: 1.6; color: var(--text-light); margin-top: 12px; }
.st-avail .avail-filters { margin-top: 0; }
@media (max-width: 900px) {
  .st-avail-grid { grid-template-columns: 1fr; gap: 28px; }
  .st-avail-map { position: static; }
  .st-avail-sec { padding: 18px 12px 14px; }
}
.st-avail .avail-table td:first-child, .st-avail .avail-table td:nth-child(4), .st-avail .avail-table td:nth-child(5), .st-avail .avail-table td:nth-child(6), .st-avail .avail-table td:nth-child(7) { white-space: nowrap; }
.st-avail .avail-table th, .st-avail .avail-table td { padding-left: 12px; padding-right: 12px; }
/* studios-2026: end studios.css */
