/*
Theme Name: Nhà Đất Mỹ Lợi
Theme URI: https://nhadatmyloi.com/
Author: Nhà Đất Mỹ Lợi
Description: Theme gốc viết tay cho web dịch vụ/sản phẩm: dữ liệu gom trong inc/data.php, schema JSON-LD, form liên hệ lưu đơn, nút liên hệ nổi, không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nhadatmyloi
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   ========================================================================== */
:root {
	--c-primary: #0B3D24;
	--c-primary-dark: #07311A;
	--c-accent: #C8963A;
	--c-accent-dark: #A87A26;
	--c-bg: #ffffff;
	--c-bg-alt: #F6F8F5;
	--c-bg-dark: #07311A;
	--c-text: #10261A;
	--c-text-muted: #4E5E55;
	--c-text-invert: #ffffff;
	--c-border: #DFE7E1;
	--c-price: #D93A2B;

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Lexend", system-ui, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.0625rem;
	--fs-h3: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
	--fs-h2: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
	--fs-h1: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);

	--radius: 16px;
	--radius-sm: 12px;
	--radius-pill: 12px;
	--shadow: 0 10px 15px -3px rgba(16, 38, 26, 0.1), 0 4px 6px -4px rgba(16, 38, 26, 0.1);
	--shadow-sm: 0 1px 2px rgba(16, 38, 26, 0.06);

	--space-section: clamp(3rem, 2.2rem + 3vw, 5rem);
	--container: 1240px;
	--gutter: 16px;
	--header-h: 70px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.65; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.2; margin: 0 0 0.6em; color: inherit; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__eyebrow { display: inline-block; margin-bottom: 0.5rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.8); }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

/* ==========================================================================
   3. Nút
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: var(--c-text-invert); }
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-text-invert); }
.btn--accent { background: var(--c-accent); color: var(--c-bg-dark); }
.btn--accent:hover { color: var(--c-bg-dark); filter: brightness(1.05); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); border-bottom: 1px solid var(--c-border); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--f-heading); font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.35rem); font-weight: 700; line-height: 1.2; color: var(--c-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-text); position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-bg); padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 12px 0; color: var(--c-text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a, .primary-nav .children a { padding-left: 16px; font-weight: 400; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--c-primary); }
.header-cta { display: none; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { position: relative; padding-bottom: 24px; }
.hero__box { position: relative; z-index: 2; margin-top: clamp(-160px, -12vw, -60px); padding: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, #fbfaf6 0%, #fff 40%); border-radius: 24px; box-shadow: var(--shadow); text-align: center; }
.hero__box h1 { max-width: 920px; margin: 0.6rem auto 0.6rem; color: var(--c-primary); text-wrap: balance; }
.hero__lead { max-width: 720px; margin: 0 auto 1.5rem; color: var(--c-text-muted); font-size: var(--fs-lg); }
.hero__btns { justify-content: center; margin-bottom: 2rem; }
.hero__btns .btn--ghost { color: var(--c-primary); }

/* ==========================================================================
   6. Thẻ (dịch vụ, sản phẩm, bài viết)
   ========================================================================== */
.card { display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card__title { margin-bottom: 0.4em; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-text-muted); }
.card__meta { margin-top: auto; font-weight: 600; color: var(--c-primary); }

/* ==========================================================================
   7. Bảng giá
   ========================================================================== */
