/* Ocean Residences marketing pages: homepage, unit pages and location page. */
.shell { width: min(100% - 48px, 1200px); margin: 0 auto; }
section[id] { scroll-margin-top: 100px; }
#units, #availability { scroll-margin-top: 150px; }

/* Topbar (desktop) */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(8,24,40,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair-dark); color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.topbar .brand .mark, .topbar .brand .sub { color: #fff; }
.nav { display: flex; gap: 26px; }
.nav a { color: rgba(255,255,255,.82); font-size: 13.5px; font-weight: 500; letter-spacing: .01em; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active { color: var(--seafoam-2); }
@media (max-width: 880px){ .nav { display: none; } }

/* Page hero */
.pagehero { position: relative; color: #fff; padding: 86px 0 70px; overflow: hidden; }
.pagehero-bg { position: absolute; inset: 0; background: image-set(url('/assets/ocean-residences-hero-pool.webp') type('image/webp')) center/cover; }
@media(max-width:720px){.pagehero-bg{background-image:url('/assets/ocean-residences-hero-pool-mobile.webp');}}
.js .unit-detail-panel:not(.active){display:none;}
.unit-detail-panel + .unit-detail-panel{margin-top:32px;}
.js .unit-detail-panel + .unit-detail-panel{margin-top:0;}
#buyer-questions details{border-bottom:1px solid var(--line-soft);padding:18px 0;}
#buyer-questions summary{cursor:pointer;font-size:17px;font-weight:600;color:var(--navy);}
#buyer-questions details p{max-width:75ch;margin-top:14px;line-height:1.7;}
.unit-price-copy{font-size:13px;color:var(--muted);}
.pagehero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(6,24,41,.92) 0%, rgba(6,24,41,.72) 42%, rgba(6,24,41,.30) 100%); }
.pagehero .shell { position: relative; z-index: 2; }
.crumbs { display: flex; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumbs a { color: rgba(255,255,255,.8); }
.pagehero h1 { color: #fff; font-size: clamp(48px, 6vw, 82px); margin: 16px 0 0; line-height: .98; }
.pagehero h1 em { color: var(--seafoam-2); }
.pagehero p { margin-top: 18px; max-width: 52ch; font-size: 16px; color: rgba(255,255,255,.86); line-height: 1.6; }
.pagehero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.pagehero-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); border-radius: var(--r-lg); overflow: hidden; }
.pagehero-meta .row { background: rgba(6,24,41,.55); padding: 18px 20px; }
.pagehero-meta .lbl { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--seafoam); margin-bottom: 7px; }
.pagehero-meta .val { font-size: 14px; color: #fff; }
@media (max-width: 720px){ .pagehero-meta { grid-template-columns: 1fr 1fr; } }

/* Sections */
section.block { padding: clamp(56px, 7vw, 104px) 0; }
section.block.cream { background: var(--surface); }
#units { padding-bottom: clamp(32px, 4vw, 52px); }
#availability { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.sec-head .kicker { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 54px); }
.sec-head .right p { font-size: 16px; color: var(--muted); line-height: 1.62; }
@media (max-width: 760px){ .sec-head { grid-template-columns: 1fr; gap: 16px; } }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px){ .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .value-grid { grid-template-columns: 1fr; } }
.requirements-grid { grid-template-columns: repeat(3, 1fr); }
.requirements-grid .vcard .btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 13px 24px; line-height: 1.15; min-height: 48px; }
@media (max-width: 980px){ .requirements-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .requirements-grid { grid-template-columns: 1fr; } .requirements-grid .vcard .btn { width: 100%; } }
.vcard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); }
.vcard .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--mist); color: var(--teal-deep); margin-bottom: 18px; }
.vcard h3 { font-size: 24px; }
.vcard p { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Unit selector + pricing rail ---------- */
.units-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 40px; align-items: start; }
.units-wrap > *, .sec-head > *, .professional > *, .pagehero-meta > *, .room-list > * { min-width: 0; }
@media (max-width: 1040px){ .units-wrap { grid-template-columns: minmax(0, 1fr); } }

