/*
Theme Name: Thuê Nhà HP
Description: Giao diện nhẹ cho web tin cho thuê nhà phố, mặt bằng, căn hộ Hải Phòng. Cần plugin "HP Cho Thuê".
Version: 1.0.0
Requires PHP: 8.0
Author: Pareto
Text Domain: thuenha
*/

:root {
	--tn-ink: #17202a;
	--tn-ink-2: #4b5866;
	--tn-ink-3: #6f7b87;
	--tn-line: #e4e0d8;
	--tn-bg: #fbfaf7;
	--tn-surface: #ffffff;
	--tn-tint: #f3efe7;
	--tn-brand: #0f4c5c;
	--tn-brand-2: #0a3843;
	--tn-brand-soft: #e2eff1;
	--tn-accent: #e0611a;
	--tn-accent-2: #c2510f;
	--tn-zalo: #0068ff;
	--tn-ok: #1d7f47;
	--tn-warn: #a86a12;
	--tn-r: 12px;
	--tn-r-sm: 8px;
	--tn-shadow: 0 1px 2px rgba(23, 32, 42, .06), 0 4px 16px rgba(23, 32, 42, .06);
	--tn-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--tn-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tn-ink);
	background: var(--tn-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tn-brand); text-underline-offset: 2px; }
a:hover { color: var(--tn-brand-2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--tn-accent); outline-offset: 2px; border-radius: 4px; }
.tn-i { flex: none; }

.tn-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.tn-skip:focus { left: 8px; }

.tn-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tn-wrap--narrow { max-width: 820px; }
.tn-main { min-height: 60vh; padding-bottom: 96px; }

/* ---------- Nút ---------- */
.tn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px;
	border: 1px solid transparent; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s;
}
.tn-btn--primary, .tn-btn--call { background: var(--tn-accent); color: #fff; }
.tn-btn--primary:hover, .tn-btn--call:hover { background: var(--tn-accent-2); color: #fff; }
.tn-btn--zalo { background: var(--tn-zalo); color: #fff; }
.tn-btn--zalo:hover { background: #0050c8; color: #fff; }
.tn-btn--ghost { background: var(--tn-surface); color: var(--tn-brand); border-color: var(--tn-line); }
.tn-btn--ghost:hover { border-color: var(--tn-brand); color: var(--tn-brand); }
.tn-btn--light { background: #fff; color: var(--tn-brand-2); }
.tn-btn--light:hover { background: var(--tn-brand-soft); color: var(--tn-brand-2); }

.tn-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.tn-cta--stack { flex-direction: column; }
.tn-cta--stack .tn-btn { width: 100%; }

/* ---------- Thanh trên, đầu trang ---------- */
.tn-topbar { display: none; background: var(--tn-brand-2); color: #d6e6e9; font-size: .82rem; }
.tn-topbar .tn-wrap { display: flex; gap: 24px; align-items: center; min-height: 34px; }
.tn-topbar span, .tn-topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.tn-topbar a { margin-left: auto; color: #fff; font-weight: 600; }

.tn-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--tn-line); backdrop-filter: saturate(1.2) blur(6px); }
.tn-header__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.tn-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tn-ink); margin-right: auto; }
.tn-logo img:not(.tn-logo__img) { max-height: 44px; width: auto; }
.tn-logo__img { flex: none; display: block; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(15, 76, 92, .25); transition: transform .3s ease; }
.tn-logo:hover .tn-logo__img { transform: scale(1.06); }
.tn-logo__text { display: grid; line-height: 1.1; }
.tn-logo__name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--tn-ink); }
.tn-logo__city { font-weight: 600; font-size: .8rem; letter-spacing: .01em; color: var(--tn-accent-2); margin-top: 3px; }
.tn-header__zalo { display: none; }
.tn-nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--tn-line); border-radius: 10px; background: #fff; color: var(--tn-ink); cursor: pointer; }

