:root {
    --primary: #6e3ff3; --primary-strong: #5425d6; --primary-soft: #f4f0ff;
    --background: #f5f7fa; --surface: #fff; --text: #172033; --muted: #667085;
    --subtle: #98a2b3; --border: #e1e6ed; --success: #087a55;
    --success-soft: #e8f7f1; --danger: #d92d45;
    --safe-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Pyidaungsu", "Myanmar Text", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #dfe4ea; scroll-behavior: smooth; }
body { min-height: 100vh; background: var(--background); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { color: inherit; font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }
.app-shell { position: relative; width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding-bottom: calc(70px + var(--safe-bottom)); background: var(--background); box-shadow: 0 0 32px rgba(16,24,40,.08); }
.app-header { position: sticky; top: 0; z-index: 30; min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 900; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.brand-copy strong { overflow: hidden; font-size: 14px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy span { color: var(--muted); font-size: 10px; }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.hero { position: relative; min-height: 220px; display: flex; align-items: flex-end; overflow: hidden; background-color: #263247; background-position: center; background-size: cover; color: #fff; }
.hero::after { position: absolute; inset: 0; content: ""; background: rgba(15,23,42,.58); }
.hero.no-photo { background: var(--primary-strong); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 25px 17px 20px; }
.hero-kicker { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 900; opacity: .82; }
.hero h1 { max-width: 560px; font-size: clamp(22px, 6vw, 32px); line-height: 1.35; }
.hero p { max-width: 520px; margin-top: 8px; font-size: 12px; line-height: 1.55; opacity: .86; }
.hero-stats { display: flex; gap: 18px; margin-top: 17px; }
.hero-stats span { display: grid; gap: 1px; font-size: 9px; opacity: .86; }
.hero-stats strong { font-size: 16px; opacity: 1; }
.discovery { padding: 13px 14px 8px; background: var(--surface); }
.search-field { min-height: 47px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #f9fafb; color: var(--muted); }
.search-field svg { width: 19px; height: 19px; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
.clear-search { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--border); color: var(--muted); }
.clear-search svg { width: 15px; height: 15px; }
.segment-control { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 9px; padding: 4px; border-radius: 8px; background: #edf0f4; }
.segment-control button { min-height: 35px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; }
.segment-control button.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(16,24,40,.1); }
.type-strip { display: flex; gap: 7px; padding: 10px 14px 8px; overflow-x: auto; background: var(--surface); scrollbar-width: none; }
.type-strip::-webkit-scrollbar { display: none; }
.type-chip { min-height: 33px; flex: 0 0 auto; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 750; }
.type-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 18px 14px 11px; }
.results-heading p { color: var(--muted); font-size: 9px; font-weight: 800; }
.results-heading h2 { margin-top: 2px; font-size: 18px; }
.filter-button { min-height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 10px; font-weight: 800; }
.filter-button svg { width: 17px; height: 17px; }
.filter-button b, .bottom-nav b { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 8px; }
.property-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; padding: 0 14px 22px; }
.property-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.card-open { width: 100%; display: block; border: 0; background: transparent; text-align: left; }
.property-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e7ebf0; }
.property-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: #e9edf2; color: var(--subtle); font-size: 12px; font-weight: 800; }
.transaction-badge { position: absolute; left: 8px; top: 8px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--success); font-size: 9px; font-weight: 900; }
.featured-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px; background: #172033; color: #fff; font-size: 8px; font-weight: 850; }
.favorite-button { position: absolute; z-index: 2; right: 8px; top: 8px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #475467; }
.favorite-button svg { width: 19px; height: 19px; }
.favorite-button.active, .detail-actions button.active { color: var(--danger); }
.favorite-button.active svg, .detail-actions button.active svg { fill: currentColor; }
.property-content { padding: 12px 13px 14px; }
.property-code { color: var(--primary); font-size: 9px; font-weight: 900; }
.property-content h3 { min-height: 42px; margin-top: 4px; overflow: hidden; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.property-location { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.property-location svg { width: 13px; height: 13px; }
.property-specs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; color: #475467; font-size: 9px; }
.property-specs span { display: flex; align-items: center; gap: 3px; }
.property-specs svg { width: 14px; height: 14px; }
.property-price { display: flex; align-items: baseline; gap: 5px; margin-top: 11px; color: var(--primary); }
.property-price strong { font-size: 15px; }.property-price small { font-size: 9px; font-weight: 750; }
.empty-results { grid-column: 1/-1; padding: 42px 20px; text-align: center; }
.empty-results span { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.empty-results h3 { font-size: 15px; }.empty-results p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-results button, .load-more, .state-screen button { min-height: 40px; margin-top: 14px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; }
.load-more { display: block; margin: 0 auto 30px; }
.detail-view { min-height: calc(100vh - 66px); padding-bottom: 30px; background: var(--surface); }
.detail-gallery { display: flex; gap: 7px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #e8edf2; }
.detail-gallery figure { min-width: 100%; aspect-ratio: 4/3; scroll-snap-align: start; }
.detail-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-body { padding: 16px 15px 28px; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-code { color: var(--primary); font-size: 10px; font-weight: 900; }
.detail-actions { display: flex; gap: 6px; }
.detail-actions button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); }
.detail-body h1 { margin-top: 8px; font-size: 21px; line-height: 1.45; }
.detail-location { display: flex; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.detail-location svg { width: 16px; height: 16px; flex: 0 0 auto; }
.detail-price { margin-top: 14px; color: var(--primary); font-size: 21px; font-weight: 900; }.detail-price small { font-size: 10px; }
.spec-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-top: 18px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--border); }
.spec-item { min-height: 72px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 7px 3px; background: var(--surface); text-align: center; }
.spec-item svg { width: 19px; height: 19px; color: var(--primary); }.spec-item strong { font-size: 11px; }.spec-item span { color: var(--muted); font-size: 8px; }
.detail-section { padding-top: 21px; }.detail-section h2 { font-size: 14px; }.detail-section p { margin-top: 8px; color: #475467; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.amenities { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.amenities span { padding: 6px 9px; border-radius: 6px; background: var(--success-soft); color: var(--success); font-size: 9px; font-weight: 750; }
.agent-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px; border: 1px solid var(--border); border-radius: 8px; }
.agent-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 900; }
.agent-line strong { display: block; font-size: 12px; }.agent-line span { color: var(--muted); font-size: 9px; }
.sticky-inquiry { position: sticky; bottom: calc(70px + var(--safe-bottom)); z-index: 10; display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: rgba(255,255,255,.96); }
.sticky-inquiry button, .sticky-inquiry a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; font-size: 11px; font-weight: 850; text-decoration: none; }
.sticky-inquiry .call { width: 48px; flex: 0 0 auto; border: 1px solid var(--primary); background: var(--surface); color: var(--primary); }.sticky-inquiry .inquire { flex: 1; border: 0; background: var(--primary); color: #fff; }
.bottom-nav { position: fixed; z-index: 40; inset: auto 0 0; width: min(100%,760px); min-height: calc(62px + var(--safe-bottom)); margin: auto; padding: 6px 6px var(--safe-bottom); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--border); background: rgba(255,255,255,.98); }
.bottom-nav button { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; }
.bottom-nav svg { width: 21px; height: 21px; }.bottom-nav button.active { color: var(--primary); }.bottom-nav b { position: absolute; top: 0; left: calc(50% + 8px); }
.state-screen { position: absolute; z-index: 25; inset: 66px 0 0; min-height: calc(100vh - 66px); display: grid; place-items: center; align-content: center; gap: 10px; padding: 30px; background: var(--background); text-align: center; }
.state-screen strong { font-size: 15px; }.state-screen p { color: var(--muted); font-size: 11px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.state-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #feecef; color: var(--danger); font-size: 22px; font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet { width: min(calc(100% - 20px),520px); max-height: 86vh; margin: auto auto 0; padding: 0; overflow-y: auto; border: 0; border-radius: 8px 8px 0 0; background: var(--surface); color: var(--text); }
.sheet::backdrop { background: rgba(15,23,42,.55); }.sheet form, .sheet-content { padding: 17px 15px calc(18px + var(--safe-bottom)); }
.sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.sheet h2 { font-size: 17px; }
.sheet header button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef1f5; }
.sheet label { display: grid; gap: 6px; margin-top: 12px; color: #475467; font-size: 10px; font-weight: 750; }
.sheet input, .sheet select, .sheet textarea { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); font-size: 11px; }
.sheet textarea { min-height: 82px; padding-top: 10px; resize: vertical; line-height: 1.55; }
.sheet input:focus, .sheet select:focus, .sheet textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.sheet footer { display: grid; grid-template-columns: 1fr 2fr; gap: 9px; margin-top: 20px; }
.sheet footer button { min-height: 44px; border-radius: 8px; font-size: 11px; font-weight: 850; }.sheet .secondary { border: 1px solid var(--border); background: var(--surface); }.sheet .primary { border: 0; background: var(--primary); color: #fff; }
.contact-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }.contact-brand strong { font-size: 14px; }.contact-brand p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.contact-actions { display: grid; gap: 8px; }.contact-actions a { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 11px; font-weight: 750; }.contact-actions a.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.inquiry-property { display: grid; gap: 3px; padding: 11px 12px; border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0; background: var(--primary-soft); }
.inquiry-property span { color: var(--primary); font-size: 9px; font-weight: 900; }.inquiry-property strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sheet .check-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; color: var(--text); font-size: 10px; font-weight: 700; line-height: 1.55; }
.sheet .check-row input { width: 19px; min-height: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--primary); box-shadow: none; }
.appointment-fields { margin-top: 3px; padding: 1px 11px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f9fafb; }
.consent-row { margin-top: 3px; border-top: 1px solid var(--border); }.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; min-height: 1px !important; opacity: 0; }
.form-error { margin: 10px 0 2px; padding: 9px 10px; border-radius: 6px; background: #feecef; color: var(--danger); font-size: 10px; line-height: 1.5; }
.inquiry-success { padding: 24px 8px 10px; text-align: center; }.inquiry-success > span { width: 52px; height: 52px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 25px; font-weight: 900; }
.inquiry-success h3 { font-size: 18px; }.inquiry-success p { margin: 8px auto; max-width: 390px; color: var(--muted); font-size: 11px; line-height: 1.7; }.inquiry-success strong { display: block; color: var(--primary); font-size: 13px; }
.inquiry-success button { width: 100%; min-height: 44px; margin-top: 20px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 850; }
.sheet button:disabled { opacity: .55; cursor: wait; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(76px + var(--safe-bottom)); max-width: calc(100% - 32px); padding: 9px 13px; border-radius: 8px; background: #172033; color: #fff; font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%,8px); transition: .2s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }
@media (min-width: 560px) { .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding-left: 20px; padding-right: 20px; }.hero { min-height: 250px; }.hero-content { padding: 32px 24px 24px; }.discovery,.type-strip,.results-heading { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 350px) { .hero-stats { gap: 11px; }.spec-grid { grid-template-columns: repeat(2,1fr); }.field-pair { grid-template-columns: 1fr; } }
