/* ==========================================================================
   PHU QUOC CENTRE PAGE — quick actions, directory, spaces, leasing, amenities, contact.
   Loaded only on pages that use [hb_centre_directory]. Brand tokens only (tokens.css).
   ========================================================================== */

:root {
  --ct-shops: #B8893D;
  --ct-food: #8A5A3C;
  --ct-care: #6F8A6B;
  --ct-bar: #8C4A52;
  --ct-serv: #5C7480;
  --ct-space: #6B5645;
  --ct-none: #8A7F72;
}

/* ---------------------------------------------------------------------- */
/* Shared bits                                                              */
/* ---------------------------------------------------------------------- */
.ct-btn { min-height: 44px; padding-inline: var(--space-5); font-size: var(--text-xs); }
.ct-btn svg { flex: none; }
.ct-card[hidden], .ct-scard[hidden], .ct-empty[hidden] { display: none; }

.ct-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ct-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ct-badge--group { background: var(--color-gold); color: var(--color-white); }
.ct-badge--group svg { fill: currentColor; stroke: none; }
.ct-badge--other { background: transparent; color: var(--text-muted); border: 1px solid var(--color-border); }
.ct-pill {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--color-sand); color: var(--color-brown);
  font-size: 0.75rem; font-weight: 600;
}
.ct-pill--status { background: var(--color-gold-tint); color: var(--color-gold-dark); }
.ct-code { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; color: var(--text-faint); letter-spacing: 0.04em; }

.ct-ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(34, 24, 18, 0.82); color: var(--color-bg);
  font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(4px);
}
.ct-ribbon--ok { background: var(--color-success); color: #fff; }
.ct-ribbon--soon { background: var(--color-gold-dark); color: #fff; }
.ct-ribbon-inline { padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.ct-ribbon-inline--ok { background: var(--color-success); }
.ct-ribbon-inline--soon { background: var(--color-gold-dark); }
.ct-sample {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: #fff; color: var(--color-error); border: 1.5px dashed var(--color-error);
  font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ct-sample--inline { position: static; }

/* Media + the tile used when a business has no photo yet */
.ct-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-sand-dark); }
.ct-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease-out); }
.ct-tile {
  --ct-c: var(--ct-none);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--color-sand-dark);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ct-c) 16%, #fff), color-mix(in srgb, var(--ct-c) 34%, #fff));
  color: var(--ct-c);
}
.ct-tile::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--ct-c) 30%, transparent), transparent 55%);
}
.ct-tile-ico { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, 0.72); color: var(--ct-c); box-shadow: 0 8px 24px rgba(34, 24, 18, 0.10); }
.ct-tile-label { position: relative; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em; }
.ct-cat-shops-boutiques { --ct-c: var(--ct-shops); }
.ct-cat-restaurants-cafes { --ct-c: var(--ct-food); }
.ct-cat-wellness-health { --ct-c: var(--ct-care); }
.ct-cat-bars-entertainment { --ct-c: var(--ct-bar); }
.ct-cat-services { --ct-c: var(--ct-serv); }
.ct-cat-space { --ct-c: var(--ct-space); }

/* A button that makes the whole card clickable (keeps real keyboard + screen-reader semantics) */
.ct-open { all: unset; cursor: pointer; font: inherit; color: inherit; }
.ct-open::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ct-open:focus-visible::after { outline: 3px solid var(--color-gold); outline-offset: -3px; }

