/* ════════════════════════════════════════════════════════════
   Proplisto homepage — css/home.css (Oct 2026)
   Site theme: Inter, Proplisto red #C11730, ink #222, page #f5f6f8.
   Everything is prefixed hm- so it never touches header/footer.
   ════════════════════════════════════════════════════════════ */

:root {
  --hm-red: #C11730;
  --hm-red-dk: #A01428;
  --hm-red-tint: #fbeef0;
  --hm-ink: #222222;
  --hm-ink-2: #3a3d44;
  --hm-mute: #666b74;
  --hm-line: #E5E7EB;
  --hm-line-2: #d7dae0;
  --hm-page: #f5f6f8;
  --hm-white: #ffffff;
  --hm-r: 14px;
  --hm-r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
body.hm { margin: 0; font-family: 'Inter', Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--hm-ink); background: var(--hm-page); -webkit-font-smoothing: antialiased; }
:where(#main) img { max-width: 100%; }
:where(#main) a { color: inherit; }   /* only inside the page body, never the header/footer */
.hm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm :focus-visible { outline: 2px solid var(--hm-red); outline-offset: 2px; }

.hm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hm-sec { padding: 72px 0; }
.hm-sec--white { background: var(--hm-white); }

/* Section heads: left-aligned title + one line, optional link on the right */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.hm-head h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--hm-ink); }
.hm-head p { margin: 8px 0 0; color: var(--hm-mute); max-width: 62ch; }
.hm-link { flex-shrink: 0; font-weight: 700; color: var(--hm-red) !important; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid currentColor; }
.hm-link:hover { color: var(--hm-red-dk) !important; }

