/*
  Homes of Canada Listing Template CSS
  All class names use the hoc prefix so this page is safer to drop into a bigger site.
*/

:root {
    --hoc-bg: #f5f7fb;
    --hoc-surface: #ffffff;
    --hoc-text: #172033;
    --hoc-muted: #667085;
    --hoc-line: #e4e8f0;
    --hoc-brand: #1d5fd3;
    --hoc-brand-dark: #143f90;
    --hoc-accent: #d8ad43;
    --hoc-soft: #eef4ff;
    --hoc-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --hoc-radius: 20px;
}

/* SECTION: Fixed Homes of Canada header */
:root {
    --hoc-header-height: 68px;
}
.hoc-listing-page { padding-top: var(--hoc-header-height); }
.hoc-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.hoc-header-inner {
    height: var(--hoc-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.hoc-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 185px;
    text-decoration: none;
}
.hoc-header-brand img {
    width: auto;
    height: 42px;
    max-width: 210px;
    object-fit: contain;
}
.hoc-header-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hoc-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}
.hoc-header-nav a {
    color: #243047;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    padding: 10px 13px;
    border-radius: 999px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.hoc-header-nav a:hover {
    background: #eef4ff;
    color: var(--hoc-brand);
    transform: translateY(-1px);
}
.hoc-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}
.hoc-header-login,
.hoc-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, border 160ms ease, background 160ms ease;
}
.hoc-header-login {
    color: var(--hoc-brand);
    background: #ffffff;
    border: 1px solid #d8e3fb;
}
.hoc-header-login:hover {
    border-color: var(--hoc-brand);
    transform: translateY(-1px);
}
.hoc-header-cta {
    color: #101828;
    background: linear-gradient(135deg, #f8df8b 0%, var(--hoc-accent) 100%);
    border: 1px solid rgba(151, 115, 19, 0.28);
    box-shadow: 0 10px 24px rgba(216, 173, 67, 0.28);
}
.hoc-header-cta:hover {
    transform: translateY(-1px);
}
.hoc-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 999px;
    border: 1px solid var(--hoc-line);
    background: #fff;
    color: var(--hoc-text);
    font-weight: 900;
    cursor: pointer;
}
.hoc-menu-toggle i,
.hoc-menu-toggle i::before,
.hoc-menu-toggle i::after {
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}
.hoc-menu-toggle i { position: relative; }
.hoc-menu-toggle i::before { position: absolute; top: -5px; left: 0; }
.hoc-menu-toggle i::after { position: absolute; top: 5px; left: 0; }
.hoc-mobile-menu {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--hoc-line);
    border-radius: 18px;
    box-shadow: var(--hoc-shadow);
}
.hoc-mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 13px;
    color: var(--hoc-text);
    text-decoration: none;
    font-weight: 850;
}
.hoc-mobile-menu a:hover {
    background: var(--hoc-soft);
    color: var(--hoc-brand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--hoc-bg);
    color: var(--hoc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* SECTION: Common layout helpers */
.hoc-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.hoc-card {
    background: var(--hoc-surface);
    border: 1px solid var(--hoc-line);
    border-radius: var(--hoc-radius);
    box-shadow: var(--hoc-shadow);
}
.hoc-section { margin-top: 24px; padding: 26px; }
.hoc-section-heading { margin-bottom: 18px; }
.hoc-section-heading h2 { margin: 0; font-size: clamp(23px, 2vw, 32px); letter-spacing: -0.03em; }
.hoc-section-heading p { margin: 0 0 6px; }
.hoc-eyebrow {
    color: var(--hoc-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.hoc-description {
    color: #384152;
    font-size: 16px;
    margin: 0;
}
.hoc-text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--hoc-brand);
    font-weight: 800;
    text-decoration: none;
}
.hoc-primary-button,
.hoc-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}
.hoc-primary-button { background: var(--hoc-brand); color: #fff; }
.hoc-primary-button:hover { background: var(--hoc-brand-dark); transform: translateY(-1px); }
.hoc-secondary-button { background: #fff; border-color: var(--hoc-line); color: var(--hoc-text); }
.hoc-secondary-button:hover { border-color: var(--hoc-brand); color: var(--hoc-brand); transform: translateY(-1px); }
.hoc-full-button { width: 100%; margin-top: 10px; }

/* SECTION: Top title area */
.hoc-hero-head {
    padding: 34px 0 24px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border-bottom: 1px solid var(--hoc-line);
}
.hoc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--hoc-muted);
    font-size: 14px;
    margin-bottom: 18px;
}
.hoc-breadcrumbs a { text-decoration: none; }
.hoc-breadcrumbs a:hover { color: var(--hoc-brand); }
.hoc-title-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
}
.hoc-title-grid h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(31px, 4.5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}
.hoc-subtitle {
    margin: 12px 0 0;
    color: var(--hoc-muted);
    font-size: clamp(17px, 2vw, 21px);
}
.hoc-price-card {
    background: #101828;
    color: #fff;
    border-radius: 22px;
    padding: 20px 22px;
    min-width: 260px;
    text-align: right;
    box-shadow: var(--hoc-shadow);
}
.hoc-price { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; }
.hoc-price-meta { color: rgba(255,255,255,0.72); font-size: 14px; margin-top: 3px; }
.hoc-fast-facts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 22px;
}
.hoc-fast-facts div {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--hoc-line);
    border-radius: 16px;
    padding: 14px 15px;
}
.hoc-fast-facts strong { display: block; font-size: 20px; }
.hoc-fast-facts span { display: block; color: var(--hoc-muted); font-size: 13px; }

/* SECTION: Media gallery */
.hoc-gallery-section { padding: 24px 0 0; }
.hoc-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 12px;
}
.hoc-video-card,
.hoc-photo-tile {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 0;
    background: #111827;
    padding: 0;
}
.hoc-video-card { grid-row: span 2; }
.hoc-video-card iframe,
.hoc-mobile-video iframe,
.hoc-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.hoc-photo-tile { cursor: pointer; }
.hoc-photo-tile img, .hoc-photo-rail img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.hoc-photo-tile:hover img { transform: scale(1.04); }
.hoc-photo-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(16, 24, 40, 0.78);
    color: #fff;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    backdrop-filter: blur(8px);
}
.hoc-mobile-media { display: none; }