.unit-tabs { display: inline-flex; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-soft); padding: 6px; border-radius: 999px; margin-bottom: 26px; box-sizing: border-box; }
.unit-tabs-sticky { position: fixed; top: var(--sticky-tabs-top, 76px); left: max(24px, calc((100vw - 1200px) / 2)); z-index: 45; margin: 0; box-shadow: var(--sh-md); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.unit-tabs-sticky.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce){ .unit-tabs-sticky { transition: none; } }
.unit-tab { position: relative; cursor: pointer; padding: 12px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.unit-tab .tab-area::before { content: " · "; }
.unit-tab:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--teal); color: var(--teal-deep); }
.unit-tab:active { transform: translateY(0); }
.unit-tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 18px rgba(13,42,68,.28); }
.unit-tab[aria-selected="true"]:hover { transform: translateY(-2px); color: #fff; border-color: var(--navy); }
@media (max-width: 680px){
  .unit-tabs { display: flex; width: 100%; gap: 5px; }
  .unit-tabs-sticky { left: 12px; right: 12px; width: auto; overflow: hidden; }
  .unit-tab { flex: 1 1 0; min-width: 0; padding: 10px 5px; font-size: 11.5px; line-height: 1.12; white-space: normal; }
  .unit-tab .tab-name, .unit-tab .tab-area { display: block; overflow: hidden; text-overflow: ellipsis; }
  .unit-tab .tab-area::before { content: ""; }
}

.floorplan { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: #f4f4f2; border: 1px solid var(--line-soft); }
.floorplan img { width: 100%; display: block; }
.floorplan .ph { aspect-ratio: 16/9; }
.ph { background-color: #16384e; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px); display: grid; place-items: center; }
.ph span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.6); text-transform: uppercase; }

.unit-sub { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 30px 0 10px; }
.unit-detail h3 { font-size: clamp(26px, 3vw, 36px); }
.unit-detail > p { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.62; max-width: 56ch; }
.room-list { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
@media (max-width: 560px){ .room-list { grid-template-columns: 1fr 1fr; } }
.room { background: var(--paper); padding: 14px 16px; }
.room .lbl { font-size: 11.5px; color: var(--muted); }
.room .val { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-top: 3px; }
.feat-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
@media (max-width: 560px){ .feat-list { grid-template-columns: 1fr; } }
.feat-list li { display: flex; gap: 10px; font-size: 14px; color: var(--body); align-items: flex-start; }
.feat-list li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Pricing rail */
.pricerail { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; }
.pr-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft); }
.pr-head .ut { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pr-head .ua { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pr-body { padding: 22px 24px; }
.pr-block { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.pr-block:first-child { padding-top: 0; border-top: none; }
.pr-label { font-size: 12.5px; color: var(--muted); }
.pr-big { font-family: var(--font-display); font-size: 40px; line-height: 1.15; color: var(--navy); margin-top: 4px; overflow-wrap: anywhere; }
.pr-mid { font-family: var(--font-display); font-size: 27px; line-height: 1; color: var(--navy); margin-top: 4px; }
.pr-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pr-row .amt { font-size: 15px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.pr-promo { display: flex; gap: 12px; align-items: flex-start; background: rgba(239,183,63,.13); border: 1px solid rgba(239,183,63,.4); border-radius: var(--r); padding: 14px 16px; margin: 4px 0; }
.pr-promo .star { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; }
.pr-promo .tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); }
.pr-promo .ttl { font-size: 14px; font-weight: 600; color: var(--fg); margin-top: 3px; }
.pr-promo .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pr-help { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted-2); color: var(--muted); font-size: 9px; font-weight: 700; margin-left: 6px; cursor: help; vertical-align: middle; }
.pr-actions { padding: 4px 24px 24px; display: grid; gap: 10px; }

/* Amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px){ .amenity-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .amenity-grid { grid-template-columns: 1fr; } }
.amenity { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); }
.amenity .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--mist); color: var(--teal-deep); margin-bottom: 14px; }
.amenity h4 { font-family: var(--font-display); font-size: 21px; }
.amenity p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Availability table */
.availability { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--sh-sm); }
.availability table { width: 100%; border-collapse: collapse; }
.availability th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 16px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.availability td { padding: 16px 18px; font-size: 14px; color: var(--body); border-bottom: 1px solid var(--line-soft); }
.availability tbody tr:hover { background: var(--bg); }
.availability tfoot td { font-size: 12px; color: var(--muted-2); background: var(--bg-2); }
.availability .code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--teal-deep); }
.availability .st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.availability .st.a { color: var(--leaf); }
.availability .st.f { color: var(--coral); }
.availability .st.r { color: var(--muted); }
.availability .st .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.availability .band-main { font-weight: 650; color: var(--navy); }
.availability .band-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px){ .availability { overflow-x: auto; } .availability table { min-width: 640px; } }