/* Buttons */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 'Inter', Arial, sans-serif; border-radius: 12px; padding: 14px 22px; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.hm-btn--red { background: var(--hm-red); color: #fff !important; }
.hm-btn--red:hover { background: var(--hm-red-dk); }
.hm-btn--line { background: #fff; color: var(--hm-ink) !important; border-color: var(--hm-line-2); }
.hm-btn--line:hover { border-color: var(--hm-red); color: var(--hm-red) !important; }
.hm-btn--block { width: 100%; }
.hm-btn[disabled] { opacity: .6; cursor: wait; }

/* ══════════ HERO ══════════ */
.hm-hero { background: var(--hm-white); padding: 118px 0 56px; border-bottom: 1px solid var(--hm-line); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hm-hero-copy, .hm-hero-map { min-width: 0; }
.hm-hero h1 { margin: 0; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; color: var(--hm-ink); max-width: 13ch; }
.hm-lead { margin: 18px 0 26px; font-size: 17px; line-height: 1.55; color: var(--hm-ink-2); max-width: 54ch; }

.hm-search { background: #fff; border: 1px solid var(--hm-line); border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(17, 24, 39, .28); padding: 6px 8px 8px; }
.hm-types { min-width: 0; border: 0; margin: 0; padding: 4px 8px 0; display: flex; gap: 4px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--hm-line); }
.hm-types label { position: relative; cursor: pointer; }
.hm-types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hm-types span { display: block; padding: 10px 2px 11px; font-size: 14px; font-weight: 600; color: var(--hm-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hm-types input:checked + span { color: var(--hm-ink); border-bottom-color: var(--hm-red); }
.hm-types input:focus-visible + span { outline: 2px solid var(--hm-red); outline-offset: 2px; border-radius: 4px; }
.hm-types label:hover span { color: var(--hm-ink); }

.hm-search-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 0; align-items: stretch; padding-top: 6px; }
.hm-field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; min-width: 0; }
.hm-field + .hm-field { border-left: 1px solid var(--hm-line); }
.hm-field label { font-size: 12px; font-weight: 600; color: var(--hm-mute); line-height: 1.2; }
.hm-field input, .hm-field select { border: 0; padding: 4px 0 2px; font: 600 15px/1.4 'Inter', Arial, sans-serif; color: var(--hm-ink); background: transparent; outline: none; width: 100%; min-width: 0; }
.hm-field select { -webkit-appearance: none; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23666b74' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 18px; }
.hm-field input::placeholder { color: #9aa0a9; font-weight: 500; }
.hm-field:focus-within label { color: var(--hm-red); }
.hm-search-go { margin: 4px 0 0 6px; padding: 0 24px; border-radius: 12px; min-height: 52px; }

.hm-suggest { position: absolute; z-index: 50; left: 0; right: -40%; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--hm-line); border-radius: 12px; box-shadow: 0 20px 44px -16px rgba(17, 24, 39, .3); max-height: 340px; overflow-y: auto; }
.hm-suggest li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.hm-suggest li small { color: var(--hm-mute); font-size: 12px; white-space: nowrap; }
.hm-suggest li[aria-selected="true"], .hm-suggest li:hover { background: var(--hm-red-tint); }
.hm-suggest .hm-sg-h { cursor: default; padding: 8px 10px 4px; font-size: 12px; font-weight: 700; color: var(--hm-mute); background: none !important; }

.hm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; }
.hm-quick > span { color: var(--hm-mute); margin-right: 2px; }
.hm-quick a { text-decoration: none; color: var(--hm-ink-2); border: 1px solid var(--hm-line-2); border-radius: 999px; padding: 6px 12px; background: #fff; font-weight: 500; }
.hm-quick a:hover { border-color: var(--hm-red); color: var(--hm-red); }

.hm-hero-contact { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--hm-mute); font-size: 14px; }
.hm-hero-contact a { color: var(--hm-ink); font-weight: 600; text-decoration: none; }
.hm-hero-contact a:hover { color: var(--hm-red); }
.hm-hero-contact .fa-whatsapp { color: #1a9e55; }

/* ── the map ── */
.hm-hero-map { position: relative; margin: 0; background: var(--hm-page); border: 1px solid var(--hm-line); border-radius: 20px; padding: 14px 14px 12px; }
.hm-map { display: block; width: 100%; height: auto; }
.hm-orr { fill: none; stroke: #c4c8d0; stroke-width: 1.4; stroke-dasharray: 5 4; }
.hm-road { fill: none; stroke: #d3d6dc; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hm-roadnames text { font: italic 500 10.5px 'Inter', Arial, sans-serif; fill: #8d929b; }
.hm-roadnames .hm-orr-name { font-style: normal; font-size: 9.5px; letter-spacing: .02em; fill: #a1a6ae; }
.hm-marks rect { fill: var(--hm-ink); }
.hm-marks circle { fill: #fff; stroke: var(--hm-ink); stroke-width: 1.4; }
.hm-marks path { stroke: var(--hm-ink); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.hm-marks text { font: 600 11px 'Inter', Arial, sans-serif; fill: var(--hm-ink-2); }
.hm-legend path { fill: var(--hm-ink); }
.hm-legend text { font: 700 10px 'Inter', Arial, sans-serif; fill: var(--hm-ink); }
.hm-scale path { stroke: var(--hm-ink-2); stroke-width: 1.2; fill: none; }
.hm-scale text { font: 500 10px 'Inter', Arial, sans-serif; fill: var(--hm-mute); }
.hm-dot circle { fill: var(--hm-red); fill-opacity: .82; stroke: #fff; stroke-width: 2; transition: fill-opacity .15s ease; }
.hm-dot text { font: 600 11.5px 'Inter', Arial, sans-serif; fill: var(--hm-ink); paint-order: stroke; stroke: var(--hm-page); stroke-width: 3.5px; stroke-linejoin: round; opacity: 0; pointer-events: none; }
.hm-dot text tspan { fill: var(--hm-red); font-weight: 700; }
.hm-dot.is-lab text { opacity: 1; }
.hm-dot:hover circle, .hm-dot:focus circle, .hm-dot.is-on circle { fill-opacity: 1; fill: var(--hm-red-dk); }
.hm-dot:hover text, .hm-dot:focus text, .hm-dot.is-on text { opacity: 1; }
.hm-dot:focus { outline: none; }
.hm-dot:focus-visible circle { stroke: var(--hm-ink); stroke-width: 2.5; }
.hm-hero-map figcaption { margin: 6px 4px 0; font-size: 12.5px; color: var(--hm-mute); }
.hm-map-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--hm-line); border-radius: 10px; box-shadow: 0 12px 28px -12px rgba(17, 24, 39, .35); padding: 9px 12px; font-size: 13px; line-height: 1.45; min-width: 170px; transform: translate(-50%, calc(-100% - 14px)); }
.hm-map-tip strong { display: block; font-size: 14px; }
.hm-map-tip span { color: var(--hm-mute); display: block; white-space: nowrap; }
.hm-map-tip.is-below { transform: translate(-50%, 14px); }

/* ══════════ PROJECT CARDS ══════════ */
.hm-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.hm-tabs button { font: 600 14px/1 'Inter', Arial, sans-serif; color: var(--hm-ink-2); background: #fff; border: 1px solid var(--hm-line-2); border-radius: 999px; padding: 10px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.hm-tabs button span { font-weight: 500; color: var(--hm-mute); font-size: 12.5px; }
.hm-tabs button:hover { border-color: var(--hm-ink-2); }
.hm-tabs button[aria-selected="true"] { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.hm-tabs button[aria-selected="true"] span { color: rgba(255, 255, 255, .7); }

.hm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-card { background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-r); overflow: hidden; display: flex; flex-direction: column; }
.hm-card-media { position: relative; display: block; aspect-ratio: 8 / 5; background: #e9ebef; overflow: hidden; }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hm-card:hover .hm-card-media img { transform: scale(1.03); }
.hm-card-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-weight: 700; color: #9aa0a9; font-size: 15px; background: repeating-linear-gradient(135deg, #eceef1 0 12px, #e6e8ec 12px 24px); }
.hm-card-stage { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .95); color: var(--hm-ink); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 7px; }
.hm-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.hm-card-title { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.hm-card-title a { text-decoration: none; color: var(--hm-ink); }
.hm-card-title a:hover { color: var(--hm-red); }
.hm-card-where { margin: 4px 0 0; font-size: 13.5px; color: var(--hm-mute); }
.hm-card-spec { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--hm-ink-2); }
.hm-card-spec span { font-weight: 400; color: var(--hm-mute); margin-left: 6px; }
.hm-card-facts { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--hm-mute); }
.hm-rera { color: #1f7a4a; }
.hm-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-card-price { margin: 0; font-size: 13px; color: var(--hm-mute); }
.hm-card-price strong { font-size: 17px; color: var(--hm-ink); font-weight: 800; letter-spacing: -0.01em; }
.hm-card-cta { flex-shrink: 0; font: 600 13px/1 'Inter', Arial, sans-serif; color: var(--hm-red); background: #fff; border: 1.5px solid var(--hm-red); border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.hm-card-cta:hover { background: var(--hm-red); color: #fff; }
.hm-more { margin: 26px 0 0; text-align: center; }

/* ══════════ COMPARE TOOL ══════════ */
.hm-compare-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 56px; align-items: center; }
.hm-compare h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; }
.hm-compare-copy > p { color: var(--hm-ink-2); margin: 14px 0 0; max-width: 52ch; }
.hm-compare-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.hm-compare-points li { position: relative; padding-left: 26px; color: var(--hm-ink-2); font-size: 14.5px; }
.hm-compare-points li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--hm-red); border-bottom: 2px solid var(--hm-red); transform: rotate(-45deg); }
.hm-compare-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.hm-cmp { margin: 0; background: #fff; border: 1px solid var(--hm-line); border-radius: 18px; box-shadow: 0 24px 50px -30px rgba(17, 24, 39, .35); padding: 18px 18px 14px; }
.hm-cmp figcaption { font-size: 13px; color: var(--hm-mute); margin: 0 2px 12px; }
.hm-cmp figcaption a { color: var(--hm-red); font-weight: 600; text-decoration: none; }
.hm-cmp-scroll { overflow-x: auto; scrollbar-width: thin; }
.hm-cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.hm-cmp thead td { width: 122px; }
.hm-cmp thead th { padding: 0 8px 12px; text-align: left; vertical-align: top; font-weight: 700; }
.hm-cmp thead th a { display: block; text-decoration: none; color: var(--hm-ink); }
.hm-cmp thead th img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; background: #e9ebef; margin-bottom: 8px; }
.hm-cmp thead th span { display: block; font-size: 14px; line-height: 1.3; }
.hm-cmp thead th a:hover span { color: var(--hm-red); }
.hm-cmp tbody th { text-align: left; font-weight: 600; color: var(--hm-mute); font-size: 12.5px; padding: 10px 8px 10px 0; }
.hm-cmp tbody td { padding: 10px 8px; color: var(--hm-ink); font-variant-numeric: tabular-nums; vertical-align: top; }
.hm-cmp tbody tr { border-top: 1px solid var(--hm-line); }
.hm-cmp tbody tr:nth-child(2) td { font-weight: 800; font-size: 15px; }
.hm-cmp-more { margin: 10px 2px 0; padding-top: 10px; border-top: 1px dashed var(--hm-line-2); font-size: 12.5px; color: var(--hm-mute); }

/* compare button on cards + tray */
.hm-card-cmp { margin-left: auto; font: 600 12.5px/1 'Inter', Arial, sans-serif; color: var(--hm-ink-2); background: none; border: 0; padding: 2px 0; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.hm-card-cmp:hover { color: var(--hm-red); }
.hm-card-cmp[aria-pressed="true"] { color: var(--hm-red); }
.hm-tray { position: fixed; z-index: 9000; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--hm-ink); color: #fff; border-radius: 14px; padding: 8px 8px 8px 18px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); font-size: 14px; max-width: calc(100% - 32px); }
.hm-tray[hidden] { display: none; }
.hm-tray .hm-btn { padding: 11px 16px; font-size: 14px; }
.hm-tray-x { background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px; }
.hm-tray-x:hover { color: #fff; }

/* ══════════ DEVELOPERS ══════════ */
.hm-devgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--hm-line); border-left: 1px solid var(--hm-line); }
.hm-devgrid li { border-right: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); }
.hm-devgrid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 12px 16px; text-decoration: none; height: 100%; }
.hm-devgrid { background: #fff; }
.hm-devgrid a:hover { background: #fafbfc; }
.hm-devlogo { height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.hm-devlogo img { max-height: 48px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.hm-devname { font-size: 13.5px; font-weight: 600; color: var(--hm-ink); line-height: 1.3; }
.hm-devcount { font-size: 12.5px; color: var(--hm-mute); }

/* ══════════ BUDGET / SIZE / STAGE ledgers ══════════ */
.hm-finder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.hm-ledger { background: #fafbfc; border: 1px solid var(--hm-line); border-radius: var(--hm-r); padding: 18px 20px 8px; }
.hm-ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; min-height: 34px; }
.hm-ledger-head--sub { margin-top: 18px; }
.hm-ledger h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.hm-seg { display: inline-flex; background: var(--hm-page); border-radius: 9px; padding: 3px; }
.hm-seg button { font: 600 12.5px/1 'Inter', Arial, sans-serif; border: 0; background: none; color: var(--hm-mute); padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.hm-seg button[aria-pressed="true"] { background: #fff; color: var(--hm-ink); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }
.hm-rows { list-style: none; margin: 0; padding: 0; }
.hm-rows li + li { border-top: 1px solid var(--hm-line); }
.hm-rows a { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; text-decoration: none; color: var(--hm-ink); font-size: 14.5px; }
.hm-rows a span { flex: 1; min-width: 0; }
.hm-rows a small { color: var(--hm-mute); font-size: 12.5px; margin-left: 4px; }
.hm-rows a b { font-weight: 700; color: var(--hm-mute); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.hm-rows a:hover span { color: var(--hm-red); }
.hm-rows a:hover b { color: var(--hm-red); }

/* ══════════ SPOTLIGHT ══════════ */
.hm-spot-cols { columns: 3; column-gap: 40px; }
.hm-spot-col { display: contents; }
.hm-spot-col h3 { break-after: avoid; break-inside: avoid; margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--hm-red); padding-bottom: 10px; border-bottom: 2px solid var(--hm-ink); display: flex; justify-content: space-between; }
.hm-spot-col h3 span { color: var(--hm-mute); font-weight: 600; }
.hm-spot-col ul { list-style: none; margin: 0; padding: 0; }
.hm-spot-col ul + h3, .hm-spot-col + .hm-spot-col h3 { margin-top: 26px; }
.hm-spot-col li { break-inside: avoid; padding: 13px 0 12px; border-bottom: 1px solid var(--hm-line); display: flex; flex-direction: column; gap: 2px; }
.hm-spot-name { font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--hm-ink); line-height: 1.3; }
.hm-spot-name:hover { color: var(--hm-red); }
.hm-spot-meta { font-size: 13px; color: var(--hm-mute); }
.hm-spot-meta b { color: var(--hm-ink); font-weight: 700; margin-left: 4px; }
.hm-spot-subs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; }
.hm-spot-subs a { font-size: 12.5px; color: #4b5563; text-decoration: none; border-bottom: 1px solid var(--hm-line-2); }
.hm-spot-subs a:hover { color: var(--hm-red); border-color: var(--hm-red); }

/* ══════════ LOCALITY TABLE ══════════ */
.hm-table-wrap { background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-r); overflow: hidden; }
.hm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hm-table thead th { text-align: left; background: #fafbfc; border-bottom: 1px solid var(--hm-line); padding: 0; font-size: 12.5px; font-weight: 600; color: var(--hm-mute); white-space: nowrap; }
.hm-table thead th:not(:has(button)) { padding: 12px 16px; }
.hm-table thead button { font: inherit; color: inherit; background: none; border: 0; padding: 12px 16px; cursor: pointer; width: 100%; text-align: inherit; }
.hm-table thead button::after { content: ''; display: inline-block; width: 8px; margin-left: 6px; }
.hm-table thead th[aria-sort="descending"] button::after { content: '↓'; color: var(--hm-red); }
.hm-table thead th[aria-sort="ascending"] button::after { content: '↑'; color: var(--hm-red); }
.hm-table thead button:hover { color: var(--hm-ink); }
.hm-table tbody th, .hm-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--hm-line); text-align: left; vertical-align: top; }
.hm-table tbody tr:last-child th, .hm-table tbody tr:last-child td { border-bottom: 0; }
.hm-table tbody th { font-weight: 700; }
.hm-table tbody th a { text-decoration: none; color: var(--hm-ink); }
.hm-table tbody th a:hover { color: var(--hm-red); }
.hm-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.hm-table thead .num button { text-align: right; }
.hm-table td { color: var(--hm-ink-2); font-variant-numeric: tabular-nums; }
.hm-table tbody tr:hover { background: #fcfcfd; }
.hm-table-links { display: flex; min-height: 1px; flex-wrap: wrap; gap: 2px 12px; }
.hm-table-links a { color: var(--hm-red); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.hm-table-links a:hover { text-decoration: underline; }
.hm-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--hm-mute); }

/* ══════════ ADVISOR ══════════ */
.hm-advisor { background: var(--hm-red); color: #fff; }
.hm-advisor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hm-advisor h2 { margin: 0 0 26px; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 20ch; color: #fff; }
.hm-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.hm-steps li { counter-increment: s; position: relative; padding-left: 46px; color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 52ch; }
.hm-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.hm-steps strong { color: #fff; }
.hm-advisor-alt { margin: 26px 0 0; color: rgba(255, 255, 255, .85); }
.hm-advisor-alt a { color: #fff; font-weight: 700; }
.hm-form { background: #fff; color: var(--hm-ink); border-radius: 18px; padding: 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); display: grid; gap: 12px; }
.hm-input { display: grid; gap: 5px; }
.hm-input span { font-size: 13px; font-weight: 600; color: var(--hm-ink-2); }
.hm-input em { font-style: normal; font-weight: 400; color: var(--hm-mute); }
.hm-input input, .hm-input select { width: 100%; font: 500 15px/1.3 'Inter', Arial, sans-serif; color: var(--hm-ink); border: 1px solid var(--hm-line-2); border-radius: 10px; padding: 12px 12px; background: #fff; }
.hm-input select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23666b74' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.hm-input input:focus, .hm-input select:focus { border-color: var(--hm-red); outline: none; box-shadow: 0 0 0 3px rgba(193, 23, 48, .12); }
.hm-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-form-msg { margin: 0; font-size: 14px; min-height: 0; }
.hm-form-msg:empty { display: none; }
.hm-form-msg.is-error { color: var(--hm-red); }
.hm-form-msg.is-ok { color: #1f7a4a; font-weight: 600; }
.hm-fine { margin: 0; font-size: 12.5px; color: var(--hm-mute); }

/* ══════════ BLOG ══════════ */
.hm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hm-post-media { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #eceef1; margin-bottom: 14px; }
.hm-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-post-cat { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--hm-red); }
.hm-post h3 { margin: 0; font-size: 17.5px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.hm-post h3 a { text-decoration: none; color: var(--hm-ink); }
.hm-post h3 a:hover { color: var(--hm-red); }
.hm-post-ex { margin: 8px 0 0; color: var(--hm-mute); font-size: 14px; }
.hm-post-meta { margin: 8px 0 0; font-size: 12.5px; color: #8d929b; }

/* ══════════ FAQ ══════════ */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.hm-faq h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hm-faq-grid > div:first-child p { color: var(--hm-mute); margin: 10px 0 0; }
.hm-faq-ask a { color: var(--hm-red); font-weight: 700; }
.hm-faq-list { border-top: 2px solid var(--hm-ink); }
.hm-faq-list details { border-bottom: 1px solid var(--hm-line-2); }
.hm-faq-list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.hm-faq-list summary::-webkit-details-marker { display: none; }
.hm-faq-list summary::after { content: ''; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--hm-ink-2); border-bottom: 2px solid var(--hm-ink-2); transform: rotate(45deg); transition: transform .2s ease; }
.hm-faq-list details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.hm-faq-list summary:hover { color: var(--hm-red); }
.hm-faq-a { padding: 0 0 18px; color: var(--hm-ink-2); max-width: 70ch; }
.hm-faq-a p { margin: 0; }
.hm-faq-links { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hm-faq-links a { color: var(--hm-red); font-weight: 600; font-size: 14px; }

/* ══════════ ABOUT + HUB ══════════ */
.hm-about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hm-prose h2 { margin: 0 0 14px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hm-prose p { margin: 0 0 14px; color: var(--hm-ink-2); max-width: 66ch; }
.hm-prose a { color: var(--hm-red); font-weight: 600; text-decoration: none; }
.hm-prose a:hover { text-decoration: underline; }
.hm-bybuilder { background: var(--hm-page); border-radius: var(--hm-r); padding: 22px 24px; }
.hm-bybuilder h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.hm-bybuilder ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.hm-bybuilder li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hm-line); font-size: 14px; }
.hm-bybuilder li a { text-decoration: none; color: var(--hm-ink); font-weight: 500; }
.hm-bybuilder li a:hover { color: var(--hm-red); }
.hm-bybuilder li span { color: var(--hm-mute); font-variant-numeric: tabular-nums; font-size: 13px; }
.hm-bybuilder p { margin: 16px 0 0; }

/* Long lists fold on phones only; desktop shows everything */
.hm-show { display: none; margin: 18px 0 0; text-align: center; }

/* ══════════ POPUP ══════════ */
.hm-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(17, 24, 39, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hm-modal[hidden] { display: none; }
.hm-modal-open #pai-root { display: none !important; }   /* chat launcher sits above everything */
.hm-modal-box { position: relative; background: #fff; border-radius: 18px; padding: 26px 24px 22px; width: 100%; max-width: 420px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
.hm-modal-box h2 { margin: 0 34px 4px 0; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.hm-modal-box > p { margin: 0 0 16px; color: var(--hm-mute); font-size: 14px; }
.hm-modal-box form { display: grid; gap: 12px; }
.hm-modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--hm-page); font-size: 22px; line-height: 1; cursor: pointer; color: var(--hm-ink-2); }
.hm-modal-x:hover { background: var(--hm-line); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1180px) {
  .hm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-devgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hm-hero { padding-top: 104px; }
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hm-hero h1 { max-width: 16ch; }
  .hm-hero-map { max-width: 620px; }
  .hm-finder-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm-finder-grid .hm-ledger:first-child { grid-column: 1 / -1; }
  .hm-spot-cols { columns: 2; column-gap: 28px; }
  .hm-advisor-grid, .hm-faq-grid, .hm-about-grid, .hm-compare-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hm-posts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm-posts .hm-post:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .hm-table thead { display: none; }
  .hm-table, .hm-table tbody, .hm-table tr { display: block; }
  .hm-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--hm-line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .hm-table tbody tr:last-child { border-bottom: 0; }
  .hm-table tbody th, .hm-table tbody td { padding: 0; border: 0; display: block; }
  .hm-table tbody th { font-size: 16px; }
  .hm-table tbody td.num { grid-column: 2; grid-row: 1; text-align: right; }
  .hm-table tbody td.num::after { content: ' projects'; font-weight: 500; color: var(--hm-mute); font-size: 12.5px; }
  .hm-table tbody td[data-label="Part of city"] { display: none; }
  .hm-table tbody td[data-label="Price per sq ft"], .hm-table tbody td[data-label="Typical price"] { grid-column: 1 / -1; font-size: 13.5px; color: var(--hm-mute); }
  .hm-table tbody td[data-label="Price per sq ft"]::before { content: 'Per sq ft: '; }
  .hm-table tbody td[data-label="Typical price"]::before { content: 'Typical price: '; }
  .hm-table tbody td.hm-table-links { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 640px) {
  body.hm { font-size: 15px; }
  .hm-wrap { padding: 0 16px; }
  .hm-sec { padding: 52px 0; }
  .hm-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .hm-head h2, .hm-faq h2 { font-size: 24px; }
  .hm-hero { padding: 96px 0 36px; }
  .hm-lead { font-size: 15.5px; margin: 14px 0 20px; }
  .hm-types { padding: 2px 6px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hm-types::-webkit-scrollbar { display: none; }
  .hm-types span { white-space: nowrap; }
  .hm-search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm-field--where { grid-column: 1 / -1; border-bottom: 1px solid var(--hm-line); }
  .hm-field + .hm-field { border-left: 0; }
  .hm-field--budget { padding-top: 10px; }
  .hm-search-go { margin: 8px 6px 2px 0; min-height: 48px; }
  .hm-suggest { right: 0; }
  .hm-hero-map { padding: 8px 6px 10px; border-radius: 16px; margin: 0 -4px; }
  .hm-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .hm-cards::-webkit-scrollbar { display: none; }
  .hm-card { flex: 0 0 82%; scroll-snap-align: start; }
  .hm-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .hm-tabs::-webkit-scrollbar { display: none; }
  .hm-tabs button { white-space: nowrap; }
  .hm-devgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-devgrid li:nth-child(n+9) { display: none; }
  .hm-finder-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-spot-cols { columns: 1; }
  .hm-advisor h2 { font-size: 25px; }
  .hm-form { padding: 18px; }
  .hm-posts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hm-posts .hm-post:nth-child(3) { display: block; }
  .hm-bybuilder { padding: 18px; }
  .hm-faq-list summary { font-size: 15.5px; }
  .hm-compare h2 { font-size: 24px; }
  .hm-cmp { padding: 14px 12px 12px; margin: 0 -4px; }
  .hm-cmp table { min-width: 520px; }
  .hm-cmp thead td, .hm-cmp tbody th { position: sticky; left: 0; background: #fff; z-index: 1; }
  .hm-cmp thead td { width: 96px; }
  .hm-tray { bottom: 76px; gap: 10px; padding-left: 14px; font-size: 13px; }
  .hm-show { display: block; }
  .hm-collapsible:not(.is-open) .hm-extra { display: none !important; }
  .hm-post { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .hm-post-media { margin: 0; aspect-ratio: 1 / 1; border-radius: 10px; }
  .hm-post h3 { font-size: 15.5px; }
  .hm-post-ex { display: none; }
  .hm-types { gap: 2px 10px; }
  .hm-types span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { transition: none !important; animation: none !important; }
}
