/* Cityscape Finder */
.csf {
	--csf-brand: #5b4cf0;
	--csf-ink: #14141f;
	--csf-muted: #6b6b7b;
	--csf-line: #e7e7ee;
	--csf-soft: #f6f6f9;
	--csf-card: #ffffff;
	--csf-ok: #12805c;
	--csf-wa: #1fa855;
	--csf-radius: 14px;
	color: var(--csf-ink);
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
.csf *, .csf *::before, .csf *::after { box-sizing: inherit; }
.csf img { max-width: 100%; display: block; }
.csf a { color: inherit; }
.csf h2 { font-size: 1.35em; margin: 0 0 .7em; line-height: 1.25; }
.csf h3 { margin: 0; line-height: 1.3; }
.csf-muted { color: var(--csf-muted); }
.csf [hidden] { display: none !important; }

/* Buttons */
.csf-btn, .csf-btn-ghost, .csf-more, .csf-reset {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600;
	cursor: pointer; text-decoration: none; border: 1px solid transparent; line-height: 1.2;
}
.csf-btn { background: var(--csf-brand); color: #fff !important; }
.csf-btn:hover { filter: brightness(1.08); }
.csf-btn:disabled { opacity: .6; cursor: wait; }
.csf-btn-wa { background: var(--csf-wa); }
.csf-btn-block { width: 100%; }
.csf-btn-ghost, .csf-more, .csf-reset { background: var(--csf-card); border-color: var(--csf-line); color: var(--csf-ink); }
.csf-btn-ghost:hover, .csf-more:hover { border-color: var(--csf-ink); }
.csf-btn-ghost.is-on { color: #d6336c; border-color: #f2b8cb; }

/* Tags */
.csf-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--csf-ink); font-size: 12px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.csf-tag-on_sale { background: #e6f6ef; color: var(--csf-ok); }
.csf-tag-eoi, .csf-tag-presale { background: #fff4e0; color: #9a5b00; }
.csf-tag-sold_out { background: #f1f1f4; color: var(--csf-muted); }
.csf-tag-feat { background: var(--csf-brand); color: #fff; }
.csf-tag-resale { background: #e8fbc8; color: #3d6200; }

/* ---------- Finder ---------- */
.csf-finder { display: flex; flex-direction: column; gap: 14px; }
.csf-toolbar { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.csf-search { position: relative; }
.csf-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--csf-muted); }
.csf-search input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--csf-line); border-radius: 12px; font: inherit; background: var(--csf-card); }
.csf-search input:focus { outline: 2px solid var(--csf-brand); outline-offset: -1px; }
.csf-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.csf-dd { position: relative; }
.csf-dd summary {
	list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--csf-line); border-radius: 999px;
	background: var(--csf-card); font-size: 14px; font-weight: 500; user-select: none; display: flex; gap: 6px; align-items: center;
}
.csf-dd summary::-webkit-details-marker { display: none; }
.csf-dd summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.csf-dd summary b { background: var(--csf-brand); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; text-align: center; padding: 0 5px; }
.csf-dd summary b:empty { display: none; }
.csf-dd.is-set summary { border-color: var(--csf-brand); color: var(--csf-brand); }
.csf-dd[open] summary { border-color: var(--csf-ink); }
.csf-panel {
	position: absolute; z-index: 1001; top: calc(100% + 6px); left: 0; min-width: 240px; max-width: 320px;
	background: var(--csf-card); border: 1px solid var(--csf-line); border-radius: 12px; padding: 12px;
	box-shadow: 0 12px 32px rgba(20,20,40,.14); display: flex; flex-direction: column; gap: 10px;
}
.csf-panel label { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.csf-range label, .csf-panel > label:not(.csf-switch) { flex-direction: column; align-items: stretch; gap: 4px; }
.csf-panel input[type=number], .csf-panel select, .csf-filter-search { width: 100%; padding: 8px 10px; border: 1px solid var(--csf-line); border-radius: 8px; font: inherit; }
.csf-checks { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.csf-reset { padding: 8px 12px; font-size: 14px; font-weight: 500; border-style: dashed; }
.csf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.csf-count { font-weight: 600; margin-right: auto; }
.csf-bar select { padding: 8px 10px; border: 1px solid var(--csf-line); border-radius: 10px; font: inherit; background: var(--csf-card); }
.csf-views { display: inline-flex; background: var(--csf-soft); border-radius: 10px; padding: 3px; }
.csf-views button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; color: var(--csf-muted); }
.csf-views button.is-active { background: var(--csf-card); color: var(--csf-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.csf-saved-link { text-decoration: none; font-weight: 600; font-size: 14px; }

.csf-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.csf-finder[data-view=list] .csf-body { grid-template-columns: 1fr; }
.csf-finder[data-view=list] .csf-mapwrap { display: none; }
.csf-finder[data-view=map] .csf-results { display: none; }
.csf-finder[data-view=map] .csf-body { grid-template-columns: 1fr; }
.csf-mapwrap { position: sticky; top: 20px; }
.csf-map { height: calc(100vh - 140px); min-height: 460px; border-radius: var(--csf-radius); overflow: hidden; border: 1px solid var(--csf-line); }
.csf-finder.is-loading .csf-grid { opacity: .55; transition: opacity .2s; }
.csf-more { margin: 16px auto 0; display: flex; }

/* Cards */
.csf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.csf-finder[data-view=split] .csf-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.csf-card { position: relative; background: var(--csf-card); border: 1px solid var(--csf-line); border-radius: var(--csf-radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.csf-card:hover { box-shadow: 0 10px 28px rgba(20,20,40,.1); transform: translateY(-2px); }
.csf-card-link { text-decoration: none; display: block; color: inherit; }
.csf-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--csf-soft); }
.csf-card-img img { width: 100%; height: 100%; object-fit: cover; }
.csf-noimg { width: 100%; height: 100%; min-height: 140px; background: linear-gradient(135deg, #eceaf9, #f6f6f9); display: flex; align-items: center; justify-content: center; color: var(--csf-muted); }
.csf-card-tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; padding-right: 44px; }
.csf-card-body { padding: 12px 14px 14px; }
.csf-card-body h3 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csf-card-sub { margin: 2px 0 10px; color: var(--csf-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csf-card-meta { display: flex; justify-content: space-between; gap: 8px; }
.csf-card-meta small { display: block; color: var(--csf-muted); font-size: 12px; }
.csf-card-meta strong { font-size: 14px; }
.csf-card-meta .csf-r { text-align: right; }
.csf-card .csf-fav {
	position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.95); cursor: pointer; font-size: 17px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.15); color: var(--csf-ink);
}
.csf-card .csf-fav.is-on { color: #d6336c; }
.csf-empty-msg { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--csf-muted); }

/* Map pins */
.csf-pin-wrap { background: none; border: 0; }
.csf-pin {
	display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--csf-card); color: var(--csf-ink);
	font: 700 12px/1 system-ui, sans-serif; padding: 6px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 2px solid var(--csf-brand);
}
.csf-pin-wrap.is-hot .csf-pin, .csf-pin-wrap:hover .csf-pin { background: var(--csf-brand); color: #fff; }
.csf-pin-wrap.is-hot { z-index: 1000 !important; }
.csf-pop { display: block; width: 200px; text-decoration: none; color: var(--csf-ink) !important; }
.csf-pop img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.csf-pop strong, .csf-pop span { display: block; }
.csf-pop span { color: var(--csf-muted); }

/* ---------- Project page ---------- */
.csf-project { max-width: 1200px; margin: 0 auto; }
.csf-p-top { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.csf-p-main { position: relative; border-radius: var(--csf-radius); overflow: hidden; background: var(--csf-soft); aspect-ratio: 16 / 10; }
.csf-p-main img { width: 100%; height: 100%; object-fit: cover; }
.csf-p-main .csf-noimg { height: 100%; }
.csf-p-badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.csf-p-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.csf-p-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.csf-p-thumbs button.is-active { border-color: var(--csf-brand); }
.csf-p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.csf-p-side { position: sticky; top: 20px; background: var(--csf-card); border: 1px solid var(--csf-line); border-radius: var(--csf-radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.csf-p-district { margin: 0; color: var(--csf-muted); font-size: 14px; }
.csf-progress-bar { height: 8px; background: var(--csf-soft); border-radius: 999px; overflow: hidden; }
.csf-progress-bar span { display: block; height: 100%; background: var(--csf-brand); border-radius: 999px; }
.csf-progress-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--csf-muted); margin-top: 4px; }
.csf-keyfacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.csf-keyfacts li { display: flex; flex-direction: column; border-bottom: 1px solid var(--csf-line); padding-bottom: 8px; }
.csf-keyfacts small { color: var(--csf-muted); font-size: 12px; }
.csf-keyfacts strong { font-size: 16px; }
.csf-actions { display: flex; flex-direction: column; gap: 8px; }
.csf-actions-row { display: flex; gap: 8px; }
.csf-actions-row > * { flex: 1; padding: 9px 8px; font-size: 14px; }

.csf-p-body { margin-top: 24px; max-width: 820px; }
.csf-p-nav { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 0; z-index: 5; background: var(--csf-card); padding: 10px 0; border-bottom: 1px solid var(--csf-line); margin-bottom: 8px; }
.csf-p-nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.csf-p-nav a:hover { background: var(--csf-soft); }
.csf-sec { padding: 24px 0; border-bottom: 1px solid var(--csf-line); scroll-margin-top: 60px; }
.csf-sec:last-child { border-bottom: 0; }
.csf-desc p { margin: 0 0 1em; }
.csf-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.csf-inv-card { background: var(--csf-soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.csf-inv-card span { font-weight: 600; color: var(--csf-brand); }
.csf-inv-card small { color: var(--csf-muted); }
.csf-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--csf-radius); overflow: hidden; background: #000; }
.csf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.csf-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; margin: 0; }
.csf-details div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--csf-line); }
.csf-details dt { color: var(--csf-muted); }
.csf-details dd { margin: 0; font-weight: 600; text-align: right; }
.csf-legal { }
.csf-plan-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; gap: 3px; }
.csf-plan-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; min-width: 36px; }
.csf-plan-0 { background: var(--csf-brand); }
.csf-plan-1 { background: #8f84f5; }
.csf-plan-2 { background: #1d1b3a; }
.csf-plan-3 { background: #f0a43a; }
.csf-plan-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.csf-plan-list li { display: flex; align-items: center; gap: 8px; }
.csf-plan-list strong { margin-left: auto; }
.csf-plan-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.csf-calc { background: var(--csf-soft); border-radius: 12px; padding: 14px; }
.csf-calc label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.csf-calc input { padding: 9px 10px; border: 1px solid var(--csf-line); border-radius: 8px; font: inherit; max-width: 260px; }
.csf-calc-out { list-style: none; padding: 0; margin: 10px 0 0; }
.csf-calc-out li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--csf-line); font-size: 14px; }
.csf-calc-dld { color: var(--csf-muted); }
.csf-amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.csf-amenities li { padding: 8px 12px; background: var(--csf-soft); border-radius: 10px; font-size: 14px; }
.csf-amenities li::before { content: '✓'; color: var(--csf-brand); font-weight: 700; margin-right: 8px; }
.csf-p-map { height: 340px; border-radius: var(--csf-radius); overflow: hidden; border: 1px solid var(--csf-line); }
.csf-docs { display: flex; gap: 10px; flex-wrap: wrap; }
.csf-docs a { padding: 12px 16px; border: 1px solid var(--csf-line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.csf-enquire { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.csf-contact { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 14px; background: var(--csf-soft); border-radius: 12px; }
.csf-contact span, .csf-contact small { color: var(--csf-muted); }

/* Forms */
.csf-form { display: flex; flex-direction: column; gap: 10px; }
.csf-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.csf-form input, .csf-form select, .csf-form textarea { padding: 10px 12px; border: 1px solid var(--csf-line); border-radius: 10px; font: inherit; font-weight: 400; background: var(--csf-card); width: 100%; }
.csf-form input:focus, .csf-form select:focus, .csf-form textarea:focus { outline: 2px solid var(--csf-brand); outline-offset: -1px; }
.csf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.csf-span2 { grid-column: 1 / -1; }
.csf-form-msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.csf-form-msg.is-ok { color: var(--csf-ok); }
.csf-form-msg.is-error { color: #c92a2a; }
.csf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.csf-notice { padding: 16px; background: var(--csf-soft); border-radius: 12px; }

/* Lightbox */
.csf-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(10,10,20,.92); display: flex; align-items: center; justify-content: center; }
.csf-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.csf-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; }
.csf-lb-close { top: 20px; right: 20px; }
.csf-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.csf-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Resale ---------- */
.csf-resale-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.csf-resale-head p { margin: 0; color: var(--csf-muted); }
.csf-resale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.csf-resale-card { border: 1px solid var(--csf-line); border-radius: var(--csf-radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--csf-card); }
.csf-resale-top { display: flex; gap: 6px; }
.csf-resale-card h3 { font-size: 16px; }
.csf-resale-card h3 a { color: var(--csf-brand); text-decoration: none; }
.csf-resale-card dl { display: flex; gap: 18px; margin: 0; flex-wrap: wrap; }
.csf-resale-card dt { font-size: 12px; color: var(--csf-muted); }
.csf-resale-card dd { margin: 0; font-weight: 600; font-size: 14px; }
.csf-resale-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.csf-resale-foot strong { font-size: 17px; }
.csf-resale-foot .csf-btn { padding: 8px 12px; font-size: 13px; }

/* ---------- Events ---------- */
.csf-events { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.csf-cal { border: 1px solid var(--csf-line); border-radius: var(--csf-radius); padding: 14px; position: sticky; top: 20px; background: var(--csf-card); }
.csf-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.csf-cal-head button { border: 1px solid var(--csf-line); background: var(--csf-card); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 18px; }
.csf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.csf-cal-dow { font-size: 11px; color: var(--csf-muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.csf-cal-grid button { border: 0; background: var(--csf-soft); border-radius: 8px; aspect-ratio: 1; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 13px; padding: 0; }
.csf-cal-grid button em { display: flex; gap: 2px; font-style: normal; font-size: 9px; height: 6px; align-items: center; }
.csf-cal-grid button.is-today span { font-weight: 800; color: var(--csf-brand); }
.csf-cal-grid button.is-sel { background: var(--csf-ink); color: #fff; }
.csf-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: #9aa0a6; }
.csf-dot-launch { background: #2fb344; }
.csf-dot-developer { background: #f76707; }
.csf-dot-briefing { background: #f2c94c; }
.csf-dot-roadshow { background: var(--csf-brand); }
.csf-ev-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.csf-ev-types button { border: 1px solid var(--csf-line); background: var(--csf-card); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.csf-ev-types button span { color: var(--csf-muted); }
.csf-ev-types button.is-active { background: var(--csf-ink); color: #fff; border-color: var(--csf-ink); }
.csf-ev-types button.is-active span { color: #c9c9d6; }
.csf-ev-heading { font-size: 18px; margin: 0 0 12px; }
.csf-ev-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.csf-ev { display: flex; gap: 12px; border: 1px solid var(--csf-line); border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; background: var(--csf-card); }
.csf-ev img, .csf-ev-ph { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--csf-soft); }
.csf-ev-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--csf-muted); }
.csf-ev h4 { margin: 2px 0; font-size: 15px; line-height: 1.3; }
.csf-ev p { margin: 0; font-size: 13px; color: var(--csf-muted); }
.csf-ev small { font-size: 12px; font-weight: 600; }

/* Let the finder, project page and calendar use the full page width even in narrow theme layouts. */
.csf-finder, .csf-project, .csf-events {
	width: min(1320px, calc(100vw - 32px));
	max-width: none !important;
	margin-left: calc(50% - min(660px, 50vw - 16px)) !important;
	margin-right: 0 !important;
}
.csf-dd summary { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.csf-body { grid-template-columns: 1fr; }
	.csf-finder[data-view=split] .csf-mapwrap { display: none; }
	.csf-map { height: 70vh; }
	.csf-p-top { grid-template-columns: 1fr; }
	.csf-p-side { position: static; }
	.csf-enquire { grid-template-columns: 1fr; }
	.csf-events { grid-template-columns: 1fr; }
	.csf-cal { position: static; }
	.csf-views button[data-view=split] { display: none; }
}
@media (max-width: 560px) {
	.csf-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.csf-dd { position: static; }
	.csf-panel { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; max-width: none; max-height: 70vh; overflow: auto; }
	.csf-form-grid { grid-template-columns: 1fr; }
	.csf-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.csf-card-body { padding: 10px; }
	.csf-card-meta { flex-direction: column; gap: 4px; }
	.csf-card-meta .csf-r { text-align: left; }
	.csf-card-tags .csf-tag-feat { display: none; }
}