/* ---------------------------------------------------------------------- */
/* Quick actions bar (rises over the bottom of the hero)                    */
/* ---------------------------------------------------------------------- */
.hero + .ct-actions { margin-top: calc(var(--space-9) * -1); }
.hero:has(+ .ct-actions) .hero-content { padding-bottom: calc(var(--space-9) + var(--space-4)); }
.ct-actions { position: relative; z-index: 6; padding-bottom: var(--space-8); }
.ct-actions-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--color-white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ct-action {
  position: relative; display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); min-height: 84px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-base) var(--ease-out);
}
.ct-action:nth-child(odd) { border-right: 1px solid var(--color-border); }
.ct-action:nth-last-child(-n+2) { border-bottom: 0; }
.ct-action-ico {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-gold-tint); color: var(--color-gold-dark);
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.ct-action-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ct-action-text strong { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; }
.ct-action-text small { font-size: var(--text-xs); color: var(--text-muted); }
.ct-action-go { margin-left: auto; color: var(--color-gold-dark); opacity: 0; transform: translateX(-6px); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); display: none; }
.ct-action:hover, .ct-action:focus-visible { background: var(--color-bg); }
.ct-action:hover .ct-action-ico, .ct-action:focus-visible .ct-action-ico { background: var(--color-gold); color: #fff; transform: scale(1.06); }
.ct-action:hover .ct-action-go, .ct-action:focus-visible .ct-action-go { opacity: 1; transform: none; }
@media (max-width: 479px) {
  .ct-action { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-4) var(--space-4); }
  .ct-action-text small { display: none; }
}
@media (min-width: 900px) {
  .ct-actions-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-action { padding: var(--space-5) var(--space-6); border-bottom: 0; border-right: 1px solid var(--color-border); }
  .ct-action:last-child { border-right: 0; }
  .ct-action:nth-last-child(-n+2) { border-bottom: 0; }
  .ct-action-go { display: block; }
}

/* ---------------------------------------------------------------------- */
/* Directory                                                                */
/* ---------------------------------------------------------------------- */
.ct-dir-head { display: grid; gap: var(--space-6); margin-bottom: var(--space-8); }
.ct-dir-head .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .ct-dir-head { grid-template-columns: 1fr auto; align-items: end; } }
.ct-stats { display: flex; gap: var(--space-6); margin: 0; }
.ct-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding-left: var(--space-6); border-left: 2px solid var(--color-gold); }
.ct-stats > div:first-child { padding-left: 0; border-left: 0; }
.ct-stats dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--text-muted); font-weight: 600; }
.ct-stats dd { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-3xl); line-height: 1; color: var(--color-brown); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .ct-stats { gap: var(--space-4); } .ct-stats > div { padding-left: var(--space-4); } .ct-stats dd { font-size: var(--text-2xl); } }

/* Happy Bear Group's own venues — large photo cards */
.ct-feature { margin-bottom: var(--space-9); }
.ct-feature-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-5); }
.ct-feature-head h3 { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-lg); }
.ct-feature-head h3 svg { color: var(--color-gold); fill: currentColor; stroke: none; }
.ct-feature-head p { color: var(--text-muted); font-size: var(--text-sm); }
.ct-feature-row {
  list-style: none; margin: 0; padding: 0 0 var(--space-3);
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--space-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ct-feature-row::-webkit-scrollbar { display: none; }
.ct-fcard { position: relative; scroll-snap-align: start; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-brown-dark); isolation: isolate; box-shadow: var(--shadow-md); transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out); }
.ct-fcard .ct-media { position: absolute; inset: 0; aspect-ratio: auto; }
.ct-fcard .ct-tile-ico { margin-bottom: 18%; }
.ct-fcard::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(34, 24, 18, 0) 38%, rgba(34, 24, 18, 0.9) 100%); pointer-events: none; }
.ct-fcard-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: var(--space-5); color: var(--color-bg); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.ct-fcard-body h4 { font-size: var(--text-lg); color: #fff; }
.ct-fcard-body p { color: rgba(245, 239, 228, 0.82); font-size: var(--text-sm); }
.ct-fcard-go { position: absolute; right: var(--space-5); bottom: var(--space-5); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-gold); color: #fff; transition: transform var(--duration-base) var(--ease-out); }
.ct-fcard .ct-open::after { z-index: 3; }
.ct-fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ct-fcard:hover .ct-media img { transform: scale(1.07); }
.ct-fcard:hover .ct-fcard-go { transform: translateX(4px) rotate(-45deg); }
@media (min-width: 700px) { .ct-feature-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 1100px) { .ct-fcard { aspect-ratio: 5 / 6; } }

/* Search, category chips, who-runs-it */
.ct-toolbar { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.ct-search {
  position: relative; display: flex; align-items: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-4);
  background: var(--color-white); border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
  color: var(--text-faint); transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.ct-search:focus-within { border-color: var(--color-gold); box-shadow: 0 0 0 4px var(--color-gold-tint); color: var(--color-gold-dark); }
.ct-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--text-base); color: var(--text-primary); height: 100%; padding: 12px 0; }
.ct-chips { display: flex; gap: var(--space-2); overflow-x: auto; padding: 4px 2px 8px; margin-inline: -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ct-chips::-webkit-scrollbar { display: none; }
.ct-chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  background: var(--color-white); border: 1.5px solid var(--color-border); color: var(--color-ink);
  font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.ct-chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--color-sand); font-size: 0.6875rem; transition: inherit; }
