.sl-market {
	--sl-green: #012b2e;
	--sl-green-dark: #0f4a49;
	--sl-green-mid: #2f6f6a;
	--sl-green-soft: #eaf5f3;
	--sl-gold: #e2af81;
	--sl-white: #fff;
	color: var(--sl-green);
	font-family: var(--sl-font-body);
	background: #fff;
}
.sl-market *, .sl-market *::before, .sl-market *::after { box-sizing: border-box; }
.sl-market-container { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.sl-market h1, .sl-market h2, .sl-market h3 { margin-top: 0; font-family: var(--sl-font-heading); color: var(--sl-green); }
.sl-market-hero { padding: 72px 0 42px; background: var(--sl-green-soft); border-bottom: 1px solid rgba(1,43,46,.12); }
.sl-market-eyebrow { margin: 0 0 12px; color: var(--sl-green-mid); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.sl-market-hero h1 { max-width: 800px; margin-bottom: 16px; font-size: clamp(36px, 4vw, 58px); line-height: 1.24; }
.sl-market-intro { max-width: 760px; margin: 0; color: #365a59; font-size: 18px; line-height: 1.65; }
.sl-market-tabs { display: inline-flex; gap: 6px; margin-top: 30px; padding: 5px; border: 1px solid rgba(1,43,46,.16); background: #fff; }
.sl-market-tabs a { padding: 13px 22px; color: var(--sl-green); font-weight: 600; text-decoration: none; }
body:not(.home) .sunland-template .sl-market-tabs a.is-active { color: var(--heading-on-dark, #fff) !important; background: var(--sl-green); }
.sl-market-tabs a:focus-visible, .sl-market a:focus-visible, .sl-market button:focus-visible, .sl-market input:focus-visible, .sl-market select:focus-visible, .sl-market textarea:focus-visible { outline: 3px solid var(--sl-gold); outline-offset: 2px; }
.sl-market-results { padding: 34px 0 80px; }
.sl-search-filter { position:relative; z-index:40; }
.sl-search-filter__bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
.sl-search-filter__keyword { position:relative; display:block; }
.sl-search-filter__keyword svg { position:absolute; top:50%; left:16px; width:20px; height:20px; transform:translateY(-50%); fill:none; stroke:var(--sl-green-mid); stroke-width:2; }
.sl-search-filter__keyword input { width:100%; min-height:52px; padding:12px 16px 12px 48px; border:1px solid #b9cdca; border-radius:4px; background:#fff; color:var(--sl-green); font:inherit; }
.sl-filter-open { display:inline-flex; min-width:132px; min-height:52px; align-items:center; justify-content:center; gap:9px; padding:11px 18px; border:1px solid var(--sl-green); border-radius:4px; background:#fff; color:var(--sl-green); cursor:pointer; font:700 15px var(--sl-font-body); }
.sl-filter-open svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
.sl-filter-panel { position:absolute; top:64px; right:0; left:0; z-index:42; overflow:hidden; border:1px solid #d4e3e1; border-radius:6px; background:#fff; box-shadow:0 18px 44px rgba(1,43,46,.18); }
.sl-filter-panel[hidden],.sl-filter-backdrop[hidden] { display:none !important; }
.sl-filter-panel__header { display:grid; grid-template-columns:100px 1fr 100px; align-items:center; min-height:54px; padding:0 18px; border-bottom:1px solid #e3ecea; }
.sl-filter-panel__header h2 { margin:0; font-size:17px; text-align:center; letter-spacing:.04em; }
.sl-filter-close { min-width:44px; min-height:44px; justify-self:start; border:0; background:transparent; color:var(--sl-green); cursor:pointer; font-size:25px; }
.sl-filter-reset { justify-self:end; color:var(--sl-muted,#5c7373); font-weight:600; text-decoration:none; }
.sl-filter-panel__body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:min(66vh,680px); overflow-y:auto; padding:0 24px 24px; overscroll-behavior:contain; }
.sl-filter-group { min-width:0; margin:0; padding:24px 20px; border:0; border-bottom:1px solid #e3ecea; }
.sl-filter-group legend { width:100%; margin:0 0 18px; padding:0; color:var(--sl-green); font:700 17px var(--sl-font-heading); }
.sl-filter-check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; }
.sl-filter-check-grid label { display:flex; min-width:0; align-items:flex-start; gap:10px; color:#334b4b; font-size:15px; line-height:1.35; }
.sl-filter-check-grid input[type="checkbox"] { width:20px; height:20px; flex:0 0 20px; margin:0; border-radius:0; accent-color:var(--sl-green); }
.sl-filter-range-group { grid-column:span 1; }
.sl-filter-range-values { display:flex; justify-content:space-between; margin-bottom:12px; color:#334b4b; }
.sl-dual-range { position:relative; height:42px; }
.sl-dual-range__track { position:absolute; top:18px; right:10px; left:10px; height:4px; background:#b9cdca; }
.sl-dual-range input[type="range"] { position:absolute; inset:0; width:100%; height:40px; margin:0; background:transparent; pointer-events:none; appearance:none; -webkit-appearance:none; }
.sl-dual-range input[type="range"]::-webkit-slider-thumb { width:24px; height:24px; border:3px solid var(--sl-green-mid); border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(1,43,46,.22); cursor:pointer; pointer-events:auto; appearance:none; -webkit-appearance:none; }
.sl-dual-range input[type="range"]::-moz-range-thumb { width:20px; height:20px; border:3px solid var(--sl-green-mid); border-radius:50%; background:#fff; cursor:pointer; pointer-events:auto; }
.sl-filter-toggle-group { grid-column:1 / -1; }
.sl-filter-toggle-group label { display:flex; align-items:center; justify-content:space-between; gap:20px; font-weight:700; }
.sl-filter-toggle-group input[role="switch"] { width:48px; height:26px; border-radius:20px; accent-color:var(--sl-green); }
.sl-filter-panel__footer { display:flex; justify-content:flex-end; padding:16px 24px; border-top:1px solid #e3ecea; background:#fff; }
.sl-filter-apply { width:min(360px,100%); min-height:48px; border:1px solid var(--sl-green); border-radius:5px; background:var(--sl-green); color:var(--sl-white); cursor:pointer; font:700 16px var(--sl-font-heading); }
.sl-filter-backdrop { position:fixed; z-index:41; inset:0; background:rgba(1,43,46,.18); }
.sl-filter-panel.is-open { display:block; }
.sl-market-filter { padding: 22px; border: 1px solid #d8e4e2; background: #fff; box-shadow: 0 8px 30px rgba(1,43,46,.06); }
.sl-filter-primary { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px; align-items: end; }
.sl-filter-advanced { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e3ecea; }
.sl-field { min-width: 0; }
.sl-field label, .sl-sort-form label { display: block; margin-bottom: 7px; color: #284c4b; font-size: 13px; font-weight: 600; }
.sl-field input, .sl-field select, .sl-field textarea, .sl-sort-form select { width: 100%; min-height: 46px; border: 1px solid #b9cdca; border-radius: 0; background: #fff; color: var(--sl-green); font: inherit; padding: 10px 12px; }
.sl-field textarea { resize: vertical; }
.sl-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid var(--sl-green); border-radius: 0; cursor: pointer; font: 600 15px var(--sl-font-body); text-decoration: none; }
.sl-button--primary { color: #fff; background: var(--sl-green); }
.sl-button--secondary { color: var(--sl-green); background: #fff; }
.sl-button--gold { color: var(--sl-green); border-color: var(--sl-gold); background: var(--sl-gold); }
.sl-filter-toggle, .sl-filter-drawer-head, .sl-filter-backdrop { display: none; }
.sl-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.sl-search-desktop { grid-column: 2; grid-row: 1; }
.sl-results-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 38px 0 22px; }
.sl-results-count { margin: 0 0 6px; color: var(--sl-green-mid); }
.sl-results-toolbar h2 { margin-bottom: 0; font-size: 28px; }
.sl-sort-form { display: flex; align-items: center; gap: 10px; }
.sl-sort-form label { margin: 0; white-space: nowrap; }
.sl-sort-form select { min-width: 190px; }
.sl-listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sl-listing-card { --listing-price:#9f6723; --listing-title:#9f6723; --listing-text:#334b4b; --listing-muted:#667b7b; --listing-line:#d4e3e1; --listing-accent:#e2af81; --listing-surface:#fff; min-width: 0; border: 1px solid var(--listing-line); background: var(--listing-surface); box-shadow: 0 7px 22px rgba(1,43,46,.055); }
.sl-listing-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe8e6; }
.sl-listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sl-listing-card:hover .sl-listing-media img { transform: scale(1.025); }
.sl-listing-badge, .sl-listing-featured { position: absolute; top: 14px; padding: 7px 10px; color: #fff; /* surface-dark badge */ background: var(--sl-green); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sl-listing-badge { left: 14px; }
.sl-listing-featured { right: 14px; color: var(--sl-green); background: var(--sl-gold); }
.sl-listing-body { padding: 22px; }
.sl-listing-card .sl-listing-price { margin: 0 0 9px; color: var(--listing-price) !important; opacity: 1; font: 700 25px var(--sl-font-heading); white-space: nowrap; }
.sl-listing-card h3 { min-height: 50px; margin-bottom: 9px; font-size: 19px; line-height: 1.35; }
.sl-listing-card h3 a { color: var(--listing-title) !important; opacity: 1; text-decoration: none; }
.sl-listing-card .sl-listing-location { min-height: 44px; margin: 0 0 15px; color: var(--listing-muted) !important; opacity: 1; font-size: 15px; line-height: 1.45; }
.sl-listing-description { margin: -6px 0 15px; color: var(--listing-text) !important; opacity: 1; font-size: 14px; line-height: 1.55; }
.sl-listing-card .sl-listing-specs { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 0 0 14px; padding: 13px 0; border-top: 1px solid var(--listing-line); border-bottom: 1px solid var(--listing-line); list-style: none; color: var(--listing-text) !important; opacity: 1; font-size: 14px; }
.sl-listing-card .sl-listing-code { margin: 0 0 16px; color: var(--listing-muted) !important; opacity: 1; font-size: 13px; }
.sl-listing-card .sl-listing-cta { display: inline-flex; gap: 8px; color: var(--listing-price) !important; opacity: 1; font-weight: 700; text-decoration: none; }
.sl-listing-card .sl-listing-cta:hover { color: var(--listing-price) !important; text-decoration: underline; text-decoration-color: var(--listing-accent); text-decoration-thickness: 2px; }
.sl-pagination { margin-top: 36px; }
.sl-pagination ul { display: flex; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sl-pagination a, .sl-pagination span { display: flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #b9cdca; color: var(--sl-green); text-decoration: none; }
.sl-pagination .current { color: #fff; /* surface-dark active page */ border-color: var(--sl-green); background: var(--sl-green); }
.sl-empty-state { padding: 64px 24px; border: 1px solid #dce6e4; background: var(--sl-green-soft); text-align: center; }
.sl-empty-state p { margin: 0 auto 24px; max-width: 620px; }
/* Lead Inquiry Section (Sàn giao dịch thứ cấp) */
.sl-market-lead { padding: 90px 0; color: #fff; /* surface-dark section */ background: var(--sl-green, #012b2e); }
.sl-market-lead h2 { color: #fff !important; /* surface-dark heading */ font-family: var(--sl-font-heading); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.26; margin-bottom: 18px; text-transform: uppercase; }
.sl-market-lead .sl-market-eyebrow { color: var(--sl-gold, #e2af81); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.sl-market-lead p { color: rgba(255, 255, 255, 0.85) !important; /* surface-dark */ font-size: 16px; line-height: 1.7; max-width: 520px; }
.sl-lead-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.sl-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 36px 32px; color: #fff; /* surface-dark */ background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(226, 175, 129, 0.35); border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,0.25); }
.sl-field--full, .sl-lead-form .sl-button { grid-column: 1 / -1; }
.sl-lead-form .sl-field label { display: block; margin-bottom: 7px; color: var(--sl-gold, #e2af81) !important; /* surface-dark */ opacity: 1 !important; font-family: var(--sl-font-heading); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sl-lead-form .sl-field label .required { color: #f87171; margin-left: 2px; }
.sl-lead-form .sl-field input, .sl-lead-form .sl-field select, .sl-lead-form .sl-field textarea { width: 100%; min-height: 48px; border: 1px solid rgba(226, 175, 129, 0.35); border-radius: 6px; background-color: rgba(255, 255, 255, 0.08) !important; color: #ffffff !important; /* surface-dark */ font-family: var(--sl-font-body); font-size: 14px; padding: 12px 16px; appearance: none; -webkit-appearance: none; transition: all .2s ease; }
.sl-lead-form .sl-field select { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23e2af81' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 12px 8px !important; padding-right: 40px !important; }
.sl-lead-form .sl-field select option { background: #ffffff; /* select option */ color: #111111 !important; }
.sl-lead-form .sl-field input::placeholder, .sl-lead-form .sl-field textarea::placeholder { color: rgba(255, 255, 255, 0.55) !important; /* surface-dark */ }
.sl-lead-form .sl-field input:focus, .sl-lead-form .sl-field select:focus, .sl-lead-form .sl-field textarea:focus { outline: none; border-color: var(--sl-gold, #e2af81) !important; box-shadow: 0 0 0 3px rgba(226, 175, 129, 0.25); background-color: rgba(255, 255, 255, 0.14) !important; /* surface-dark */ }
.sl-lead-form .sl-button--gold { width: 100%; margin-top: 10px; padding: 18px 24px; border: 1px solid var(--sl-gold, #e2af81); border-radius: 6px; background: var(--sl-gold, #e2af81); color: var(--sl-green, #012b2e) !important; font-family: var(--sl-font-heading); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.2); transition: all .25s ease; }
.sl-lead-form .sl-button--gold:hover { background: #ffffff; /* button */ border-color: #ffffff; /* button */ color: var(--sl-green, #012b2e) !important; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.sl-honeypot { position: absolute; left: -9999px; }
@media (max-width: 1080px) {
	.sl-filter-advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sl-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.sl-market-container { width: min(100% - 32px, 1320px); }
	.sl-market-hero { padding: 46px 0 30px; }
	.sl-market-hero h1 { font-size: 35px; }
	.sl-market-intro { font-size: 16px; }
	.sl-market-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.sl-market-tabs a { padding: 12px 8px; text-align: center; }
	.sl-market-results { padding-top: 22px; }
	.sl-search-filter__bar { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
	.sl-search-filter__keyword input { min-height:48px; padding-left:42px; font-size:14px; }
	.sl-search-filter__keyword svg { left:13px; width:18px; height:18px; }
	.sl-filter-open { min-width:104px; min-height:48px; padding:9px 12px; font-size:14px; }
	.sl-filter-panel { position:fixed; z-index:100001; inset:0; display:flex; flex-direction:column; width:100%; height:100dvh; max-height:none; border:0; border-radius:0; box-shadow:none; transform:translateX(100%); transition:transform .24s ease; }
	.sl-filter-panel.is-open { display:flex; transform:translateX(0); }
	.sl-filter-panel__header { position:relative; z-index:2; grid-template-columns:72px 1fr 90px; min-height:52px; flex:0 0 52px; padding:0 12px; background:#fff; }
	.sl-filter-panel__header h2 { font-size:16px; }
	.sl-filter-reset { font-size:14px; white-space:nowrap; }
	.sl-filter-panel__body { display:block; max-height:none; flex:1 1 auto; padding:0 16px calc(88px + env(safe-area-inset-bottom)); overflow-y:auto; -webkit-overflow-scrolling:touch; }
	.sl-filter-group { padding:22px 4px; }
	.sl-filter-group legend { margin-bottom:18px; font-size:16px; }
	.sl-filter-check-grid { gap:18px 14px; }
	.sl-filter-check-grid label { gap:10px; font-size:15px; }
	.sl-filter-check-grid input[type="checkbox"] { width:20px; height:20px; flex-basis:20px; }
	.sl-filter-panel__footer { position:absolute; right:0; bottom:0; left:0; z-index:3; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow:0 -5px 16px rgba(1,43,46,.08); }
	.sl-filter-apply { width:100%; }
	.sl-filter-backdrop { display:none !important; }
	body.sl-search-filter-open { overflow:hidden; }
	.sl-market-filter { padding: 14px; }
	.sl-filter-primary { grid-template-columns: 1fr auto; }
	.sl-field--keyword { grid-column: 1 / -1; }
	.sl-search-desktop { grid-column: 1; grid-row: 2; }
	.sl-filter-toggle { display: block; min-height: 46px; padding: 10px 17px; border: 1px solid var(--sl-green); color: var(--sl-green); background: #fff; font: 600 15px var(--sl-font-body); }
	.sl-filter-backdrop { position: fixed; z-index: 99998; inset: 0; display: block; background: rgba(1,43,46,.55); }
	.sl-filter-backdrop[hidden] { display: none; }
	.sl-filter-advanced { position: fixed; z-index: 99999; right: 0; bottom: 0; left: 0; display: block; max-height: 88vh; margin: 0; padding: 0 20px 22px; overflow-y: auto; border: 0; background: #fff; transform: translateY(105%); transition: transform .25s ease; }
	.sl-filter-advanced.is-open { transform: translateY(0); }
	.sl-filter-drawer-head { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center; margin: 0 -20px 16px; padding: 17px 20px; border-bottom: 1px solid #dce6e4; background: #fff; }
	.sl-filter-close { width: 40px; height: 40px; border: 0; color: var(--sl-green); background: transparent; font-size: 30px; }
	.sl-filter-advanced .sl-field { margin-bottom: 14px; }
	.sl-filter-actions { position: sticky; bottom: -22px; display: grid; grid-template-columns: 1fr 1fr; margin: 0 -20px; padding: 14px 20px 22px; border-top: 1px solid #dce6e4; background: #fff; }
	body.sl-filter-open { overflow: hidden; }
	.sl-results-toolbar { display: block; margin-top: 28px; }
	.sl-sort-form { margin-top: 16px; }
	.sl-sort-form select { min-width: 0; }
	.sl-listing-grid { grid-template-columns: 1fr; gap: 18px; }
	.sl-listing-card h3, .sl-listing-location { min-height: 0; }
	.sl-market-lead { padding: 52px 0; }
	.sl-lead-layout { grid-template-columns: 1fr; gap: 26px; }
	.sl-lead-form { grid-template-columns: 1fr; padding: 20px; }
	.sl-lead-form .sl-field, .sl-lead-form .sl-button { grid-column: 1; }
}
@media (max-width: 380px) {
	.sl-market-container { width: calc(100% - 24px); }
	.sl-market-tabs a { font-size: 14px; }
	.sl-listing-price { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.sl-listing-media img, .sl-filter-advanced { transition: none; }
}

/* ================================================================ */
/* Listing detail page                                              */
/* ================================================================ */
.sl-detail {
	--sl-green:#012b2e; --sl-green-dark:#0f4a49; --sl-green-mid:#2f6f6a;
	--sl-gold:#e2af81; --sl-soft:#eaf5f3; --sl-line:#d4e3e1; --sl-muted:#5c7373;
	--sl-z-sticky:9000; --sl-z-lightbox:100000;
	padding:28px 0 72px; color:#334b4b; background:#fff; font-family:var(--sl-font-body);
}
.sl-detail *, .sl-detail *::before, .sl-detail *::after { box-sizing:border-box; }
.sl-detail img { max-width:100%; height:auto; }
.sl-detail h1,.sl-detail h2,.sl-detail h3 { color:var(--sl-green) !important; opacity:1; font-family:var(--sl-font-heading); overflow-wrap:anywhere; }
.sl-detail p,.sl-detail li,.sl-detail dd { overflow-wrap:break-word; }
.sl-detail h1 { margin:10px 0; font-size:clamp(28px,3.4vw,42px); line-height:1.28; }
.sl-detail h2 { margin:0 0 18px; font-size:clamp(23px,2.4vw,28px); }
.sl-detail-section h2 { position:relative; margin:0 0 20px; padding-bottom:8px; font-size:clamp(23px,2.4vw,28px); border-bottom:2px solid var(--sl-gold, #e2af81); display:inline-block; }
.sl-detail h3 { margin:0 0 10px; font-size:19px; }
.sl-detail a:focus-visible,.sl-detail button:focus-visible,.sl-detail input:focus-visible,.sl-detail select:focus-visible,.sl-detail textarea:focus-visible { outline:3px solid var(--sl-gold); outline-offset:2px; }

/* Breadcrumb ---------------------------------------------------- */
/* Reviewer-only banner. RULE-UI-001: dark text on a light amber surface. */
.sl-preview-banner { margin:0 0 20px; padding:14px 18px; border:1px solid #d8a12a; border-left-width:5px; border-radius:6px; background:#fdf6e3; color:#5c4708; font-size:14px; line-height:1.55; }
.sl-preview-banner strong { display:block; margin-bottom:4px; color:#3f3005; font-weight:700; }

.sl-detail-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-bottom:22px; color:var(--sl-muted); font-size:14px; }
.sl-detail-crumb a { color:var(--sl-green-dark); }
.sl-detail-crumb strong { min-width:0; color:var(--sl-green); font-weight:600; overflow-wrap:anywhere; }

/* Hero: gallery + summary --------------------------------------- */
.sl-detail-hero { display:grid; grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); gap:36px; align-items:start; }

.sl-gallery { display:grid; gap:12px; min-width:0; }
.sl-gallery__main { display:block; width:100%; margin:0; padding:0; border:1px solid var(--sl-line); background:var(--sl-soft); cursor:pointer; }
.sl-gallery__main--static { cursor:default; }
.sl-gallery__main img { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; }
.sl-gallery__rail { display:flex; gap:10px; margin:0; padding:0; overflow-x:auto; list-style:none; scrollbar-width:thin; }
.sl-gallery__rail li { flex:0 0 auto; }
.sl-gallery__thumb { display:block; width:96px; height:72px; padding:0; border:1px solid var(--sl-line); background:var(--sl-soft); cursor:pointer; }
.sl-gallery__thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.sl-gallery__all { min-height:44px; padding:10px 18px; border:1px solid var(--sl-green); background:#fff; color:var(--sl-green); cursor:pointer; font:600 15px var(--sl-font-body); justify-self:start; }

.sl-summary { min-width:0; padding:20px; border:1px solid var(--sl-line); background:#fff; box-shadow:0 10px 28px rgba(1,43,46,.07); }
.sl-summary__badges { display:flex; flex-wrap:wrap; gap:8px; }
.sl-summary__badges:empty { display:none; }
.sl-badge { padding:6px 10px; color:#fff; /* surface-dark */ background:var(--sl-green); font-size:12px; font-weight:700; text-transform:uppercase; }
.sl-badge--gold { color:var(--sl-green); background:var(--sl-gold); }
.sl-badge--soft { color:var(--sl-green-dark); background:var(--sl-soft); border:1px solid var(--sl-line); }
/* Tin quá 30 ngày ưu tiên: vẫn mở được link nhưng phải nói rõ tình trạng. */
.sl-badge--expired { color:#7a1c10; background:#fdece9; border:1px solid #e5b4ac; }
.sl-summary__location { margin:10px 0 0; color:var(--sl-muted) !important; opacity:1; font-size:14px; }
.sl-summary__description { margin:-6px 0 14px; color:#334b4b !important; opacity:1; font-size:15px; line-height:1.6; }
.sl-summary h1 { margin:6px 0 10px; }
.sl-summary__meta { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0 0 12px; color:var(--sl-muted) !important; opacity:1; font-size:13px; }
.sl-summary__meta:empty { display:none; }
.sl-summary__price { margin:12px 0 0; color:var(--sl-green) !important; opacity:1; font-family:var(--sl-font-heading); font-weight:700; font-size:clamp(36px,4vw,48px); line-height:1.05; letter-spacing:-0.03em; overflow-wrap:anywhere; }
.sl-summary__unit { margin:4px 0 0; color:var(--sl-muted) !important; opacity:1; font-size:13.5px; line-height:1.35; }
.sl-summary__metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:16px 0 0; border-top:1px solid var(--sl-line); border-bottom:1px solid var(--sl-line); }
.sl-summary-metric { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:12px 8px; position:relative; }
.sl-summary-metric:nth-child(2n+1) { border-right:1px solid var(--sl-line); }
.sl-summary-metric:nth-child(n+3) { border-top:1px solid var(--sl-line); }
.sl-summary-metric:last-child:nth-child(odd) { grid-column:1 / -1; border-right:0; }
.sl-summary-metric__icon { display:flex; align-items:center; justify-content:center; width:26px; height:26px; margin-bottom:4px; color:var(--sl-gold); }
.sl-summary-metric__icon svg { width:22px; height:22px; display:block; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; }
.sl-summary-metric__value { color:var(--sl-green); font-family:var(--sl-font-heading); font-weight:700; font-size:clamp(18px,1.8vw,21px); line-height:1.2; overflow-wrap:anywhere; }
.sl-summary-metric__label { margin-top:2px; color:var(--sl-muted); font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; line-height:1.25; }
.sl-summary__cta { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.sl-summary__cta .sl-button { flex:1 1 180px; }
.sl-summary__notice { margin:12px 0 0; padding:10px 12px; border-left:4px solid var(--sl-gold); background:var(--sl-soft); color:#334b4b !important; opacity:1; font-size:13.5px; line-height:1.5; }

/* Body: content + contact --------------------------------------- */
.sl-detail-body { display:grid; grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); gap:36px; align-items:start; margin-top:24px; }
.sl-detail-content { min-width:0; }
.sl-detail-section { margin:0 0 44px; }
.sl-detail-section:last-child { margin-bottom:0; }
.sl-detail-content p { color:#334b4b !important; opacity:1; font-size:16px; line-height:1.7; }

/* Video --------------------------------------------------------- */
.sl-video-frame { position:relative; aspect-ratio:16 / 9; border:1px solid var(--sl-line); background:var(--sl-soft); }
.sl-video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
/* Đường thoát khi khung nhúng bị chặn. RULE-UI-001: chữ đậm trên nền sáng. */
.sl-video-fallback { margin:10px 0 0; color:var(--sl-muted); font-size:14px; }
.sl-video-fallback a { color:var(--sl-green-dark); font-weight:600; text-decoration:underline; }

/* Collapsible prose --------------------------------------------- */
.sl-collapsible { position:relative; }
.sl-collapsible.is-collapsed .sl-collapsible__body { position:relative; max-height:15em; overflow:hidden; }
.sl-collapsible.is-collapsed .sl-collapsible__body::after { content:''; position:absolute; right:0; bottom:0; left:0; height:5em; background:linear-gradient(180deg,rgba(255,255,255,0),#fff); pointer-events:none; }
.sl-collapsible__body p:first-child { margin-top:0; }
.sl-collapsible__toggle { min-height:44px; margin-top:12px; padding:10px 18px; border:1px solid var(--sl-green); background:#fff; color:var(--sl-green); cursor:pointer; font:600 15px var(--sl-font-body); }

/* Basic data ---------------------------------------------------- */
.sl-detail-data { display:grid; grid-template-columns:1fr 1fr; column-gap:32px; margin:0; border-top:1px solid var(--sl-line); }
.sl-detail-data div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:13px 0; border-bottom:1px solid var(--sl-line); }
.sl-detail-data dt { color:var(--sl-muted) !important; opacity:1; font-size:15px; flex:0 0 auto; }
.sl-detail-data dd { margin:0; min-width:0; color:#334b4b !important; opacity:1; font-weight:600; overflow-wrap:anywhere; text-align:right; flex:1 1 auto; }

/* Highlights ---------------------------------------------------- */
.sl-highlight-group + .sl-highlight-group { margin-top:26px; }
.sl-highlight-group h3 { color:var(--sl-green-dark) !important; }
.sl-highlight-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; margin:0; padding:0; list-style:none; }
.sl-highlight-list li { position:relative; padding-left:24px; font-size:16px; line-height:1.6; }
.sl-highlight-list li::before { content:'✓'; position:absolute; left:0; color:var(--sl-green-mid); font-weight:700; }

/* Location ------------------------------------------------------ */
.sl-location__image { margin:0 0 0; overflow:hidden; background:var(--sl-soft); }
.sl-location__image img { display:block; width:100%; aspect-ratio:16 / 9; object-fit:cover; }
.sl-location__address { display:flex; align-items:flex-start; gap:10px; margin:0 0 24px !important; padding:16px 18px; border:1px solid var(--sl-line); border-top:0; background:#fff; color:var(--sl-green-dark) !important; font-weight:700; }
.sl-location__address svg { flex:0 0 auto; color:var(--sl-gold); }
.sl-location__heading { margin:0 0 10px; color:var(--sl-green-dark) !important; font-size:20px; }
.sl-location__note { margin:18px 0 0 !important; padding:13px 15px; border-left:4px solid var(--sl-gold); background:var(--sl-soft); font-size:14px !important; }
.sl-location > p:last-child { margin-bottom:0; }

/* Amenities ----------------------------------------------------- */
.sl-amenities { display:grid; gap:28px; margin-top:32px; }
.sl-amenity { border:1px solid var(--sl-line); background:#fff; }
.sl-amenity__heading { display:flex; align-items:center; gap:12px; margin:0; padding:14px 16px; border-bottom:1px solid var(--sl-line); color:var(--sl-green-dark) !important; font-size:18px; }
.sl-amenity__icon { display:grid; width:42px; height:42px; flex:0 0 42px; place-items:center; background:var(--sl-soft); color:var(--sl-green-mid); font:700 20px/1 var(--sl-font-body); }
.sl-amenity__icon::before { content:'•'; }
.sl-amenity__icon--education::before { content:'⌂'; }
.sl-amenity__icon--health::before { content:'+'; }
.sl-amenity__icon--food::before { content:'⌑'; }
.sl-amenity__icon--shopping::before { content:'▣'; }
.sl-amenity__icon--transport::before { content:'⇄'; }
.sl-amenity__icon--public::before { content:'◆'; }
.sl-amenity__icon--leisure::before { content:'★'; }
.sl-amenity__panel { padding:10px 16px 16px; }
.sl-amenity__list { margin:0; padding:0; list-style:none; }
.sl-amenity__list li { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px dashed var(--sl-line); color:#334b4b; font-size:16px; line-height:1.5; }
.sl-amenity__list li:last-child { border-bottom:0; }
.sl-amenity__list li span { min-width:0; overflow-wrap:anywhere; }
.sl-amenity__list li strong { flex:0 0 auto; color:var(--sl-green-dark); }
.sl-amenity__more { min-height:44px; margin-top:10px; padding:8px 0; border:0; background:#fff; color:var(--sl-green-dark); cursor:pointer; font:700 15px var(--sl-font-body); text-decoration:underline; }

/* Finance / rental ---------------------------------------------- */
.sl-finance { padding:22px; border:1px solid var(--sl-line); background:var(--sl-soft); }
.sl-finance__rows { display:grid; grid-template-columns:1fr 1fr; column-gap:28px; margin:0; }
.sl-finance__rows div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:11px 0; border-bottom:1px solid var(--sl-line); }
.sl-finance__rows dt { color:var(--sl-muted); font-size:15px; }
.sl-finance__rows dd { margin:0; color:var(--sl-green); font-weight:700; }
.sl-detail .sl-finance__note { margin:16px 0 0; font-size:15px !important; }
.sl-detail .sl-finance__disclaimer { margin:10px 0 0; color:var(--sl-muted) !important; font-size:13px !important; line-height:1.6; }

/* Contact ------------------------------------------------------- */
.sl-detail-contact { min-width:0; padding:28px; border:1px solid var(--sl-line); border-radius:10px; background:#fff; box-shadow:0 10px 28px rgba(1,43,46,.08); scroll-margin-top:24px; }
.sl-detail-body > .sl-detail-contact { float:none !important; width:100% !important; max-width:none !important; min-width:0; justify-self:stretch; }
@media (min-width:992px) {
	.sl-summary,
	.sl-detail-body > .sl-detail-contact {
		position: sticky;
		top: 104px;
		align-self: start;
		z-index: 10;
	}
}
.sl-detail-contact__intro { margin-bottom:20px; }
.sl-detail-contact__intro img { max-width:120px; height:auto; }
.sl-detail-contact__intro h2 { margin:14px 0 8px; font-size:23px; }
.sl-detail-contact__intro p { color:#334b4b; font-size:15px; line-height:1.6; }
.sl-detail-contact__phone a { color:var(--sl-green-dark); font-weight:700; }
.sl-detail-contact form { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.sl-detail-contact label { color:#334b4b; font-size:14px; font-weight:600; }
.sl-detail-contact input,.sl-detail-contact select,.sl-detail-contact textarea { display:block; width:100%; min-height:44px; margin-top:6px; padding:9px; border:1px solid #b9cdca; border-radius:0; background:#fff; color:var(--sl-green); font:inherit; }
.sl-detail-contact textarea { min-height:auto; resize:vertical; }

/* Related + consign --------------------------------------------- */
.sl-detail-related { margin-top:56px; }
.sl-detail-related .sl-listing-card h3 { min-height:0; }
.sl-detail-consign { margin-top:56px; padding:42px; text-align:center; background:var(--sl-green); }
.sl-detail-consign h2,.sl-detail-consign p { color:#fff !important; /* surface-dark */ }
.sl-detail-consign .sl-button { margin:5px; }

/* Sticky mobile CTA --------------------------------------------- */
.sl-detail-sticky { display:none; }
@media (max-width:900px) {
	/* Only shown once the summary CTA has scrolled off — otherwise the same two
	   buttons appear twice on one screen. current-listings.js toggles
	   .is-visible via IntersectionObserver. */
	.sl-detail-sticky.is-visible {
		position:fixed; z-index:var(--sl-z-sticky); right:0; bottom:0; left:0;
		display:flex; gap:10px;
		padding:10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top:1px solid var(--sl-line); background:#fff;
		box-shadow:0 -6px 20px rgba(1,43,46,.12);
	}
	.sl-detail-sticky.is-visible .sl-button { flex:1 1 0; min-width:0; }
	/* Reserve room so the bar never covers the last section. */
	.sl-detail { padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
	body.admin-bar .sl-detail-sticky.is-visible { bottom:0; }
	body.sl-lightbox-open .sl-detail-sticky { display:none !important; }
}

/* Lightbox ------------------------------------------------------ */
.sl-lightbox {
	position:fixed; z-index:var(--sl-z-lightbox); inset:0;
	display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-rows:auto minmax(0,1fr);
	align-items:center; gap:8px; padding:12px;
	background:rgba(1,43,46,.94);
}
.sl-lightbox[hidden] { display:none; }
.sl-lightbox__bar { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.sl-lightbox__counter { margin:0; color:#fff; /* surface-dark */ font-size:15px; font-weight:600; }
.sl-lightbox__close,.sl-lightbox__nav { min-width:48px; min-height:48px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); color:#fff; /* surface-dark */ cursor:pointer; font-size:28px; line-height:1; }
.sl-lightbox__stage { display:flex; align-items:center; justify-content:center; margin:0; min-width:0; min-height:0; height:100%; }
.sl-lightbox__stage img { max-width:100%; max-height:100%; object-fit:contain; }
body.sl-lightbox-open { overflow:hidden; }

/* Responsive ---------------------------------------------------- */
@media (min-width:992px) {
	.sl-detail-hero { grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); }
	.sl-detail-body { grid-template-columns:minmax(0,1.62fr) minmax(0,1fr); }
}
@media (max-width:991px) {
	.sl-detail-hero,.sl-detail-body { grid-template-columns:1fr; gap:26px; }
	.sl-detail-body { margin-top:36px; }
	.sl-gallery__main img { aspect-ratio:16 / 10; }
}
@media (max-width:767px) {
	.sl-detail { padding-top:18px; }
	.sl-detail-crumb { font-size:13px; }
	.sl-summary { padding:20px; }
	.sl-detail-contact { padding:20px; }
	.sl-detail-contact form { grid-template-columns:1fr; }
	.sl-detail-data,.sl-highlight-list,.sl-finance__rows { grid-template-columns:1fr; }
	.sl-detail-data div { padding:12px 0; }
	.sl-detail-consign { padding:30px 18px; }
	.sl-gallery__main img { aspect-ratio:4 / 3; }
	.sl-gallery__thumb { width:84px; height:64px; }
	.sl-summary__cta .sl-button { flex:1 1 100%; }
}
@media (max-width:400px) {
	.sl-detail-sticky.is-visible { padding-left:12px; padding-right:12px; }
	.sl-detail-sticky.is-visible .sl-button { padding:10px 8px; font-size:14px; }
	.sl-lightbox { padding:8px; }
	.sl-lightbox__close,.sl-lightbox__nav { min-width:44px; min-height:44px; font-size:24px; }
}
@media (prefers-reduced-motion: reduce) {
	.sl-detail *,.sl-detail *::before,.sl-detail *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}

/* Shared visual language: image-backed page introduction. */
.sl-market-hero{position:relative;min-height:500px;padding:88px 0 48px;overflow:hidden;background-position:center;background-size:cover}
.sl-market-hero__scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,43,46,.62),rgba(1,43,46,.92))}
.sl-market-hero__content{position:relative;z-index:1}
.sl-market-hero__breadcrumb{display:flex;gap:10px;margin:0 0 20px;color:var(--muted-on-dark);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.sl-market-hero__breadcrumb a{color:var(--muted-on-dark);text-decoration:none}
.sl-market-hero__breadcrumb strong{color:var(--sl-gold)}
.sl-market .sl-market-hero .sl-market-eyebrow{color:var(--sl-gold)}
.sl-market .sl-market-hero h1{max-width:800px;margin-bottom:16px;color:var(--heading-on-dark);font-size:clamp(40px,4.5vw,64px);line-height:1.24}
.sl-market .sl-market-hero .sl-market-intro{max-width:760px;margin:0;color:var(--text-on-dark);font-size:18px;line-height:1.65}
@media(max-width:767px){.sl-market-hero{min-height:410px;padding:58px 0 34px}.sl-market .sl-market-hero h1{font-size:clamp(34px,10vw,46px)}}

/* ============================================================
   SOLUTION 2: Component-based Fluid Framework & Container Queries
   ============================================================ */
.sl-detail-body,
.sl-market-lead {
  container-type: inline-size;
  container-name: detail-container;
}

.sl-component-lead-form {
  box-sizing: border-box;
  width: 100%;
}

.sl-component-lead-form.is-dark-theme {
  color: #ffffff; /* surface-dark */
}

.sl-component-lead-header {
  margin-bottom: 24px;
  text-align: left;
}

.sl-component-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sl-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sl-component-title {
  margin: 0 0 10px;
  font-family: var(--sl-font-heading);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.sl-component-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- Header: biến thể nền TỐI --- */
.sl-component-lead-form.is-dark-theme .sl-component-kicker {
  color: var(--sl-gold, #e2af81) !important; /* surface-dark */
}

.sl-component-lead-form.is-dark-theme .sl-component-title {
  color: #ffffff !important; /* surface-dark */
}

.sl-component-lead-form.is-dark-theme .sl-component-body {
  color: rgba(255, 255, 255, 0.85) !important; /* surface-dark */
}

/* --- Header: biến thể nền SÁNG (card/sidebar trắng) --- */
.sl-component-lead-form:not(.is-dark-theme) .sl-component-kicker {
  color: var(--sl-green-mid, #2f6f6a) !important;
}

.sl-component-lead-form:not(.is-dark-theme) .sl-component-title {
  color: var(--sl-green, #012b2e) !important;
}

.sl-component-lead-form:not(.is-dark-theme) .sl-component-body {
  color: #334b4b !important;
}

.sl-lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  width: 100%;
}

.sl-lead-form-grid .full-width,
.sl-lead-form-grid .sl-button-submit {
  grid-column: 1 / -1;
}

.sl-lead-form-grid .sl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sl-lead-form-grid label {
  display: block;
  font-family: var(--sl-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-lead-form-grid label .required {
  color: #f87171;
  margin-left: 2px;
}

/* Layout/hình khối dùng chung cho cả hai biến thể; MÀU SẮC luôn phải khai báo
   trong khối .is-dark-theme hoặc :not(.is-dark-theme) bên dưới. */
.sl-lead-form-grid input,
.sl-lead-form-grid select,
.sl-lead-form-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 6px;
  font-family: var(--sl-font-body);
  font-size: 14px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
}

.sl-lead-form-grid select {
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  padding-right: 36px !important;
}

.sl-lead-form-grid select option {
  background: #ffffff; /* select option */
  color: #111111 !important;
}

/* =========================================================================
   BIẾN THỂ NỀN TỐI (dark_theme = true) — mặc định của component
   ========================================================================= */
.sl-component-lead-form.is-dark-theme .sl-lead-form-grid label {
  color: var(--sl-gold, #e2af81) !important; /* surface-dark */
}

.sl-component-lead-form.is-dark-theme .sl-lead-form-grid input,
.sl-component-lead-form.is-dark-theme .sl-lead-form-grid select,
.sl-component-lead-form.is-dark-theme .sl-lead-form-grid textarea {
  border: 1px solid rgba(226, 175, 129, 0.35);
  background-color: rgba(255, 255, 255, 0.08) !important; /* surface-dark */
  color: #ffffff !important; /* surface-dark */
}

.sl-component-lead-form.is-dark-theme .sl-lead-form-grid select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23e2af81' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important;
}

.sl-component-lead-form.is-dark-theme .sl-lead-form-grid input::placeholder,
.sl-component-lead-form.is-dark-theme .sl-lead-form-grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.55) !important; /* surface-dark */
}

.sl-component-lead-form.is-dark-theme .sl-lead-form-grid input:focus,
.sl-component-lead-form.is-dark-theme .sl-lead-form-grid select:focus,
.sl-component-lead-form.is-dark-theme .sl-lead-form-grid textarea:focus {
  outline: none;
  border-color: var(--sl-gold, #e2af81) !important;
  box-shadow: 0 0 0 3px rgba(226, 175, 129, 0.25);
  background-color: rgba(255, 255, 255, 0.14) !important; /* surface-dark */
}

/* =========================================================================
   BIẾN THỂ NỀN SÁNG (dark_theme = false) — card/sidebar trắng
   Chữ tối trên nền ô trắng, viền đủ tương phản theo RULE-UI-001.
   ========================================================================= */
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid label {
  color: var(--sl-green, #012b2e) !important;
}

/* border-color dùng !important để thắng rule toàn cục input/select/textarea
   trong bộ CSS cũ; #7d9492 đạt tương phản 3.2:1 trên nền trắng. */
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid input,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid select,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid textarea {
  border: 1px solid #7d9492;
  border-color: #7d9492 !important;
  background-color: #ffffff !important;
  color: #334b4b !important;
}

.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23012b2e' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important;
}

.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid input::placeholder,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid textarea::placeholder {
  color: #5c7373 !important;
  opacity: 1;
}

/* Chrome autofill ép nền xanh nhạt + chữ theo UA → khóa lại màu chữ tối. */
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid input:-webkit-autofill,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid select:-webkit-autofill,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid textarea:-webkit-autofill {
  -webkit-text-fill-color: #334b4b !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid input:focus,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid select:focus,
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid textarea:focus {
  outline: none;
  border-color: var(--sl-green-mid, #2f6f6a) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 106, 0.18);
  background-color: #ffffff !important;
}

.sl-lead-form-grid .sl-button-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px solid var(--sl-gold, #e2af81);
  border-radius: 6px;
  background: var(--sl-gold, #e2af81);
  color: var(--sl-green, #012b2e) !important;
  font-family: var(--sl-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.sl-lead-form-grid .sl-button-submit:hover {
  background: #ffffff; /* button */
  border-color: #ffffff; /* button */
  color: var(--sl-green, #012b2e) !important;
  transform: translateY(-2px);
}

/* Trên card trắng, hover sang trắng sẽ làm nút biến mất — đảo sang nền xanh đậm. */
.sl-component-lead-form:not(.is-dark-theme) .sl-lead-form-grid .sl-button-submit:hover {
  background: var(--sl-green, #012b2e);
  border-color: var(--sl-green, #012b2e);
  color: #ffffff !important; /* button */
}

/* Container Queries Adaptation */
@container detail-container (max-width: 680px) {
  .sl-lead-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sl-lead-form-grid .sl-form-group {
    grid-column: 1;
  }
}

/* FIX 2026-07 — viewport rất nhỏ (320–374px).
   MOB-LIST-001: sàn clamp 34px vẫn tràn với tiêu đề dài không có chỗ ngắt.
   MOB-LIST-002: nhãn tab 2 cột bị chật.
   MOB-LIST-004: giá dạng "12.500.000.000 đồng" không có điểm ngắt. */
@media (max-width:374px) {
	.sl-market .sl-market-hero h1 { font-size:clamp(26px,9vw,34px); overflow-wrap:anywhere; }
	.sl-market-tabs a { padding:12px 6px; font-size:13px; }
}
.sl-summary__price { overflow-wrap:anywhere; }

/* modern-css-extracted:start */
/* Sàn giao dịch route primitives. */
.sunland-template--current-listings main { position: relative; }
.sunland-template--current-listings main p { font-size: 1.25em; line-height: 1.6em; }