.tn-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--tn-line); box-shadow: var(--tn-shadow); max-height: calc(100vh - 64px); overflow: auto; }
.tn-nav.is-open { display: block; }
.tn-nav__list { list-style: none; margin: 0; padding: 8px 16px 16px; }
.tn-nav__list > li > a, .tn-nav__list summary { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--tn-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--tn-line); cursor: pointer; list-style: none; }
.tn-nav__list summary::-webkit-details-marker { display: none; }
.tn-nav__list summary::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.tn-sub { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tn-sub a { display: block; padding: 8px 4px; color: var(--tn-ink); text-decoration: none; font-size: .95rem; }
.tn-sub small { color: var(--tn-ink-3); }

/* ---------- Hero, tìm kiếm ---------- */
.tn-hero { background: linear-gradient(160deg, var(--tn-brand) 0%, var(--tn-brand-2) 100%); color: #fff; padding: 28px 0 32px; }
.tn-hero__in { display: grid; gap: 24px; }
.tn-hero h1 { color: #fff; margin-bottom: 12px; }
.tn-eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #cfe6ea; font-size: .85rem; font-weight: 600; }
.tn-hero__lead { color: #d6e6e9; font-size: 1.05rem; max-width: 36em; }
.tn-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tn-trust li { display: flex; align-items: center; gap: 10px; color: #e6f1f3; font-size: .95rem; }
.tn-trust .tn-i { color: #ffb380; }

.tn-search { background: #fff; color: var(--tn-ink); border-radius: 16px; padding: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); display: grid; gap: 12px; align-self: start; }
.tn-search__types { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tn-search__types legend { font-size: .85rem; font-weight: 600; color: var(--tn-ink-2); margin-bottom: 6px; padding: 0; }
.tn-search__types label { position: relative; }
.tn-search__types input { position: absolute; opacity: 0; inset: 0; }
.tn-search__types span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid var(--tn-line); border-radius: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; text-align: center; }
.tn-search__types input:checked + span { border-color: var(--tn-brand); background: var(--tn-brand-soft); color: var(--tn-brand-2); }
.tn-search__types input:focus-visible + span { outline: 3px solid var(--tn-accent); outline-offset: 2px; }
.tn-field { display: grid; gap: 4px; }
.tn-field span { font-size: .85rem; font-weight: 600; color: var(--tn-ink-2); }
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
	width: 100%; min-height: 46px; padding: 10px 12px;
	font: inherit; font-size: 16px; color: var(--tn-ink);
	background: #fff; border: 1.5px solid var(--tn-line); border-radius: 10px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tn-ink-2) 50%), linear-gradient(135deg, var(--tn-ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select:focus, input:focus, textarea:focus { border-color: var(--tn-brand); outline: none; box-shadow: 0 0 0 3px var(--tn-brand-soft); }
.tn-search__go { width: 100%; min-height: 50px; font-size: 1rem; }

/* ---------- Khối chung ---------- */
.tn-section { padding: 36px 0 8px; }
.tn-section--tint { background: var(--tn-tint); padding: 36px 0; margin-top: 28px; }
.tn-section.tn-wrap { padding-left: 16px; padding-right: 16px; }
.tn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.tn-head h2 { margin: 0; }
.tn-head p { margin: 0; color: var(--tn-ink-2); width: 100%; }
.tn-subhead { margin: 24px 0 12px; font-size: 1rem; }
.tn-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.tn-types { display: grid; gap: 12px; }
.tn-type { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 48px 16px 16px; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r); text-decoration: none; color: var(--tn-ink); box-shadow: var(--tn-shadow); transition: border-color .15s, transform .15s; }
.tn-type:hover { border-color: var(--tn-brand); transform: translateY(-1px); color: var(--tn-ink); }
.tn-type__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--tn-brand-soft); color: var(--tn-brand); }
.tn-type__t { font-weight: 700; font-size: 1.05rem; }
.tn-type__n { color: var(--tn-ink-2); font-size: .9rem; }
.tn-type__go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--tn-accent); }

/* ---------- Lưới tin, thẻ tin ---------- */
.tn-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tn-card { display: flex; flex-direction: column; background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--tn-r); overflow: hidden; box-shadow: var(--tn-shadow); transition: box-shadow .15s, transform .15s; }
.tn-card:hover { box-shadow: 0 2px 4px rgba(23, 32, 42, .06), 0 10px 28px rgba(23, 32, 42, .1); transform: translateY(-2px); }
.tn-card.is-rented { opacity: .7; }
.tn-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tn-tint); overflow: hidden; }
.tn-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tn-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tn-ink-3); }
.tn-badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(10, 56, 67, .88); color: #fff; font-size: .78rem; font-weight: 600; }
.tn-badge + .tn-badge { left: auto; right: 10px; }
.tn-badge--warn { background: var(--tn-warn); }
.tn-badge--muted { background: #5c6670; }
.tn-badge--inline { position: static; text-decoration: none; }
.tn-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tn-card__price { margin: 0; color: var(--tn-accent-2); font-weight: 700; font-size: 1.15rem; }
.tn-card__title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-card__title a { color: var(--tn-ink); text-decoration: none; }
.tn-card__title a::after { content: ""; position: absolute; inset: 0; }
.tn-card { position: relative; }
.tn-card__title a:hover { color: var(--tn-brand); }
.tn-specs { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--tn-ink-2); font-size: .88rem; }
.tn-specs li { display: inline-flex; align-items: center; gap: 5px; }
.tn-card__meta { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--tn-line); display: flex; justify-content: space-between; gap: 8px; color: var(--tn-ink-3); font-size: .84rem; }
.tn-card__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-card__cat { margin: 0; color: var(--tn-brand); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Khu vực, chip ---------- */
.tn-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tn-areas a { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-r-sm); text-decoration: none; color: var(--tn-ink); height: 100%; }
.tn-areas a:hover { border-color: var(--tn-brand); }
.tn-areas strong { font-size: .98rem; }
.tn-areas span { color: var(--tn-ink-3); font-size: .82rem; }
.tn-areas em { font-style: normal; color: var(--tn-brand); font-size: .85rem; font-weight: 600; }
.tn-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tn-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--tn-line); border-radius: 999px; background: #fff; color: var(--tn-ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.tn-chips a:hover { border-color: var(--tn-brand); color: var(--tn-brand); }
.tn-chips a span { color: var(--tn-ink-3); font-size: .82rem; }
.tn-chips .tn-i { color: var(--tn-ok); }
.tn-chips--lg a { min-height: 44px; padding: 8px 18px; font-size: .98rem; }