/* SECTION: Main content and sidebar */
.hoc-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    padding-top: 24px;
}
.hoc-main-column .hoc-section:first-child { margin-top: 0; }
.hoc-sticky-stack { position: sticky; top: 22px; display: grid; gap: 16px; }
.hoc-agent-card {
    background: #101828;
    color: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--hoc-shadow);
}
.hoc-agent-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.hoc-agent-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--hoc-accent), #fff1bd);
    color: #101828;
    font-weight: 900;
}
.hoc-agent-card h2 { margin: 0; font-size: 22px; }
.hoc-agent-card p { margin: 2px 0 0; color: rgba(255,255,255,0.72); }
.hoc-mini-form-card, .hoc-sidebar-summary { padding: 22px; }
.hoc-mini-form-card h2, .hoc-sidebar-summary h2 { margin: 0 0 14px; }
.hoc-lead-form { display: grid; gap: 12px; }
.hoc-lead-form label, .hoc-form-grid label {
    display: grid;
    gap: 6px;
    color: var(--hoc-muted);
    font-size: 13px;
    font-weight: 800;
}
.hoc-lead-form input, .hoc-lead-form textarea, .hoc-form-grid input, .hoc-form-grid select {
    width: 100%;
    border: 1px solid var(--hoc-line);
    border-radius: 12px;
    padding: 12px 13px;
    background: #fff;
    color: var(--hoc-text);
}
.hoc-sidebar-summary dl { margin: 0; display: grid; gap: 12px; }
.hoc-sidebar-summary div { border-top: 1px solid var(--hoc-line); padding-top: 12px; }
.hoc-sidebar-summary dt { color: var(--hoc-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hoc-sidebar-summary dd { margin: 3px 0 0; font-weight: 700; }

/* SECTION: Cards, chips, tables */
/* SECTION: Icon based property snapshot
   Compact version: this is the small six item summary area under Details.
   The markup stays the same. Only the visual system changes here.
*/
#details.hoc-section {
    padding: 24px;
}
#details .hoc-section-heading {
    margin-bottom: 16px;
}
#details .hoc-section-heading h2 {
    font-size: clamp(24px, 2vw, 31px);
}
.hoc-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 2px 0 0;
}
.hoc-snapshot-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 88px;
    padding: 16px 17px;
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}
.hoc-snapshot-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--hoc-text);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hoc-snapshot-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}
.hoc-snapshot-text {
    min-width: 0;
}
.hoc-snapshot-text span {
    display: block;
    color: var(--hoc-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}
.hoc-snapshot-text strong {
    display: block;
    margin-top: 4px;
    color: var(--hoc-text);
    font-size: clamp(20px, 1.55vw, 24px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

/* Legacy detail classes are kept so older partials do not break. */
.hoc-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hoc-detail-item { background: var(--hoc-soft); border: 1px solid #dbe7ff; border-radius: 17px; padding: 16px; }
.hoc-detail-item span { display: block; color: var(--hoc-muted); font-size: 13px; font-weight: 800; }
.hoc-detail-item strong { display: block; margin-top: 5px; font-size: 22px; }
.hoc-mini-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hoc-mini-list div { border: 1px solid var(--hoc-line); border-radius: 14px; padding: 14px; }
.hoc-mini-list span { display: block; color: var(--hoc-muted); font-size: 13px; font-weight: 800; }
.hoc-mini-list strong { display: block; margin-top: 3px; }
.hoc-chip-title { margin: 20px 0 10px; font-size: 18px; }
.hoc-chip-title:first-of-type { margin-top: 0; }
.hoc-chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.hoc-chip-list span {
    background: #f8fafc;
    border: 1px solid var(--hoc-line);
    color: #344054;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}
.hoc-market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.hoc-market-grid div { background: #f7fbff; border: 1px solid #dbe7ff; border-radius: 16px; padding: 16px; text-align: center; }
.hoc-market-grid strong { display: block; font-size: 26px; }
.hoc-market-grid span { color: var(--hoc-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hoc-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--hoc-line); border-radius: 15px; }
.hoc-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.hoc-table th, .hoc-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hoc-line); vertical-align: top; }
.hoc-table tr:last-child th, .hoc-table tr:last-child td { border-bottom: 0; }
.hoc-table th { width: 34%; color: var(--hoc-muted); font-size: 13px; font-weight: 900; background: #f8fafc; }
.hoc-wide-table { min-width: 920px; }
.hoc-table-card { padding: 22px; margin-top: 16px; }
.hoc-table-card h3 { margin: 0 0 14px; }
.hoc-with-button { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.hoc-two-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hoc-two-tables h3 { margin: 10px 0; }
.hoc-room-panel { margin-top: 12px; }

/* SECTION: Mortgage */
.hoc-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hoc-mortgage-results { margin-top: 16px; }
.hoc-small-note { color: var(--hoc-muted); font-size: 13px; margin: 12px 0 0; }

/* SECTION: Location map */
.hoc-map-frame { height: 360px; overflow: hidden; border-radius: 18px; border: 1px solid var(--hoc-line); }

/* SECTION: Simple footer */
.hoc-simple-footer {
    margin-top: 36px;
    padding: 26px 0;
    background: #101828;
    color: #fff;
}
.hoc-simple-footer .hoc-container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hoc-simple-footer span { color: rgba(255,255,255,0.7); }
.hoc-simple-footer a { color: #fff; font-weight: 800; text-decoration: none; }

/* SECTION: Lightbox */
.hoc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.88);
    padding: 28px;
}
.hoc-lightbox.is-open { display: flex; }
.hoc-lightbox img { max-height: 88vh; max-width: min(1100px, 90vw); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,0.55); }
.hoc-lightbox-close,
.hoc-lightbox-prev,
.hoc-lightbox-next {
    position: absolute;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}
.hoc-lightbox-close { right: 24px; top: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; }
.hoc-lightbox-prev, .hoc-lightbox-next { top: 50%; transform: translateY(-50%); width: 54px; height: 70px; border-radius: 18px; font-size: 44px; }
.hoc-lightbox-prev { left: 24px; }
.hoc-lightbox-next { right: 24px; }


@media (max-width: 860px) {
    .hoc-header-nav { display: none; }
    .hoc-header-brand { min-width: 0; flex: 1; }
    .hoc-header-brand img { max-width: 178px; height: 38px; }
    .hoc-header-login { display: none; }
    .hoc-menu-toggle { display: inline-flex; }
}
@media (max-width: 470px) {
    :root { --hoc-header-height: 62px; }
    .hoc-header-inner { gap: 8px; }
    .hoc-header-brand img { max-width: 146px; height: 34px; }
    .hoc-header-cta { min-height: 36px; padding: 9px 12px; font-size: 12px; }
    .hoc-menu-toggle { min-height: 36px; padding: 8px 10px; }
    .hoc-menu-toggle span { display: none; }
}

/* SECTION: Responsive behaviour */
@media (max-width: 960px) {
    .hoc-title-grid, .hoc-content-grid { grid-template-columns: 1fr; }
    .hoc-price-card { text-align: left; min-width: 0; }
    .hoc-fast-facts { grid-template-columns: repeat(3, 1fr); }
    .hoc-gallery-grid { display: none; }
    .hoc-mobile-media { display: block; }
    .hoc-mobile-video { height: 310px; border-radius: 22px; overflow: hidden; background: #111827; }
    .hoc-photo-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; padding: 12px 0 4px; scroll-snap-type: x mandatory; }
    .hoc-photo-rail button { border: 0; padding: 0; height: 260px; border-radius: 18px; overflow: hidden; background: #111827; scroll-snap-align: start; }
    .hoc-sticky-stack { position: static; }
    .hoc-two-tables { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .hoc-container { width: min(100% - 24px, 1180px); }
    .hoc-hero-head { padding-top: 24px; }
    .hoc-section, .hoc-table-card { padding: 18px; border-radius: 17px; }
    .hoc-fast-facts, .hoc-detail-grid, .hoc-market-grid, .hoc-form-grid, .hoc-mini-list, .hoc-snapshot-grid { grid-template-columns: 1fr 1fr; }
    .hoc-snapshot-grid { gap: 12px; }
    .hoc-snapshot-item { min-height: 82px; padding: 14px; gap: 11px; }
    .hoc-snapshot-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .hoc-snapshot-text strong { font-size: 21px; }
    .hoc-title-grid h1 { letter-spacing: -0.04em; }
    .hoc-price { font-size: 28px; }
    .hoc-mobile-video { height: 230px; }
    .hoc-photo-rail { grid-auto-columns: 84%; }
    .hoc-photo-rail button { height: 220px; }
    .hoc-with-button { display: grid; }
    .hoc-simple-footer .hoc-container { display: grid; }
    .hoc-lightbox-prev, .hoc-lightbox-next { width: 42px; height: 56px; font-size: 34px; }
}
@media (max-width: 430px) {
    .hoc-fast-facts, .hoc-detail-grid, .hoc-market-grid, .hoc-form-grid, .hoc-mini-list, .hoc-snapshot-grid { grid-template-columns: 1fr; }
    .hoc-snapshot-grid { gap: 10px; }
    .hoc-snapshot-item { min-height: 76px; }
    .hoc-snapshot-icon { width: 38px; height: 38px; flex-basis: 38px; }
}

/* SECTION: Page polish and typography cleanup
   This override block makes the page feel more like a real estate product page.
   It reduces oversized headings, tightens cards, and makes body copy easier to read.
*/
:root {
    --hoc-bg: #f6f8fc;
    --hoc-text: #121a2b;
    --hoc-muted: #667085;
    --hoc-line: #e2e8f0;
    --hoc-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    --hoc-radius: 18px;
}
body {
    font-size: 15px;
    line-height: 1.58;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
    color: var(--hoc-text);
    font-weight: 820;
    line-height: 1.14;
}
p {
    line-height: 1.68;
}
.hoc-container {
    width: min(1160px, calc(100% - 32px));
}
.hoc-card,
.hoc-section,
.hoc-table-card {
    border-color: #e3e8f2;
    border-radius: var(--hoc-radius);
    box-shadow: var(--hoc-shadow);
}
.hoc-section {
    margin-top: 22px;
    padding: 24px;
}
.hoc-section-heading {
    margin-bottom: 16px;
}
.hoc-section-heading h2 {
    font-size: clamp(20px, 1.75vw, 26px);
    letter-spacing: -0.035em;
}
.hoc-section-heading p,
.hoc-eyebrow {
    font-size: 11px;
    letter-spacing: 0.105em;
}
.hoc-description {
    max-width: 76ch;
    color: #344054;
    font-size: 15.5px;
    line-height: 1.76;
}
.hoc-hero-head {
    padding: 28px 0 22px;
}
.hoc-breadcrumbs {
    margin-bottom: 14px;
    font-size: 13px;
}
.hoc-title-grid {
    gap: 22px;
    align-items: center;
}
.hoc-title-grid h1 {
    max-width: 790px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.06;
    letter-spacing: -0.048em;
}
.hoc-subtitle {
    margin-top: 10px;
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.45;
}
.hoc-price-card {
    min-width: 230px;
    padding: 18px 20px;
    border-radius: 18px;
}
.hoc-price {
    font-size: clamp(24px, 2.2vw, 30px);
}
.hoc-price-meta {
    font-size: 13px;
}
.hoc-fast-facts {
    gap: 10px;
    margin-top: 18px;
}
.hoc-fast-facts div {
    border-radius: 14px;
    padding: 12px 13px;
}
.hoc-fast-facts strong {
    font-size: 18px;
}
.hoc-fast-facts span {
    font-size: 12px;
}
.hoc-gallery-grid {
    grid-template-rows: 196px 196px;
    gap: 10px;
}
.hoc-video-card,
.hoc-photo-tile {
    border-radius: 18px;
}
.hoc-content-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}
.hoc-sticky-stack {
    top: calc(var(--hoc-header-height) + 18px);
    gap: 14px;
}
.hoc-primary-button,
.hoc-secondary-button {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 800;
}
.hoc-chip-title {
    font-size: 16px;
    letter-spacing: -0.02em;
}
.hoc-chip-list span {
    padding: 7px 11px;
    font-size: 12.5px;
    font-weight: 700;
}
.hoc-market-grid strong {
    font-size: 22px;
}
.hoc-market-grid span {
    font-size: 11px;
}
.hoc-table th,
.hoc-table td {
    padding: 10px 12px;
    font-size: 13.5px;
}
.hoc-table th {
    font-size: 12px;
}
.hoc-table-card h3 {
    font-size: 17px;
}

/* SECTION: Compact property snapshot cards */
#details.hoc-section {
    padding: 24px;
}
#details .hoc-section-heading h2 {
    font-size: clamp(21px, 1.8vw, 27px);
}
.hoc-snapshot-grid {
    gap: 12px;
}
.hoc-snapshot-item {
    min-height: 78px;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}
.hoc-snapshot-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    opacity: 0.86;
}
.hoc-snapshot-icon svg {
    stroke-width: 2;
}
.hoc-snapshot-text span {
    font-size: 10.5px;
    letter-spacing: 0.095em;
}
.hoc-snapshot-text strong {
    margin-top: 3px;
    font-size: clamp(18px, 1.35vw, 22px);
    font-weight: 760;
}

/* SECTION: Realtor sidebar and lead generation form
   This replaces the old call, email, and copy link actions.
   The realtor appears first, then the form appears right away.
*/
.hoc-realtor-lead-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.hoc-realtor-lead-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--hoc-brand), var(--hoc-accent));
}
.hoc-agent-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hoc-line);
}
.hoc-agent-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f5d779, var(--hoc-accent));
    color: #101828;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(216, 173, 67, 0.24);
}
.hoc-agent-copy {
    min-width: 0;
}
.hoc-agent-kicker {
    margin: 0 0 3px;
    color: var(--hoc-brand);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.hoc-agent-copy h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.03em;
}
.hoc-agent-copy p:last-child {
    margin: 3px 0 0;
    color: var(--hoc-muted);
    font-size: 13px;
    line-height: 1.35;
}
.hoc-form-intro {
    margin-bottom: 2px;
}
.hoc-form-intro h3 {
    margin: 0 0 5px;
    font-size: 18px;
    letter-spacing: -0.03em;
}
.hoc-form-intro p {
    margin: 0 0 8px;
    color: var(--hoc-muted);
    font-size: 13px;
    line-height: 1.52;
}
.hoc-realtor-form {
    gap: 10px;
}
.hoc-lead-form label,
.hoc-form-grid label {
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 820;
}
.hoc-lead-form input,
.hoc-lead-form textarea,
.hoc-lead-form select,
.hoc-form-grid input,
.hoc-form-grid select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 11px 12px;
    background: #ffffff;
    color: var(--hoc-text);
    font-size: 14px;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease;
}
.hoc-lead-form textarea {
    resize: vertical;
    min-height: 96px;
}
.hoc-lead-form input:focus,
.hoc-lead-form textarea:focus,
.hoc-lead-form select:focus,
.hoc-form-grid input:focus,
.hoc-form-grid select:focus {
    border-color: rgba(29, 95, 211, 0.72);
    box-shadow: 0 0 0 4px rgba(29, 95, 211, 0.10);
}
.hoc-form-note {
    margin: 4px 0 0;
    color: var(--hoc-muted);
    font-size: 11.5px;
    line-height: 1.45;
}
.hoc-sidebar-summary {
    padding: 20px;
}
.hoc-sidebar-summary h2 {
    margin: 0 0 12px;
    font-size: 18px;
    letter-spacing: -0.03em;
}
.hoc-sidebar-summary dt {
    font-size: 10.5px;
    letter-spacing: 0.09em;
}
.hoc-sidebar-summary dd {
    font-size: 13.5px;
    line-height: 1.45;
}

