/*
Theme Name: BĐS Vũng Áng
Theme URI: https://example.com/
Author: TN
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: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bds-vung-ang
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   ========================================================================== */
:root {
	/* Màu lấy từ logo BĐS Vũng Áng; nhịp trắng – đen – nền nhạt học từ mẫu */
	--c-primary: #1a6b2a;
	--c-primary-dark: #124d1e;
	--c-accent: #f5e11b;
	--c-red: #e30613;
	--c-bg: #ffffff;
	--c-bg-alt: #f2f2f2;          /* nền xám nhạt kiểu cổng tin BĐS */
	--c-bg-soft: #edf6ee;         /* nền xanh rất nhạt (nhãn, ô thông số) */
	--c-bg-dark: #0b1f10;
	--c-text: #2c2c2c;
	--c-text-muted: #707070;
	--c-text-invert: #ffffff;
	--c-border: #e1e1e1;
	--c-price: #e03c31;           /* giá: đỏ đậm như thói quen đọc tin BĐS */

	--f-body: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: Lexend, Roboto, system-ui, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	--fs-h1: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
	--fw-heading: 500;

	--radius: 8px;
	--radius-sm: 6px;
	--radius-pill: 999px;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

	--space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	--container: 1200px;
	--gutter: 16px;
	--header-h: 72px;
}

/* ==========================================================================
   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); font-weight: var(--fw-heading); line-height: 1.25; 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: 760px; margin: 0 0 2rem; text-align: left; }
.section__eyebrow { display: inline-block; margin-bottom: 0.75rem; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--c-bg-soft); font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary); }
.section--alt .section__eyebrow { background: #fff; }
.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; }
.site-logo img { width: 48px; height: 48px; flex: none; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__text small { font-size: 0.7rem; font-weight: 500; color: var(--c-text-muted); }
.header-cta { align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill); background: #f3f4f6; color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--c-primary); color: #fff; }
.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; display: flex; align-items: center; min-height: min(88vh, 760px); padding-block: 80px; color: var(--c-text-invert); background: var(--c-bg-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25)); }
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__badge { display: inline-block; margin-bottom: 1rem; padding: 6px 14px; border: 1px solid var(--c-accent); border-radius: var(--radius-pill); color: var(--c-accent); font-size: var(--fs-sm); }
.hero__lead { font-size: var(--fs-lg); opacity: 0.9; }
.hero__price { margin: 1.25rem 0 1.75rem; font-size: 1.25rem; }
.hero__price strong { color: var(--c-accent); font-size: 1.6rem; }

/* Hero căn giữa nền trắng + dải ảnh cong (phong cách mẫu) */
.hero--center { display: block; min-height: 0; padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 0; background: var(--c-bg); color: var(--c-text); text-align: center; }
.hero--center::after { content: none; }
.hero--center .hero__content { max-width: 960px; margin-inline: auto; }
.hero--center .hero__badge { border-color: var(--c-border); background: var(--c-bg-alt); color: var(--c-primary); font-weight: 600; }
.hero__title { margin-bottom: 0.45em; text-wrap: balance; }
.hero__accent { color: var(--c-primary); }
.hero--center .hero__lead { max-width: 760px; margin: 0 auto 2rem; color: var(--c-text-muted); opacity: 1; font-size: var(--fs-base); text-align: center; }
.hero__actions { justify-content: center; }

.btn-arrow { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 22px 4px 4px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); text-decoration: none; transition: transform 0.2s, background 0.2s; }
.btn-arrow:hover { transform: translateY(-2px); color: var(--c-text); }
.btn-arrow__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: transform 0.2s; }
.btn-arrow:hover .btn-arrow__icon { transform: rotate(-45deg); }
.btn-arrow--dark { background: #f3f4f6; }
.btn-arrow--dark .btn-arrow__icon { background: #111; }
.btn-arrow--brand { background: var(--c-bg-alt); }
.btn-arrow--brand .btn-arrow__icon { background: var(--c-primary); }

.hero-strip { position: relative; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); overflow: hidden; }
/* Mép trên cong: một elip trắng phủ lên đầu dải ảnh */
.hero-strip::before { content: ""; position: absolute; z-index: 1; left: -10%; right: -10%; top: -70px; height: 110px; background: var(--c-bg); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.hero-strip__track { display: flex; gap: 16px; width: max-content; padding-top: 24px; animation: bva-strip 50s linear infinite; }
.hero-strip:hover .hero-strip__track { animation-play-state: paused; }
.hero-strip__item { flex: none; width: clamp(240px, 22vw, 380px); aspect-ratio: 4 / 5; margin: 0; border-radius: 6px; overflow: hidden; background: var(--c-bg-alt); }
.hero-strip__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bva-strip { to { transform: translateX(-50%); } }

/* Lô đất nổi bật */
.listing { display: grid; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); box-shadow: var(--shadow); }
.listing__media { position: relative; min-height: 240px; background: var(--c-bg-alt); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; }
.listing__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 240px; background: repeating-linear-gradient(135deg, var(--c-bg-alt) 0 18px, #e3efe3 18px 36px); color: var(--c-primary); }
.listing__placeholder span { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; }
.listing__placeholder small { color: var(--c-text-muted); }
.listing__status { position: absolute; top: 16px; left: 16px; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.listing__status.is-sold { background: var(--c-red); }
.listing__body { padding: 24px; }
.listing__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 1rem; }
.listing__specs div { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--c-bg-alt); }
.listing__specs dt { font-size: 0.75rem; color: var(--c-text-muted); }
.listing__specs dd { margin: 0; font-weight: 600; }
.listing__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.listing__price { font-size: 1.75rem; font-weight: 700; color: var(--c-red); line-height: 1.1; }
.listing__price small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--c-text-muted); }