/* Location */
.location { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
@media (max-width: 860px){ .location { grid-template-columns: 1fr; } }
.map-card { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); min-height: 360px; }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-overlay { position: absolute; left: 18px; bottom: 18px; background: rgba(8,24,40,.92); color: #fff; padding: 14px 18px; border-radius: var(--r); max-width: 78%; }
.map-overlay h4 { font-family: var(--font-display); font-size: 20px; color: #fff; }
.map-overlay p { font-size: 12.5px; color: rgba(255,255,255,.74); margin-top: 4px; }
.nearby { list-style: none; margin: 0; padding: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.nearby .name { font-size: 15px; color: var(--fg); font-weight: 500; }
.nearby .name small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.nearby .dist { font-family: var(--font-display); font-size: 22px; color: var(--teal); white-space: nowrap; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; text-align: center; padding: 64px 32px; background: linear-gradient(150deg, #134953, #0c2a44 70%); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-top: 14px; }
.cta-band p { margin: 14px auto 0; max-width: 58ch; font-size: 15.5px; color: rgba(255,255,255,.84); line-height: 1.6; }
.cta-band .acts { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Personal sales assistance */
.professional { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.professional-portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: var(--r-xl); box-shadow: var(--sh-md); }
.professional h2 { margin-top: 16px; font-size: clamp(36px, 5vw, 58px); }
.professional .role { margin-top: 10px; color: var(--teal); font-size: 14px; font-weight: 600; }
.professional .intro { margin-top: 20px; max-width: 54ch; color: var(--muted); line-height: 1.7; }
.professional-contact { margin-top: 24px; display: grid; gap: 10px; }
.professional-contact a { color: var(--teal-deep); font-weight: 600; overflow-wrap: anywhere; }
.professional-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.estimate-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.data-message { padding: 24px; color: var(--muted); line-height: 1.6; }
.data-message a { color: var(--teal-deep); text-decoration: underline; }
@media (max-width: 680px) { .professional { grid-template-columns: 1fr; } .professional-portrait { max-width: 320px; } }

@media (max-width: 1040px) { .pricerail { position: static; } }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .pagehero { padding: 54px 0 48px; }
  .pagehero h1 { font-size: clamp(38px, 10.8vw, 48px); line-height: 1.05; }
  .pagehero-meta { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagehero-meta .row { padding: 16px; }
  .sec-head { margin-bottom: 30px; }
  .professional { grid-template-columns: minmax(0, 1fr); }
  .pr-row { flex-wrap: wrap; gap: 4px 12px; }
  .pr-row .pr-label { flex: 1 1 150px; }
  .pr-big { font-size: clamp(30px, 8vw, 40px); }
  .pr-head, .pr-body { padding-left: 20px; padding-right: 20px; }
  .pr-actions { padding-left: 20px; padding-right: 20px; }
  .map-overlay { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .nearby .name { min-width: 0; }
  .nearby .dist { flex: none; }
  .availability { overflow: hidden; }
  .availability table { min-width: 0; }
  .availability thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .availability tbody { display: block; }
  .availability tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; border-bottom: 1px solid var(--line); }
  .availability td { display: block; min-width: 0; padding: 10px; border: 0; overflow-wrap: anywhere; }
  .availability tbody td:first-child, .availability tbody td:last-child { grid-column: 1 / -1; }
  .availability tbody td::before { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .availability tbody td:nth-child(2)::before { content: 'Tower(s)'; }
  .availability tbody td:nth-child(3)::before { content: 'Floors'; }
  .availability tbody td:nth-child(4)::before { content: 'Available units'; }
  .availability tbody td:nth-child(5)::before { content: 'Status'; }
  .availability td .btn { width: 100%; }
  .availability tfoot, .availability tfoot tr { display: block; }
}
@media (max-width: 560px) {
  .pagehero-actions, .professional-actions, .cta-band .acts { flex-direction: column; align-items: stretch; }
  .pagehero-actions .btn, .professional-actions .btn, .cta-band .acts .btn { width: 100%; }
  .vcard { padding: 22px; }
  .cta-band { padding: 40px 20px; }
 
  .professional-portrait { margin-inline: auto; }
  .unit-tab { min-height: 48px; text-align: center; }
  .unit-tab .tab-name, .unit-tab .tab-area { overflow: visible; text-overflow: clip; }
}

.text-link { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.unit-more { margin-top: 12px; font-size: 14px; }
