/* Home page (Index.cshtml) — redesign in the International Investor hub design language (assets/investor/hub.css):
   navy / gold / cream palette, Montserrat headings, rounded cards, alternating white / cream sections.
   Replaces index/body.css, home-mobile.css, slick.css, selectize, _TrendingProjects/_LatestProjects/_RecommendedProjects.css,
   top-developer.css, our-blog.css and youtube-video-section.css on the home page. All rules are scoped to main.home
   except the hero filter overrides (hero-filter-v2.css still styles the search card). No carousel library: rows are
   native CSS scroll-snap rails moved by the small inline script in Index.cshtml. */

.home { --ink: #17212b; --muted: #66727d; --gold: #b99a62; --gold-dark: #927344; --gold-light: #e4c995; --cream: #f7f5f0; --line: #e7e2d8; --navy: #17232e; --radius: 18px; --shadow: 0 18px 50px rgba(23,33,43,.09); color: var(--ink); line-height: 1.65; background: #fff; overflow-x: clip; }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home a { color: inherit; text-decoration: none; }
.home img { max-width: 100%; height: auto; display: block; }
.home h2, .home h3, .home p { margin-top: 0; }
.home h2 { font-family: Montserrat, sans-serif; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 700; color: var(--ink); }
.home h3 { font-family: Montserrat, sans-serif; line-height: 1.3; font-weight: 700; }
.home-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.home .inv-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; color: var(--gold-dark); margin-bottom: 8px; }
.home-sub { color: var(--muted); font-size: 1.02rem; margin: 0; max-width: 720px; }