/* ==========================================================================
   Kiểu cổng tin BĐS: banner + ô tìm lô, tiêu đề khối trái, lưới thẻ tin, ô địa điểm
   ========================================================================== */
body { background: var(--c-bg-alt); }
main > .section:not(.section--alt):not(.section--dark):not(.section--tight) { background: var(--c-bg); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section--white { background: var(--c-bg); }

.header-post { display: none; align-items: center; padding: 8px 16px; border: 1px solid var(--c-primary); border-radius: var(--radius); color: var(--c-primary); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-post:hover { background: var(--c-primary); color: #fff; }
.primary-nav a { font-family: var(--f-heading); font-weight: 400; font-size: 0.95rem; }

.hero-search { position: relative; padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0; background: var(--c-bg-dark); color: #fff; overflow: hidden; }
.hero-search__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-search::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 14, 0.55), rgba(8, 30, 14, 0.8)); }
.hero-search__inner { position: relative; z-index: 1; max-width: 960px; }
.hero-search__title { margin-bottom: 0.3em; text-align: center; text-wrap: balance; }
.hero-search__lead { max-width: 680px; margin: 0 auto 1.5rem; text-align: center; opacity: 0.9; }

.search-box { padding: 0 16px 16px; border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.search-box__tabs { display: flex; gap: 4px; margin: 0 -16px 16px; padding: 0 8px; border-bottom: 1px solid var(--c-border); overflow-x: auto; }
.search-box__tab { position: relative; flex: none; cursor: pointer; }
.search-box__tab input { position: absolute; opacity: 0; }
.search-box__tab span { display: block; padding: 14px 12px; font-family: var(--f-heading); font-size: var(--fs-sm); color: var(--c-text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.search-box__tab input:checked + span { color: var(--c-text); font-weight: 500; border-color: var(--c-primary); }
.search-box__tab input:focus-visible + span { outline: 2px solid var(--c-primary); }
.search-box__row { display: grid; gap: 10px; margin-bottom: 10px; }
.search-box__field { display: block; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.search-box__field span { display: block; font-size: 0.72rem; color: var(--c-text-muted); }
.search-box__field select, .search-box__field input { width: 100%; padding: 2px 0; border: 0; background: transparent; color: var(--c-text); font-size: var(--fs-base); outline: none; }
.search-box__field:focus-within { border-color: var(--c-primary); }
.search-box__submit { min-height: 52px; border-radius: var(--radius); }
.search-box__note { margin: 4px 0 0; font-size: 0.78rem; color: var(--c-text-muted); text-align: center; }

.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.block-head__title { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.block-head__more { font-size: var(--fs-sm); font-weight: 500; color: var(--c-primary); text-decoration: none; }
.block-head__sub { font-size: var(--fs-sm); color: var(--c-text-muted); }

.listing-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.lcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: box-shadow 0.2s; }
.lcard:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
.lcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-bg-soft); }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; }
.lcard__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; background: repeating-linear-gradient(135deg, var(--c-bg-soft) 0 16px, #e2efe3 16px 32px); color: var(--c-primary); }
.lcard__placeholder strong { font-family: var(--f-heading); font-size: 2rem; font-weight: 500; }
.lcard__placeholder small { color: var(--c-text-muted); }
.lcard__badge { position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 4px; background: var(--c-primary); color: #fff; font-size: 0.75rem; font-weight: 500; }
.lcard__badge--static { position: static; display: inline-block; margin-bottom: 10px; background: var(--c-accent); color: var(--c-bg-dark); }
.lcard.is-sold .lcard__badge { background: var(--c-text-muted); }
.lcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.lcard__title { margin: 0 0 6px; font-size: 1rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__title a { color: inherit; text-decoration: none; }
.lcard__title a:hover { color: var(--c-primary); }
.lcard__meta { margin: 0 0 6px; font-family: var(--f-heading); font-weight: 500; }
.lcard__price, .lcard__area { color: var(--c-price); }
.lcard__dot { margin: 0 6px; color: var(--c-text-muted); }
.lcard__meta span { white-space: nowrap; }
.lcard__loc { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.lcard__desc { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--c-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-border); }
.lcard__call, .lcard__zalo { flex: 1; display: flex; align-items: center; justify-content: center; white-space: nowrap; padding: 8px 10px; border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 500; text-align: center; text-decoration: none; }
.lcard__call { background: var(--c-primary); color: #fff; }
.lcard__call:hover { background: var(--c-primary-dark); color: #fff; }
.lcard__zalo { border: 1px solid #0068ff; color: #0068ff; }
.lcard__zalo:hover { background: #0068ff; color: #fff; }
.lcard--cta { justify-content: center; border-style: dashed; border-color: var(--c-primary); background: var(--c-bg-soft); }
.lcard--cta .lcard__foot { border: 0; }
.lcard--cta .btn { width: 100%; border-radius: var(--radius); }

.area-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.area-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 16px; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; transition: transform 0.2s; }
.area-tile:hover { transform: translateY(-3px); color: #fff; }
.area-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-tile img + .area-tile__name::before { content: ""; }
.area-tile__name { position: relative; font-family: var(--f-heading); font-size: 1.15rem; font-weight: 500; }
.area-tile__note { position: relative; font-size: 0.8rem; opacity: 0.85; }
.area-tile--0 { background: linear-gradient(135deg, #1a6b2a, #2f8f42); }
.area-tile--1 { background: linear-gradient(135deg, #24533a, #3c7a56); }
.area-tile--2 { background: linear-gradient(135deg, #3d6b1a, #6a9a2c); }
.area-tile--3 { background: linear-gradient(135deg, #15524a, #2a7f6f); }
.lcard--cta .lcard__desc { -webkit-line-clamp: 5; }

/* ==========================================================================
   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; }
	.listing-grid { grid-template-columns: repeat(2, 1fr); }
	.area-grid { grid-template-columns: repeat(4, 1fr); }
	.search-box__row { grid-template-columns: repeat(2, 1fr); }
	.search-box__row--contact { grid-template-columns: 1fr 1fr auto; }
	.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.listing { grid-template-columns: 5fr 7fr; }
	.listing__body { padding: 32px; }
	.listing__specs { grid-template-columns: repeat(3, 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, .header-post { display: inline-flex; }
	.search-box__row:not(.search-box__row--contact) { grid-template-columns: repeat(4, 1fr); }
	.listing-grid { grid-template-columns: repeat(4, 1fr); }
	.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; }
}

/* Tin lô đất chi tiết (shortcode [bva_lo_dat] trên trang Đất nền) */
.ldetail-list { display: grid; gap: 28px; margin: 1.25rem 0 2rem; }
.ldetail { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; scroll-margin-top: calc(var(--header-h) + 16px); }
.ldetail__head { display: grid; gap: 4px; }
.ldetail__title { margin: 0; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.entry .ldetail__title { margin-top: 0; }
.lcard__badge--inline { position: static; justify-self: start; }
.ldetail .gallery { grid-template-columns: repeat(2, 1fr); }
.ldetail .gallery a:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.ldetail__placeholder { min-height: 220px; border-radius: var(--radius-sm); }
.ldetail .listing__specs { margin: 0; grid-template-columns: repeat(2, 1fr); }
.ldetail .pricing__items { margin: 0; }
.ldetail__video { margin: 0; }
.ldetail__video video { display: block; width: 100%; max-height: 70vh; border-radius: var(--radius-sm); background: #000; }
.ldetail__video figcaption { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.ldetail__map { margin: 0; }
.ldetail__map iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: var(--radius-sm); background: var(--c-bg-alt); }
.ldetail__map figcaption { margin-top: 6px; font-size: var(--fs-sm); }
.ldetail__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.entry .ldetail p, .entry .ldetail li { text-align: left; }
@media (min-width: 600px) {
	.ldetail .gallery { grid-template-columns: repeat(3, 1fr); }
	.ldetail .gallery a:first-child { grid-column: span 3; aspect-ratio: 16 / 9; }
	.ldetail .listing__specs { grid-template-columns: repeat(3, 1fr); }
}

/* Link bản đồ trên thẻ + trang chi tiết */
.lcard__loc a { display: block; color: inherit; text-decoration: none; }
.lcard__loc a svg { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--c-price); }
.lcard__loc a em { margin-left: 6px; white-space: nowrap; }
.lcard__loc a em { font-style: normal; font-weight: 500; color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.lcard__loc a:hover span { color: var(--c-primary); }
.spec--map a { color: inherit; text-decoration: none; }
.spec--map a span { display: inline; white-space: nowrap; font-weight: 500; color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.btn--map { border-color: var(--c-border); background: #fff; color: var(--c-text); }
.btn--map svg { color: var(--c-price); }
.btn--map:hover { border-color: var(--c-primary); color: var(--c-primary); }