/* ---------- Hai khối khách thuê / chủ nhà ---------- */
.tn-split { display: grid; gap: 16px; }
.tn-panel { padding: 24px; background: #fff; border: 1px solid var(--tn-line); border-radius: 16px; }
.tn-panel--dark { background: var(--tn-brand-2); border-color: var(--tn-brand-2); color: #d6e6e9; }
.tn-panel--dark h2 { color: #fff; }
.tn-steps { margin: 0 0 20px; padding-left: 1.2em; display: grid; gap: 10px; color: var(--tn-ink-2); }
.tn-steps strong { color: var(--tn-ink); }
.tn-ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.tn-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.tn-ticks .tn-i { color: var(--tn-ok); margin-top: 3px; }
.tn-panel--dark .tn-ticks .tn-i { color: #7fd1a3; }

/* ---------- Hỏi đáp ---------- */
.tn-faq details { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-r-sm); margin-bottom: 8px; }
.tn-faq summary { padding: 14px 44px 14px 16px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.tn-faq summary::-webkit-details-marker { display: none; }
.tn-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--tn-brand); }
.tn-faq details[open] summary::after { content: "–"; }
.tn-faq details p { padding: 0 16px 14px; margin: 0; color: var(--tn-ink-2); }

/* ---------- Breadcrumb, đầu trang danh sách ---------- */
.tn-bc { margin: 16px 0 8px; font-size: .86rem; color: var(--tn-ink-3); overflow-x: auto; white-space: nowrap; }
.tn-bc ol { list-style: none; margin: 0; padding: 0; display: flex; }
.tn-bc li + li::before { content: "›"; margin: 0 8px; color: var(--tn-ink-3); }
.tn-bc a { color: var(--tn-ink-2); text-decoration: none; }
.tn-bc a:hover { color: var(--tn-brand); text-decoration: underline; }
.tn-listhead { margin: 8px 0 16px; }
.tn-listhead h1 { margin-bottom: 8px; }
.tn-oldname { margin: 0 0 8px; color: var(--tn-ink-2); font-size: .92rem; }
.tn-summary { color: var(--tn-ink-2); max-width: 52em; margin: 0; }
.tn-drill { margin: 0 0 16px; }
.tn-drill__t { margin: 0 0 8px; font-weight: 600; font-size: .9rem; color: var(--tn-ink-2); }
.tn-filter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: end; margin: 0 0 20px; padding: 12px; background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-r); }
.tn-filter label { display: grid; gap: 2px; }
.tn-filter label span { font-size: .8rem; font-weight: 600; color: var(--tn-ink-2); }
.tn-filter label:last-of-type { grid-column: 1 / -1; }
.tn-filter__reset { grid-column: 1 / -1; font-size: .9rem; }
.tn-empty { padding: 32px 20px; text-align: center; background: #fff; border: 1px dashed var(--tn-line); border-radius: var(--tn-r); color: var(--tn-ink-2); }

.tn-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 8px; }
.tn-pages a, .tn-pages span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tn-line); background: #fff; color: var(--tn-ink); text-decoration: none; font-weight: 600; }
.tn-pages .current { background: var(--tn-brand); border-color: var(--tn-brand); color: #fff; }

.tn-findcta { display: grid; gap: 16px; margin: 32px 0; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, var(--tn-brand) 0%, var(--tn-brand-2) 100%); color: #d6e6e9; }
.tn-findcta h2 { color: #fff; margin-bottom: 6px; }
.tn-findcta p { margin: 0; }
.tn-findcta__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-intro { margin: 8px 0 24px; }

/* ---------- Trang tin ---------- */
.tn-rented { margin: 8px 0 16px; padding: 14px 16px; border-radius: var(--tn-r-sm); background: #fff4e5; border: 1px solid #f3cf9a; }
.tn-rented p { margin: 0; }
.tn-gallery { position: relative; margin: 8px -16px 0; background: #111; }
.tn-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tn-gallery__track::-webkit-scrollbar { display: none; }
.tn-gallery__item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.tn-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.tn-gallery__ph { display: grid; place-items: center; align-content: center; gap: 8px; color: #8b97a3; background: var(--tn-tint); }
.tn-gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .82rem; font-weight: 600; }
.tn-gallery__nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--tn-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--tn-shadow); }
.tn-gallery__nav--prev { left: 12px; }
.tn-gallery__nav--next { right: 12px; }

.tn-detail { display: grid; gap: 24px; margin-top: 20px; }
.tn-detail__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .88rem; }
.tn-status { padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; }
.tn-status--con_trong { background: #e3f4ea; color: var(--tn-ok); }
.tn-status--sap_trong { background: #fbf0dc; color: var(--tn-warn); }
.tn-status--da_thue { background: #eceef0; color: #5c6670; }
.tn-ma { color: var(--tn-ink-2); }
.tn-detail__where { display: flex; gap: 6px; align-items: flex-start; color: var(--tn-ink-2); margin-bottom: 8px; }
.tn-detail__where .tn-i { margin-top: 3px; color: var(--tn-brand); }
.tn-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--tn-accent-2); margin-bottom: 12px; }
.tn-keyfacts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tn-keyfacts li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-r-sm); }
.tn-keyfacts .tn-i { grid-row: 1 / 3; color: var(--tn-brand); }
.tn-keyfacts span { font-size: .78rem; color: var(--tn-ink-3); }
.tn-keyfacts strong { font-size: 1rem; }
.tn-updated { font-size: .85rem; color: var(--tn-ink-3); }
.tn-block { padding: 24px 0; border-top: 1px solid var(--tn-line); }
.tn-block h2 { font-size: 1.25rem; }
.tn-facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tn-facts th, .tn-facts td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tn-line); }
.tn-facts th { width: 44%; font-weight: 500; color: var(--tn-ink-2); background: #fff; }
.tn-facts td { font-weight: 600; background: #fff; }
.tn-note { margin-top: 12px; color: var(--tn-ink-2); }
.tn-review { background: var(--tn-brand-soft); border: 0; border-radius: var(--tn-r); padding: 20px; margin: 8px 0; }
.tn-review p { color: var(--tn-ink); }
.tn-review__by { margin: 0; color: var(--tn-ink-2) !important; font-size: .9rem; }
.tn-more-links { font-size: .92rem; color: var(--tn-ink-2); }

.tn-contactcard { padding: 20px; background: #fff; border: 1px solid var(--tn-line); border-radius: 16px; box-shadow: var(--tn-shadow); display: grid; gap: 12px; }
.tn-contactcard__price { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--tn-accent-2); }
.tn-contactcard__ma { margin: 0; padding: 8px 12px; border-radius: var(--tn-r-sm); background: var(--tn-tint); font-size: .9rem; }
.tn-contactcard__note { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--tn-ink-3); font-size: .85rem; }
.tn-contactcard__link { font-size: .9rem; }

/* ---------- Nội dung bài, trang ---------- */
.tn-article { margin: 8px 0 24px; }
.tn-article__meta { color: var(--tn-ink-3); font-size: .9rem; }
.tn-article__img { margin: 16px 0; }
.tn-article__img img { border-radius: var(--tn-r); width: 100%; }
.tn-prose { font-size: 1.02rem; }
.tn-prose h2 { margin-top: 1.6em; }
.tn-prose ul, .tn-prose ol { padding-left: 1.3em; }
.tn-prose li { margin-bottom: .4em; }
.tn-prose table { width: 100%; border-collapse: collapse; background: #fff; }
.tn-prose th, .tn-prose td { border: 1px solid var(--tn-line); padding: 8px 10px; text-align: left; }
.tn-prose figure { margin: 1.2em 0; }
.tn-404 { padding: 32px 16px; }

/* ---------- Form ---------- */
.hp-form { display: grid; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--tn-line); border-radius: 16px; margin: 16px 0; }
.hp-field { margin: 0; display: grid; gap: 4px; }
.hp-field label { font-weight: 600; font-size: .92rem; }
.hp-field label span { color: var(--tn-accent-2); }
.hp-form-note { margin: 0; font-size: .85rem; color: var(--tn-ink-3); }
.hp-form .hp-btn, .hp-form button { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--tn-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.hp-form button:hover { background: var(--tn-accent-2); }
.hp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-form-ok, .hp-form-err { padding: 14px 16px; border-radius: var(--tn-r-sm); margin: 16px 0; }
.hp-form-ok { background: #e3f4ea; border: 1px solid #b6e0c6; }
.hp-form-err { background: #fdecea; border: 1px solid #f3b9b2; }
.hp-contact-list { margin: 0 0 16px; display: grid; gap: 6px; }
.hp-contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.hp-contact-list dt { color: var(--tn-ink-3); }
.hp-contact-list dd { margin: 0; font-weight: 500; }

/* ---------- Chân trang ---------- */
.tn-footer { background: #0d1b22; color: #a8b6be; font-size: .92rem; padding: 40px 0 16px; }
.tn-footer a { color: #dfe8ec; text-decoration: none; }
.tn-footer a:hover { color: #fff; text-decoration: underline; }
.tn-footer__grid { display: grid; gap: 28px; }
.tn-footer__brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.tn-footer__h { color: #fff; font-weight: 600; margin: 0 0 8px; }
.tn-footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.tn-footer__cols { grid-template-columns: 1fr 1fr; }
.tn-footer .hp-contact-list dt { color: #7d8d96; }
.tn-footer .hp-contact-list div { grid-template-columns: 100px 1fr; }
.tn-social { display: flex; flex-wrap: wrap; gap: 12px; }
.tn-footer__bottom { border-top: 1px solid #1f3039; margin-top: 16px; padding-top: 16px; font-size: .82rem; color: #7d8d96; }

/* ---------- Thanh liên hệ cố định (điện thoại) ---------- */
.tn-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tn-line); box-shadow: 0 -4px 16px rgba(23, 32, 42, .08); }
.tn-dock__ma { margin: 0 0 6px; text-align: center; font-size: .78rem; color: var(--tn-ink-2); }
.tn-cta--dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tn-cta--dock .tn-btn { width: 100%; min-height: 48px; padding: 8px 10px; }
.tn-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 70; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px; background: var(--tn-ink); color: #fff; font-size: .9rem; box-shadow: var(--tn-shadow); }

/* ---------- Màn hình rộng ---------- */
@media (min-width: 600px) {
	.tn-grid { grid-template-columns: repeat(2, 1fr); }
	.tn-areas { grid-template-columns: repeat(3, 1fr); }
	.tn-filter { grid-template-columns: repeat(3, 1fr) auto; }
	.tn-filter label:last-of-type, .tn-filter__reset { grid-column: auto; }
	.tn-filter__reset { align-self: center; }
	.tn-keyfacts { grid-template-columns: repeat(4, 1fr); }
	.tn-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.tn-gallery { margin: 8px 0 0; border-radius: 16px; overflow: hidden; }
	.tn-gallery__nav { display: block; }
}

@media (min-width: 960px) {
	.tn-topbar { display: block; }
	.tn-header__in { min-height: 72px; gap: 20px; }
	.tn-nav__toggle { display: none; }
	.tn-nav { display: block; position: static; box-shadow: none; border: 0; background: transparent; max-height: none; overflow: visible; }
	.tn-nav__list { display: flex; align-items: center; gap: 2px; padding: 0; }
	.tn-nav__list > li { position: relative; }
	.tn-nav__list > li > a, .tn-nav__list summary { min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
	.tn-logo__text { white-space: nowrap; }
	.tn-nav__list > li > a:hover, .tn-nav__list summary:hover { background: var(--tn-brand-soft); color: var(--tn-brand-2); }
	.tn-sub { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; width: 440px; padding: 12px; background: #fff; border: 1px solid var(--tn-line); border-radius: 12px; box-shadow: var(--tn-shadow); }
	.tn-sub a { border-radius: 6px; }
	.tn-sub a:hover { background: var(--tn-tint); }
	.tn-header__zalo { display: inline-flex; }
	.tn-logo { margin-right: 12px; }
	.tn-nav { margin-right: auto; }

	.tn-hero { padding: 56px 0 64px; }
	.tn-hero__in { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
	.tn-search { padding: 24px; }

	.tn-section { padding-top: 56px; }
	.tn-section--tint { padding: 56px 0; margin-top: 48px; }
	.tn-types { grid-template-columns: repeat(3, 1fr); }
	.tn-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.tn-areas { grid-template-columns: repeat(5, 1fr); }
	.tn-split { grid-template-columns: 1fr 1fr; }
	.tn-panel { padding: 32px; }
	.tn-findcta { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
	.tn-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

	.tn-gallery__item { flex-basis: 100%; aspect-ratio: 16 / 9; }
	.tn-detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
	.tn-detail__side { position: sticky; top: 92px; }

	.tn-main { padding-bottom: 48px; }
	.tn-dock { display: none; }
	.tn-toast { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Minh họa, hiệu ứng, nút liên hệ nổi, dòng thông báo
   Chỉ animate transform/opacity để giữ 60 khung hình trên điện thoại.
   ========================================================= */

/* Hero: dãy phố + cây phượng + cánh hoa rơi. */
.tn-hero { position: relative; overflow: hidden; padding-bottom: 120px; isolation: isolate; }
.tn-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 84, 45, .22), transparent 70%); z-index: -1; pointer-events: none; }
.tn-hero__art { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: -1; pointer-events: none; }
.tn-hero__art svg { width: 100%; height: 100%; display: block; }
.tn-tree { transform-box: fill-box; }
.tn-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: tn-ping 2s ease-out infinite; vertical-align: 1px; }
@keyframes tn-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }

.tn-petal { position: absolute; top: -20px; width: 11px; height: 9px; border-radius: 70% 0 70% 0; background: #f2542d; opacity: .0; animation: tn-fall 13s linear infinite; will-change: transform, opacity; }
.tn-petal--1 { left: 8%; animation-delay: 0s; }
.tn-petal--2 { left: 22%; animation-delay: 4s; animation-duration: 15s; background: #ff7a45; }
.tn-petal--3 { left: 41%; animation-delay: 8s; }
.tn-petal--4 { left: 58%; animation-delay: 2s; animation-duration: 16s; background: #e0441f; }
.tn-petal--5 { left: 73%; animation-delay: 6s; }
.tn-petal--6 { left: 86%; animation-delay: 10s; animation-duration: 14s; background: #ff7a45; }
.tn-petal--7 { left: 95%; animation-delay: 3s; animation-duration: 17s; }
@keyframes tn-fall {
	0% { transform: translate3d(0, -140px, 0) rotate(0deg); opacity: 0; }
	10% { opacity: .85; }
	50% { transform: translate3d(-40px, 160px, 0) rotate(200deg); }
	90% { opacity: .7; }
	100% { transform: translate3d(20px, 520px, 0) rotate(420deg); opacity: 0; }
}

.tn-search { transition: transform .3s ease, box-shadow .3s ease; }
.tn-search:focus-within { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.tn-search__go { position: relative; overflow: hidden; }
.tn-search__go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: tn-shine 4.5s ease-in-out 1.2s infinite; }
@keyframes tn-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Ảnh thẻ tin phóng nhẹ khi rê chuột. */
.tn-card__media img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tn-card:hover .tn-card__media img { transform: scale(1.05); }
.tn-type__ic { transition: transform .3s ease, background-color .3s ease; }
.tn-type:hover .tn-type__ic { transform: rotate(-6deg) scale(1.06); background: #d3e8eb; }
.tn-type__go { transition: transform .25s ease; }
.tn-type:hover .tn-type__go { transform: translate(4px, -50%); }

/* Xuất hiện khi cuộn tới (chỉ khi có JS). */
.js .tn-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease var(--d, 0ms), transform .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.js .tn-reveal.is-in { opacity: 1; transform: none; }

/* Khối chủ nhà có minh họa chìa khóa. */
.tn-panel--dark { position: relative; overflow: hidden; }
.tn-panel--dark > *:not(.tn-panel__art) { position: relative; }
.tn-panel__art { position: absolute; right: -10px; bottom: -6px; width: 180px; height: auto; opacity: .9; pointer-events: none; }
.tn-panel__key { transform-origin: 122px 40px; animation: tn-swing 3.5s ease-in-out infinite; }
@keyframes tn-swing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }

/* Nút Zalo + Hotline nổi (máy tính). Trên điện thoại dùng thanh dưới cùng. */
.tn-float { display: none; }
.tn-float__btn { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tn-float__ic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .82rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.tn-float__btn--zalo .tn-float__ic { background: var(--tn-zalo); }
.tn-float__btn--call .tn-float__ic { background: var(--tn-accent); }
.tn-float__ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: tn-ring 2.2s ease-out infinite; }
.tn-float__btn--call .tn-float__ic::before { animation-delay: 1.1s; }
@keyframes tn-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.tn-float__btn--call .tn-float__ic .tn-i { animation: tn-shake 3s ease-in-out infinite; }
@keyframes tn-shake { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-14deg); } 90% { transform: rotate(14deg); } 93% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }
.tn-float__label { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--tn-ink); font-weight: 600; font-size: .88rem; box-shadow: var(--tn-shadow); opacity: 0; transform: translateX(8px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; white-space: nowrap; }
.tn-float__btn:hover .tn-float__label, .tn-float__btn:focus-visible .tn-float__label { opacity: 1; transform: none; }
.tn-float__btn--call .tn-float__label { opacity: 1; transform: none; }

/* Dòng thông báo cuối trang. */
.tn-notice { background: #fff4e5; color: #6b4a14; border-top: 1px solid #f3cf9a; }
.tn-notice p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 0; font-size: .88rem; line-height: 1.5; }
.tn-notice .tn-i { margin-top: 2px; color: var(--tn-warn); }
.tn-notice a { color: #8a3c0a; font-weight: 700; white-space: nowrap; }
.tn-footer .tn-notice a { color: #8a3c0a; }

/* Chừa chỗ cho thanh liên hệ dưới cùng trên điện thoại. */
.tn-footer { padding-bottom: 0; }
.tn-notice { padding-bottom: 88px; }
.tn-main { padding-bottom: 40px; }

@media (min-width: 960px) {
	.tn-notice { padding-bottom: 0; }
	.tn-hero { padding-bottom: 150px; }
	.tn-hero__art { height: 170px; }
	.tn-float { display: grid; gap: 14px; justify-items: end; position: fixed; right: 20px; bottom: 24px; z-index: 60; }
	.tn-float__btn { flex-direction: row-reverse; }
}

@media (prefers-reduced-motion: reduce) {
	.tn-petal, .tn-dot, .tn-search__go::after, .tn-panel__key, .tn-float__ic::before, .tn-float__btn--call .tn-float__ic .tn-i { animation: none !important; }
	.tn-petal { display: none; }
	.js .tn-reveal { opacity: 1; transform: none; }
}

/* ---------- Poster Group cộng đồng (trang chủ) ---------- */
.tn-poster { position: relative; z-index: 2; margin-top: -40px; }
.tn-poster__link { display: block; border-radius: 16px; overflow: hidden; background: #e7eef0; box-shadow: 0 10px 34px rgba(10, 56, 67, .18); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
a.tn-poster__link:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(10, 56, 67, .24); }
.tn-poster img { width: 100%; height: auto; aspect-ratio: 1600 / 835; }
.tn-poster__cta { margin: 14px 0 0; text-align: center; }

/* ---------- Kết nối Facebook ở chân trang (căn phải) ---------- */
.tn-connect { display: grid; gap: 12px; justify-items: end; text-align: right; }
.tn-connect__who { display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; }
.tn-connect__who img { width: 76px; height: 76px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.tn-connect__who p { margin: 0; font-size: .88rem; line-height: 1.45; }
.tn-connect__who strong { color: #fff; font-size: .98rem; }
.tn-fbcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); text-align: left; transition: background-color .2s ease, transform .2s ease, border-color .2s ease; }
.tn-footer a.tn-fbcard { text-decoration: none; }
.tn-fbcard:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .22); transform: translateX(-3px); }
.tn-fbcard__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1877f2; color: #fff; }
.tn-fbcard__ic--group { background: linear-gradient(135deg, #1877f2, #0f4c5c); }
.tn-fbcard__t { display: grid; line-height: 1.3; min-width: 0; }
.tn-fbcard__t strong { color: #fff; font-size: .95rem; }
.tn-fbcard__t span { color: #a8b6be; font-size: .82rem; }
.tn-fbcard__btn { padding: 6px 12px; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 600; font-size: .8rem; white-space: nowrap; }

@media (min-width: 600px) {
	.tn-connect { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.tn-poster { margin-top: -64px; }
	.tn-poster__cta { display: none; }
}
@media (min-width: 1100px) {
	.tn-footer__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.45fr); gap: 28px; }
	.tn-connect { grid-column: auto; align-content: start; }
}
.hp-contact-list dd { min-width: 0; overflow-wrap: anywhere; }
.tn-footer .hp-contact-list div { grid-template-columns: 84px minmax(0, 1fr); }

/* Bộ ảnh tin: hiện trọn ảnh (ảnh dọc không bị cắt), nền mờ từ chính ảnh. */
.tn-gallery__item { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.tn-gallery__item::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.55); transform: scale(1.1); }
.tn-gallery__item img { position: relative; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 600px) { .tn-gallery__item { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) { .tn-gallery__item { aspect-ratio: 16 / 9; } }