.ct-chip:hover { border-color: var(--color-gold); transform: translateY(-1px); }
.ct-chip.is-on { background: var(--color-ink); color: var(--color-bg); border-color: var(--color-ink); }
.ct-chip.is-on span { background: var(--color-gold); color: #fff; }
.ct-seg { display: inline-flex; justify-self: start; padding: 4px; background: var(--color-white); border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); }
.ct-seg button { min-height: 38px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill); background: transparent; font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out); }
.ct-seg button.is-on { background: var(--color-gold); color: #fff; }
.ct-count { margin: var(--space-3) 0 var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
@media (min-width: 900px) {
  .ct-toolbar { grid-template-columns: minmax(260px, 380px) 1fr; align-items: center; }
  .ct-toolbar .ct-search { grid-column: 1; grid-row: 1; }
  .ct-toolbar .ct-seg { grid-column: 2; grid-row: 1; justify-self: end; }
  .ct-toolbar .ct-chips { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
}

/* Cards */
.ct-grid, .ct-sgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ct-grid, .ct-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1000px) { .ct-grid, .ct-sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.ct-card, .ct-scard {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.ct-card .ct-media, .ct-scard .ct-media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ct-card.is-out, .ct-scard.is-out { opacity: 0; transform: scale(0.96); }
.ct-card.is-closed .ct-media { filter: grayscale(0.85); opacity: 0.8; }
.ct-card:hover, .ct-scard:hover { box-shadow: var(--shadow-lg); }
.ct-card:hover .ct-media img, .ct-scard:hover .ct-media img { transform: scale(1.06); }
.ct-logo { position: absolute; left: var(--space-4); top: -30px; z-index: 3; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: var(--shadow-md); overflow: hidden; display: grid; place-items: center; }
.ct-card.has-logo .ct-card-body { padding-top: calc(var(--space-5) + 22px); }
.ct-logo img { width: 100%; height: 100%; object-fit: contain; }
.ct-card-body, .ct-scard-body { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.ct-card-title { font-size: var(--text-md); line-height: 1.25; }
.ct-card-text { color: var(--text-muted); font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--text-muted); font-size: var(--text-xs); }
.ct-meta li { display: flex; gap: 8px; align-items: flex-start; }
.ct-meta svg { flex: none; color: var(--color-gold-dark); margin-top: 1px; }
.ct-more { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-dark); }
.ct-more svg { transition: transform var(--duration-base) var(--ease-out); }
.ct-card:hover .ct-more svg { transform: translateX(5px); }

/* Phones: a compact list-style card (photo left) so the directory scrolls quickly */
@media (max-width: 639px) {
  .ct-card { flex-direction: row; align-items: stretch; }
  .ct-card .ct-media { width: 108px; flex: none; aspect-ratio: auto; border-radius: var(--radius-lg) 0 0 var(--radius-lg); min-height: 132px; }
  .ct-card .ct-tile-ico { width: 54px; height: 54px; }
  .ct-card .ct-tile-ico svg { width: 26px; height: 26px; }
  .ct-card .ct-ribbon { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.625rem; max-width: 92px; line-height: 1.2; }
  .ct-card .ct-logo { display: none; }
  .ct-card-body { padding: var(--space-4); gap: var(--space-2); min-width: 0; }
  .ct-card .ct-more { display: none; }
}

.ct-empty { text-align: center; padding: var(--space-9) var(--space-5); color: var(--text-muted); display: grid; justify-items: center; gap: var(--space-3); }
.ct-empty svg { color: var(--color-gold-dark); }
.ct-empty p { max-width: 46ch; }

/* ---------------------------------------------------------------------- */
/* Details window (businesses + spaces)                                     */
/* ---------------------------------------------------------------------- */
.ct-dialog {
  padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--color-bg); color: var(--text-primary);
  width: min(980px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: hidden;
  box-shadow: 0 30px 80px rgba(20, 14, 10, 0.45); margin: auto;
}
.ct-dialog::backdrop { background: rgba(34, 24, 18, 0.62); backdrop-filter: blur(5px); }
.ct-dialog[open] { animation: ct-pop 320ms var(--ease-out); }
.ct-dialog[open]::backdrop { animation: ct-fade 260ms ease-out; }
@keyframes ct-pop { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }
html.ct-lock { overflow: hidden; }
.ct-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--color-ink); box-shadow: var(--shadow-md); cursor: pointer; transition: transform var(--duration-base) var(--ease-out); }
.ct-dialog-close:hover { transform: rotate(90deg); }
.ct-dialog-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.ct-dialog-gallery { background: var(--color-sand); display: flex; flex-direction: column; gap: 2px; }
.ct-dialog-main { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.ct-dialog-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-dialog-thumbs { display: flex; gap: 6px; padding: 8px; }
.ct-dialog-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: 0.7; transition: opacity var(--duration-fast), border-color var(--duration-fast); }
.ct-dialog-thumbs button.is-on, .ct-dialog-thumbs button:hover { opacity: 1; border-color: var(--color-gold); }
.ct-dialog-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-dialog-extra { margin: 0; background: #fff; }
.ct-dialog-extra img { width: 100%; display: block; }
.ct-dialog-extra figcaption { padding: 8px 12px; font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.ct-dialog-info { padding: var(--space-6) var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.ct-dialog-info h3 { margin-top: var(--space-1); }
.ct-dialog-lede { color: var(--text-muted); font-size: var(--text-md); }
.ct-dialog-desc p + p { margin-top: var(--space-3); }
.ct-dialog-desc { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.ct-dialog-sub { font-size: var(--text-md); margin-top: var(--space-2); }
.ct-facts { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.ct-facts li { display: flex; gap: var(--space-3); align-items: flex-start; }
.ct-facts svg { flex: none; color: var(--color-gold-dark); margin-top: 3px; }
.ct-facts strong { display: block; font-family: var(--font-heading); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.ct-facts a { color: var(--color-gold-dark); font-weight: 600; }
.ct-dialog-note { font-size: var(--text-xs); color: var(--text-faint); padding: var(--space-3) var(--space-4); background: var(--color-sand); border-radius: var(--radius-md); }
.ct-dialog-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
@media (min-width: 800px) {
  .ct-dialog-grid { grid-template-columns: 1.05fr 1fr; }
  .ct-dialog-gallery { max-height: calc(100dvh - 24px); overflow-y: auto; }
  .ct-dialog-info { padding: var(--space-8) var(--space-7) var(--space-7); }
  .ct-dialog-main { aspect-ratio: 1 / 1; }
}

/* ---------------------------------------------------------------------- */
/* Available commercial spaces                                              */
/* ---------------------------------------------------------------------- */
.ct-toolbar--spaces { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.ct-toolbar--spaces .ct-chips { flex: 1 1 320px; padding-bottom: 0; }
.ct-selects { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.ct-selects label { display: grid; gap: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-heading); }
.ct-selects select { min-height: 44px; padding: 0 var(--space-4); border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-white); font: inherit; font-size: var(--text-sm); text-transform: none; letter-spacing: 0; color: var(--text-primary); }
.ct-selects select:focus { outline: 0; border-color: var(--color-gold); box-shadow: 0 0 0 4px var(--color-gold-tint); }
.ct-scard-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-2); }
.ct-scard .ct-btn { position: relative; z-index: 2; }
.ct-link { position: relative; z-index: 2; border: 0; background: none; padding: 8px 0; font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ct-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.ct-specs--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--space-2) 0; }
.ct-specs li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; font-size: var(--text-sm); font-weight: 500; }
.ct-specs svg { flex: none; color: var(--color-gold-dark); margin-top: 3px; }
.ct-specs small { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-heading); }
.ct-terms { list-style: none; margin: 0; padding: var(--space-3) var(--space-4); background: var(--color-gold-tint); border-radius: var(--radius-md); display: grid; gap: 6px; font-size: var(--text-sm); }
.ct-terms li { display: flex; justify-content: space-between; gap: var(--space-3); }
.ct-terms span { color: var(--text-muted); }
.ct-spaces-empty { max-width: 560px; margin-inline: auto; text-align: center; padding: var(--space-8) var(--space-6); background: var(--color-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); display: grid; justify-items: center; gap: var(--space-3); }
.ct-spaces-empty .ct-tile-ico { background: var(--color-gold-tint); color: var(--color-gold-dark); width: 76px; height: 76px; }
.ct-spaces-empty p { color: var(--text-muted); }

/* ---------------------------------------------------------------------- */
/* Why lease                                                                */
/* ---------------------------------------------------------------------- */
.ct-why-grid { display: grid; gap: var(--space-7); }
.ct-why-intro .section-head { margin-bottom: var(--space-5); }
.ct-why-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.ct-why-card { padding: var(--space-6); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.ct-why-card.is-visible:hover { transform: translateY(-5px); border-color: var(--color-gold); box-shadow: var(--shadow-md); }
.ct-why-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--color-gold-tint); color: var(--color-gold-dark); margin-bottom: var(--space-4); transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out); }
.ct-why-card:hover .ct-why-ico { background: var(--color-gold); color: #fff; }
.ct-why-card h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.ct-why-card p { color: var(--text-muted); font-size: var(--text-sm); }
@media (min-width: 600px) { .ct-why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .ct-why-grid { grid-template-columns: 5fr 7fr; align-items: start; gap: var(--space-9); }
  .ct-why-intro { position: sticky; top: calc(var(--header-height-scrolled) + var(--space-6)); }
}

/* ---------------------------------------------------------------------- */
/* Leasing: how it works + application form                                 */
/* ---------------------------------------------------------------------- */
.ct-lease-grid { display: grid; gap: var(--space-7); }
.ct-lease-side h3 { font-size: var(--text-lg); margin-bottom: var(--space-5); }
.ct-steps { list-style: none; margin: 0; padding: 0; }
.ct-steps li { position: relative; display: flex; gap: var(--space-4); padding-bottom: var(--space-6); }
.ct-steps li:last-child { padding-bottom: 0; }
.ct-steps li::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--color-gold); transform: scaleY(0); transform-origin: top; transition: transform 700ms var(--ease-out); }
.ct-steps li:last-child::after { display: none; }
.ct-lease-side.is-visible .ct-steps li::after { transform: scaleY(1); }
.ct-lease-side.is-visible .ct-steps li:nth-child(2)::after { transition-delay: 220ms; }
.ct-lease-side.is-visible .ct-steps li:nth-child(3)::after { transition-delay: 440ms; }
.ct-step-dot { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-gold); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm); box-shadow: var(--shadow-gold); }
.ct-steps strong { display: block; font-family: var(--font-heading); font-size: var(--text-base); }
.ct-steps p { color: var(--text-muted); font-size: var(--text-sm); margin-top: 2px; }
.ct-lease-contact { margin-top: var(--space-7); padding: var(--space-5); background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ct-lease-contact h4 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.ct-lease-name { font-weight: 600; margin-bottom: var(--space-2); }
.ct-lease-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ct-lease-contact li { display: flex; gap: var(--space-2); align-items: center; color: var(--color-gold-dark); }
.ct-lease-contact a { color: var(--text-primary); font-weight: 600; word-break: break-word; }
.ct-lease-contact a:hover { color: var(--color-gold-dark); }

.ct-form-card { background: var(--color-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: var(--space-5); scroll-margin-top: calc(var(--header-height-scrolled) + var(--space-5)); }
.ct-form-card.is-flash { animation: ct-flash 1400ms var(--ease-out); }
@keyframes ct-flash { 0% { box-shadow: 0 0 0 0 rgba(184, 137, 61, 0.7); } 100% { box-shadow: 0 0 0 22px rgba(184, 137, 61, 0); } }
.ct-form fieldset { border: 0; margin: 0 0 var(--space-6); padding: 0; min-width: 0; }
.ct-form legend { display: flex; align-items: center; gap: var(--space-3); padding: 0; margin-bottom: var(--space-4); font-family: var(--font-heading); font-weight: 600; font-size: var(--text-md); }
.ct-form legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-gold-tint); color: var(--color-gold-dark); font-size: var(--text-xs); font-weight: 700; }
.ct-fields { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field > span { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: var(--text-base); color: var(--text-primary);
  background: var(--color-bg); border: 1.5px solid transparent; border-radius: var(--radius-md);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.ct-field textarea { min-height: 96px; resize: vertical; }
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-color: var(--color-border); }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: 0; background: #fff; border-color: var(--color-gold); box-shadow: 0 0 0 4px var(--color-gold-tint); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-5); }
.ct-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-gold); }
.ct-consent a { color: var(--color-gold-dark); font-weight: 600; text-decoration: underline; }
.ct-submit { width: 100%; }
.ct-submit.is-busy { opacity: 0.7; pointer-events: none; }
.ct-notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-5); }
.ct-notice p { font-size: var(--text-sm); margin-top: 2px; }
.ct-notice--ok { background: var(--color-green-tint); color: var(--color-success); }
.ct-notice--ok p { color: var(--text-muted); }
.ct-notice--err { background: rgba(163, 62, 62, 0.1); color: var(--color-error); }
.ct-notice--err p { color: var(--text-muted); }
.ct-notice:focus { outline: 0; }
@media (min-width: 600px) {
  .ct-form-card { padding: var(--space-7); }
  .ct-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-field--full { grid-column: 1 / -1; }
  .ct-submit { width: auto; min-width: 240px; }
}
@media (min-width: 980px) {
  .ct-lease-grid { grid-template-columns: 5fr 7fr; align-items: start; gap: var(--space-9); }
  .ct-lease-side { position: sticky; top: calc(var(--header-height-scrolled) + var(--space-6)); }
}

