/* v0.6 — trang sáng, tìm kiếm gọn, ảnh nhà dẫn lối. */
:root { --r: 14px; --r-lg: 20px; --line: #e3e9e6; --sh-1: 0 3px 18px -12px rgba(16,40,36,.2); }
.btn { border-radius: 10px; }
.hdr, .home .hdr, .home .hdr:not(.scrolled) { position: sticky; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.home .hdr:not(.scrolled) .brand, .home .hdr:not(.scrolled) .saved-btn, .home .hdr:not(.scrolled) .nav .menu > li > a { color: var(--ink); }
.home .hdr:not(.scrolled) .brand small { color: var(--muted); }
.home .hdr:not(.scrolled) .nav .menu > li > a:hover { color: var(--brand); background: var(--brand-50); }
.home .hdr:not(.scrolled) .menu-btn { background: #fff; color: var(--ink); border-color: var(--line); }
.brand-mark { border-radius: 10px; background: var(--brand); }
.home { background: #fff; }
.home .sec { padding: 36px 0; }
.home h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -.035em; }
.section-kicker { color: var(--brand) !important; font-size: .66rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 10px !important; }
.sec-head { align-items: center; gap: 12px; margin-bottom: 22px; }
.sec-head p:not(.section-kicker) { font-size: .88rem; }
.link-more { font-size: .85rem; gap: 6px; white-space: nowrap; }
.home-intro { background: #f7f8f5; border-bottom: 1px solid var(--line); padding: 24px 0 22px; }
.intro-search-first { display: grid; gap: 18px; }
.intro-top { display: grid; gap: 18px; align-items: center; }
.intro-copy { max-width: 700px; }
.intro-kicker { display: flex; align-items: center; gap: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: 12px; }
.intro-kicker > span { height: 6px; width: 6px; border-radius: 50%; background: var(--brand); }
.intro-copy h1 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.17; letter-spacing: -.045em; font-weight: 700; margin: 0 0 12px; }
.intro-copy h1 em { color: var(--brand); font-style: normal; }
.intro-lead { color: var(--ink-2); font-size: .84rem; margin-bottom: 18px; }
.intro-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .72rem; margin-top: 14px; }
.intro-quick > span { color: var(--muted); }
.intro-quick a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.intro-photo { display: none; }
.intro-search { max-width: 100%; }
.intro-search > .search-heading { margin: 0 0 10px; }
.search-compact { padding: 16px; border-radius: 14px; border: 1px solid #dbe6df; background: #fff; box-shadow: 0 6px 24px -18px #496c5c; }
.search-compact .search-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.search-compact .tabs { padding: 0; background: transparent; border-radius: 0; gap: 16px; }
.search-compact .tabs button { padding: 4px 0 8px; min-height: 36px; font-size: .86rem; border-radius: 0; border-bottom: 2px solid transparent; }
.search-compact .tabs button[aria-selected="true"] { color: var(--brand); border-color: var(--brand); background: transparent; box-shadow: none; }
.search-assist { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; border: 0; background: transparent; color: var(--brand); font-size: .75rem; cursor: pointer; font-weight: 600; }
.search-assist .ic { width: 16px; height: 16px; }
.search-heading { font-weight: 700; font-size: .95rem; }
.search-primary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: end; }
.search-compact [hidden] { display: none !important; }
.search-compact.is-rent .search-primary > .field:not([hidden]) { grid-column: 1 / -1; }
.search-rent-note { font-size: .72rem; color: var(--muted); margin: 10px 0 0; }
.search-compact .field-l { font-size: .68rem; margin: 0 0 5px; gap: 4px; }
.search-compact .field select { border-radius: 8px; min-height: 44px; padding-left: 10px; background-color: #fafcfb; }
.search-compact .search-go { grid-column: 1 / -1; min-height: 44px; padding: 0 18px; font-size: .88rem; }
.search-more { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.search-more summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; color: var(--ink-2); font-size: .75rem; min-height: 28px; }
.search-more summary::-webkit-details-marker { display: none; }
.search-more summary .ic:last-child { margin-left: auto; width: 14px; height: 14px; }
.search-more[open] summary .ic:last-child { transform: rotate(180deg); }
.filter-count { color: var(--brand); background: var(--brand-50); padding: 0 6px; border-radius: 4px; font-weight: 700; }
.search-extra { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.search-extra-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: .78rem; }
.search-sort { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: .8rem; }
.search-sort select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; max-width: 70%; }
.home-listings .sec-head { align-items: flex-end; }
.home-grid { gap: 20px; }
.section-end { display: flex; justify-content: center; margin-top: 28px; }
.section-end .btn { min-width: 210px; }
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.card-media { aspect-ratio: 4 / 3; }
.card-media::after { height: 25%; opacity: .65; }
.card-body { padding: 18px; gap: 10px; }
.card h3 { font-size: .98rem; line-height: 1.5; min-height: 2.9em; font-weight: 600; }
.card h3 a::after { display: none; }
.price-row { align-items: baseline; justify-content: space-between; }
.home-listings .card .price { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--red); font-size: 1.34rem; font-weight: 800; letter-spacing: -.03em; }
.card-area { font-weight: 600; font-size: 1rem; color: var(--ink-2); }
.card-area small { font-weight: 400; }
.card .specs { font-size: .78rem; gap: 6px 12px; color: var(--muted); }
.card .specs:empty { display: none; }
.card .loc { align-items: flex-start; gap: 7px; font-size: .8rem; }
.card .loc > .ic { margin-top: 3px; }
.card .loc b { display: block; font-weight: 500; color: var(--ink-2); }
.card .loc small { display: block; font-size: .69rem; margin-top: 2px; line-height: 1.5; }
.card .legal { font-size: .72rem; padding: 3px 8px; border-radius: 5px; font-weight: 500; }
.card-foot { border: 0; padding-top: 8px; gap: 8px; }
.card-foot .btn { min-height: 42px; border-radius: 8px; font-size: .79rem; }
.card-foot .card-view { color: var(--brand); background: #f1f7f4; box-shadow: none; flex: 1.6; }
.card-foot .card-zalo { color: #0060cb; background: #fff; flex: 1; }
.card-code { color: var(--muted); font-size: .65rem; margin-top: 0; }
.card .save { width: 36px; height: 36px; right: 12px; top: 12px; border-radius: 50%; background: rgba(255,255,255,.95); }
.badge { border-radius: 5px; padding: 4px 8px; font-size: .65rem; font-weight: 600; }
.home-discover { background: #f7f9f7; border-top: 1px solid #edf1ee; border-bottom: 1px solid #edf1ee; }
.home-needs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.need-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.need-icon { color: var(--brand); background: #edf5ef; padding: 10px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; }
.need-icon .ic { height: 24px; width: 24px; }
.need-card b { font-size: .92rem; margin-bottom: 6px; }
.need-card > span:not(.need-icon) { font-size: .72rem; color: var(--muted); line-height: 1.55; }
.need-arrow { position: absolute; right: 16px; top: 20px; width: 16px; color: var(--brand); }
.home-area-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.home-area { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); scroll-snap-align: start; }
.home-area-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.home-area-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-area-photo > span { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 5px; padding: 4px 8px; color: var(--ink-2); font-size: .67rem; }
.home-area-text { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; }
.home-area-text b { display: block; font-size: .95rem; }
.home-area-text small { display: block; color: var(--muted); font-size: .73rem; margin-top: 4px; }
.legacy-links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .76rem; margin-top: 22px; }
.legacy-links > span { color: var(--muted); }
.legacy-links a { text-decoration: underline; text-underline-offset: 3px; }
.home-agent { background: #f4f7f3; }
.home-agent .agent { gap: 28px; }
.home-agent .agent-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; max-width: 420px; }
.home-agent .agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.agent-photo-label { position: absolute; bottom: 16px; left: 16px; background: #fff; border-radius: 6px; padding: 7px 10px; color: var(--ink-2); font-size: .7rem; }
.agent-photo-label .ic { margin-right: 5px; }
.agent-copy > p:not(.section-kicker) { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.agent-copy h2 { line-height: 1.35; }
.agent-promises { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; font-size: .86rem; }
.agent-promises li { display: flex; align-items: center; gap: 9px; }
.agent-promises .ic { color: var(--brand); }
.agent-copy .agent-office { font-size: .7rem !important; margin: 18px 0 0; }
.home-news .post-card { border: 0; }
.home-news .post-card .card-body { padding: 16px 0 0; }
.home-news .post-card .card-media { border-radius: 12px; aspect-ratio: 16 / 10; }
.home-news .post-card .card-media::after { display: none; }
.home-news .post-card .card-body > p { font-size: .8rem; color: var(--muted); }
.home-faq { border-top: 1px solid var(--line); }
.home-faq .faq-wrap { gap: 24px; }
.home-faq .faq-wrap > div > p:not(.section-kicker) { color: var(--muted); font-size: .86rem; }
.home-faq details { background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; margin: 0; box-shadow: none; }
.home-faq summary { font-size: .88rem; font-weight: 600; cursor: pointer; }
.home-faq details p { margin: 14px 0 0; font-size: .84rem; color: var(--muted); }
.home-cta { padding: 12px 0 48px; }
.home-cta-box { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px; background: #edf5ef; border-radius: 16px; }
.home-cta-box h2 { max-width: 620px; font-size: 1.4rem; }
.home-cta-box p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: .86rem; }
.bnav { grid-template-columns: repeat(4,minmax(0,1fr)); box-shadow: 0 -2px 16px -10px #496c5c; }
.bnav .call .ic, .bnav .zalo .ic { width: 26px; height: 26px; padding: 0; background: none; box-shadow: none; }
.bnav .call .ic { color: #986400; }
.bnav .zalo .ic { color: #0068ff; }
.bnav .zalo::before, .cta-live::before, .cta-shine::after { display: none; }
.cta-ring .ic, .cta-ring .ic .wave { animation: none; }
@media (hover:hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -16px #34584a; }
  .card:hover .card-media img { transform: scale(1.025); }
  .need-card:hover, .home-area:hover { border-color: #9cbcae; }
}
@media (min-width:560px) {
  .search-primary { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto; }
  .search-compact .search-go { grid-column: auto; }
  .search-compact.is-rent .search-primary { grid-template-columns: minmax(0,1fr) auto; }
  .search-compact.is-rent .search-primary > .field:not([hidden]) { grid-column: auto; }
  .home-area-grid { grid-auto-flow: initial; grid-auto-columns: auto; grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width:768px) {
  .intro-top { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .intro-photo { display: block; position: relative; height: 220px; border-radius: 18px; overflow: hidden; background: #dfe9e2; }
  .intro-copy h1 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
  .intro-search .search-primary { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto; }
  .intro-search .search-go { grid-column: auto; }
  .home .sec { padding: 64px 0; }
  .home-intro { padding: 36px 0; }
  .intro-lead { font-size: .93rem; }
  .search-extra { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-needs { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
  .need-card { padding: 24px; }
  .home-cta-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
}
@media (min-width:1024px) {
  .home-intro { padding: 30px 0; }
  .intro-top { grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 52px; }
  .intro-photo { height: 260px; }
  .intro-photo picture, .intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
  .intro-photo::after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent,rgba(6,30,24,.65)); }
  .intro-photo-tag { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 7px; font-size: .68rem; color: var(--ink); background: #fff; padding: 7px 10px; border-radius: 6px; }
  .intro-photo-caption { position: absolute; bottom: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; color: #fff; z-index: 1; }
  .intro-photo-caption small, .intro-photo-caption b { display: block; }
  .intro-photo-caption small { font-size: .75rem; opacity: .9; }
  .intro-photo-caption b { font-size: 1.7rem; }
  .intro-photo-arrow { display: grid; place-items: center; width: 42px; height: 42px; background: #fff; border-radius: 50%; color: var(--brand); }
  .intro-copy h1 { font-size: 3rem; }
  .intro-quick { font-size: .74rem; }
  .home-agent .agent { grid-template-columns: 1fr 1.3fr; gap: 76px; }
}
@media (min-width:1024px) {
  .home-agent .agent-photo { max-width: 420px; }
}
@media (max-width:767px) {
  .intro-copy h1 { font-size: clamp(1.9rem, 8vw, 2.45rem); }
  .intro-search .search-head { margin-bottom: 12px; }
}
.as-welcome { display: grid; gap: 7px; }
.as-welcome-tag { color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.as-welcome b { font-size: 1rem; color: var(--ink); }
.as-welcome p { margin: 0; }
.as-welcome small { color: var(--muted); font-size: .82rem; }
.as-chips { padding-top: 3px; }
.as-chips button { border-radius: 12px; border-color: #dce8e2; box-shadow: 0 2px 8px -6px rgba(16,40,36,.4); }
@media (max-width:559px) {
  .home-listings .sec-head .link-more, .home-news .sec-head .link-more { display: none; }
  .home-listings .sec-head h2 { font-size: 1.35rem; }
  .home-listings .section-kicker { display: none; }
  .home-listings .sec-head p:not(.section-kicker) { font-size: .76rem; }
  .home .sec-head { margin-bottom: 18px; }
  .home-news .grid { gap: 28px; }
  .home-agent .actions { display: grid; width: 100%; }
  .home-faq .faq-wrap { display: block; }
  .home-faq .faq-wrap > div:first-child { margin-bottom: 20px; }
}
