/*
Theme Name: ANHP estate
Theme URI: https://anhp.vn/
Author: An Nhiên Hồng Phát
Description: Custom WordPress theme cho website bất động sản ANHP estate: mua bán, cho thuê, nhà, đất, căn hộ và bài viết.
Version: 2.2.0
Text Domain: anhp-estate
*/

:root {
    --ink: #111513;
    --ink-2: #202622;
    --forest: #183229;
    --forest-2: #23463a;
    --sand: #b39466;
    --sand-light: #d9c7a7;
    --paper: #ffffff;
    --warm: #f4f1eb;
    --warm-2: #ebe6dc;
    --muted: #747a76;
    --line: #dedfd9;
    --line-dark: rgba(255,255,255,.16);
    --container: 1240px;
    --font: "Be Vietnam Pro", Arial, sans-serif;
    --shadow: 0 18px 48px rgba(18, 24, 20, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.site-main { overflow: hidden; }
.section { padding: 96px 0; }

/* Header */
.site-header {
    position: relative;
    z-index: 200;
    height: 86px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.anhp-front-page .site-header {
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(to bottom, rgba(8,12,10,.46), rgba(8,12,10,0));
    border-bottom-color: rgba(255,255,255,.18);
    color: #fff;
}
.admin-bar.anhp-front-page .site-header { top: 32px; }
.header-inner {
    height: 86px;
    display: grid;
    grid-template-columns: 220px 1fr 270px;
    align-items: center;
    gap: 26px;
}
.wordmark {
    display: inline-flex;
    align-items: baseline;
    width: max-content;
    line-height: 1;
    letter-spacing: -.04em;
}
.wordmark-main { font-size: 25px; font-weight: 800; letter-spacing: -.055em; }
.wordmark-sub { margin-left: 7px; font-size: 16px; font-weight: 500; letter-spacing: -.04em; color: var(--sand); }
.anhp-front-page .wordmark-sub { color: #e0c79d; }
.primary-nav { justify-self: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 31px; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 86px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.primary-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--sand);
    transition: right .22s ease;
}
.primary-nav > ul > li:hover > a::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after { right: 0; }
.primary-nav .menu-item-has-children > a::before {
    content: "+";
    order: 2;
    margin-left: 6px;
    font-size: 13px;
    font-weight: 400;
    opacity: .65;
}
.primary-nav .sub-menu {
    position: absolute;
    left: -20px;
    top: calc(100% - 5px);
    min-width: 220px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    border: 1px solid #e9e7e0;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease;
}
.primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a {
    display: block;
    padding: 10px 11px;
    color: #3e4540;
    font-size: 13px;
    font-weight: 600;
}
.primary-nav .sub-menu a:hover { background: var(--warm); color: var(--forest); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; gap: 1px; text-align: right; line-height: 1.25; }
.header-phone-label { font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.anhp-front-page .header-phone-label { color: rgba(255,255,255,.63); }
.header-phone strong { font-size: 12px; font-weight: 700; }
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    background: var(--sand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}
.header-cta:hover { background: #9d7e53; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto; transition: .2s ease; }

/* Shared type */
.section-kicker {
    display: block;
    margin-bottom: 13px;
    color: var(--sand);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.section-kicker.light { color: #d6bc91; }
.section-heading { margin-bottom: 38px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr); gap: 80px; align-items: end; }
.split-heading h2,
.property-nav-intro h2,
.brand-story-copy h2,
.contact-main h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(34px, 4.1vw, 56px);
    line-height: 1.12;
    letter-spacing: -.048em;
    font-weight: 700;
}
.compact-heading h2 { font-size: clamp(31px, 3.4vw, 46px); }
.section-heading-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.section-heading-side p { margin: 0; max-width: 470px; color: var(--muted); font-size: 14px; }
.arrow-link, .light-link, .post-read, .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
}
.arrow-link { padding-bottom: 6px; border-bottom: 1px solid #b8bcb8; }
.arrow-link:hover { color: var(--forest); border-color: var(--forest); }
.arrow-link span, .light-link span, .post-read span { transition: transform .2s ease; }
.arrow-link:hover span, .light-link:hover span, .post-read:hover span { transform: translateX(3px); }

/* Homepage hero */
.home-hero {
    position: relative;
    min-height: 735px;
    display: flex;
    align-items: center;
    background-color: #27332e;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8,13,10,.68) 0%, rgba(8,13,10,.38) 44%, rgba(8,13,10,.28) 100%),
        linear-gradient(to bottom, rgba(8,13,10,.12) 0%, rgba(8,13,10,.04) 50%, rgba(8,13,10,.58) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 132px; padding-bottom: 64px; }
.hero-copy { max-width: 850px; margin-bottom: 48px; }
.hero-overline {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255,255,255,.79);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-copy h1 {
    margin: 0;
    max-width: 830px;
    font-size: clamp(47px, 6.2vw, 83px);
    line-height: 1.01;
    letter-spacing: -.058em;
    font-weight: 700;
}
.hero-copy p { margin: 22px 0 0; max-width: 670px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.75; }
.property-search-wrap { width: min(100%, 1120px); }
.search-tabs { height: 38px; display: flex; align-items: stretch; width: max-content; max-width: 100%; }
.search-tabs a, .search-tabs span {
    display: inline-flex;
    align-items: center;
    padding: 0 17px;
    background: rgba(16,20,18,.75);
    color: rgba(255,255,255,.82);
    border-right: 1px solid rgba(255,255,255,.12);
    font-size: 10px;
    font-weight: 700;
}
.search-tabs a:hover { background: var(--sand); color: #fff; }
.search-tabs span { color: #fff; background: var(--sand); }
.property-search {
    display: grid;
    grid-template-columns: 1.5fr .85fr .85fr 1fr 150px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 60px rgba(0,0,0,.26);
}
.search-control { min-width: 0; padding: 14px 16px 12px; border-right: 1px solid #e4e1d9; }
.search-control label, .archive-filter-field label {
    display: block;
    margin-bottom: 2px;
    color: #9b9e99;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.search-control input, .search-control select {
    width: 100%;
    height: 36px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #282d29;
    font-size: 12px;
    font-weight: 600;
}
.search-control input::placeholder { color: #6f756f; font-weight: 500; }
.search-submit {
    border: 0;
    background: var(--sand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    font-size: 11px;
    font-weight: 800;
    transition: .2s ease;
}
.search-submit:hover { background: #9c7c50; }
.hero-meta { display: flex; align-items: center; gap: 0; margin-top: 30px; }
.hero-meta div { min-width: 160px; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.24); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta strong { display: block; font-size: 16px; font-weight: 700; }
.hero-meta span { display: block; margin-top: 2px; color: rgba(255,255,255,.62); font-size: 10px; }

/* Property cards */
.featured-section { background: var(--warm); }
.property-card { min-width: 0; background: #fff; border: 1px solid #e4e2dc; }
.property-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dcded9; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.property-card:hover .property-media img { transform: scale(1.035); }
.property-media-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,12,10,.28), transparent 48%); opacity: .75; }
.property-badges { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.property-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    background: rgba(17,21,19,.82);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}
.property-badge.is-sale { background: rgba(179,148,102,.93); }
.property-badge.is-rent { background: rgba(35,70,58,.92); }
.property-badge-featured { margin-right: auto; }
.property-card-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    font-size: 13px;
    transform: translateY(5px);
    opacity: 0;
    transition: .22s ease;
}
.property-card:hover .property-card-arrow { transform: translateY(0); opacity: 1; }
.property-card-body { padding: 17px 18px 18px; }
.property-card-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.property-card-topline > span { color: var(--sand); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.property-card-topline strong { color: var(--forest); font-size: 14px; font-weight: 800; white-space: nowrap; }
.property-card h3 { margin: 8px 0 6px; font-size: 16px; line-height: 1.42; letter-spacing: -.025em; font-weight: 700; }
.property-card h3 a:hover { color: var(--forest-2); }
.property-card-address { min-height: 40px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.property-card-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #ecebe6; color: #676d68; font-size: 10px; }
.property-card-meta b { color: var(--ink); font-size: 11px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.featured-property-grid { display: grid; grid-template-columns: 1.28fr .72fr; grid-template-rows: repeat(3, auto); gap: 20px; }
.featured-slot-1 { grid-row: 1 / 4; }
.featured-slot-1 .property-card { height: 100%; }
.featured-slot-1 .property-media { aspect-ratio: auto; min-height: 530px; height: calc(100% - 165px); }
.featured-slot:not(.featured-slot-1) .property-card { display: grid; grid-template-columns: 42% 58%; height: 100%; }
.featured-slot:not(.featured-slot-1) .property-media { aspect-ratio: auto; height: 100%; }
.featured-slot:not(.featured-slot-1) .property-card-body { padding: 15px 16px; }
.featured-slot:not(.featured-slot-1) .property-card-address { min-height: 0; }
.featured-slot:not(.featured-slot-1) .property-card-meta { margin-top: 10px; padding-top: 10px; }
.featured-slot:not(.featured-slot-1) .property-card h3 { font-size: 14px; }

/* Category navigation band */
.property-nav-band { background: var(--ink); color: #fff; }
.property-nav-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); min-height: 235px; }
.property-nav-intro { padding: 46px 48px 46px 0; display: flex; flex-direction: column; justify-content: center; }
.property-nav-intro h2 { font-size: clamp(29px, 3.1vw, 43px); }
.property-nav-grid > a { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.13); transition: background .22s ease; }
.property-nav-grid > a:hover { background: #1d2924; }
.property-nav-grid > a > span { color: #d4bb91; font-size: 9px; font-weight: 800; }
.property-nav-grid > a strong { margin-top: 23px; font-size: 18px; font-weight: 700; }
.property-nav-grid > a small { margin-top: 5px; max-width: 180px; color: rgba(255,255,255,.52); font-size: 10px; line-height: 1.55; }
.property-nav-grid > a i { position: absolute; right: 23px; top: 28px; font-style: normal; color: rgba(255,255,255,.5); transition: .2s ease; }
.property-nav-grid > a:hover i { color: #fff; transform: translate(2px,-2px); }

/* Latest + story */
.latest-section { background: #fff; }
.brand-story-section { background: var(--forest); color: #fff; }
.brand-story-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.brand-story-visual { min-height: 650px; background-size: cover; background-position: center; }
.brand-story-copy { padding: 78px 0 78px 78px; align-self: center; }
.brand-story-copy h2 { max-width: 560px; }
.brand-story-copy > p { max-width: 570px; margin: 22px 0 33px; color: rgba(255,255,255,.66); font-size: 14px; }
.story-points { border-top: 1px solid rgba(255,255,255,.15); }
.story-points div { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.story-points strong { color: #d9c29c; font-size: 10px; }
.story-points span { color: rgba(255,255,255,.84); font-size: 12px; font-weight: 600; }
.light-link { margin-top: 26px; color: #fff; }

/* Blog cards */
.insight-section { background: var(--warm); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { min-width: 0; }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dcded9; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-meta { display: flex; gap: 13px; margin-top: 16px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { margin: 10px 0 7px; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; }
.post-card p { margin: 0; color: var(--muted); font-size: 12px; }
.post-read { margin-top: 16px; padding-bottom: 4px; border-bottom: 1px solid #afb3ae; }

/* Inner hero + breadcrumbs */
.inner-hero { background: var(--forest); color: #fff; padding: 58px 0 66px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 34px; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.52); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .current { color: rgba(255,255,255,.82); }
.article-page .breadcrumbs,
.property-single-head .breadcrumbs { color: #969b96; }
.article-page .breadcrumbs .current,
.property-single-head .breadcrumbs .current { color: #4b504c; }
.inner-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.inner-hero h1 { margin: 0; font-size: clamp(46px, 6vw, 72px); line-height: 1.02; letter-spacing: -.055em; font-weight: 700; }
.inner-hero-grid > p { margin: 0 0 5px; max-width: 570px; color: rgba(255,255,255,.65); font-size: 14px; }

/* Archive */
.archive-filter-section { position: relative; z-index: 5; background: var(--warm); border-bottom: 1px solid var(--line); }
.archive-filter { display: grid; grid-template-columns: 1.35fr repeat(5, .75fr) 135px; background: #fff; box-shadow: 0 14px 40px rgba(20,27,22,.06); transform: translateY(-22px); }
.archive-filter-field { min-width: 0; padding: 13px 14px 11px; border-right: 1px solid #e6e4de; }
.archive-filter-field input, .archive-filter-field select { width: 100%; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: #313632; font-size: 11px; font-weight: 600; }
.archive-filter-submit { border: 0; background: var(--sand); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; font-size: 10px; font-weight: 800; }
.archive-filter-submit:hover { background: #9d7f54; }
.archive-results-section { padding-top: 74px; }
.archive-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.archive-toolbar h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.04em; }
.archive-toolbar-actions { display: flex; align-items: center; gap: 20px; }
.clear-filter-link { color: var(--muted); font-size: 11px; font-weight: 700; border-bottom: 1px solid #bfc2bd; }
.sort-label { display: flex; align-items: center; gap: 10px; }
.sort-label span { color: var(--muted); font-size: 10px; font-weight: 700; }
.sort-label select { height: 40px; min-width: 152px; padding: 0 11px; border: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 600; }
.archive-property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination-wrap { margin-top: 42px; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { padding: 34px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.large-empty { text-align: center; padding: 72px 30px; background: var(--warm); }
.large-empty > span { color: var(--sand); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.large-empty h3 { margin: 10px 0; font-size: 27px; }
.large-empty p { margin: 0 0 22px; }
.btn-dark-solid { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }

/* Single property */
.property-single-page { background: #fff; }
.property-single-head { padding: 38px 0 32px; }
.property-title-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.property-title-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.property-title-tags span { padding: 5px 8px; background: var(--warm); color: #666c67; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.property-title-grid h1 { margin: 0; max-width: 880px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.048em; font-weight: 700; }
.property-single-address { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.property-single-price { min-width: 210px; text-align: right; padding-bottom: 5px; }
.property-single-price span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.property-single-price strong { color: var(--forest); font-size: 25px; line-height: 1.15; font-weight: 800; }
.property-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 8px;
    aspect-ratio: 16 / 8.7;
    height: auto;
    min-height: 0;
    max-height: 640px;
    overflow: hidden;
}
.gallery-main, .gallery-side, .gallery-side > div { min-width: 0; min-height: 0; }
.gallery-main, .gallery-side > div { position: relative; overflow: hidden; background: #dde0da; }
.gallery-main { height: 100%; }
.gallery-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; height: 100%; overflow: hidden; }
.property-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none;
    margin: 0 !important;
    object-fit: cover;
}
.property-detail-section { position: relative; clear: both; isolation: isolate; background: var(--warm); }
.property-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 70px; align-items: start; }
.property-fact-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d5d6d0; border-bottom: 1px solid #d5d6d0; }
.property-fact-bar div { padding: 22px 18px 20px 0; border-right: 1px solid #d5d6d0; }
.property-fact-bar div:not(:first-child) { padding-left: 18px; }
.property-fact-bar div:last-child { border-right: 0; }
.property-fact-bar span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.property-fact-bar strong { display: block; margin-top: 5px; font-size: 14px; }
.property-copy-block { padding: 50px 0 38px; }
.property-copy-block h2 { margin: 0 0 22px; font-size: 34px; line-height: 1.2; letter-spacing: -.04em; }
.entry-content { color: #4d534f; font-size: 15px; line-height: 1.9; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.3; letter-spacing: -.03em; }
.entry-content h2 { margin-top: 42px; font-size: 27px; }
.entry-content h3 { margin-top: 30px; font-size: 21px; }
.entry-content a { color: var(--forest); text-decoration: underline; }
.entry-content img { height: auto; margin: 28px 0; }
.property-info-table { border-top: 1px solid #d5d6d0; }
.property-info-table div { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 14px 0; border-bottom: 1px solid #d5d6d0; }
.property-info-table span { color: var(--muted); font-size: 11px; }
.property-info-table strong { font-size: 12px; }
.property-contact-card { position: sticky; top: 28px; padding: 30px; background: var(--forest); color: #fff; }
.admin-bar .property-contact-card { top: 60px; }
.property-contact-card h3 { margin: 8px 0 11px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.property-contact-card > p { margin: 0 0 24px; color: rgba(255,255,255,.63); font-size: 12px; }
.contact-card-agent { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.agent-avatar { width: 42px; height: 42px; display: grid; place-items: center; background: #d0b184; color: #fff; font-weight: 800; }
.contact-card-agent strong, .contact-card-agent small { display: block; }
.contact-card-agent strong { font-size: 12px; }
.contact-card-agent small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 9px; }
.contact-primary, .contact-secondary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 12px; padding: 0 14px; font-size: 11px; font-weight: 700; }
.contact-primary { background: var(--sand); color: #fff; }
.contact-secondary { border: 1px solid rgba(255,255,255,.2); color: #fff; }
.contact-primary:hover { background: #9f8055; }
.contact-secondary:hover { background: rgba(255,255,255,.07); }
.contact-note { display: block; margin-top: 17px; color: rgba(255,255,255,.45); font-size: 8px; line-height: 1.6; }
.related-section { background: #fff; }

/* Blog index / article */
.blog-index-section { background: var(--warm); }
.blog-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
.blog-index-card { border-top: 1px solid #cfd1cc; padding-top: 16px; }
.blog-index-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; padding-top: 0; border-top: 0; margin-bottom: 26px; }
.blog-index-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dcded9; }
.blog-index-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.blog-index-card:hover .blog-index-thumb img { transform: scale(1.025); }
.blog-index-body h2 { margin: 9px 0 7px; font-size: 24px; line-height: 1.36; letter-spacing: -.034em; }
.blog-index-card.is-featured .blog-index-body { align-self: center; }
.blog-index-card.is-featured .blog-index-body h2 { font-size: clamp(31px, 3.2vw, 46px); line-height: 1.18; }
.blog-index-body p { color: var(--muted); font-size: 13px; }
.article-page { padding-bottom: 90px; }
.article-header { padding: 54px 0 44px; }
.article-container { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.article-header h1 { margin: 10px 0 18px; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.1; letter-spacing: -.05em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.article-cover { max-width: 1120px; height: min(610px, 57vw); min-height: 400px; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding-top: 48px; }
.article-footer-cta { margin-top: 54px; padding: 30px; background: var(--warm); border-left: 3px solid var(--sand); }
.article-footer-cta h3 { margin: 8px 0 5px; font-size: 24px; }
.article-footer-cta p { margin: 0 0 16px; color: var(--muted); }
.article-footer-cta a { font-size: 11px; font-weight: 700; color: var(--forest); }

/* Generic and contact */
.generic-page-content { padding: 64px 0 90px; }
.contact-section { background: var(--warm); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 85px; align-items: start; }
.contact-main > p { max-width: 700px; margin: 22px 0 32px; color: var(--muted); }
.contact-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cfd1cc; border-bottom: 1px solid #cfd1cc; }
.contact-method-grid > * { display: flex; flex-direction: column; min-height: 150px; padding: 24px 20px; border-right: 1px solid #cfd1cc; }
.contact-method-grid > *:first-child { padding-left: 0; }
.contact-method-grid > *:last-child { border-right: 0; }
.contact-method-grid small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-method-grid strong { margin-top: 18px; font-size: 13px; }
.contact-method-grid span { margin-top: auto; color: var(--sand); font-size: 10px; font-weight: 700; }
.contact-choice-panel { padding: 34px; background: var(--forest); color: #fff; }
.contact-choice-panel h3 { margin: 8px 0 24px; font-size: 26px; line-height: 1.25; letter-spacing: -.04em; }
.contact-choice-panel > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-choice-panel > a:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-choice-panel > a span { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; }
.contact-choice-panel small { color: #d9c09a; font-size: 9px; }
.contact-choice-panel strong { font-size: 12px; }
.contact-choice-panel i { font-style: normal; color: rgba(255,255,255,.55); }
.contact-choice-panel > a:hover i { color: #fff; transform: translate(2px,-2px); }

/* 404 */
.not-found-page { min-height: 650px; display: grid; place-items: center; background: var(--warm); }
.not-found-inner { text-align: center; max-width: 760px; }
.not-found-code { display: block; color: #d5d0c5; font-size: clamp(82px, 13vw, 170px); line-height: .8; font-weight: 800; letter-spacing: -.08em; }
.not-found-inner h1 { margin: 15px 0 10px; font-size: clamp(35px, 4.6vw, 55px); line-height: 1.15; letter-spacing: -.05em; }
.not-found-inner p { max-width: 600px; margin: 0 auto 24px; color: var(--muted); }
.not-found-actions { display: flex; justify-content: center; align-items: center; gap: 22px; }

/* Footer */
.site-footer { background: #101512; color: #fff; padding: 68px 0 22px; }
.footer-top { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding-bottom: 52px; }
.footer-wordmark .wordmark-main { font-size: 30px; }
.footer-wordmark .wordmark-sub { color: #d2b78d; }
.footer-intro p { max-width: 430px; margin: 22px 0 0; color: rgba(255,255,255,.54); font-size: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { margin: 0 0 10px; color: rgba(255,255,255,.45); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a, .footer-col span { color: rgba(255,255,255,.78); font-size: 11px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: 9px; }

/* Responsive */
@media (max-width: 1160px) {
    .header-inner { grid-template-columns: 180px 1fr 220px; }
    .primary-nav > ul { gap: 20px; }
    .header-phone { display: none; }
    .header-actions { gap: 8px; }
    .property-search { grid-template-columns: 1.3fr repeat(3, .85fr) 130px; }
    .archive-filter { grid-template-columns: 1.25fr repeat(3, .8fr) 120px; }
    .archive-filter .price-field { display: none; }
    .featured-slot:not(.featured-slot-1) .property-card { grid-template-columns: 44% 56%; }
}

@media (max-width: 980px) {
    .container { width: min(calc(100% - 36px), var(--container)); }
    .section { padding: 76px 0; }
    .site-header, .header-inner { height: 74px; }
    .header-inner { grid-template-columns: 1fr auto; }

    /* Mobile navigation: always anchor to the viewport, never to the header grid. */
    .primary-nav {
        display: block !important;
        position: fixed !important;
        top: 74px !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-self: stretch !important;
        align-self: stretch !important;
        z-index: 190;
        background: #fff;
        color: var(--ink);
        padding: 28px 22px 40px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(100%, 0, 0) !important;
        visibility: hidden;
        pointer-events: none;
        transition: transform .25s ease, visibility 0s linear .25s;
    }
    .admin-bar .primary-nav { top: 106px !important; }
    .primary-nav.is-open,
    body.menu-open .primary-nav {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }
    .primary-nav > ul { display: block; width: 100%; }
    .primary-nav > ul > li { width: 100%; border-bottom: 1px solid var(--line); }
    .primary-nav > ul > li > a { width: 100%; min-height: 55px; font-size: 15px; }
    .primary-nav > ul > li > a::after { display: none; }
    .primary-nav .sub-menu { position: static; min-width: 0; padding: 0 0 12px 15px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .primary-nav .sub-menu a { padding: 8px 0; color: var(--muted); }
    .header-cta { display: none; }

    /* Hamburger: fixed geometry so it turns into a clean X without jumping. */
    .menu-toggle {
        display: block;
        position: relative;
        color: currentColor;
    }
    .menu-toggle span {
        position: absolute;
        left: 10px;
        width: 22px;
        height: 1.5px;
        margin: 0;
        background: currentColor;
        transform-origin: center;
        transition: top .22s ease, transform .22s ease;
    }
    .menu-toggle span:first-child { top: 16px; }
    .menu-toggle span:last-child { top: 24px; }
    .anhp-front-page .menu-toggle { color: #fff; }
    .menu-open .menu-toggle span:first-child,
    .menu-toggle[aria-expanded="true"] span:first-child {
        top: 20px;
        transform: rotate(45deg);
    }
    .menu-open .menu-toggle span:last-child,
    .menu-toggle[aria-expanded="true"] span:last-child {
        top: 20px;
        transform: rotate(-45deg);
    }
    .anhp-front-page.menu-open .site-header { background: #fff; color: var(--ink); }
    .anhp-front-page.menu-open .wordmark-sub { color: var(--sand); }
    .anhp-front-page.menu-open .menu-toggle { color: var(--ink); }

    .home-hero { min-height: 720px; }
    .hero-content { padding-top: 126px; }
    .property-search { grid-template-columns: repeat(2, 1fr); }
    .search-control { border-bottom: 1px solid #e4e1d9; }
    .search-submit { min-height: 58px; grid-column: span 2; }
    .featured-property-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .featured-slot-1 { grid-row: auto; }
    .featured-slot-1 .property-media { min-height: 0; height: auto; aspect-ratio: 4/3; }
    .featured-slot:not(.featured-slot-1) .property-card { display: block; }
    .featured-slot:not(.featured-slot-1) .property-media { height: auto; aspect-ratio: 4/3; }
    .split-heading { grid-template-columns: 1fr; gap: 22px; align-items: start; }
    .section-heading-side { max-width: 600px; }
    .property-nav-grid { grid-template-columns: 1fr 1fr; }
    .property-nav-intro { grid-column: 1 / -1; padding: 46px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
    .property-nav-grid > a { border-bottom: 1px solid rgba(255,255,255,.13); }
    .brand-story-grid { grid-template-columns: 1fr; }
    .brand-story-visual { min-height: 480px; }
    .brand-story-copy { padding: 62px 0; }
    .property-grid, .archive-property-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inner-hero-grid { grid-template-columns: 1fr; gap: 22px; }
    .archive-filter { grid-template-columns: repeat(2, 1fr); transform: translateY(-20px); }
    .archive-filter-field { border-bottom: 1px solid #e6e4de; }
    .archive-filter-submit { min-height: 55px; grid-column: span 2; }
    .property-title-grid { grid-template-columns: 1fr; gap: 22px; }
    .property-single-price { text-align: left; }
    .property-detail-grid { grid-template-columns: 1fr; gap: 45px; }
    .property-contact-card { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 52px; }
    .footer-top { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 700px) {
    body { font-size: 14px; }
    .container, .article-container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 62px 0; }
    .admin-bar.anhp-front-page .site-header { top: 46px; }
    .admin-bar .primary-nav { top: 120px !important; }
    .wordmark-main { font-size: 23px; }
    .wordmark-sub { font-size: 15px; }
    .home-hero { min-height: 760px; align-items: flex-start; }
    .home-hero-overlay { background: linear-gradient(to bottom, rgba(8,13,10,.5), rgba(8,13,10,.48) 50%, rgba(8,13,10,.72)); }
    .hero-content { padding-top: 138px; padding-bottom: 40px; }
    .hero-copy { margin-bottom: 36px; }
    .hero-copy h1 { font-size: clamp(43px, 13vw, 62px); }
    .hero-copy p { font-size: 13px; }
    .search-tabs span { display: none; }
    .property-search { grid-template-columns: 1fr; }
    .search-submit { grid-column: auto; }
    .search-control { padding: 11px 14px 9px; }
    .hero-meta { margin-top: 22px; }
    .hero-meta div { min-width: 0; flex: 1; padding-right: 10px; margin-right: 10px; }
    .hero-meta strong { font-size: 13px; }
    .hero-meta span { font-size: 8px; }
    .split-heading h2, .property-nav-intro h2, .brand-story-copy h2, .contact-main h2 { font-size: 34px; }
    .featured-property-grid, .property-grid, .archive-property-grid, .post-grid { grid-template-columns: 1fr; }
    .property-nav-grid { grid-template-columns: 1fr; }
    .property-nav-intro { grid-column: auto; }
    .property-nav-grid > a { min-height: 145px; border-left: 0; }
    .brand-story-visual { min-height: 360px; }
    .brand-story-copy { padding: 52px 0; }
    .inner-hero { padding: 44px 0 52px; }
    .breadcrumbs { margin-bottom: 27px; }
    .inner-hero h1 { font-size: 46px; }
    .archive-filter { grid-template-columns: 1fr; transform: translateY(-14px); }
    .archive-filter-submit { grid-column: auto; }
    .archive-toolbar { align-items: flex-start; flex-direction: column; }
    .archive-toolbar-actions { width: 100%; justify-content: space-between; }
    .property-title-grid h1 { font-size: 38px; }
    .property-gallery { height: auto; min-height: 0; grid-template-columns: 1fr; }
    .gallery-main { aspect-ratio: 4/3; }
    .gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 7px; }
    .gallery-side > div { aspect-ratio: 1/1; }
    .property-fact-bar { grid-template-columns: repeat(2, 1fr); }
    .property-fact-bar div:nth-child(2) { border-right: 0; }
    .property-fact-bar div:nth-child(-n+2) { border-bottom: 1px solid #d5d6d0; }
    .property-info-table div { grid-template-columns: 115px 1fr; }
    .blog-index-grid { grid-template-columns: 1fr; }
    .blog-index-card.is-featured { grid-column: auto; grid-template-columns: 1fr; gap: 22px; }
    .blog-index-card.is-featured .blog-index-body h2 { font-size: 31px; }
    .article-header { padding: 44px 0 34px; }
    .article-header h1 { font-size: 39px; }
    .article-cover { height: auto; min-height: 0; aspect-ratio: 4/3; }
    .article-body { padding-top: 36px; }
    .contact-method-grid { grid-template-columns: 1fr; }
    .contact-method-grid > * { min-height: 115px; padding: 19px 0; border-right: 0; border-bottom: 1px solid #cfd1cc; }
    .contact-method-grid > *:last-child { border-bottom: 0; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; }
    .not-found-page { min-height: 560px; }
    .not-found-actions { flex-direction: column; }
}


/* v2.1: robust single-property gallery sizing */
@media (max-width: 760px) {
    .property-gallery {
        display: block;
        aspect-ratio: auto;
        max-height: none;
        overflow: visible;
    }
    .gallery-main { position: relative; height: auto; aspect-ratio: 4 / 3; }
    .gallery-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 8px; height: auto; margin-top: 8px; overflow: visible; }
    .gallery-side > div { position: relative; aspect-ratio: 4 / 3; }
    .property-gallery img { position: absolute; }
}

/* v2.2 — equal-height featured composition */
@media (min-width: 981px) {
    .featured-property-grid {
        grid-template-rows: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
    .featured-slot-1 { grid-row: 1 / 3; min-height: 0; }
    .featured-slot-1 .property-card {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
    .featured-slot-1 .property-media {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }
    .featured-slot:not(.featured-slot-1) { min-height: 0; }
    .featured-slot:not(.featured-slot-1) .property-card { min-height: 100%; }
}

/* Contact form */
.anhp-contact-form-wrap { margin-top: 42px; padding-top: 34px; border-top: 1px solid #cfd1cc; }
.anhp-contact-form-wrap > h3 { margin: 0 0 24px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field > span { font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: var(--muted); }
.form-field > span b { color: var(--sand); }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #d2d4cf;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.form-field input, .form-field select { height: 50px; padding: 0 14px; }
.form-field textarea { min-height: 128px; padding: 13px 14px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--sand); box-shadow: 0 0 0 3px rgba(179,148,102,.12); }
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-width: 220px;
    min-height: 50px;
    margin-top: 20px;
    padding: 0 17px;
    border: 0;
    background: var(--forest);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.form-submit i { font-style: normal; transition: transform .22s ease; }
.form-submit:hover { transform: translateY(-2px); background: var(--forest-2); box-shadow: 0 12px 28px rgba(24,50,41,.16); }
.form-submit:hover i { transform: translateX(4px); }
.form-privacy { margin: 12px 0 0; color: var(--muted); font-size: 9px; }
.form-notice { margin-bottom: 18px; padding: 13px 15px; border-left: 3px solid var(--forest); background: rgba(24,50,41,.07); font-size: 11px; }
.form-notice.is-error { border-left-color: #8a493d; background: rgba(138,73,61,.07); }
.anhp-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }

.property-contact-card .anhp-contact-form-wrap.is-compact { margin-top: 18px; padding-top: 18px; border-top-color: rgba(255,255,255,.14); }
.property-contact-card .is-compact .form-grid { grid-template-columns: 1fr; gap: 11px; }
.property-contact-card .is-compact .form-field > span { color: rgba(255,255,255,.62); font-size: 8px; }
.property-contact-card .is-compact .form-field input,
.property-contact-card .is-compact .form-field select,
.property-contact-card .is-compact .form-field textarea { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; }
.property-contact-card .is-compact .form-field input::placeholder,
.property-contact-card .is-compact .form-field textarea::placeholder { color: rgba(255,255,255,.42); }
.property-contact-card .is-compact .form-field select { color-scheme: dark; }
.property-contact-card .is-compact .form-field textarea { min-height: 92px; }
.property-contact-card .is-compact .form-submit { width: 100%; margin-top: 12px; background: var(--sand); }
.property-contact-card .is-compact .form-submit:hover { background: #9f8055; }
.property-contact-card .is-compact .form-privacy { color: rgba(255,255,255,.43); }
.property-contact-card .is-compact .form-notice { color: #fff; border-left-color: var(--sand); background: rgba(255,255,255,.08); }

/* v2.2 — restrained motion */
.property-card, .post-card, .property-nav-grid > a, .contact-choice-panel > a, .brand-story-visual { transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease, border-color .32s ease; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(18,24,20,.10); }
.property-card .property-media img, .post-thumb img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.property-card:hover .property-media img, .post-card:hover .post-thumb img { transform: scale(1.035); }
.property-media, .post-thumb { overflow: hidden; }
.property-nav-grid > a:hover { transform: translateY(-4px); }
.brand-story-visual:hover { transform: scale(.992); }
.anhp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.anhp-reveal.is-visible { opacity: 1; transform: translateY(0); }
body:not(.anhp-front-page) .site-header.is-scrolled { box-shadow: 0 8px 28px rgba(18,24,20,.07); }

@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-field-full { grid-column: auto; }
    .form-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .anhp-reveal { opacity: 1; transform: none; }
}