/* ---------------------------------------------------------------------- */
/* Amenities                                                                */
/* ---------------------------------------------------------------------- */
.ct-amen-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-amen-item { text-align: center; padding: var(--space-5) var(--space-3); border-radius: var(--radius-lg); transition: background-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.ct-amen-item.is-visible:hover { background: var(--color-white); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ct-amen-ico { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--color-gold-tint); color: var(--color-gold-dark); transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), transform 600ms var(--ease-out); }
.ct-amen-item:hover .ct-amen-ico { background: var(--color-gold); color: #fff; transform: rotate(-8deg) scale(1.06); }
.ct-amen-item h3 { font-size: var(--text-base); margin-bottom: 4px; }
.ct-amen-item p { color: var(--text-muted); font-size: var(--text-sm); margin-inline: auto; }
@media (min-width: 700px) { .ct-amen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ct-amen-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------- */
/* Contact, social, reviews                                                 */
/* ---------------------------------------------------------------------- */
.ct-contact-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.ct-contact-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.ct-contact-card h3 { font-size: var(--text-lg); }
.ct-contact-card p { color: var(--text-muted); font-size: var(--text-sm); }
.ct-contact-sub { display: flex; gap: 8px; align-items: flex-start; }
.ct-contact-sub svg { flex: none; color: var(--color-gold-dark); margin-top: 2px; }
.ct-contact-card .ct-btn { margin-top: auto; }
.ct-contact-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--color-gold-tint); color: var(--color-gold-dark); }
.ct-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ct-contact-list li { display: flex; gap: var(--space-2); align-items: center; color: var(--color-gold-dark); }
.ct-contact-list a { color: var(--text-primary); font-weight: 600; word-break: break-word; }
.ct-contact-list a:hover { color: var(--color-gold-dark); }
.ct-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ct-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--color-bg); font-size: var(--text-xs); font-weight: 600; font-family: var(--font-heading); transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out); }
.ct-social a:hover { background: var(--color-gold); color: #fff; }
.ct-fb-feed { width: 100%; height: 420px; border: 0; border-radius: var(--radius-md); background: var(--color-bg); }
.ct-reviews { width: 100%; }
@media (min-width: 760px) { .ct-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ct-contact-card--wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .ct-contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ct-contact-card--wide { grid-column: auto; } }

/* ---------------------------------------------------------------------- */
/* Calm motion for those who ask for it                                     */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ct-dialog[open], .ct-dialog[open]::backdrop, .ct-form-card.is-flash { animation: none; }
  .ct-steps li::after { transition: none; transform: scaleY(1); }
  .ct-card, .ct-scard, .ct-fcard, .ct-chip, .ct-why-card, .ct-amen-item, .ct-action-ico, .ct-media img { transition: none; }
}