.pricing { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.pricing--featured { border: 2px solid var(--c-primary); box-shadow: var(--shadow); }
.pricing__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-size: var(--fs-sm); white-space: nowrap; }
.pricing__name { margin-bottom: 0.25rem; }
.pricing__price { font-family: var(--f-heading); font-size: 2rem; font-weight: 700; color: var(--c-primary); }
.pricing__unit { font-size: var(--fs-sm); color: var(--c-text-muted); }
.pricing__items { margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.pricing__items li { padding: 6px 0 6px 24px; border-bottom: 1px dashed var(--c-border); position: relative; }
.pricing__items li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
.pricing .btn { margin-top: auto; }

/* ==========================================================================
   8. Lý do, quy trình, FAQ, album
   ========================================================================== */
.feature { padding: 24px; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-border); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-primary); font-size: 1.5rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; }
.steps h3 { margin-bottom: 0.25em; font-size: var(--fs-lg); font-family: var(--f-body); }
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font-weight: 600; font-size: var(--fs-lg); color: inherit; cursor: pointer; }
.faq__q::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-primary); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 18px; color: var(--c-text-muted); }
.faq__a[hidden] { display: none; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   9. Form
   ========================================================================== */
.form { display: grid; gap: 16px; padding: 24px; background: var(--c-bg); color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 4px; font-weight: 500; font-size: var(--fs-sm); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-text); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: var(--fs-sm); color: var(--c-text-muted); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.notice--ok { background: #e8f6ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   10. Nội dung trang, bài viết
   ========================================================================== */
.page-hero { padding-block: 48px; background: var(--c-bg-alt); }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 8px; }
.breadcrumb a { color: inherit; }
.entry { max-width: 780px; margin-inline: auto; }
/* Canh đều đoạn văn dài cho cân đối; dòng cuối canh trái; ô bảng/chú thích ảnh giữ canh trái. */
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry img { border-radius: var(--radius-sm); }
.entry h2 { margin-top: 1.6em; }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ==========================================================================
   11. CTA + Footer
   ========================================================================== */
.cta-band { padding-block: 56px; background: var(--c-primary); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band .btn-group { justify-content: center; }
.site-footer { padding-top: 56px; background: var(--c-bg-dark); color: rgba(255, 255, 255, 0.82); font-size: var(--fs-sm); }
.site-footer a { color: inherit; }
.site-footer h3 { color: #fff; font-size: var(--fs-lg); font-family: var(--f-body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__bottom { margin-top: 40px; padding-block: 20px; padding-bottom: 88px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }

/* ==========================================================================
   12. Nút liên hệ nổi — mobile: thanh dưới đáy; desktop: cột nút tròn góc phải
   ========================================================================== */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-bg); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.float-contact__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.75rem; font-weight: 600; color: #fff; text-decoration: none; }
.float-contact__btn:hover { color: #fff; }
.float-contact__btn svg { width: 22px; height: 22px; fill: currentColor; }
.float-contact__phone { background: var(--c-primary); }
.float-contact__zalo { background: #0068ff; }
.float-contact__mess { background: #a033ff; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
	.site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.nav-toggle { display: none; }
	.primary-nav { position: static; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 4px; }
	.primary-nav a { padding: 10px 12px; border: 0; }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px 0; background: var(--c-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
	.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 8px 16px; white-space: nowrap; }
	.primary-nav a { white-space: nowrap; }
	.header-cta { display: inline-flex; }
	.float-contact { left: auto; right: 20px; bottom: 20px; grid-auto-flow: row; gap: 12px; background: none; box-shadow: none; }
	.float-contact__btn { width: 56px; height: 56px; min-height: 0; border-radius: 50%; box-shadow: var(--shadow); }
	.float-contact__btn span { display: none; }
	.site-footer__bottom { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   14. Phong cách Nhà Đất Mỹ Lợi (học bố cục mẫu: thẻ bo lớn, nhãn pill, giá đè ảnh)
   ========================================================================== */
h1, h2, h3 { color: var(--c-text); font-weight: 700; }
h3 { font-weight: 600; }
.section--dark h2, .section--dark h3, .cta-band h2 { color: #fff; }
.center { text-align: center; margin-top: 2rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(200, 150, 58, 0.14); color: var(--c-accent-dark); font-size: 0.8125rem; font-weight: 600; }
.section--dark .pill { background: rgba(255, 255, 255, 0.12); color: #F1D9A6; }
.section__eyebrow { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: rgba(200, 150, 58, 0.14); color: var(--c-accent-dark); font-size: 0.8125rem; letter-spacing: 0.04em; }
.section--dark .section__eyebrow { background: rgba(255, 255, 255, 0.12); color: #F1D9A6; }
.section__head h2 { margin-top: 0.5rem; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; }
.section__head--row > div { max-width: 720px; }
.section__lead { font-size: var(--fs-base); }

/* Nút */
.btn { border-radius: var(--radius-pill); font-size: 0.9375rem; font-weight: 600; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn--line { border-color: var(--c-border); background: #fff; color: var(--c-primary); }
.btn--line:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; filter: none; }
.btn .icon { width: 18px; height: 18px; }

/* Header */
.site-header { border-bottom-color: transparent; box-shadow: var(--shadow-sm); }
.site-logo { gap: 10px; }
.site-logo__mark { flex: none; border-radius: 12px; box-shadow: 0 4px 10px rgba(11, 61, 36, 0.18); }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__top { font-family: var(--f-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-accent-dark); }
.site-logo__name { margin-top: 3px; font-family: var(--f-heading); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; color: var(--c-primary); }
.site-logo--invert .site-logo__name { color: #fff; }
.site-logo--invert .site-logo__top { color: #E6C487; }
.primary-nav a { font-size: 0.9375rem; }
.header-cta { background: var(--c-accent); }
.header-cta:hover { background: var(--c-accent-dark); }

/* Lối tắt trong hero */
.shortcuts { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; text-align: left; }
.shortcut { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.shortcut:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--c-text); }
.shortcut__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #1E6B43, var(--c-primary)); }
.shortcut__icon--2 { background: linear-gradient(135deg, #DDB062, var(--c-accent-dark)); }
.shortcut__icon--3 { background: linear-gradient(135deg, #2F8A5C, #145A36); }
.shortcut__icon--4 { background: linear-gradient(135deg, #E25B4A, #B9301F); }
.shortcut__icon .icon { width: 22px; height: 22px; }
.shortcut__title { display: block; font-family: var(--f-heading); font-weight: 600; font-size: 0.98rem; }
.shortcut__text { display: block; font-size: 0.8125rem; color: var(--c-text-muted); line-height: 1.4; }

/* Thẻ nhà */
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.listing__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-alt); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.listing:hover .listing__media img { transform: scale(1.04); }
.listing__media::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6)); }
.listing__tags { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 0.75rem; font-weight: 600; }
.tag + .tag { background: var(--c-primary); }
.listing__price { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-family: var(--f-heading); font-size: 1.6rem; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.listing__title { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.4; }
.listing__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--c-text-muted); }
.listing__meta li { display: inline-flex; align-items: center; gap: 6px; }
.listing__meta .icon { width: 16px; height: 16px; color: var(--c-accent-dark); }
.listing__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.listing__note { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--c-text-muted); text-align: center; }

/* Dịch vụ */
.feature { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #1E6B43, var(--c-primary)); color: #fff; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature p { color: var(--c-text-muted); }
.feature__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; text-decoration: none; }
.feature__more .icon { width: 16px; height: 16px; }

/* Quy trình */
.steps-grid { counter-reset: step; display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.steps-grid li { counter-increment: step; position: relative; padding: 22px 20px 18px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.steps-grid li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: var(--f-heading); font-size: 1.75rem; font-weight: 700; color: var(--c-accent); line-height: 1; }
.steps-grid h3 { margin-bottom: 0.3em; font-size: 1rem; }
.steps-grid p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); }

/* Tuyến đường */
.routes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.route { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 10px; background: #fff; border: 1px solid var(--c-border); border-radius: 999px; font-weight: 600; color: var(--c-primary); }
.route__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(200, 150, 58, 0.14); color: var(--c-accent-dark); }
.route__icon .icon { width: 18px; height: 18px; }

/* Giới thiệu */
.about__media img { width: 100%; max-width: 520px; margin-inline: auto; border-radius: 24px; box-shadow: var(--shadow); }
.about__text p { color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.5rem 0; }
.stat { padding: 16px; border-radius: var(--radius); background: var(--c-bg-alt); }
.stat strong { display: block; font-family: var(--f-heading); font-size: 1.5rem; color: var(--c-primary); }
.stat span { font-size: 0.875rem; color: var(--c-text-muted); }

/* Đánh giá + form: nền xanh đậm gradient như khối CTA của mẫu */
.section--dark { background: radial-gradient(1200px 500px at 85% 0%, #145A36 0%, transparent 60%), linear-gradient(135deg, #0B3D24 0%, #062817 100%); }
.review { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.review__icon { color: var(--c-accent); }
.review__icon .icon { width: 32px; height: 32px; }
.review blockquote { margin: 0; color: rgba(255, 255, 255, 0.9); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.review figcaption strong { color: #fff; font-size: 1rem; }

/* FAQ, form, CTA */
.faq__item { margin-bottom: 12px; padding: 0 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.faq__q { font-family: var(--f-heading); font-weight: 500; font-size: 1rem; }
.form input, .form select, .form textarea { border-radius: 10px; }
.cta-band { background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%); }
.cta-band .btn--accent { background: #fff; color: var(--c-primary); }
.cta-band .btn--ghost { color: #fff; }

/* Footer */
.site-footer { background: #062817; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.site-footer .site-logo { margin-bottom: 1rem; }
.site-footer h3 { font-family: var(--f-heading); font-size: 1rem; }
.site-footer p { text-align: justify; text-align-last: left; }

@media (min-width: 768px) {
	.steps-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
	.shortcuts { grid-template-columns: repeat(4, 1fr); }
	.steps-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
	.shortcuts { grid-template-columns: 1fr; }
	.hero__btns .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   15. Logo mới, khối tìm nhà để ở, thẻ thương hiệu
   ========================================================================== */
.budgets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.budget { padding: 12px 22px; border-radius: 999px; background: #fff; border: 1.5px solid var(--c-border); font-family: var(--f-heading); font-weight: 600; color: var(--c-primary); text-decoration: none; transition: 0.2s; }
.budget:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-2px); }
.buyer { display: grid; gap: 24px; grid-template-columns: 1fr; }
.buyer__needs { display: grid; gap: 16px; grid-template-columns: 1fr; }
.need { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.need__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(200, 150, 58, 0.14); color: var(--c-accent-dark); }
.need__icon .icon { width: 24px; height: 24px; }
.need h3 { margin-bottom: 0.25em; font-size: 1rem; }
.need p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); }
.checklist { padding: 28px; border-radius: var(--radius); color: #fff; background: radial-gradient(600px 300px at 100% 0%, #145A36 0%, transparent 70%), linear-gradient(135deg, #0B3D24, #062817); }
.checklist h3 { color: #fff; font-size: 1.1rem; }
.checklist ol { counter-reset: ck; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.checklist li { counter-increment: ck; position: relative; padding: 8px 0 8px 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); }
.checklist li::before { content: counter(ck); position: absolute; left: 0; top: 7px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 0.8rem; font-weight: 700; }
.feature--featured { background: linear-gradient(160deg, #0B3D24, #145A36); border-color: transparent; color: #fff; }
.feature--featured h3 { color: #fff; }
.feature--featured p { color: rgba(255, 255, 255, 0.85); }
.feature--featured .feature__icon { background: var(--c-accent); }
.feature--featured .feature__more { color: #F1D9A6; }
.brand-card { position: relative; max-width: 460px; margin-inline: auto; padding: 40px 32px; border-radius: 24px; text-align: center; color: #fff; background: radial-gradient(500px 260px at 100% 0%, #1E6B43 0%, transparent 70%), linear-gradient(150deg, #0B3D24, #062817); box-shadow: var(--shadow); overflow: hidden; }
.brand-card::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border: 2px solid rgba(200, 150, 58, 0.35); border-radius: 50%; }
.brand-card .site-logo__mark { margin: 0 auto 16px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
.brand-card__name { margin: 0; font-family: var(--f-heading); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.brand-card__name span { display: block; font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: #E6C487; }
.brand-card__motto { margin: 12px 0 18px; color: rgba(255, 255, 255, 0.85); }
.brand-card__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.brand-card__list li { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.8125rem; }
.brand-card__phone { display: inline-block; padding: 10px 22px; border-radius: 12px; background: var(--c-accent); color: #fff; font-family: var(--f-heading); font-weight: 600; text-decoration: none; }
.brand-card__phone:hover { color: #fff; background: var(--c-accent-dark); }
@media (min-width: 768px) {
	.buyer__needs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.buyer { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

/* ==========================================================================
   16. Banner thương hiệu (học bố cục banner mẫu: nền đậm + đường cong + tiêu đề 2 tầng + ribbon + khối logo/hotline)
   ========================================================================== */
.hero__banner { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 480px at 78% 30%, #1A6A42 0%, transparent 65%), linear-gradient(120deg, #062817 0%, #0B3D24 45%, #0F4A2D 100%); }
.hero__bg { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; opacity: 0.38; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.hero__swoosh, .hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__banner-inner { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 96px; text-align: center; }
.banner__text { min-width: 0; }
.banner__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #E9C77E; }
.banner__kicker::before, .banner__kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.banner__title { margin: 0; font-family: var(--f-heading); font-weight: 700; font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35); text-wrap: balance; }
.banner__hl { display: block; background: linear-gradient(180deg, #F6DFA6 0%, #D9AA52 60%, #B98731 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35)); }
.banner__sub { margin: 12px 0 18px; font-style: italic; font-weight: 500; font-size: clamp(1rem, 0.85rem + 0.8vw, 1.45rem); color: rgba(255, 255, 255, 0.92); }
.banner__ribbon { display: inline-block; margin: 0; padding: 0 14px; transform: rotate(-2deg); }
.banner__ribbon span { display: inline-block; padding: 8px 26px; font-weight: 700; font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.1rem); color: #10261A; background: linear-gradient(90deg, rgba(217, 170, 82, 0) 0%, #E9C77E 12%, #D9AA52 50%, #E9C77E 88%, rgba(217, 170, 82, 0) 100%); clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); }
.banner__brand { display: none; }
.banner__emblem { padding: 22px 26px 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.96); color: var(--c-text); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(233, 199, 126, 0.35); text-align: center; }
.banner__emblem .site-logo__mark { margin: 0 auto 10px; }
.banner__name { margin: 0; font-family: var(--f-heading); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--c-primary); }
.banner__name span { display: block; margin-bottom: 4px; font-family: var(--f-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-accent-dark); }
.banner__tagline { margin: 8px 0 0; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--c-text-muted); }
.banner__hotline { display: block; margin-top: 14px; padding: 10px 16px; border: 1.5px solid rgba(233, 199, 126, 0.8); border-radius: 14px; background: rgba(6, 40, 23, 0.55); color: #fff; text-decoration: none; text-align: center; backdrop-filter: blur(4px); }
.banner__hotline:hover { color: #fff; border-color: #E9C77E; background: rgba(6, 40, 23, 0.75); }
.banner__services { display: block; font-size: 0.85rem; font-weight: 600; }
.banner__phone { display: block; margin-top: 2px; font-size: 0.95rem; }
.banner__phone strong { color: #E9C77E; font-family: var(--f-heading); font-size: 1.15rem; }
.hero__box { margin-top: -72px; }

@media (min-width: 1024px) {
	.hero__banner-inner { grid-template-columns: 1fr 300px; gap: 48px; min-height: 500px; padding-top: 40px; padding-bottom: 170px; text-align: left; }
	.banner__kicker::before { display: none; }
	.banner__ribbon { padding: 0; margin-left: -6px; }
	.banner__brand { display: block; }
	.hero__box { margin-top: -150px; }
}
@media (max-width: 1023px) {
	.hero__bg { width: 100%; opacity: 0.22; -webkit-mask-image: none; mask-image: none; }
}

/* Banner — tinh chỉnh vòng 2 */
.banner__ribbon span { white-space: nowrap; }
@media (max-width: 480px) {
	.banner__ribbon span { padding: 7px 18px; font-size: 0.8rem; }
	.banner__sub { font-size: 0.95rem; }
}

/* ==========================================================================
   17. Banner sáng hơn — ảnh phố hiện màu thật bên phải, xanh tươi bên trái
   ========================================================================== */
.hero__banner { background: #148050; }
.hero__bg { z-index: 0; width: 100%; opacity: 1; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
.hero__banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11, 78, 46, 0.96) 0%, rgba(20, 120, 72, 0.9) 36%, rgba(24, 128, 78, 0.45) 60%, rgba(24, 128, 78, 0.05) 82%); }
.hero__swoosh, .hero__stars { z-index: 1; }
.hero__swoosh path:first-child { fill: #ffffff; opacity: 0.08; }
.hero__banner-inner { z-index: 2; }
.banner__kicker { color: #FBE3A8; }
.banner__hl { background: linear-gradient(180deg, #FFF1C9 0%, #F2CD7A 55%, #DDA74A 100%); -webkit-background-clip: text; background-clip: text; }
.banner__hotline { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 236, 190, 0.9); }
.banner__hotline:hover { background: rgba(255, 255, 255, 0.24); }
@media (max-width: 1023px) {
	.hero__banner::before { background: linear-gradient(180deg, rgba(14, 90, 54, 0.8) 0%, rgba(24, 128, 78, 0.68) 100%); }
}

/* ==========================================================================
   18. Thanh lọc tìm nhà
   ========================================================================== */
.filter { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 12px; background: #fff; border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow); text-align: left; }
.filter__field label { display: block; margin: 0 0 4px 4px; font-size: 0.75rem; font-weight: 600; color: var(--c-text-muted); }
.filter select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg-alt); color: var(--c-text); font-size: 0.9375rem; }
.filter select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11, 61, 36, 0.12); }
.filter__btn { grid-column: 1 / -1; min-height: 46px; }
.filter--hero { max-width: 1000px; margin: 0 auto 1.75rem; }
.filter--page { margin-bottom: 1.25rem; }

.ward-chips { display: flex; gap: 8px; margin-bottom: 1rem; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.ward-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; color: var(--c-text); font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ward-chip span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-bg-alt); font-size: 0.75rem; text-align: center; color: var(--c-text-muted); }
.ward-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.ward-chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.ward-chip.is-active span { background: rgba(255, 255, 255, 0.2); color: #fff; }
.listing-count { margin-bottom: 1rem; font-size: 0.9rem; color: var(--c-text-muted); }
.empty-state { padding: 40px 20px; border: 1px dashed var(--c-border); border-radius: 16px; background: var(--c-bg-alt); text-align: center; }
.center-btns { justify-content: center; }
.center-btns .btn--ghost { color: var(--c-primary); }
.listing__ward { display: inline-block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-accent-dark); }
.listing__title a { color: inherit; text-decoration: none; }
.listing__title a:hover { color: var(--c-primary); }

/* Thẻ phường trên trang chủ */
.wards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 2.5rem; }
.ward { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border: 1px solid var(--c-border); border-radius: 16px; background: #fff; text-align: center; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.ward:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.ward__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1E8A56, var(--c-primary)); }
.ward__icon--2 { background: linear-gradient(135deg, #E8BE6E, var(--c-accent-dark)); }
.ward__icon--3 { background: linear-gradient(135deg, #2FA36B, #17704A); }
.ward__icon--4 { background: linear-gradient(135deg, #3B9BD6, #1F6FA8); }
.ward__icon .icon { width: 24px; height: 24px; }
.ward__name { font-family: var(--f-heading); font-weight: 600; color: var(--c-text); }
.ward__count { font-size: 0.8125rem; color: var(--c-text-muted); }
.routes__title { margin: 0 0 12px; text-align: center; font-weight: 600; color: var(--c-text-muted); }

/* Trang chi tiết căn nhà */
.detail { display: grid; gap: 32px; align-items: start; }
.detail__media img { width: 100%; border-radius: 16px; }
.detail__price { margin: 0; font-family: var(--f-heading); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; color: var(--c-price); }
.detail__table { width: 100%; margin: 20px 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: #fff; }
.detail__table th, .detail__table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); text-align: left; }
.detail__table tr:last-child th, .detail__table tr:last-child td { border-bottom: 0; }
.detail__table th { width: 34%; background: var(--c-bg-alt); font-weight: 600; color: var(--c-text-muted); }
.detail__entry { max-width: none; }
.detail__box { margin-bottom: 16px; padding: 20px; border-radius: 16px; background: var(--c-bg-alt); }
.detail__box-title { margin-bottom: 12px; font-family: var(--f-heading); font-weight: 700; }
.detail__btns .btn--ghost { color: var(--c-primary); }

@media (min-width: 1024px) {
	.filter { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
	.filter__btn { grid-column: auto; padding-inline: 28px; }
	.detail { grid-template-columns: 1.6fr 1fr; }
	.detail__side { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ==========================================================================
   19. Video YouTube
   ========================================================================== */
.btn--yt { background: #E62117; color: #fff; }
.btn--yt:hover { background: #C41A11; color: #fff; }
.vcard { display: flex; flex-direction: column; min-width: 0; }
.vcard[hidden] { display: none; }
.vcard__media { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; cursor: pointer; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.3s; }
.vcard__media:hover img { transform: scale(1.04); opacity: 0.9; }
.vcard__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 40px; border-radius: 12px; background: #E62117; color: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.vcard__media:hover .vcard__play { transform: translate(-50%, -50%) scale(1.1); }
.vcard__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 0.75rem; font-weight: 600; }
.vcard__body { padding: 10px 2px 0; }
.vcard__title { display: -webkit-box; margin: 0 0 4px; overflow: hidden; font-size: 0.95rem; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vcard__meta { margin: 0; font-size: 0.8125rem; color: var(--c-text-muted); }
.vcard--big .vcard__play { width: 76px; height: 54px; border-radius: 16px; }
.vcard--big .vcard__title { font-size: 1.15rem; -webkit-line-clamp: 3; }
.video-home { display: grid; gap: 20px; }
.video-home__list { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.section--video .vcard__title { color: #fff; }
.section--video .vcard__meta { color: rgba(255, 255, 255, 0.7); }
.section--video .section__lead { color: rgba(255, 255, 255, 0.85); }
.section--video .btn--primary { background: var(--c-accent); }
.section--video .btn--primary:hover { background: var(--c-accent-dark); }
.video-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1.5rem; }
.video-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.video-chips .ward-chip { cursor: pointer; font: inherit; font-size: 0.875rem; }
.video-grid { row-gap: 28px; }
.vmodal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.88); }
.vmodal__inner { position: relative; width: min(1000px, 100%); }
.vmodal__frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; }
.vmodal__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vmodal__yt { display: inline-block; margin-top: 10px; color: #fff; font-size: 0.875rem; }
.vmodal__yt:hover { color: #E9C77E; }
@media (min-width: 1024px) {
	.video-home { grid-template-columns: 1.35fr 1fr; align-items: start; }
}
@media (max-width: 480px) {
	.video-home__list { grid-template-columns: 1fr; }
}

/* Thẻ nhà: hiện đủ cả tấm ảnh 16:9 (không cắt), giá thành nhãn gọn ở góc, không phủ tối */
.listing__media { aspect-ratio: 16 / 9; }
.listing__media img { object-fit: contain; background: #fff; }
.listing__media::after { display: none; }
.listing__price { left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 10px; background: var(--c-primary); font-size: 1.05rem; text-shadow: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.listing:hover .listing__media img { transform: scale(1.02); }
/* Giá + nhãn nằm dưới ảnh (ảnh không bị che) */
.listing__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.listing__top .listing__price { position: static; padding: 0; margin-right: 4px; background: none; box-shadow: none; font-size: 1.35rem; color: var(--c-price); }
.listing__top .tag { background: rgba(200, 150, 58, 0.14); color: var(--c-accent-dark); }
.listing__top .tag + .tag { background: rgba(11, 61, 36, 0.08); color: var(--c-primary); }

/* ==========================================================================
   20. Tối ưu điện thoại — trang gọn, dãy dài thành hàng vuốt ngang
   ========================================================================== */
.m-scroll-hint { display: none; }
@media (max-width: 767px) {
	:root { --space-section: 2.75rem; --fs-h2: 1.5rem; }
	.section__head { margin-bottom: 1.5rem; }
	.section__lead { font-size: 0.9375rem; line-height: 1.55; }

	/* Hàng vuốt ngang */
	.m-scroll { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.m-scroll::-webkit-scrollbar { display: none; }
	.m-scroll > * { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
	.m-scroll--auto > * { flex: 0 0 auto; }
	.m-scroll-hint { display: block; margin: -4px 0 0; font-size: 0.8125rem; color: var(--c-text-muted); text-align: right; }

	/* Đầu trang */
	.hero__banner-inner { padding-top: 22px; padding-bottom: 84px; gap: 0; }
	.banner__kicker { font-size: 0.7rem; margin-bottom: 6px; }
	.banner__title { font-size: 1.65rem; }
	.banner__sub { margin: 8px 0 12px; font-size: 0.9rem; }
	.hero__box { padding: 20px 16px; border-radius: 20px; }
	.hero__box h1 { font-size: 1.35rem; line-height: 1.3; }
	.hero__lead { font-size: 0.9375rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.filter { padding: 10px; gap: 8px; }
	.filter select { min-height: 42px; font-size: 0.875rem; padding: 0 8px; }
	.filter--hero { margin-bottom: 1rem; }
	.shortcuts { grid-template-columns: 1fr 1fr; gap: 8px; }
	.shortcut { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.shortcut__icon { width: 38px; height: 38px; border-radius: 10px; }
	.shortcut__icon .icon { width: 20px; height: 20px; }
	.shortcut__title { font-size: 0.875rem; line-height: 1.3; }
	.shortcut__text { display: none; }

	/* Thẻ nhà */
	.listing .card__body { padding: 14px; }
	.listing__top .listing__price { font-size: 1.2rem; }
	.listing__title { font-size: 0.9375rem; }
	.listing__meta { margin-bottom: 0.75rem; font-size: 0.8125rem; gap: 4px 12px; }
	.listing__actions .btn { min-height: 40px; }

	/* Phường: lưới 2 cột gọn */
	.wards { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.75rem; }
	.ward { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; row-gap: 0; align-items: center; padding: 10px 12px; text-align: left; }
	.ward__icon { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; }
	.ward__icon .icon { width: 18px; height: 18px; }
	.ward__name { font-size: 0.9rem; line-height: 1.25; }
	.ward__count { font-size: 0.75rem; }
	.routes { justify-content: flex-start; }
	.route { padding: 8px 14px 8px 8px; font-size: 0.875rem; white-space: nowrap; }
	.route__icon { width: 26px; height: 26px; }

	/* Video */
	.section--video .btn-group .btn { flex: 1 1 auto; }
	.video-home { gap: 16px; }
	.vcard--big .vcard__title { font-size: 1rem; }
	.vcard__title { font-size: 0.875rem; }

	/* Nhu cầu gia đình */
	.budgets { gap: 8px; margin-bottom: 1.25rem; }
	.budget { padding: 10px 16px; font-size: 0.9rem; }
	.need { flex-direction: column; gap: 10px; padding: 16px; }
	.checklist { padding: 22px 18px; }

	/* Dịch vụ: 2 cột, thẻ chính trải ngang */
	#dich-vu .grid--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
	#dich-vu .feature { padding: 14px; }
	#dich-vu .feature--featured, #dich-vu .feature:last-child:nth-child(even) { grid-column: 1 / -1; }
	#dich-vu .feature__icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; }
	#dich-vu .feature__icon .icon { width: 20px; height: 20px; }
	#dich-vu .feature h3 { font-size: 0.9375rem; margin-bottom: 0.3em; }
	#dich-vu .feature p { display: -webkit-box; margin-bottom: 0.5rem; font-size: 0.8125rem; line-height: 1.5; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	#dich-vu .feature--featured p { -webkit-line-clamp: unset; }
	#dich-vu .feature__more { font-size: 0.8125rem; }

	/* Giới thiệu */
	.brand-card { padding: 28px 20px; }
	.brand-card .site-logo__mark { width: 64px; height: 64px; }
	.brand-card__name { font-size: 1.6rem; }
	.stats { margin: 1rem 0; }
	.stat strong { font-size: 1.2rem; }

	/* Quy trình: 2 cột */
	.steps-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.steps-grid li { padding: 14px 12px 12px; }
	.steps-grid li::before { font-size: 1.35rem; margin-bottom: 4px; }
	.steps-grid h3 { font-size: 0.875rem; }
	.steps-grid p { font-size: 0.78rem; line-height: 1.45; }

	/* FAQ + form + chân trang */
	.faq__item { padding: 0 14px; margin-bottom: 8px; }
	.faq__q { padding: 14px 0; font-size: 0.9375rem; }
	.form { padding: 18px; gap: 12px; }
	.cta-band { padding-block: 40px; }
	.cta-band h2 { font-size: 1.35rem; }
	.site-footer { padding-top: 40px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	.site-footer__grid > div:first-child { grid-column: 1 / -1; }
	.site-footer__grid > div:last-child { grid-column: 1 / -1; }
}

/* Khối phường kết thúc gọn khi không còn dãy tuyến đường bên dưới */
.wards:last-child { margin-bottom: 0; }
/* Phường: căn giữa hàng cuối cho cân đối (11 phường → 6 + 5 trên máy tính); tiêu đề khối chia dòng đều */
.section__head h2 { text-wrap: balance; }
.wards { display: flex; flex-wrap: wrap; justify-content: center; }
.wards .ward { flex: 0 0 calc((100% - 5 * 12px) / 6); }
@media (max-width: 1023px) { .wards .ward { flex-basis: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 767px) { .wards .ward { flex-basis: calc((100% - 8px) / 2); } }