/* Buttons */
.home .inv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 5px; font-weight: 700; font-size: .91rem; border: 1px solid transparent; transition: .2s; cursor: pointer; font-family: inherit; line-height: 1.3; white-space: nowrap; }
.home .inv-btn-gold { background: var(--gold); color: #101820; }
.home .inv-btn-gold:hover { background: #c9ad79; transform: translateY(-1px); }
.home .inv-btn-outline { border-color: rgba(255,255,255,.65); color: #fff; }
.home .inv-btn-outline:hover { background: rgba(255,255,255,.1); }
.home .inv-btn-line { border-color: var(--line); color: var(--gold-dark); background: #fff; }
.home .inv-btn-line:hover { border-color: var(--gold); }
.home .inv-arrow { font-weight: 800; color: var(--gold-dark); font-size: .86rem; }

/* Sections: alternate white / cream (Index.cshtml decides which) */
.home-section { padding: 84px 0; }
.home-soft { background: var(--cream); }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.home-head-end { display: flex; align-items: center; gap: 10px; flex: none; }
.home section[id] { scroll-margin-top: 20px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
/* Hero height = screen height minus the trust strip (~90-110px), so hero + trust strip both fit the first screen;
   never shorter than 480px (short laptops) nor taller than 720px (big monitors would otherwise get a huge empty banner). */
.home .home-hero { position: relative; overflow: visible; min-height: clamp(480px, calc(100vh - 110px), 720px); min-height: clamp(480px, calc(100svh - 110px), 720px); background: var(--navy); color: #fff; display: flex; align-items: center; z-index: 2; }
.home-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.home .home-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,25,35,.62) 0%, rgba(15,25,35,.38) 42%, rgba(15,25,35,.82) 100%), radial-gradient(ellipse at center, rgba(15,25,35,0) 0%, rgba(15,25,35,.35) 100%); }
/* top padding clears the 64px site header that overlays the hero */
.home .home-hero .tlp-hero-inner { position: relative; z-index: 5; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(100px, 9vw, 128px) 20px clamp(48px, 5vw, 72px); max-width: 1100px; }
/* the H1 is the LCP element: show it immediately (no fade-in animation from opacity 0) */
.home .home-hero .main_title { font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.1; letter-spacing: -.035em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); opacity: 1; animation: none; max-width: 900px; margin: 0 auto 16px !important; }
.home .home-hero .title_content { text-shadow: none; }
.home .home-hero .title_content p { color: #e1e5e8; font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; max-width: 680px; margin: 0 auto; line-height: 1.6; }
.home .home-hero .home-hero-eyebrow { color: var(--gold-light); margin-bottom: 14px; }

/* ── Hero search card (_HeroFilter.cshtml) ──────────────────────────
   White card with labelled fields split by thin dividers, gold Search button, white drop-down panels.
   Panels / lists open via the partial's script (.open on .tlp-panel / .tlp-loc-dropdown / .price-dd). */
.home .hf-card { position: relative; width: 100%; max-width: 1000px; margin-top: 34px; padding: 8px; background: rgba(255,255,255,.97); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.4); text-align: left; color: var(--ink); }
.home .hf-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr auto; align-items: center; }
.home .hf-field { position: relative; min-width: 0; padding: 0 4px; }
.home .hf-field + .hf-field::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.home .hf-label { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 3px; }
.home .hf-field--kw { padding: 10px 18px; border-radius: 12px; transition: background .2s; }
.home .hf-field--kw:focus-within, .home .hf-field--kw:hover { background: var(--cream); }
.home .hf-kw { display: flex; align-items: center; gap: 8px; }
.home .hf-kw-icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.home .tlp-kw-input { width: 100%; height: 26px; padding: 0; border: 0; outline: 0; background: transparent; font: 600 15px/1.2 Montserrat, sans-serif; color: var(--ink); }
.home .tlp-kw-input::placeholder { color: #8a949c; font-weight: 500; }
.home .hf-trigger { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 8px; width: 100%; padding: 10px 14px 10px 18px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; font-family: Montserrat, sans-serif; transition: background .2s; }
.home .hf-trigger:hover, .home .hf-trigger[aria-expanded="true"] { background: var(--cream); }
.home .hf-trigger .hf-label { grid-column: 1 / -1; }
.home .hf-lbl-short { display: none; }
.home .hf-value { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .hf-chev { width: 16px; height: 16px; margin-bottom: 5px; color: var(--muted); transition: transform .2s; }
.home .hf-trigger[aria-expanded="true"] .hf-chev { transform: rotate(180deg); color: var(--gold-dark); }
.home .hf-search { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 60px; padding: 0 30px; margin-left: 6px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #c9ab73, var(--gold) 55%, #a8874f); color: #101820; font: 700 15px Montserrat, sans-serif; cursor: pointer; box-shadow: 0 10px 24px rgba(185,154,98,.4); transition: transform .2s, box-shadow .2s; }
.home .hf-search:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(185,154,98,.5); }
.home .hf-search svg { width: 19px; height: 19px; }

/* drop-down panels */
.home .tlp-panel { display: none; position: absolute; top: calc(100% + 14px); left: 0; z-index: 60; width: 300px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,25,35,.22); text-align: left; }
.home .tlp-panel.open { display: block; animation: hfIn .16s ease-out; }
.home .hf-field--price .tlp-panel { left: auto; right: 0; width: 330px; }
@keyframes hfIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.home .tlp-panel-title { margin: 0 0 12px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.home .tlp-type-list { max-height: 260px; overflow-y: auto; margin: 0 -8px; scrollbar-width: thin; }
.home .tlp-type-option { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.home .tlp-type-option:hover { background: var(--cream); }
.home .tlp-type-option.selected { background: #f1e9da; }
.home .tlp-loc-name { font-size: .92rem; font-weight: 600; color: var(--ink); }
.home .tlp-type-option.selected .tlp-loc-name { color: var(--gold-dark); }
.home .tlp-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.home .tlp-chip { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 600 .9rem Montserrat, sans-serif; cursor: pointer; transition: .15s; }
.home .tlp-chip:hover { border-color: var(--gold); }
.home .tlp-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.home .tlp-panel-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.home .tlp-btn-reset, .home .tlp-btn-apply { height: 40px; padding: 0 20px; border-radius: 9px; font: 700 .86rem Montserrat, sans-serif; cursor: pointer; border: 0; }
.home .tlp-btn-reset { background: transparent; color: var(--muted); }
.home .tlp-btn-reset:hover { color: var(--ink); }
.home .tlp-btn-apply { background: var(--gold); color: #101820; }
.home .tlp-btn-apply:hover { background: #c9ad79; }
.home .price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home .price-field { position: relative; }
.home .price-field label { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.home .price-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 600 15px Montserrat, sans-serif; color: var(--ink); outline: 0; -moz-appearance: textfield; }
.home .price-field input::-webkit-outer-spin-button, .home .price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.home .price-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,154,98,.18); }
.home .price-dd { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(15,25,35,.18); }
.home .price-dd.open { display: block; }
.home .price-dd-item { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: .86rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.home .price-dd-item:hover { background: var(--cream); }
.home .price-dd-item .dd-label { font-size: .74rem; font-weight: 500; color: var(--muted); }
.home .price-error { display: none; margin-top: 8px; font-size: .8rem; color: #c0392b; }

/* keyword autocomplete list */
.home .tlp-loc-dropdown { display: none; position: absolute; top: calc(100% + 14px); left: 0; z-index: 60; width: max(100%, 440px); max-height: 340px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,25,35,.22); text-align: left; }
.home .tlp-loc-dropdown.open { display: block; animation: hfIn .16s ease-out; }
.home .tlp-loc-dropdown .tlp-loc-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.home .tlp-loc-dropdown .tlp-loc-item:hover { background: var(--cream); }
.home .proj-name { font-size: .92rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .proj-meta-wrap { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: .78rem; color: var(--muted); }
.home .proj-meta-sep { color: var(--line); }
.home .tlp-type-badge { margin-left: auto; padding: 2px 8px; border-radius: 20px; background: #f1e9da; color: var(--gold-dark); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* popular searches under the card */
.home .hf-popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: .84rem; color: #d9dfe3; }
.home .hf-popular span { font-weight: 600; }
.home .hf-popular a { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: .2s; }
.home .hf-popular a:hover { background: var(--gold); border-color: var(--gold); color: #101820; }

/* tablet: keyword on its own row, then type / beds / price, then a full-width Search button */
@media (max-width: 900px) {
    .home .hf-row { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
    .home .hf-field--kw { grid-column: 1 / -1; }
    .home .hf-field--kw + .hf-field::before { display: none; }
    .home .hf-search { grid-column: 1 / -1; margin: 4px 0 0; height: 52px; }
}
/* phone: compact 2-line card —
     line 1: keyword pill + square gold search button
     line 2: type / beds / price as three equal pill triggers
   panels open full card width below the card; 16px inputs stop iOS zooming in */
@media (max-width: 600px) {
    .home .hf-card { margin-top: 20px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 44px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.5); }
    .home .hf-row { display: flex; flex-wrap: wrap; gap: 6px; }
    .home .hf-field { position: static; padding: 0; }
    .home .hf-field + .hf-field::before { display: none; }

    /* line 1 */
    .home .hf-field--kw { order: 0; flex: 1 1 calc(100% - 54px); min-width: 0; display: flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
    .home .hf-field--kw:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--gold); }
    .home .hf-field--kw > .hf-label { display: none; }
    .home .hf-kw { flex: 1; min-width: 0; gap: 9px; }
    .home .hf-kw-icon { width: 16px; height: 16px; color: var(--gold-dark); }
    .home .tlp-kw-input { height: 44px; font-size: 16px; font-weight: 500; }
    .home .hf-search { order: 1; flex: 0 0 48px; width: 48px; height: 46px; margin: 0; padding: 0; gap: 0; border-radius: 12px; box-shadow: 0 6px 16px rgba(185,154,98,.45); }
    .home .hf-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .home .hf-search svg { width: 20px; height: 20px; }

    /* line 2 */
    .home .tlp-grid-field { order: 2; flex: 1 1 28%; min-width: 0; }
    .home .hf-trigger { column-gap: 4px; height: 46px; padding: 6px 8px 6px 11px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); align-content: center; }
    .home .hf-trigger:hover { background: #fff; }
    .home .hf-trigger[aria-expanded="true"] { background: #fbf8f2; box-shadow: inset 0 0 0 1.5px var(--gold); }
    .home .hf-trigger .hf-label { margin-bottom: 1px; font-size: .56rem; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .home .hf-lbl-full { display: none; }
    .home .hf-lbl-short { display: inline; }
    .home .hf-value { font-size: 13px; line-height: 18px; }
    .home .hf-chev { width: 13px; height: 13px; margin-bottom: 3px; }

    .home .price-field input { font-size: 16px; }
    .home .tlp-panel, .home .hf-field--price .tlp-panel, .home .tlp-loc-dropdown { left: 0; right: 0; width: auto; top: calc(100% + 8px); padding: 16px; }
    .home .tlp-loc-dropdown { padding: 6px; }
    .home .tlp-chips { grid-template-columns: repeat(4, 1fr); }
    .home .tlp-chip { height: 42px; }
    .home .hf-popular { margin-top: 14px; font-size: .78rem; gap: 6px; }
    .home .hf-popular a { padding: 5px 12px; }
}
@media (max-width: 370px) {
    .home .hf-trigger { padding: 6px 6px 6px 9px; }
    .home .hf-trigger .hf-label { letter-spacing: .03em; }
}

/* ── Trust strip ──────────────────────────────────────────────────── */
.home-trust { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.home-trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 0; }
.home-trust-item { display: flex; gap: 12px; align-items: center; font-size: .88rem; font-weight: 700; line-height: 1.35; }
.home-trust-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ebe3d4; color: var(--gold-dark); flex: none; }
.home-trust-icon svg { width: 19px; height: 19px; }

/* ── Scroll rail (project rows, mobile card lists) ─────────────────── */
/* scroll-padding = the 2px side padding, so the first card already sits on its snap point: without it the browser
   scrolls every rail by 2px on load, and Chrome treats that scroll as user input and stops recording LCP (Lighthouse NO_LCP). */
.home-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 2px 18px; margin: -6px -2px 0; scroll-behavior: smooth; }
.home-rail::-webkit-scrollbar { display: none; }
.home-rail > * { scroll-snap-align: start; }
.home-rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: .2s; padding: 0; }
.home-rail-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-dark); }
.home-rail-btn:disabled { opacity: .35; cursor: default; }
.home-rail-btn svg { width: 18px; height: 18px; }
/* the inline script sets [hidden] when every card already fits on screen (display:grid above would override it) */
.home-rail-btn[hidden] { display: none; }

/* ── Project cards ────────────────────────────────────────────────── */
.home-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-card-img { aspect-ratio: 4 / 3; position: relative; background: #e9e5dc; overflow: hidden; }
.home-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.home-card:hover .home-card-img img { transform: scale(1.05); }
.home-price { position: absolute; left: 14px; bottom: 14px; background: #fff; padding: 7px 11px; border-radius: 4px; font-size: .84rem; font-weight: 800; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.home-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.home-card-body h3 { margin: 10px 0 6px; font-size: 1.06rem; }
.home-card-body p { font-size: .85rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.home-pill { align-self: flex-start; display: inline-block; border: 1px solid var(--line); border-radius: 30px; padding: 3px 10px; font-size: .72rem; color: #5f6870; }

/* ── Trending projects: highlighted dark band (#1 spotlight + ranking list) ── */
.home-trending { position: relative; background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(185,154,98,.18), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(185,154,98,.10), transparent 70%), var(--navy); color: #fff; }
.home-trending::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent); }
.home-trending h2 { color: #fff; }
.home-trending .home-sub { color: #c3cbd1; }
.home .home-trend-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); }
.home-trend-eyebrow svg { width: 16px; height: 16px; color: #f0a24a; }
.home-trend-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
.home-trend-grid.is-single { grid-template-columns: 1fr; }

/* #1 spotlight card */
.home-trend-feature { position: relative; overflow: hidden; min-height: 540px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.home-trend-feature-img { position: absolute; inset: 0; z-index: -2; }
.home-trend-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.home-trend-feature:hover .home-trend-feature-img img { transform: scale(1.04); }
.home-trend-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(15,25,35,0) 30%, rgba(15,25,35,.75) 62%, rgba(15,25,35,.96) 100%); }
.home-trend-rank { position: absolute; top: 18px; left: 18px; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: #101820; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.home-trend-feature-body { padding: 30px; }
.home-trend-pill { display: inline-block; padding: 4px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; font-size: .72rem; color: #e1e5e8; }
.home-trend-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 12px 0 8px; letter-spacing: -.02em; }
.home-trend-feature h3 a { color: #fff; }
.home-trend-meta { color: var(--gold-light); font-weight: 700; font-size: .92rem; margin: 0 0 4px; }
.home-trend-units { color: #d9dfe3; font-size: .9rem; margin: 0; }
.home-trend-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.home-trend-price small { display: block; color: #aeb8c0; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.home-trend-price strong { font-family: Montserrat, sans-serif; font-size: 1.5rem; color: #fff; }
.home-trend-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ranking list #02, #03 ... */
.home-trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.home-trend-list li { flex: 1; display: flex; }
.home-trend-item { flex: 1; display: grid; grid-template-columns: auto 150px 1fr auto; align-items: center; gap: 16px; padding: 12px 16px 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: .25s; }
.home-trend-item:hover { background: rgba(255,255,255,.09); border-color: var(--gold); transform: translateX(4px); }
.home-trend-no { font-family: Montserrat, sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--gold); min-width: 34px; letter-spacing: -.03em; }
/* thumbnail fills the row height (rows stretch to the spotlight card's height on desktop) */
.home .home-trend-item img { width: 150px; height: 100%; min-height: 90px; max-height: 150px; align-self: stretch; object-fit: cover; border-radius: 10px; }
.home-trend-item-body { display: flex; flex-direction: column; min-width: 0; }
.home-trend-item-name { font-family: Montserrat, sans-serif; font-size: 1rem; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-trend-item-meta { font-size: .8rem; color: #aeb8c0; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-trend-item-price { font-size: .88rem; font-weight: 800; color: var(--gold-light); margin-top: 6px; }
.home-trend-go { width: 20px; height: 20px; color: var(--gold-light); opacity: .7; transition: .25s; }
.home-trend-item:hover .home-trend-go { opacity: 1; transform: translate(2px, -2px); }

/* ── Image tiles (communities, property types) ─────────────────────── */
.home-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-tiles--types { grid-template-columns: repeat(5, 1fr); }
.home-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 24px; border-radius: 14px; background: var(--navy); color: #fff; isolation: isolate; }
.home-tiles--types .home-tile { min-height: 300px; padding: 20px; }
.home-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; z-index: -2; }
.home-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,35,.02) 30%, rgba(15,25,35,.86) 100%); z-index: -1; }
.home-tile::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -50px; top: -70px; }
.home-tile:hover img { transform: scale(1.06); }
.home-tile strong { font-family: Montserrat, sans-serif; font-size: 1.2rem; line-height: 1.25; color: #fff; }
.home-tile span { color: #d9dfe3; font-size: .85rem; margin-top: 2px; }
.home-tile span b { color: var(--gold-light); }

/* ── Why choose us cards ───────────────────────────────────────────── */
.home-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-guide { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 22px; transition: .25s; display: flex; flex-direction: column; }
.home-guide:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-guide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }
.home-guide h3 { font-size: 1.05rem; margin: 0 6px 8px; }
.home-guide p { font-size: .88rem; color: var(--muted); margin: 0 6px; }

/* ── Developers ────────────────────────────────────────────────────── */
.home-devs { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.home-dev-feature { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; isolation: isolate; }
.home-dev-feature > img.home-dev-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-dev-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,35,.15) 0%, rgba(15,25,35,.92) 75%); z-index: -1; }
/* logos come in white and dark versions: show any of them as a white silhouette on the dark card */
.home .home-dev-logo { width: 150px; height: 56px; object-fit: contain; object-position: left center; margin-bottom: 18px; filter: brightness(0) invert(1); }
.home-dev-feature h3 { font-size: 1.5rem; margin: 0 0 8px; color: #fff; }
.home-dev-feature p { color: #d9dfe3; font-size: .92rem; margin: 0 0 20px; max-width: 520px; }
.home-dev-feature .home-dev-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.home-dev-count { color: var(--gold-light); font-weight: 800; font-size: .9rem; }
.home-dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-dev { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: .25s; }
.home-dev:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-dev img { height: 56px; width: 100%; max-width: 160px; object-fit: contain; object-position: left center; }
.home-dev h3 { font-size: 1rem; margin: 0 0 2px; }
.home-dev small { color: var(--muted); font-size: .82rem; }

/* ── Testimonial (CMS) ─────────────────────────────────────────────── */
.home-quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: center; }
.home-quote > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.home-quote-text { position: relative; font-size: 1.12rem; color: var(--ink); }
.home-quote-text::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 5rem; line-height: .8; color: var(--gold); margin-bottom: 6px; }
.home-quote-author { margin-top: 18px; font-weight: 800; color: var(--gold-dark); }

/* ── Client stories + video ────────────────────────────────────────── */
.home-stories-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 46px; align-items: center; margin-bottom: 40px; }
.home-stories-top h2 br { display: block; }
.home-stories-top .home-sub { margin-bottom: 24px; }
.home-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); cursor: pointer; box-shadow: var(--shadow); }
.home-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s; }
.home-video:hover img { opacity: 1; transform: scale(1.03); }
.home-video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--gold); color: #101820; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(185,154,98,.28); transition: .25s; }
.home-video:hover .home-video-play { transform: scale(1.08); }
.home-video-play svg { width: 28px; height: 28px; margin-left: 4px; }
.home-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-stories { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
.home-story { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.home-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.home-stars svg { width: 16px; height: 16px; }
.home-story p { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 20px; }
.home-story-who { display: flex; align-items: center; gap: 12px; }
.home-story-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.home-story-who strong { display: block; font-size: .92rem; }
.home-story-who span { font-size: .78rem; color: var(--muted); }

/* ── Awards ────────────────────────────────────────────────────────── */
.home-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.home-awards img { width: 100%; aspect-ratio: 9 / 8; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }

/* ── Blog cards ────────────────────────────────────────────────────── */
.home-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: .25s; }
.home-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.home-post-meta { display: flex; gap: 10px; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.home-post-meta time { color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.home-post h3 { font-size: 1.02rem; margin: 10px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-post p { font-size: .87rem; color: var(--muted); flex: 1; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Final call to action ──────────────────────────────────────────── */
.home-final { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 76px 0; isolation: isolate; }
.home-final > picture, .home-final > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(20,31,42,.96), rgba(20,31,42,.78)); z-index: -1; }
.home-final-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-final .inv-eyebrow { color: var(--gold-light); }
.home-final h2 { color: #fff; margin: 6px 0 10px; }
.home-final p { color: #d9dfe3; margin: 0; max-width: 640px; }
.home-final-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .home-rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
    .home-stories { grid-auto-columns: calc((100% - 20px) / 2); }
    .home-tiles--types { grid-template-columns: repeat(3, 1fr); }
    .home-trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .home-section { padding: 62px 0; }
    .home-rail { grid-auto-columns: calc((100% - 20px) / 2); }
    .home-tiles, .home-guides, .home-posts { grid-template-columns: repeat(2, 1fr); }
    .home-devs, .home-quote, .home-stories-top { grid-template-columns: 1fr; gap: 26px; }
    .home-dev-feature { min-height: 380px; }
    .home-final-row { flex-direction: column; align-items: flex-start; }
    .home-trend-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-trend-feature { min-height: 480px; }
}

/* ── Tablet & phone: site's fixed "WhatsApp / Call Now / Enquire Now" bar (header.css, <= 768px, 53px) ── */
@media (max-width: 768px) {
    body { padding-bottom: 56px; }
}

/* ── Phone ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .home { font-size: 15px; }
    .home-wrap { width: calc(100% - 32px); }
    .home h2 { font-size: 1.55rem; margin-bottom: 8px; }
    .home-sub { font-size: .94rem; }
    .home-section { padding: 48px 0; }
    .home-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
    .home-head-end .home-rail-btn { display: none; }
    /* "View all ..." becomes a compact gold text link under the heading */
    .home .home-head-end .inv-btn-line, .home .home-head-end .inv-btn-outline { padding: 6px 0; border: 0; background: none; font-size: .88rem; }
    .home .home-trending .home-head-end .inv-btn-outline { color: var(--gold-light); }

    /* trending: spotlight card full width, ranking list stays fully visible (no swipe) */
    .home-trend-feature { min-height: 440px; border-radius: 14px; }
    .home-trend-rank { top: 14px; left: 14px; padding: 7px 12px; font-size: .7rem; }
    .home-trend-feature-body { padding: 20px; }
    .home-trend-feature h3 { font-size: 1.4rem; }
    .home-trend-cta { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; padding-top: 16px; }
    .home-trend-price strong { font-size: 1.3rem; }
    .home-trend-btns .inv-btn { flex: 1 1 0; }
    .home-trend-list { gap: 10px; }
    .home-trend-item { grid-template-columns: auto 84px 1fr; gap: 12px; padding: 10px 12px 10px 10px; }
    .home-trend-item:hover { transform: none; }
    .home .home-trend-item img { width: 84px; height: 70px; min-height: 0; border-radius: 8px; align-self: center; }
    .home-trend-no { font-size: 1.15rem; min-width: 24px; }
    .home-trend-go { display: none; }
    .home-trend-item-name { font-size: .92rem; }

    .home .home-hero { min-height: 0; }
    .home .home-hero .tlp-hero-inner { padding: 100px 16px 48px; }
    .home .home-hero .main_title { font-size: 2rem; }

    /* trust strip: 2 x 2 grid, nothing cut off */
    .home-trust-row { grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px 0; }
    .home-trust-item { font-size: .78rem; gap: 9px; }
    .home-trust-icon { width: 32px; height: 32px; }
    .home-trust-icon svg { width: 16px; height: 16px; }

    /* card lists swipe sideways; the next card peeks in */
    .home-rail, .home-stories, .home-guides, .home-posts, .home-dev-grid {
        display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
        overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
        margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 0 16px;
    }
    .home-guides::-webkit-scrollbar, .home-posts::-webkit-scrollbar, .home-dev-grid::-webkit-scrollbar { display: none; }
    .home-guides > *, .home-posts > *, .home-dev-grid > * { scroll-snap-align: start; }
    .home-dev-grid { grid-auto-columns: 62%; }
    .home-card:hover, .home-guide:hover, .home-post:hover, .home-dev:hover { transform: none; box-shadow: none; }

    .home-tiles, .home-tiles--types { grid-template-columns: 1fr 1fr; gap: 10px; }
    .home-tile, .home-tiles--types .home-tile { min-height: 170px; padding: 14px; border-radius: 11px; }
    .home-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .home-tile strong { font-size: .98rem; }
    .home-tile span { font-size: .76rem; }
    .home-tile::after { width: 120px; height: 120px; right: -40px; top: -50px; }

    .home-dev-feature { padding: 24px 20px; min-height: 340px; border-radius: 14px; }
    .home-dev-feature h3 { font-size: 1.25rem; }
    .home-quote-text { font-size: 1rem; }
    .home-awards { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .home-final { padding: 48px 0; }
    .home-final-actions { width: 100%; }
    .home-final-actions .inv-btn { flex: 1 1 100%; }
}

/* Footer headings on the home page use Montserrat like the rest of the redesign. reset.css gives h1/h2 the "TLP" font,
   a 52 KB .otf that only these 3 below-the-fold footer headings needed: it downloaded during page load and took
   bandwidth from the hero image (mobile LCP). */
footer h2, footer h3 { font-family: Montserrat, sans-serif !important; font-weight: 700; }

/* Sections below the hero / trust strip are only laid out and painted when they come near the screen. On a phone
   the browser otherwise spends ~1 s of main-thread time rendering the whole page before it can paint the hero image
   (mobile LCP). "auto 760px" = placeholder height until the section has rendered once, then its real height. */
.home > section:not(.home-hero):not(.home-trust) { content-visibility: auto; contain-intrinsic-size: auto 760px; }