@media (max-width: 960px) {
    .hoc-content-grid {
        grid-template-columns: 1fr;
    }
    .hoc-sticky-stack {
        position: static;
    }
}
@media (max-width: 680px) {
    body {
        font-size: 14.5px;
    }
    .hoc-container {
        width: min(100% - 24px, 1160px);
    }
    .hoc-section,
    .hoc-table-card,
    .hoc-realtor-lead-card,
    .hoc-sidebar-summary {
        padding: 18px;
        border-radius: 16px;
    }
    .hoc-title-grid h1 {
        font-size: clamp(25px, 8vw, 34px);
    }
    .hoc-subtitle {
        font-size: 15px;
    }
    .hoc-fast-facts,
    .hoc-snapshot-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hoc-snapshot-item {
        min-height: 74px;
        padding: 13px;
    }
    .hoc-snapshot-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .hoc-snapshot-text strong {
        font-size: 18px;
    }
}
@media (max-width: 430px) {
    .hoc-fast-facts,
    .hoc-snapshot-grid {
        grid-template-columns: 1fr;
    }
}

/* SECTION: Market Activity replacement for the old Nearby Activity area
   These styles make the comparison tables feel like Homes of Canada instead of the source site.
*/
.hoc-comparables-section {
    padding: 24px;
}
.hoc-comparables-heading {
    max-width: 780px;
}
.hoc-comparables-heading h2 {
    font-size: clamp(21px, 1.9vw, 28px);
}
.hoc-comparables-intro {
    margin: 7px 0 0;
    color: var(--hoc-muted);
    font-size: 14px;
    line-height: 1.55;
}
.hoc-activity-card {
    margin-top: 14px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}
.hoc-table-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--hoc-line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.hoc-table-card-head h3 {
    margin: 0;
    color: var(--hoc-text);
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.hoc-table-card-head p {
    max-width: 760px;
    margin: 5px 0 0;
    color: var(--hoc-muted);
    font-size: 12.5px;
    line-height: 1.45;
}
.hoc-activity-table-wrap {
    border: 0;
    border-radius: 0;
}
.hoc-activity-table {
    min-width: 1020px;
    border-collapse: separate;
    border-spacing: 0;
}
.hoc-activity-table th,
.hoc-activity-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf1f7;
    font-size: 12.5px;
    white-space: nowrap;
}
.hoc-activity-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    width: auto;
    background: #f8fafc;
    color: #667085;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.hoc-activity-table td {
    color: #263247;
    background: #ffffff;
}
.hoc-activity-table tbody tr:hover td {
    background: #f9fbff;
}
.hoc-activity-table tbody tr:last-child td {
    border-bottom: 0;
}
.hoc-listing-table-link {
    color: var(--hoc-brand);
    font-weight: 820;
    text-decoration: none;
}
.hoc-listing-table-link:hover {
    text-decoration: underline;
}
.hoc-current-listing-row td {
    background: #eef4ff;
    font-weight: 820;
}
.hoc-current-listing-row .hoc-listing-table-link {
    color: var(--hoc-brand-dark);
}