/* Phones: the Group / Independent switch stays on one line */
@media (max-width: 639px) {
  .ct-seg { display: flex; width: 100%; }
  .ct-seg button { flex: 1 1 auto; white-space: nowrap; padding: 0 var(--space-3); }
}

/* ---------------------------------------------------------------------- */
/* Round 2: tighter top, one light ground for map + questions + contact,    */
/* amenities folded into "Why lease"                                        */
/* ---------------------------------------------------------------------- */
.ct-actions { padding-bottom: var(--space-4); }
.ct-actions + .centre-intro-section { padding-top: var(--space-5); }
.hero:has(+ .ct-actions) .hero-content { padding-bottom: calc(var(--space-9) + var(--space-2)); }
.stay-faq.bg-sand { background: transparent; }
.ct-contact { padding-top: var(--space-4); }
.ct-amen-wrap { margin-top: var(--space-9); padding-top: var(--space-9); border-top: 1px solid var(--color-border); }
.ct-amen-wrap .section-head { margin-bottom: var(--space-7); }
/* Round 3: the quick-actions bar sits about 1/3 over the banner, 2/3 below it */
.hero + .ct-actions { margin-top: -86px; }
.hero:has(+ .ct-actions) .hero-content { padding-bottom: calc(86px + var(--space-6)); }
@media (min-width: 900px) {
  .hero + .ct-actions { margin-top: -32px; }
  .hero:has(+ .ct-actions) .hero-content { padding-bottom: calc(32px + var(--space-6)); }
}
/* Round 4: nothing in the cards may push past the screen edge on a phone */
.ct-card, .ct-scard, .ct-fcard, .ct-why-card, .ct-contact-card, .ct-form-card { min-width: 0; }
.ct-card-title, .ct-scard .ct-card-title, .ct-specs li, .ct-terms li { overflow-wrap: anywhere; }
.ct-scard-actions { flex-wrap: wrap; row-gap: var(--space-2); }
.ct-scard .ct-btn, .ct-dialog-actions .ct-btn, .ct-contact-card .ct-btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; height: auto; }
.ct-toolbar--spaces .ct-chips { flex-basis: 100%; }
@media (min-width: 900px) { .ct-toolbar--spaces .ct-chips { flex-basis: 320px; } }
.ct-selects { width: 100%; }
.ct-selects label { flex: 1 1 140px; min-width: 0; }
.ct-selects select { width: 100%; }
@media (min-width: 900px) { .ct-selects { width: auto; } .ct-selects label { flex: none; } }
/* very narrow phones (320px): the directory header and toolbar must not be wider than the screen */
.ct-dir-head, .ct-toolbar { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ct-dir-head { grid-template-columns: minmax(0, 1fr) auto; } }
.ct-dir-head > *, .ct-toolbar > * { min-width: 0; }
.ct-stats { flex-wrap: wrap; row-gap: var(--space-4); }
.ct-seg { max-width: 100%; }
.ct-chips { margin-inline: 0; padding-inline: 2px; }
.ct-seg { flex-wrap: wrap; }
.ct-seg button { flex: 1 1 auto; }