/* SECTION: Blog style remarks under the comparison tables
   This is intentionally a little smaller than the main sections.
*/
.hoc-remarks-blog {
    margin-top: 18px;
    padding: 24px;
    font-size: 0.84em;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.hoc-remarks-blog h2 {
    max-width: 820px;
    margin: 0 0 12px;
    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}
.hoc-remarks-blog h3 {
    margin: 20px 0 7px;
    color: #202b40;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.hoc-remarks-blog p {
    max-width: 84ch;
    margin: 0;
    color: #3f4a5f;
    font-size: 14px;
    line-height: 1.74;
}
.hoc-remarks-blog p + p {
    margin-top: 10px;
}

@media (max-width: 680px) {
    .hoc-comparables-section {
        padding: 18px;
    }
    .hoc-table-card-head {
        padding: 16px;
    }
    .hoc-activity-table th,
    .hoc-activity-table td {
        padding: 10px 11px;
        font-size: 12px;
    }
    .hoc-remarks-blog {
        padding: 18px;
        font-size: 0.88em;
    }
    .hoc-remarks-blog h2 {
        font-size: 21px;
    }
    .hoc-remarks-blog h3 {
        font-size: 15.5px;
    }
    .hoc-remarks-blog p {
        font-size: 13.5px;
    }
}

/* SECTION: Sidebar service suggestions above Quick Summary */
.hoc-service-suggestions {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}
.hoc-service-heading {
    margin-bottom: 14px;
}
.hoc-service-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.hoc-service-heading p:last-child {
    margin: 5px 0 0;
    color: var(--hoc-muted);
    font-size: 12.5px;
    line-height: 1.48;
}
.hoc-partner-card {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}
.hoc-partner-card + .hoc-partner-card,
.hoc-extra-services {
    margin-top: 12px;
}
.hoc-partner-card-featured {
    border-color: rgba(29, 95, 211, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}
.hoc-partner-top {
    display: flex;
    align-items: center;
    gap: 11px;
}
.hoc-partner-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--hoc-brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}
.hoc-partner-avatar-muted {
    background: #202b40;
}
.hoc-partner-top h3 {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}
.hoc-partner-top p {
    margin: 2px 0 0;
    color: var(--hoc-muted);
    font-size: 12.5px;
    line-height: 1.35;
}
.hoc-partner-note {
    margin: 11px 0 0;
    color: #465268;
    font-size: 12.8px;
    line-height: 1.58;
}
.hoc-mini-service-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.hoc-mini-service-form label {
    display: grid;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 820;
}
.hoc-mini-service-form select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px 11px;
    color: var(--hoc-text);
    background: #ffffff;
    font-size: 13.5px;
    outline: none;
}
.hoc-mini-service-form select:focus {
    border-color: rgba(29, 95, 211, 0.72);
    box-shadow: 0 0 0 4px rgba(29, 95, 211, 0.10);
}
.hoc-extra-services {
    display: grid;
    gap: 9px;
}
.hoc-extra-service-item {
    padding: 12px 13px;
    border: 1px solid #e5eaf3;
    border-radius: 14px;
    background: #ffffff;
}
.hoc-extra-service-item span {
    display: inline-flex;
    margin-bottom: 5px;
    color: var(--hoc-brand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hoc-extra-service-item strong {
    display: block;
    color: var(--hoc-text);
    font-size: 13.5px;
    line-height: 1.28;
}
.hoc-extra-service-item p {
    margin: 4px 0 0;
    color: var(--hoc-muted);
    font-size: 12.3px;
    line-height: 1.5;
}

/* SECTION: Longer remarks article with smaller blog typography */
.hoc-remarks-blog {
    padding: 28px;
}
.hoc-remarks-blog .hoc-remarks-lead {
    margin-bottom: 16px;
    color: #344054;
    font-size: 14.5px;
    line-height: 1.78;
}
.hoc-remarks-blog h3 {
    margin-top: 24px;
}
.hoc-remarks-blog ul {
    max-width: 84ch;
    margin: 10px 0 0;
    padding-left: 19px;
    color: #3f4a5f;
    font-size: 14px;
    line-height: 1.7;
}
.hoc-remarks-blog li + li {
    margin-top: 6px;
}
@media (max-width: 680px) {
    .hoc-service-suggestions {
        padding: 18px;
        border-radius: 16px;
    }
    .hoc-partner-card {
        padding: 14px;
    }
    .hoc-remarks-blog {
        padding: 19px;
    }
    .hoc-remarks-blog ul {
        font-size: 13.5px;
    }
}


/* SECTION: Deep listing data polish, pricing history, assessment, building, schools, permits, and market graphs */
.hoc-deep-data {
    overflow: hidden;
}
.hoc-value-grid,
.hoc-building-grid,
.hoc-health-grid,
.hoc-benchmark-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.hoc-value-card,
.hoc-building-grid > div,
.hoc-health-grid > div,
.hoc-benchmark-grid > div {
    padding: 16px;
    border: 1px solid #dfe8f5;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}
.hoc-value-card span,
.hoc-building-grid span,
.hoc-health-grid span,
.hoc-benchmark-grid span {
    display: block;
    color: #69758b;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hoc-value-card strong,
.hoc-building-grid strong,
.hoc-health-grid strong,
.hoc-benchmark-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--hoc-text);
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.hoc-health-grid small {
    display: block;
    margin-top: 5px;
    color: #69758b;
    font-size: 12.5px;
    line-height: 1.35;
}
@media (max-width: 900px) {
    .hoc-value-grid,
    .hoc-building-grid,
    .hoc-health-grid,
    .hoc-benchmark-grid,
    .hoc-chart-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .hoc-value-grid,
    .hoc-building-grid,
    .hoc-health-grid,
    .hoc-benchmark-grid,
    .hoc-chart-card-grid {
        grid-template-columns: 1fr;
    }
    .hoc-value-card strong {
        font-size: 21px;
    }
    .hoc-assessment-chart {
        gap: 9px;
        padding-left: 6px;
        padding-right: 6px;
    }
    .hoc-bar-stack {
        width: 25px;
    }
}


/* Post map listing intelligence sections */
.hoc-post-map-data {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}
.hoc-post-map-data .hoc-section-heading p:not(.hoc-eyebrow) {
    max-width: 820px;
    margin: 6px 0 0;
    color: var(--hoc-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.hoc-layout-facts {
    margin-top: 22px;
}


/* Timeline and civic record layout cleanup */
.hoc-timeline-list,
.hoc-permit-list {
    display: grid;
    gap: 10px;
}
.hoc-timeline-item,
.hoc-permit-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}
.hoc-timeline-item {
    grid-template-columns: 136px 118px minmax(128px, 0.85fr) 96px minmax(260px, 1.7fr);
    padding: 14px 16px;
}
.hoc-timeline-item.is-current {
    border-color: #cfe0fb;
    background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 70%);
}
.hoc-timeline-date,
.hoc-timeline-price,
.hoc-timeline-change,
.hoc-timeline-note,
.hoc-permit-date,
.hoc-permit-main,
.hoc-permit-meta {
    min-width: 0;
}
.hoc-timeline-date span,
.hoc-timeline-price span,
.hoc-timeline-change span,
.hoc-timeline-note span,
.hoc-permit-date span {
    display: block;
    margin-bottom: 4px;
    color: #7a879c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hoc-timeline-date strong,
.hoc-timeline-price strong,
.hoc-timeline-change strong,
.hoc-timeline-note strong,
.hoc-permit-date strong {
    display: block;
    color: var(--hoc-text);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.hoc-timeline-price strong {
    font-size: 15px;
    letter-spacing: -0.01em;
}
.hoc-timeline-note strong {
    font-weight: 750;
    color: #40516a;
}
.hoc-timeline-note em {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #0d6efd12;
    color: var(--hoc-brand);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}
.hoc-permit-card {
    grid-template-columns: 132px minmax(280px, 1fr) 280px;
    padding: 16px;
}
.hoc-permit-main h3 {
    margin: 0 0 5px;
    color: var(--hoc-text);
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.hoc-permit-main p {
    margin: 0;
    color: #526276;
    font-size: 13.2px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.hoc-permit-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.hoc-permit-meta span {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #f5f8fc;
    color: #7a879c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hoc-permit-meta strong {
    color: var(--hoc-text);
    font-size: 13.5px;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
    .hoc-timeline-item {
        grid-template-columns: 130px 116px minmax(120px, 1fr) 88px;
    }
    .hoc-timeline-note {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid #edf2f8;
    }
    .hoc-permit-card {
        grid-template-columns: 126px minmax(220px, 1fr);
    }
    .hoc-permit-meta {
        grid-column: 1 / -1;
    }
}
@media (max-width: 720px) {
    .hoc-timeline-item,
    .hoc-permit-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }
    .hoc-timeline-note,
    .hoc-permit-meta {
        grid-column: auto;
        padding-top: 10px;
        border-top: 1px solid #edf2f8;
    }
    .hoc-permit-meta {
        grid-template-columns: 1fr;
    }
}


/* START COMPONENT: High tech local market charts
   Used inside Local Market Data after the map. These replace the old placeholder blue half-bar charts.
*/
.hoc-market-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.hoc-tech-chart {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 18px;
    border: 1px solid rgba(113, 139, 189, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 14% 12%, rgba(78, 138, 255, 0.24), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(233, 190, 71, 0.18), transparent 28%),
        linear-gradient(145deg, #0d1629 0%, #111c31 46%, #0a1222 100%);
    color: #f8fbff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
    isolation: isolate;
}
.hoc-tech-chart::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
    pointer-events: none;
    z-index: -1;
}
.hoc-tech-chart::after {
    content: '';
    position: absolute;
    inset: auto 24px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 190, 71, 0.7), rgba(74, 144, 255, 0.7), transparent);
    opacity: 0.75;
}
.hoc-tech-chart-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    z-index: 2;
}
.hoc-tech-chart-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}
.hoc-tech-chart-head p {
    max-width: 480px;
    margin: 7px 0 0;
    color: rgba(222, 232, 250, 0.78);
    font-size: 12px;
    line-height: 1.48;
}
.hoc-tech-chart-head > span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hoc-tech-chart-stage {
    position: relative;
    height: 232px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
    overflow: hidden;
}
.hoc-tech-chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.hoc-chart-grid-line {
    stroke: rgba(222, 232, 250, 0.12);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.hoc-chart-axis-label {
    fill: rgba(222, 232, 250, 0.58);
    font-size: 10px;
    font-weight: 700;
}
.hoc-chart-bar {
    fill: url(#hocChartBarGradient);
    filter: drop-shadow(0 10px 14px rgba(49, 113, 241, 0.28));
    transition: opacity 160ms ease, transform 160ms ease;
}
.hoc-chart-bar-secondary {
    fill: url(#hocChartGoldGradient);
    filter: drop-shadow(0 10px 14px rgba(233, 190, 71, 0.22));
}
.hoc-chart-area {
    fill: url(#hocChartAreaGradient);
    opacity: 0.95;
}
.hoc-chart-line {
    fill: none;
    stroke: #78a7ff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(70, 132, 255, 0.78));
}
.hoc-chart-dot {
    fill: #ffffff;
    stroke: #78a7ff;
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(70, 132, 255, 0.9));
}
.hoc-chart-guide {
    stroke: rgba(255,255,255,0.34);
    stroke-width: 1;
    stroke-dasharray: 5 5;
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}
.hoc-tech-chart.is-hovering .hoc-chart-guide {
    opacity: 1;
}
.hoc-chart-hit {
    fill: transparent;
    cursor: crosshair;
}
.hoc-chart-hit:hover + .hoc-chart-hover-shape,
.hoc-chart-hover-shape.is-active {
    opacity: 1;
}
.hoc-chart-hover-shape {
    opacity: 0;
    fill: rgba(255,255,255,0.10);
    stroke: rgba(255,255,255,0.18);
    transition: opacity 140ms ease;
    pointer-events: none;
}
.hoc-chart-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    min-width: 184px;
    max-width: 240px;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    background: rgba(6, 13, 26, 0.88);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    transform: translate(-50%, calc(-100% - 12px));
    pointer-events: none;
}
.hoc-chart-tooltip strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #dbe8ff;
}
.hoc-chart-tooltip span {
    display: block;
    margin-top: 5px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.hoc-chart-tooltip small {
    display: block;
    margin-top: 4px;
    color: rgba(222,232,250,0.72);
    font-size: 11px;
    line-height: 1.35;
}
.hoc-tech-chart-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: rgba(222, 232, 250, 0.62);
    font-size: 11px;
    font-weight: 750;
}
.hoc-tech-chart-foot span:last-child {
    color: rgba(233, 190, 71, 0.92);
}
.hoc-chart-legend {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.hoc-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    fill: rgba(222,232,250,0.72);
    font-size: 10px;
    font-weight: 800;
}
.hoc-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
}
@media (max-width: 900px) {
    .hoc-market-chart-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .hoc-tech-chart {
        min-height: 330px;
        padding: 14px;
        border-radius: 20px;
    }
    .hoc-tech-chart-head {
        flex-direction: column;
    }
    .hoc-tech-chart-stage {
        height: 210px;
    }
    .hoc-tech-chart-foot {
        flex-direction: column;
        gap: 4px;
    }
}
/* END COMPONENT: High tech local market charts */


/* SECTION: Final sidebar and education polish
   Keeps Quick Summary normal, then makes the dark realtor box sticky inside the main listing area.
*/
.hoc-sidebar {
    align-self: stretch;
}
.hoc-sticky-stack {
    position: static !important;
    top: auto !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}
.hoc-sidebar-sticky-contact {
    position: sticky;
    top: calc(var(--hoc-header-height) + 18px);
    z-index: 4;
}
.hoc-realtor-dark-card {
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 14% 0%, rgba(216, 173, 67, 0.28), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(29, 95, 211, 0.28), transparent 34%),
        linear-gradient(145deg, #071324 0%, #101b30 48%, #070d19 100%);
    box-shadow: 0 24px 60px rgba(5, 13, 28, 0.28);
}
.hoc-realtor-dark-card::before {
    background: linear-gradient(90deg, var(--hoc-accent), #ffffff, var(--hoc-brand));
    opacity: 0.9;
}
.hoc-realtor-dark-card .hoc-agent-profile {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}
.hoc-realtor-dark-card .hoc-agent-kicker {
    color: #f7d675;
}
.hoc-realtor-dark-card .hoc-agent-copy h2,
.hoc-realtor-dark-card .hoc-form-intro h3 {
    color: #ffffff;
}
.hoc-realtor-dark-card .hoc-agent-copy p:last-child,
.hoc-realtor-dark-card .hoc-form-intro p,
.hoc-realtor-dark-card .hoc-form-note {
    color: rgba(235, 241, 255, 0.72);
}
.hoc-realtor-dark-card .hoc-lead-form label {
    color: rgba(235, 241, 255, 0.84);
}
.hoc-realtor-dark-card .hoc-lead-form input,
.hoc-realtor-dark-card .hoc-lead-form textarea,
.hoc-realtor-dark-card .hoc-lead-form select {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hoc-realtor-dark-card .hoc-lead-form input::placeholder,
.hoc-realtor-dark-card .hoc-lead-form textarea::placeholder {
    color: rgba(235, 241, 255, 0.48);
}
.hoc-realtor-dark-card .hoc-lead-form input:focus,
.hoc-realtor-dark-card .hoc-lead-form textarea:focus,
.hoc-realtor-dark-card .hoc-lead-form select:focus {
    border-color: rgba(247, 214, 117, 0.72);
    box-shadow: 0 0 0 4px rgba(247, 214, 117, 0.12);
}
.hoc-realtor-dark-card .hoc-primary-button {
    color: #101828;
    background: linear-gradient(135deg, #fff0b8 0%, var(--hoc-accent) 100%);
    box-shadow: 0 16px 28px rgba(216, 173, 67, 0.25);
}
.hoc-realtor-dark-card .hoc-primary-button:hover {
    background: linear-gradient(135deg, #fff5cf 0%, #e3bb55 100%);
}

/* SECTION: Boxed school cards */
.hoc-school-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.hoc-school-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 18px;
    border: 1px solid #dce6f4;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.98) 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}
.hoc-school-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -34px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: rgba(29, 95, 211, 0.08);
    pointer-events: none;
}
.hoc-school-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.hoc-school-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #123b82;
    background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 100%);
    border: 1px solid #d6e3f7;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.06em;
}
.hoc-school-card h3 {
    margin: 0 0 8px;
    color: var(--hoc-text);
    font-size: 17px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}
.hoc-school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hoc-school-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #174ea6;
    background: #edf4ff;
    border: 1px solid #dbe8ff;
    font-size: 11px;
    font-weight: 850;
}
.hoc-school-tags span:nth-child(2) {
    color: #7a5a12;
    background: #fff7db;
    border-color: #f6df94;
}
.hoc-school-card p {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    color: #4a5a70;
    font-size: 13.5px;
    line-height: 1.45;
}
.hoc-school-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.hoc-school-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 10px;
    color: #516176;
    background: #f5f8fc;
    border: 1px solid #e5edf7;
    font-size: 12px;
    font-weight: 780;
}
@media (max-width: 960px) {
    .hoc-sidebar {
        align-self: auto;
    }
    .hoc-sidebar-sticky-contact {
        position: static;
    }
}
@media (max-width: 760px) {
    .hoc-school-grid {
        grid-template-columns: 1fr;
    }
}


/* SECTION: Final data polish requested after testing
   Repairs assessment chart, strata cards, graph inquiry card, and the full footer.
*/
.hoc-section-heading h2 {
    max-width: 980px;
}
.hoc-post-map-data .hoc-section-heading .hoc-eyebrow {
    color: var(--hoc-brand);
    font-size: 0.79rem;
    letter-spacing: 0.18em;
    font-weight: 950;
    text-transform: uppercase;
}
.hoc-post-map-data .hoc-section-heading h2 {
    font-size: clamp(1.55rem, 2.2vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

/* Tax assessment stacked chart */
.hoc-assessment-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
    min-height: 270px;
    margin: 20px 0 18px;
    padding: 22px 20px 18px;
    border: 1px solid #dfe8f5;
    border-radius: 22px;
    background:
        linear-gradient(rgba(29,95,211,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,95,211,0.04) 1px, transparent 1px),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    background-size: 100% 48px, 76px 100%, auto;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}
.hoc-assessment-bar {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: end;
    height: 220px;
    gap: 10px;
}
.hoc-bar-stack {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: clamp(46px, 6vw, 72px);
    height: 172px;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 18px 18px 10px 10px;
    background: rgba(255,255,255,0.74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 16px 28px rgba(29,95,211,0.08);
}
.hoc-bar-land,
.hoc-bar-improvements {
    display: block;
    width: 100%;
    transition: filter 160ms ease, transform 160ms ease;
}
.hoc-bar-land {
    background: linear-gradient(180deg, #1e2a44 0%, #0d1629 100%);
}
.hoc-bar-improvements {
    background: linear-gradient(180deg, #79a8ff 0%, var(--hoc-brand) 100%);
    box-shadow: 0 -10px 26px rgba(29,95,211,0.18);
}
.hoc-assessment-bar:hover .hoc-bar-land,
.hoc-assessment-bar:hover .hoc-bar-improvements {
    filter: brightness(1.1);
}
.hoc-assessment-bar strong {
    color: var(--hoc-text);
    font-size: 13px;
    font-weight: 900;
}
@media (max-width: 700px) {
    .hoc-assessment-chart {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(92px, 1fr));
    }
}

/* Strata building cards */
.hoc-building-grid {
    margin-top: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hoc-building-grid > div {
    min-height: 94px;
}
.hoc-building-health {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #dfe8f5;
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 4%, rgba(29,95,211,0.1), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
.hoc-building-health h3 {
    margin: 0 0 14px;
    color: var(--hoc-text);
    font-size: 1.08rem;
    letter-spacing: -0.035em;
}
.hoc-health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hoc-health-grid > div,
.hoc-benchmark-grid > div {
    background: rgba(255,255,255,0.86);
}
.hoc-benchmark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}
.hoc-benchmark-grid strong {
    color: var(--hoc-brand);
    font-size: 1.45rem;
}
@media (max-width: 850px) {
    .hoc-building-grid,
    .hoc-health-grid,
    .hoc-benchmark-grid {
        grid-template-columns: 1fr;
    }
}

/* Graph card inquiry form */
.hoc-tech-realtor-chart-card {
    min-height: 360px;
    display: flex;
    background:
        radial-gradient(circle at 12% 4%, rgba(216, 173, 67, 0.25), transparent 30%),
        radial-gradient(circle at 86% 14%, rgba(95, 151, 255, 0.24), transparent 34%),
        linear-gradient(145deg, #061224 0%, #0f1b31 48%, #060b15 100%);
}
.hoc-tech-realtor-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.hoc-agent-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}
.hoc-tech-realtor-chart-card .hoc-agent-avatar {
    color: #101828;
    background: linear-gradient(135deg, #fff1ba, var(--hoc-accent));
}
.hoc-tech-realtor-chart-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.15;
    letter-spacing: -0.045em;
}
.hoc-tech-realtor-chart-card .hoc-agent-copy p,
.hoc-tech-realtor-copy {
    color: rgba(235, 241, 255, 0.74);
}
.hoc-tech-realtor-copy {
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.55;
}
.hoc-market-data-form {
    display: grid;
    gap: 10px;
    margin-top: auto;
}
.hoc-market-data-form label {
    color: rgba(235, 241, 255, 0.84);
}
.hoc-market-data-form input,
.hoc-market-data-form textarea {
    color: #fff;
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
}
.hoc-market-data-form input::placeholder,
.hoc-market-data-form textarea::placeholder {
    color: rgba(235, 241, 255, 0.48);
}
.hoc-market-data-form input:focus,
.hoc-market-data-form textarea:focus {
    border-color: rgba(247, 214, 117, 0.72);
    box-shadow: 0 0 0 4px rgba(247, 214, 117, 0.12);
}
.hoc-market-data-form .hoc-primary-button {
    color: #101828;
    background: linear-gradient(135deg, #fff0b8 0%, var(--hoc-accent) 100%);
}

/* Footer */
.hoc-premium-footer {
    position: relative;
    overflow: hidden;
    margin-top: 52px;
    padding: 58px 0 28px;
    color: #f8fbff;
    background:
        radial-gradient(circle at 10% 0%, rgba(216, 173, 67, 0.22), transparent 32%),
        radial-gradient(circle at 86% 8%, rgba(29, 95, 211, 0.28), transparent 34%),
        linear-gradient(145deg, #050b16 0%, #0b1527 48%, #050812 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hoc-footer-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
    pointer-events: none;
}
.hoc-footer-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
    gap: clamp(26px, 5vw, 70px);
    align-items: start;
}
.hoc-footer-brand-block p {
    max-width: 420px;
    margin: 18px 0 0;
    color: rgba(235,241,255,0.72);
    line-height: 1.65;
    font-size: 0.95rem;
}
.hoc-footer-logo-link {
    display: inline-flex;
    align-items: center;
}
.hoc-footer-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 230px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}
.hoc-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.hoc-footer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 15px;
    border-radius: 999px;
    color: #101828;
    background: linear-gradient(135deg, #fff0b8, var(--hoc-accent));
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}
.hoc-footer-actions a:nth-child(2) {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}
.hoc-footer-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.hoc-footer-link-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hoc-footer-link-grid a {
    display: block;
    width: fit-content;
    margin: 9px 0;
    color: rgba(235,241,255,0.72);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    transition: color 160ms ease, transform 160ms ease;
}
.hoc-footer-link-grid a:hover {
    color: #ffffff;
    transform: translateX(3px);
}
.hoc-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(235,241,255,0.62);
    font-size: 0.83rem;
}
.hoc-footer-bottom p {
    margin: 0;
}
.hoc-footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}
.hoc-footer-bottom a {
    color: rgba(235,241,255,0.7);
    text-decoration: none;
    font-weight: 750;
}
.hoc-footer-bottom a:hover {
    color: #ffffff;
}
.hoc-simple-footer {
    display: none;
}
@media (max-width: 980px) {
    .hoc-footer-top {
        grid-template-columns: 1fr;
    }
    .hoc-footer-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .hoc-premium-footer {
        padding-top: 42px;
    }
    .hoc-footer-link-grid {
        grid-template-columns: 1fr;
    }
    .hoc-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .hoc-footer-bottom div {
        justify-content: flex-start;
    }
}

/* SECTION: Mobile only repair pass
   These rules intentionally target phones only so the approved desktop layout stays unchanged.
   They fix horizontal overflow, giant mobile headings, crowded cards, and oversized chart sections.
*/
@media (max-width: 700px) {
    html,
    body,
    .hoc-listing-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hoc-container,
    .hoc-content-grid,
    .hoc-main-column,
    .hoc-sidebar,
    .hoc-post-map-data,
    .hoc-section,
    .hoc-card,
    .hoc-table-card,
    .hoc-two-tables,
    .hoc-market-chart-grid,
    .hoc-footer-top,
    .hoc-footer-link-grid {
        max-width: 100%;
        min-width: 0;
    }

    .hoc-container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hoc-section,
    .hoc-table-card,
    .hoc-comparables-section,
    .hoc-remarks-blog,
    .hoc-realtor-lead-card,
    .hoc-service-suggestions,
    .hoc-sidebar-summary {
        padding: 16px;
        border-radius: 18px;
    }

    .hoc-section-heading {
        margin-bottom: 14px;
    }

    .hoc-section-heading h2,
    .hoc-post-map-data .hoc-section-heading h2 {
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.12;
        letter-spacing: -0.045em;
    }

    .hoc-section-heading p:not(.hoc-eyebrow),
    .hoc-post-map-data .hoc-section-heading p:not(.hoc-eyebrow) {
        font-size: 13.5px;
        line-height: 1.55;
        letter-spacing: 0;
    }

    .hoc-eyebrow,
    .hoc-post-map-data .hoc-section-heading .hoc-eyebrow {
        font-size: 10.5px;
        letter-spacing: 0.13em;
    }

    /* Mobile header, keep the approved desktop header untouched. */
    .hoc-header-inner {
        min-width: 0;
    }

    .hoc-header-brand {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .hoc-header-brand img {
        max-width: min(178px, 48vw);
        height: 34px;
        object-fit: contain;
    }

    .hoc-header-actions {
        flex: 0 0 auto;
        gap: 7px;
    }

    .hoc-header-cta {
        min-height: 36px;
        padding: 9px 11px;
        font-size: 11.5px;
    }

    .hoc-menu-toggle {
        min-height: 36px;
        padding: 8px 10px;
    }

    .hoc-menu-toggle span {
        display: none;
    }

    /* Top listing area, smaller and tighter for phone. */
    .hoc-hero-head {
        padding: 18px 0 16px;
    }

    .hoc-breadcrumbs {
        gap: 6px;
        margin-bottom: 12px;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .hoc-title-grid {
        gap: 14px;
    }

    .hoc-title-grid h1 {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.08;
        letter-spacing: -0.045em;
        overflow-wrap: anywhere;
    }

    .hoc-subtitle {
        font-size: 14.5px;
        line-height: 1.45;
    }

    .hoc-price-card {
        padding: 17px;
        border-radius: 20px;
    }

    .hoc-price {
        font-size: clamp(27px, 9vw, 36px);
    }

    .hoc-price-meta {
        font-size: 13px;
    }

    .hoc-fast-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hoc-fast-facts div {
        min-width: 0;
        padding: 13px;
        border-radius: 16px;
    }

    .hoc-fast-facts strong {
        font-size: 19px;
    }

    .hoc-fast-facts span {
        font-size: 12px;
    }

    /* Mobile gallery, keep it scrollable without widening the body. */
    .hoc-mobile-video {
        height: 210px;
        border-radius: 18px;
    }

    .hoc-photo-rail {
        max-width: 100%;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .hoc-photo-rail button {
        height: 190px;
        border-radius: 16px;
    }

    /* Details cards work better as two columns on normal phones. */
    .hoc-snapshot-grid,
    .hoc-market-grid,
    .hoc-mini-list,
    .hoc-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hoc-snapshot-item {
        min-width: 0;
        min-height: 78px;
        padding: 12px;
        gap: 10px;
    }

    .hoc-snapshot-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .hoc-snapshot-text span {
        font-size: 9.8px;
    }

    .hoc-snapshot-text strong {
        font-size: 17px;
        overflow-wrap: anywhere;
    }

    /* Tables stay inside their own scroller instead of forcing page width. */
    .hoc-table-wrap,
    .hoc-activity-table-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hoc-table,
    .hoc-compact-table {
        width: 100%;
        max-width: none;
    }

    .hoc-table th,
    .hoc-table td {
        padding: 10px 11px;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .hoc-table th {
        font-size: 10.5px;
    }

    .hoc-activity-table {
        min-width: 880px;
    }

    .hoc-activity-table th,
    .hoc-activity-table td {
        padding: 9px 10px;
        font-size: 11.5px;
    }

    /* The assessment chart now fits on the phone instead of creating page overflow. */
    .hoc-assessment-chart {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        min-height: 205px;
        margin: 16px 0 14px;
        padding: 14px 8px 12px;
        overflow: hidden;
        border-radius: 18px;
    }

    .hoc-assessment-bar {
        height: 162px;
        gap: 7px;
    }

    .hoc-bar-stack {
        width: clamp(32px, 10vw, 42px);
        height: 128px;
        border-radius: 14px 14px 8px 8px;
    }

    .hoc-assessment-bar strong {
        font-size: 11.5px;
    }

    /* Strata and school cards, cleaner on phone. */
    .hoc-value-grid,
    .hoc-building-grid,
    .hoc-health-grid,
    .hoc-benchmark-grid,
    .hoc-school-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hoc-value-card,
    .hoc-building-grid > div,
    .hoc-health-grid > div,
    .hoc-benchmark-grid > div,
    .hoc-school-card {
        max-width: 100%;
        min-width: 0;
        padding: 14px;
        border-radius: 16px;
    }

    .hoc-school-card::after {
        display: none;
    }

    .hoc-school-card-top {
        align-items: flex-start;
    }

    .hoc-school-card h3 {
        font-size: 15.5px;
        overflow-wrap: anywhere;
    }

    .hoc-school-card p,
    .hoc-school-meta span {
        font-size: 12.5px;
    }

    .hoc-building-health {
        padding: 15px;
        border-radius: 18px;
    }

    /* Timeline and civic cards, keep labels readable and no side scrolling. */
    .hoc-timeline-item,
    .hoc-permit-card {
        grid-template-columns: 1fr;
        padding: 13px;
        gap: 9px;
        border-radius: 16px;
    }

    .hoc-timeline-note,
    .hoc-permit-meta {
        grid-column: auto;
        padding-top: 9px;
        border-top: 1px solid #edf2f8;
    }

    .hoc-permit-meta {
        grid-template-columns: 1fr;
    }

    .hoc-timeline-date strong,
    .hoc-timeline-price strong,
    .hoc-timeline-change strong,
    .hoc-timeline-note strong,
    .hoc-permit-date strong {
        font-size: 13.2px;
    }

    /* High tech charts, still interactive but less huge on phone. */
    .hoc-market-chart-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hoc-tech-chart {
        min-width: 0;
        min-height: auto;
        padding: 13px;
        border-radius: 18px;
    }

    .hoc-tech-chart-head {
        flex-direction: column;
        gap: 8px;
    }

    .hoc-tech-chart-head h3 {
        font-size: 15.5px;
        line-height: 1.2;
    }

    .hoc-tech-chart-head p {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .hoc-tech-chart-head > span {
        min-height: 24px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .hoc-tech-chart-stage {
        height: 190px;
        margin-top: 12px;
        border-radius: 15px;
    }

    .hoc-tech-chart-foot {
        gap: 5px;
        font-size: 10px;
    }

    .hoc-chart-tooltip {
        min-width: 160px;
        max-width: 210px;
        padding: 10px;
        border-radius: 13px;
    }

    .hoc-chart-tooltip span {
        font-size: 16px;
    }

    .hoc-tech-realtor-chart-card {
        min-height: auto;
    }

    .hoc-agent-profile-mini {
        align-items: flex-start;
    }

    .hoc-tech-realtor-chart-card h3 {
        font-size: 18px;
    }

    .hoc-market-data-form textarea {
        min-height: 86px;
    }

    /* Similar listings remain scrollable, with clearer mobile cue. */
    .hoc-table-card-head {
        padding: 14px;
    }

    .hoc-table-card-head h3 {
        font-size: 15.5px;
    }

    .hoc-table-card-head p {
        font-size: 12px;
    }

    .hoc-activity-card::after {
        content: "Swipe table sideways";
        display: block;
        padding: 0 14px 13px;
        color: var(--hoc-muted);
        font-size: 11px;
        font-weight: 800;
    }

    /* Footer stays premium but not heavy on phone. */
    .hoc-premium-footer {
        margin-top: 36px;
        padding: 36px 0 22px;
    }

    .hoc-footer-top {
        gap: 24px;
    }

    .hoc-footer-logo {
        height: 38px;
        max-width: 190px;
    }

    .hoc-footer-brand-block p {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .hoc-footer-actions a {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .hoc-footer-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .hoc-footer-link-grid h2 {
        margin-bottom: 8px;
        font-size: 11.5px;
    }

    .hoc-footer-link-grid a {
        margin: 7px 0;
        font-size: 12.5px;
    }

    .hoc-footer-bottom {
        margin-top: 28px;
        padding-top: 18px;
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .hoc-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hoc-header-brand img {
        max-width: 142px;
    }

    .hoc-header-cta {
        display: none;
    }

    .hoc-title-grid h1 {
        font-size: clamp(25px, 8.8vw, 34px);
    }

    .hoc-fast-facts,
    .hoc-snapshot-grid,
    .hoc-market-grid,
    .hoc-mini-list,
    .hoc-form-grid {
        grid-template-columns: 1fr;
    }

    .hoc-footer-link-grid {
        grid-template-columns: 1fr;
    }
}

/* SECTION: Extra phone tightening after mobile PDF review
   Desktop is still untouched. These rules make the phone screen less tall and fix the tax table presentation.
*/
@media (max-width: 700px) {
    .hoc-title-grid h1 {
        font-size: clamp(25px, 7.6vw, 32px) !important;
        line-height: 1.12;
    }

    .hoc-price {
        font-size: clamp(25px, 8vw, 31px) !important;
    }

    .hoc-post-map-data .hoc-section-heading h2,
    .hoc-section-heading h2 {
        font-size: clamp(21px, 6.4vw, 28px) !important;
    }

    .hoc-building-grid > div,
    .hoc-school-card,
    .hoc-value-card,
    .hoc-health-grid > div,
    .hoc-benchmark-grid > div {
        min-height: auto;
    }

    /* Tax Assessment mobile card table, so the right side is not cut off on phones. */
    #assessment-history .hoc-table-wrap {
        border: 0;
        overflow: visible;
    }

    #assessment-history .hoc-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    #assessment-history .hoc-table thead {
        display: none;
    }

    #assessment-history .hoc-table tbody {
        display: grid;
        gap: 10px;
    }

    #assessment-history .hoc-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 13px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    }

    #assessment-history .hoc-table td {
        display: grid;
        gap: 3px;
        padding: 0;
        border: 0;
        min-width: 0;
        color: var(--hoc-text);
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    #assessment-history .hoc-table td::before {
        color: var(--hoc-muted);
        font-size: 9.8px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    #assessment-history .hoc-table td:nth-child(1)::before { content: "Year"; }
    #assessment-history .hoc-table td:nth-child(2)::before { content: "Land"; }
    #assessment-history .hoc-table td:nth-child(3)::before { content: "Improvements"; }
    #assessment-history .hoc-table td:nth-child(4)::before { content: "Total"; }
    #assessment-history .hoc-table td:nth-child(5)::before { content: "YoY"; }
    #assessment-history .hoc-table td:nth-child(6)::before { content: "Taxes"; }

    /* The first value is the year, make it feel like a small card title. */
    #assessment-history .hoc-table td:first-child {
        grid-column: 1 / -1;
        padding-bottom: 6px;
        border-bottom: 1px solid #edf2f8;
        font-size: 16px;
        font-weight: 900;
    }
}

/* SECTION: Top realtor inquiry card above Helpful Next Steps
   This is a second lead card at the top of the sidebar. It is not sticky.
   The sticky version under Quick Summary remains unchanged.
*/
.hoc-realtor-top-card {
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 12% 0%, rgba(246, 207, 95, 0.22), transparent 32%),
        radial-gradient(circle at 100% 8%, rgba(66, 133, 244, 0.22), transparent 36%),
        linear-gradient(150deg, #0a1424 0%, #14243c 52%, #081120 100%);
    box-shadow: 0 20px 50px rgba(8, 18, 35, 0.22);
}
.hoc-realtor-top-card::before {
    background: linear-gradient(90deg, #f5d779 0%, rgba(255, 255, 255, 0.75) 42%, #1d5fd3 100%);
}
.hoc-realtor-top-card .hoc-agent-profile {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}
.hoc-realtor-top-card .hoc-agent-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 14px;
}
.hoc-realtor-top-card .hoc-agent-kicker {
    color: #f7d675;
}
.hoc-realtor-top-card .hoc-agent-copy h2,
.hoc-realtor-top-card .hoc-form-intro h3 {
    color: #ffffff;
}
.hoc-realtor-top-card .hoc-agent-copy p:last-child,
.hoc-realtor-top-card .hoc-form-intro p,
.hoc-realtor-top-card .hoc-form-note {
    color: rgba(235, 241, 255, 0.72);
}
.hoc-realtor-top-card .hoc-lead-form label {
    color: rgba(235, 241, 255, 0.84);
}
.hoc-realtor-top-card .hoc-lead-form input,
.hoc-realtor-top-card .hoc-lead-form textarea,
.hoc-realtor-top-card .hoc-lead-form select {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hoc-realtor-top-card .hoc-lead-form input::placeholder,
.hoc-realtor-top-card .hoc-lead-form textarea::placeholder {
    color: rgba(235, 241, 255, 0.50);
}
.hoc-realtor-top-card .hoc-lead-form input:focus,
.hoc-realtor-top-card .hoc-lead-form textarea:focus,
.hoc-realtor-top-card .hoc-lead-form select:focus {
    border-color: rgba(247, 214, 117, 0.72);
    box-shadow: 0 0 0 4px rgba(247, 214, 117, 0.12);
}
.hoc-realtor-top-card .hoc-primary-button {
    color: #101828;
    background: linear-gradient(135deg, #fff0b8 0%, var(--hoc-accent) 100%);
    box-shadow: 0 16px 28px rgba(216, 173, 67, 0.22);
}
.hoc-realtor-top-card .hoc-primary-button:hover {
    background: linear-gradient(135deg, #fff5cf 0%, #e3bb55 100%);
}

@media (max-width: 767px) {
    .hoc-realtor-top-card {
        padding: 18px;
        border-radius: 20px;
    }
    .hoc-realtor-top-card .hoc-agent-profile {
        align-items: center;
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .hoc-realtor-top-card .hoc-agent-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .hoc-realtor-top-card .hoc-form-intro h3 {
        font-size: 20px;
    }
    .hoc-realtor-top-card .hoc-form-intro p {
        font-size: 13.5px;
    }
}
/* END SECTION: Top realtor inquiry card above Helpful Next Steps */
