/* ==========================================================================================================
   SITE HEADER (header.php + includes/header-nav.php + assets/js/header-nav.js)

   ONE list of links, two layouts: a bar with panels from 992px, a drill-in drawer below it.
   Every rule is scoped under .jh and every class is prefixed (jh- shell, jhb- Browse, jhn-
   Neighborhoods) - this file loads on every page and must not restyle anything else.

   header.css and topbar.css stay in the theme ON PURPOSE although nothing enqueues them now:
   listing pages cached before this header shipped keep the old markup for up to 12 hours and
   still ask for those files. A later change that BREAKS this markup needs a new filename for
   the same reason (or a full page-cache purge).

   Not sticky: the explorer, neighborhood, search, glossary and compare pages each own a
   `position: sticky; top: 0` bar.
   ========================================================================================================== */

.jh {
    --jh-navy-950: #081022; --jh-navy-900: #0b1630; --jh-navy-700: #1F325A;
    --jh-gold: #d4af37; --jh-gold-hi: #ecd78a;
    --jh-serif: 'Trajan Pro', 'Cinzel', serif; --jh-sans: 'Lato', system-ui, sans-serif;
    --jh-ease: cubic-bezier(.22, .8, .24, 1);
    --jh-wrap: 1360px;
    --p-bg: linear-gradient(180deg, #111f3e 0%, #0a142c 100%);
    --p-ink: #fff; --p-mute: rgba(255, 255, 255, .7); --p-faint: rgba(255, 255, 255, .58);
    --p-line: rgba(255, 255, 255, .11); --p-card: rgba(255, 255, 255, .05); --p-hover: rgba(255, 255, 255, .09);
    --p-input: rgba(255, 255, 255, .07);

    position: relative;
    z-index: 1000;
    font-family: var(--jh-sans);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}
/* Open: above the pages' own sticky bars (.bx-bar 1020, .nbx-nav 1030, .nbx-mbar 1040) - a tall panel
   reaches them on every explorer page - and below Bootstrap's modal backdrop (1050). Only WHILE open,
   so the header never sits on top of an offcanvas (1045) the rest of the time. */
.jh.is-open { z-index: 1046; }

/* Resets. Links are reset at full strength: main.css colours every bare `a` navy, and a page's own
   stylesheet loads after this one - so every rule below that COLOURS a link starts with `.jh`.
   The rest carry one element's worth of specificity (:where), so a single class below overrides
   them without !important, while they still beat Bootstrap's reboot by coming later. */
.jh *, .jh *::before, .jh *::after { box-sizing: border-box; }
.jh a { color: inherit; text-decoration: none; }
:where(.jh) ul { list-style: none; margin: 0; padding: 0; }
:where(.jh) p { margin: 0; }
:where(.jh button:not(.dropdown-item)) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.jh :focus-visible { outline: 2px solid var(--jh-gold); outline-offset: 2px; border-radius: 4px; }
html.jh-lock, html.jh-lock body { overflow: hidden; }

/* ---------------------------------------------------------------- 1. utility rail */
.jh-rail { position: relative; z-index: 4; background: var(--jh-navy-950); color: rgba(255, 255, 255, .8); font-size: .8rem; letter-spacing: .02em; border-bottom: 1px solid rgba(212, 175, 55, .28); }
.jh-rail-in { max-width: var(--jh-wrap); margin: 0 auto; padding: 0 1.5rem; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.jh-rail-l, .jh-rail-r, .jh-acct { display: flex; align-items: center; gap: 1.35rem; }
.jh-rail a, .jh-acct-toggle { display: inline-flex; align-items: center; gap: .4rem; height: 38px; white-space: nowrap; transition: color .2s; }
.jh-rail a:hover, .jh-acct-toggle:hover { color: #fff; }
.jh-rail i { color: var(--jh-gold); font-size: .85rem; }
.jh-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.jh-rail a.jh-join { border: 1px solid rgba(212, 175, 55, .55); border-radius: 999px; padding: 0 .8rem; height: 24px; color: var(--jh-gold-hi); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s; }
.jh-rail a.jh-join:hover { background: var(--jh-gold); color: var(--jh-navy-900); }
.jh-rail .dropdown-menu { font-size: .9rem; margin-top: 0; }
.jh-rail .dropdown-menu a { height: auto; display: block; }
.jh-rail .dropdown-menu i { color: inherit; }

/* ---------------------------------------------------------------- 2. header bar */
.jh-bar { position: relative; z-index: 3; background: linear-gradient(180deg, #213661 0%, #1a2b50 100%); color: #fff; }
.jh-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .75) 18%, rgba(212, 175, 55, .75) 82%, transparent); pointer-events: none; }
.jh-bar-in { max-width: var(--jh-wrap); margin: 0 auto; padding: 0 1.5rem; height: 78px; display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.5rem); }
.jh-brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.jh-brand img { height: 48px; width: auto; display: block; }
.jh-brand b { display: block; font-family: var(--jh-serif); font-weight: 400; font-size: clamp(1rem, 1.62vw, 1.42rem); letter-spacing: .05em; line-height: 1.15; white-space: nowrap; }
.jh-brand small { display: block; font-size: clamp(.5rem, .7vw, .62rem); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); text-align: center; margin-top: 2px; }
.jh-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.1rem; border: 1px solid var(--jh-gold); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s; }
.jh a.jh-cta { color: var(--jh-gold-hi); }
.jh a.jh-cta:hover { background: var(--jh-gold); color: var(--jh-navy-900); }
.jh-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); align-items: center; justify-content: center; font-size: 1.5rem; }

.jh-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--jh-gold); margin: 0 0 .55rem; display: flex; align-items: center; gap: .6rem; }
.jh-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--p-line); }
.jh-find { display: flex; align-items: center; gap: .55rem; height: 44px; margin: 0; padding: 0 .4rem 0 .9rem; border-radius: 999px; background: var(--p-input); border: 1px solid var(--p-line); transition: border-color .2s, box-shadow .2s; }
.jh-find:focus-within { border-color: var(--jh-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .2); }
.jh-find > i { color: var(--jh-gold); font-size: .9rem; }
.jh-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--p-ink); font: inherit; font-size: .88rem; }
.jh-find input::placeholder { color: var(--p-faint); }
.jh .jh-find input:focus-visible { outline: none; } /* the pill around it shows the focus */
.jh-find input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.jh .jh-find button { width: 34px; height: 34px; border-radius: 50%; background: var(--jh-gold); color: var(--jh-navy-900); display: grid; place-items: center; flex-shrink: 0; }

/* ---------------------------------------------------------------- 3. Browse: photo tiles */
.jh-tile { position: relative; overflow: hidden; border-radius: 12px; height: 112px; background: linear-gradient(135deg, #22375f, #14233f); isolation: isolate; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.jh-tile.is-lg { height: 158px; }
.jh-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transform: scale(1.02); transition: transform 1.2s var(--jh-ease), opacity .6s; }
.jh-tile-img.is-in { opacity: 1; }
.jh-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 16, 34, .05) 0%, rgba(8, 16, 34, .35) 45%, rgba(8, 16, 34, .9) 100%); }
.jh-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; transition: border-color .3s; pointer-events: none; }
.jh-tile:hover .jh-tile-img, .jh-tile:focus-within .jh-tile-img { transform: scale(1.09); }
.jh-tile:hover::after, .jh-tile:focus-within::after { border-color: var(--jh-gold); }
.jh-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .85rem; color: #fff; }
.jh-tile-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--jh-serif); font-weight: 700; font-size: .84rem; letter-spacing: .05em; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.jh-tile.is-lg .jh-tile-link { font-size: 1.02rem; }
.jh-tile-link::after { content: ''; position: absolute; inset: -200px 0 0; } /* the whole tile is the link */
.jh .jh-tile-link:focus-visible { outline: none; }
.jh-tile-n { margin-top: .15rem; font-size: .76rem; color: rgba(255, 255, 255, .82); display: flex; align-items: center; gap: .35rem; }
.jh-tile-n i { color: var(--jh-gold); transition: transform .3s var(--jh-ease); }
.jh-tile:hover .jh-tile-n i { transform: translateX(4px); }
.jh-tile-ico { position: absolute; top: .5rem; left: .6rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; color: var(--jh-gold-hi); background: rgba(8, 16, 34, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(212, 175, 55, .4); }
.jh-tile.is-lg .jh-tile-ico { top: .6rem; left: .7rem; width: 30px; height: 30px; font-size: .85rem; transition: opacity .3s; }
/* The revealed chips push the title up to where the icon sits. */
.jh-tile.is-lg:hover .jh-tile-ico, .jh-tile.is-lg:focus-within .jh-tile-ico { opacity: 0; }
.jh-tile-top { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .7rem; }
.jh-tile-top span { color: rgba(255, 255, 255, .7); letter-spacing: .08em; text-transform: uppercase; font-size: .62rem; margin-right: .15rem; }
.jh-tile-top a { position: relative; z-index: 2; padding: .16rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; transition: background .2s, color .2s; }
.jh-tile-top a b { color: var(--jh-gold-hi); font-weight: 700; margin-left: .25rem; }
.jh .jh-tile-top a:hover { background: var(--jh-gold); color: var(--jh-navy-900); }
.jh-tile-top a:hover b { color: var(--jh-navy-900); }

.jhb-h { display: flex; align-items: center; gap: .6rem; font-family: var(--jh-serif); font-size: 1.24rem; letter-spacing: .04em; line-height: 1.25; }
.jhb-h i { font-size: .9rem; color: var(--jh-gold); transition: transform .3s var(--jh-ease); }
.jhb-h:hover i { transform: translateX(4px); }
.jhb-sub { font-size: .86rem; color: var(--p-mute); }
.jhb-sub b { color: var(--p-ink); }
.jh-ql { display: grid; gap: .1rem; }
.jh-ql a { display: flex; align-items: center; gap: .7rem; padding: .5rem .55rem; border-radius: 9px; font-size: .9rem; color: var(--p-ink); transition: background .2s; }
.jh-ql a:hover { background: var(--p-hover); }
.jh-ql a > i:first-child { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--p-card); border: 1px solid var(--p-line); color: var(--jh-gold); font-size: .9rem; flex-shrink: 0; }
.jh-ql a small { display: block; font-size: .74rem; color: var(--p-mute); }
.jh-ql a > i:last-child { margin-left: auto; font-size: .75rem; color: var(--p-faint); transition: transform .3s var(--jh-ease), color .2s; }
.jh-ql a:hover > i:last-child { transform: translateX(3px); color: var(--jh-gold); }
.jhb-help { padding: .9rem 1rem; border-radius: 12px; background: var(--p-card); border: 1px solid var(--p-line); display: flex; align-items: center; gap: .8rem; font-size: .84rem; color: var(--p-mute); }
.jhb-help b { display: block; color: var(--p-ink); font-size: .9rem; }
.jh .jhb-help a { margin-left: auto; white-space: nowrap; color: var(--jh-gold); font-weight: 700; font-size: .8rem; }

/* ---------------------------------------------------------------- 4. Neighborhoods */
.jhn-map { position: relative; border-radius: 14px; overflow: hidden; background: #0a1a33; border: 1px solid rgba(212, 175, 55, .35); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); min-height: 418px; }
.jhn-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jhn-svg .jhn-land { fill: #12291d; stroke: #2b5a3f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.jhn-svg .jhn-nb { fill: #24406b; stroke: rgba(255, 255, 255, .5); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .25s, opacity .25s, stroke .25s; }
.jhn-svg.has-hot .jhn-nb { fill: #1d3358; stroke: rgba(255, 255, 255, .3); }
.jhn-svg.has-hot .jhn-nb.is-hot { fill: var(--jh-gold); stroke: #fff3c4; stroke-width: 1.4; filter: url(#jhnGlow); }
.jhn-svg .jhn-nb.is-dim { opacity: .18; }
.jhn-svg text { font-family: var(--jh-sans); font-style: italic; font-size: 9px; letter-spacing: .18em; fill: rgba(160, 200, 235, .5); text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.jhn-svg text.is-land { fill: rgba(150, 200, 165, .4); }
.jhn-svg.is-zoomed text { opacity: 0; }
.jhn-pin { pointer-events: none; opacity: 0; transition: opacity .25s; }
.jhn-pin.is-on { opacity: 1; }
.jhn-pin circle { fill: none; stroke: var(--jh-gold-hi); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: jh-ping 1.8s ease-out infinite; }
.jhn-pin circle + circle { animation-delay: .9s; }
@keyframes jh-ping { from { transform: scale(.6); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
.jhn-atlas { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; border-radius: 999px; background: rgba(8, 16, 34, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(212, 175, 55, .55); font-family: var(--jh-serif); font-size: .78rem; letter-spacing: .08em; transition: background .25s, color .25s; }
.jh a.jhn-atlas { color: var(--jh-gold-hi); }
.jh a.jhn-atlas:hover { background: var(--jh-gold); color: var(--jh-navy-900); }

.jhn-tools { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.jhn-tools .jh-find { flex: 1; height: 40px; }
.jh-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--p-card); border: 1px solid var(--p-line); flex-shrink: 0; }
.jh .jh-seg button { height: 32px; padding: 0 .9rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--p-mute); transition: background .25s, color .25s; }
.jh .jh-seg button[aria-pressed=true] { background: var(--jh-gold); color: var(--jh-navy-900); }
.jhn-grp { break-inside: avoid; margin: 0 0 1.05rem; }
.jhn-grp.is-az { break-inside: auto; }
.jhn-grp-h { font-size: .66rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--jh-gold); padding-bottom: .35rem; margin-bottom: .3rem; border-bottom: 1px solid var(--p-line); }
.jhn-a { display: flex; align-items: center; gap: .7rem; padding: .27rem .5rem; margin: 0 -.5rem; border-radius: 7px; font-size: .9rem; transition: background .15s, color .15s, padding .25s var(--jh-ease); }
.jh a.jhn-a { color: var(--p-mute); }
.jhn-t .bi-star-fill { font-size: .55rem; color: var(--jh-gold); margin-left: .35rem; vertical-align: middle; }
.jhn-a.is-dim { opacity: .22; }
.jhn-none { color: var(--p-mute); font-size: .9rem; margin: 1rem 0; }
.jhn-th, .jhn-sub { display: none; }

.jhn-card { border-radius: 14px; overflow: hidden; background: var(--p-card); border: 1px solid var(--p-line); display: flex; flex-direction: column; min-height: 418px; }
.jhn-ph { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1a2d55, #0b1630); overflow: hidden; }
.jhn-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s, transform 6s linear; transform: scale(1.02); }
.jhn-ph img.is-in { opacity: 1; transform: scale(1.1); }
.jhn-ph svg { position: absolute; inset: 12%; width: 76%; height: 76%; }
.jhn-ph svg path { fill: rgba(212, 175, 55, .16); stroke: var(--jh-gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.jhn-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 16, 34, .88)); }
.jhn-ph strong { position: absolute; z-index: 1; left: .9rem; right: .9rem; bottom: .65rem; color: #fff; font-family: var(--jh-serif); font-weight: 400; font-size: 1.12rem; letter-spacing: .05em; }
.jhn-tag { position: absolute; z-index: 1; top: .6rem; left: .6rem; padding: .18rem .55rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--jh-gold); color: var(--jh-navy-900); }
.jhn-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--p-line); border-bottom: 1px solid var(--p-line); }
.jhn-stats div { background: #0f1b38; padding: .55rem .9rem; }
.jhn-stats span { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--p-mute); }
.jhn-stats b { font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.jhn-stats b.is-na { color: var(--p-faint); font-weight: 400; }
.jhn-body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.jhn-bld { font-size: .8rem; color: var(--p-mute); display: flex; align-items: center; gap: .4rem; min-height: 1.1rem; }
.jhn-bld i { color: var(--jh-gold); }
.jhn-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: auto; }
.jhn-btns a { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 36px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--p-line); transition: background .2s, color .2s, border-color .2s; }
.jh .jhn-btns a:hover { border-color: var(--jh-gold); color: var(--jh-gold); }
.jh .jhn-btns a.is-main { grid-column: 1 / -1; height: 40px; background: var(--jh-gold); border-color: var(--jh-gold); color: var(--jh-navy-900); font-family: var(--jh-serif); letter-spacing: .06em; }
.jh .jhn-btns a.is-main:hover { background: var(--jh-gold-hi); color: var(--jh-navy-900); }
.jhn-foot { font-size: .72rem; line-height: 1.35; color: var(--p-faint); }
/* Until the rich layer arrives (first reach for the menu), the map and the card are quiet placeholders. */
.jhn:not(.is-rich) .jhn-card, .jhn:not(.is-rich) .jhn-map { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%); background-size: 200% 100%; animation: jh-shimmer 1.6s linear infinite; }
@keyframes jh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- 5. simple panels (menu items with ordinary children) */
.jh-card { display: block; text-align: center; border-radius: 12px; background: var(--p-card); border: 1px solid var(--p-line); transition: transform .3s var(--jh-ease), border-color .25s, background .25s; }
.jh-card i { display: block; color: var(--jh-gold); }
.jh-card b { display: block; font-family: var(--jh-serif); font-weight: 700; font-size: .86rem; letter-spacing: .05em; }
.jh-card span { display: block; margin-top: .25rem; font-size: .78rem; color: var(--p-mute); }

/* ---------------------------------------------------------------- 6. Search / Our Listings / Services / About */
/* A row label that is also a link (a service category, "Meet our team"). */
.jh-eyebrow a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; }
.jh-eyebrow a i { font-size: .68rem; transition: transform .3s var(--jh-ease); }
.jh .jh-eyebrow a:hover { color: var(--jh-gold-hi); }
.jh-eyebrow a:hover i { transform: translateX(3px); }

/* SEARCH — two lanes, for sale and for rent, each with the types the search form itself offers. */
.jh-lane { border-radius: 12px; background: var(--p-card); border: 1px solid var(--p-line); padding: .7rem .85rem .55rem; }
.jh-lane-h { display: flex; align-items: center; gap: .55rem; padding-bottom: .5rem; margin-bottom: .3rem; border-bottom: 1px solid var(--p-line); font-family: var(--jh-serif); font-size: .92rem; letter-spacing: .05em; }
.jh-lane-h > i:first-child { color: var(--jh-gold); font-size: .92rem; }
.jh-lane-h > i:last-child { margin-left: auto; font-size: .72rem; color: var(--p-faint); transition: transform .3s var(--jh-ease), color .2s; }
.jh-lane-h:hover > i:last-child { transform: translateX(3px); color: var(--jh-gold); }
.jh .jh-lane li a { display: block; padding: .28rem .45rem; margin: 0 -.45rem; border-radius: 7px; font-size: .88rem; color: var(--p-mute); transition: background .15s, color .15s, padding .25s var(--jh-ease); }
.jh .jh-lane li a:hover, .jh .jh-lane li a:focus-visible { background: var(--p-hover); color: var(--p-ink); padding-left: .75rem; }
.jh .jh-lane li a.is-all { color: var(--jh-gold-hi); font-weight: 700; }

/* A card for everything the site has no photograph of: icon, title, one line, arrow.
   One per line by default: unlike a tile, whose caption is line-clamped, this card has a real
   minimum width (a 38px icon plus two words) and would force its grid track wider than a phone. */
.jh-feats { display: grid; gap: .6rem; }
/* Every one of these grids holds a card with a nowrap line in it (a price, an address, a name), so
   each track needs a floor of 0 or its min-content pushes the row wider than a phone. */
.jh-feats > *, .jh-lcards > *, .jh-faces > * { min-width: 0; }
.jh-feat { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; background: var(--p-card); border: 1px solid var(--p-line); transition: background .2s, border-color .25s, transform .3s var(--jh-ease); }
.jh-feat:hover, .jh-feat:focus-visible { background: var(--p-hover); border-color: var(--jh-gold); transform: translateY(-2px); }
.jh-feat-i { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .4); color: var(--jh-gold-hi); font-size: 1.02rem; }
.jh-feat-t { min-width: 0; }
.jh-feat-t b { display: block; font-family: var(--jh-serif); font-weight: 700; font-size: .86rem; letter-spacing: .04em; line-height: 1.2; color: var(--p-ink); }
.jh-feat-t small { display: block; margin-top: .12rem; font-size: .76rem; line-height: 1.3; color: var(--p-mute); }
.jh-feat > i:last-child { margin-left: auto; font-size: .78rem; color: var(--p-faint); transition: transform .3s var(--jh-ease), color .2s; }
.jh-feat:hover > i:last-child { transform: translateX(3px); color: var(--jh-gold); }

/* Neighborhood pills, straight into a filtered search. */
.jh-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.jh .jh-chips a { padding: .3rem .7rem; border-radius: 999px; background: var(--p-card); border: 1px solid var(--p-line); font-size: .8rem; color: var(--p-mute); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.jh .jh-chips a:hover { background: var(--jh-gold); border-color: var(--jh-gold); color: var(--jh-navy-900); }

/* OUR LISTINGS — no photograph by design: the feed's own images are 400 KB+ originals with no
   cheap resize, and this menu is on every page. See includes/header-nav-panels.php. */
.jh-lcard { position: relative; display: flex; flex-direction: column; gap: .05rem; padding: .8rem .9rem 1.6rem; border-radius: 12px; background: linear-gradient(150deg, #22375f, #14233f); border: 1px solid var(--p-line); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; transition: border-color .25s, transform .3s var(--jh-ease); }
.jh-lcard:hover, .jh-lcard:focus-visible { border-color: var(--jh-gold); transform: translateY(-2px); }
.jh-lcard-tag { align-self: flex-start; margin-bottom: .35rem; padding: .12rem .5rem; border-radius: 999px; background: rgba(212, 175, 55, .16); border: 1px solid rgba(212, 175, 55, .5); color: var(--jh-gold-hi); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.jh-lcard-p { font-family: var(--jh-serif); font-weight: 700; font-size: 1.06rem; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; }
.jh-lcard small { font-size: .76rem; color: var(--p-mute); }
.jh-lcard .jh-lcard-a { color: var(--p-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jh-lcard > i { position: absolute; right: .8rem; bottom: .7rem; font-size: .78rem; color: var(--p-faint); transition: transform .3s var(--jh-ease), color .2s; }
.jh-lcard:hover > i { transform: translateX(3px); color: var(--jh-gold); }

/* ABOUT — the team, as faces. */
.jh-face { text-align: center; }
.jh-face-ph { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: .45rem; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, #1e3159, #101d3a); border: 1px solid var(--p-line); }
.jh-face-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .45s, transform 1s var(--jh-ease); }
.jh-face-ph img.is-in { opacity: 1; }
.jh-face:hover .jh-face-ph img { transform: scale(1.06); }
.jh-face-ph > i { font-size: 1.5rem; color: rgba(212, 175, 55, .45); }
.jh-face b { display: block; font-size: .82rem; font-weight: 700; line-height: 1.2; color: var(--p-ink); }
.jh-face small { display: block; margin-top: .1rem; font-size: .7rem; line-height: 1.25; color: var(--p-mute); }
.jh .jh-face:hover b { color: var(--jh-gold-hi); }

/* ========================================================================================================
   DESKTOP: the bar + panels
   ======================================================================================================== */
@media (min-width: 992px) {
    .jh-m { display: none !important; }
    .jh-nav { margin-left: auto; align-self: stretch; }
    .jh-nav-head, .jh-nav-foot { display: none; }
    .jh-nav-body, .jh-menu { height: 100%; }
    .jh-menu { display: flex; }
    .jh-item { display: flex; align-items: center; }
    .jh-top { position: relative; display: flex; align-items: center; height: 100%; padding: 0 clamp(.4rem, .85vw, .8rem); font-family: var(--jh-serif); font-size: clamp(.74rem, 1vw, .85rem); letter-spacing: .06em; white-space: nowrap; transition: color .2s; }
    .jh-item.has-panel .jh-top { padding-right: .2rem; }
    .jh-caret { align-self: stretch; padding: 0 clamp(.3rem, .7vw, .65rem) 0 .15rem; display: flex; align-items: center; color: rgba(255, 255, 255, .55); font-size: .62rem; }
    .jh-caret i { transition: transform .3s var(--jh-ease), color .2s; }
    .jh-top::after { content: ''; position: absolute; left: clamp(.4rem, .85vw, .8rem); right: clamp(.4rem, .85vw, .8rem); bottom: 20px; height: 2px; background: var(--jh-gold); transform: scaleX(0); transition: transform .35s var(--jh-ease); }
    .jh-item.has-panel .jh-top::after { right: -.6rem; }
    .jh .jh-item:hover .jh-top, .jh .jh-item.is-open .jh-top { color: var(--jh-gold-hi); }
    .jh-item:hover .jh-top::after, .jh-item.is-open .jh-top::after, .jh-top[aria-current]::after { transform: scaleX(1); }
    .jh-item.is-open .jh-caret i { transform: rotate(180deg); color: var(--jh-gold); }

    .jh-mega-bg { position: absolute; z-index: 1; left: 0; right: 0; top: 100%; height: 0; background: var(--p-bg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65); transition: height .34s var(--jh-ease); overflow: hidden; }
    .jh-mega-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--jh-gold) 30%, var(--jh-gold) 70%, transparent); opacity: .7; }
    .jh-panel { position: absolute; z-index: 2; left: 0; right: 0; top: 100%; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; color: var(--p-ink); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s, visibility 0s .18s; }
    .jh-item.is-open > .jh-panel { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .3s .08s, visibility 0s; }
    /* No script: the panels still open - on hover and for the keyboard - with their own backdrop. */
    html:not(.jh-js) .jh-item.has-panel:hover > .jh-panel, html:not(.jh-js) .jh-item.has-panel:focus-within > .jh-panel { visibility: visible; opacity: 1; pointer-events: auto; background: var(--p-bg); transition: opacity .2s; }
    .jh-panel-in { max-width: var(--jh-wrap); margin: 0 auto; padding: 1.6rem 1.5rem 1.9rem; }
    .jh-item.is-open:not(.is-seen) .jh-rise { animation: jh-rise .5s var(--jh-ease) both; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
    .jh-scrim { position: fixed; inset: 0; z-index: 1; background: rgba(6, 12, 28, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
    .jh.is-open .jh-scrim { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }

    .jhb { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 2rem; }
    .jhb-rows { display: grid; gap: 1.05rem; align-content: start; }
    .jhb-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .8rem; }
    .jhb-side { display: flex; flex-direction: column; gap: 1rem; border-left: 1px solid var(--p-line); padding-left: 2rem; }
    .jhb-sub { margin-top: -.65rem; }
    .jhb-help { margin-top: auto; }
    .jh-ql a { margin: 0 -.55rem; }
    .jh-tile-top { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--jh-ease), opacity .3s, margin .4s var(--jh-ease); }
    .jh-tile:hover .jh-tile-top, .jh-tile:focus-within .jh-tile-top { max-height: 60px; opacity: 1; margin-top: .45rem; }

    .jhn { display: grid; grid-template-columns: 300px minmax(0, 1fr) 316px; gap: 2rem; align-items: stretch; }
    .jhn.is-plain { grid-template-columns: minmax(0, 1fr); }
    .jhn.is-plain .jhn-map, .jhn.is-plain .jhn-card { display: none; }
    .jhn-cols { columns: 4; column-gap: 1.4rem; }
    .jhn.is-plain .jhn-cols { columns: 6; }
    .jh a.jhn-a.is-hot, .jh a.jhn-a:hover, .jh a.jhn-a:focus-visible { background: var(--p-hover); color: var(--p-ink); padding-left: .8rem; }
    .jhn-a.is-hot { box-shadow: inset 2px 0 0 var(--jh-gold); }

    /* The four bespoke panels reuse .jhb wholesale, so only their own rows need laying out. */
    .jh-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
    .jh-lcards, .jh-faces, .jh-feats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .8rem; }

    .jh-cards { display: flex; justify-content: center; gap: 1rem; }
    .jh-cards li { flex: 0 1 270px; }
    .jh-card { padding: 1.3rem 1rem; height: 100%; }
    .jh-card i { font-size: 1.7rem; margin-bottom: .5rem; }
    .jh-card:hover { transform: translateY(-3px); border-color: var(--jh-gold); background: var(--p-hover); }
}
@keyframes jh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (hover: none) and (min-width: 992px) { .jh-tile-top { max-height: 60px; opacity: 1; margin-top: .45rem; } }

/* Short laptop screens (1366 x 768 leaves ~650px): everything tightens, so a panel never runs off the bottom. */
@media (max-height: 760px) and (min-width: 992px) {
    .jh-rail-in { height: 32px; } .jh-rail a, .jh-acct-toggle { height: 32px; }
    .jh-bar-in { height: 66px; } .jh-brand img { height: 42px; } .jh-top::after { bottom: 15px; }
    .jh-panel { max-height: calc(100vh - 98px); } .jh-panel-in { padding: 1.1rem 1.5rem 1.3rem; }
    .jh-tile { height: 92px; } .jh-tile.is-lg { height: 126px; } .jh-tile:not(.is-lg) .jh-tile-ico { display: none; }
    .jhb-rows { gap: .75rem; } .jh-eyebrow { margin-bottom: .4rem; } .jh-ql a { padding: .34rem .55rem; } .jhb-side { gap: .7rem; }
    .jhn-map, .jhn-card { min-height: 380px; } .jhn-a { padding-top: .2rem; padding-bottom: .2rem; font-size: .87rem; } .jhn-grp { margin-bottom: .8rem; } .jhn-tools { margin-bottom: .75rem; }
    .jh-lane { padding: .55rem .7rem .4rem; } .jh .jh-lane li a { padding-top: .2rem; padding-bottom: .2rem; }
    .jh-lcard { padding: .6rem .75rem 1.4rem; } .jh-face-ph { margin-bottom: .35rem; }
}
@media (max-width: 1399.98px) { .jh-cta { display: none; } }
/* Labels are the editor's, and twice as long in Spanish: header-nav.js measures the bar and sheds
   what does not fit - first the pill, then the tagline and some air - rather than let it run off the edge. */
.jh.is-tight .jh-cta { display: none; }
.jh.is-tighter .jh-brand small { display: none; }
.jh.is-tighter .jh-top { font-size: .74rem; letter-spacing: .04em; padding-left: .35rem; }
.jh.is-tighter .jh-caret { padding-right: .3rem; }
@media (max-width: 1240px) and (min-width: 992px) {
    .jhn { grid-template-columns: 270px minmax(0, 1fr) 290px; gap: 1.4rem; } .jhn-cols { columns: 3; }
    .jhb { grid-template-columns: minmax(0, 1fr) 280px; gap: 1.4rem; } .jhb-side { padding-left: 1.4rem; }
}
/* Narrow desktop: the list needs the room more than the map does. */
@media (max-width: 1140px) and (min-width: 992px) {
    .jhn { grid-template-columns: minmax(0, 1fr) 280px; } .jhn-map { display: none; }
    .jhb { grid-template-columns: minmax(0, 1fr); } .jhb-side { display: none; }
}

/* ========================================================================================================
   PHONES + TABLETS: the same links as a drawer. Browse and Neighborhoods drill in.
   ======================================================================================================== */
@media (max-width: 991.98px) {
    .jh-d { display: none !important; }
    .jh-rail { z-index: 2; }
    .jh-rail-in { padding: 0 1rem; gap: .6rem; overflow: hidden; } .jh-rail-r, .jh-acct { gap: .9rem; }
    .jh-bar-in { height: 64px; padding: 0 1rem; } .jh-brand img { height: 38px; } .jh-brand b { font-size: 1.02rem; } .jh-brand small { font-size: .5rem; }
    .jh-cta, .jh-mega-bg { display: none; }
    .jh-burger { display: flex; }

    /* The veil beside the drawer belongs to the BAR (the drawer lives inside it, so a veil outside the bar
       could never come between the two): it dims the page, the rail and the bar's own logo alike. */
    .jh-scrim { display: none; }
    .jh-bar-in::after { content: ''; position: fixed; inset: 0; z-index: 4; background: rgba(6, 12, 28, .6); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
    .jh.is-drawer .jh-bar-in::after { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
    .jh.is-drawer .jh-bar { z-index: 5; }

    .jh-nav { position: fixed; z-index: 5; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: linear-gradient(180deg, #14244a, #0a142c); color: #fff; transform: translateX(102%); visibility: hidden; transition: transform .45s var(--jh-ease), visibility 0s .45s; box-shadow: -30px 0 60px rgba(0, 0, 0, .5); }
    .jh.is-drawer .jh-nav, html:not(.jh-js) .jh-nav:target { transform: none; visibility: visible; transition: transform .45s var(--jh-ease), visibility 0s; }
    .jh-nav-head { display: flex; align-items: center; gap: .6rem; height: 60px; padding: 0 .6rem 0 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-shrink: 0; }
    .jh-nav-title { flex: 1; font-family: var(--jh-serif); letter-spacing: .08em; font-size: 1rem; text-transform: uppercase; }
    .jh-back, .jh-close { width: 44px; height: 44px; font-size: 1.3rem; display: grid; place-items: center; border-radius: 10px; }
    .jh .jh-back { color: var(--jh-gold-hi); margin-left: -.6rem; }
    .jh-back[hidden] { display: none; }
    .jh-nav-body { position: relative; flex: 1; overflow: hidden; }
    .jh-menu { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .4rem 1.1rem 1.5rem; }
    .jh-menu.is-locked { overflow: hidden; }
    .jh-nav-foot { display: grid; grid-template-columns: repeat(3, 1fr); flex-shrink: 0; border-top: 1px solid rgba(212, 175, 55, .3); background: var(--jh-navy-950); padding-bottom: env(safe-area-inset-bottom); }
    .jh-nav-foot a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; height: 62px; font-size: .72rem; letter-spacing: .06em; color: rgba(255, 255, 255, .85); }
    .jh-nav-foot i { font-size: 1.15rem; color: var(--jh-gold); }

    .jh-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .jh-top { flex: 1; display: flex; align-items: center; min-height: 58px; font-family: var(--jh-serif); font-size: 1.05rem; letter-spacing: .06em; }
    .jh-caret { display: none; }
    .jh-item.jh-drill .jh-caret { display: grid; place-items: center; width: 44px; height: 58px; font-size: .85rem; }
    .jh .jh-item.jh-drill .jh-caret { color: var(--jh-gold); }
    .jh-item.jh-drill .jh-caret i { transform: rotate(-90deg); }

    /* Ordinary children: always open under their parent - nothing to tap to find them. */
    .jh-panel-cards { flex-basis: 100%; padding: 0 0 .6rem .2rem; }
    .jh-card { display: flex; align-items: center; gap: .7rem; min-height: 46px; text-align: left; background: none; border: 0; border-radius: 8px; }
    .jh-card i { width: 1.2rem; text-align: center; font-size: 1rem; }
    .jh-card b { font-family: var(--jh-sans); font-weight: 400; font-size: .95rem; letter-spacing: 0; color: rgba(255, 255, 255, .88); }
    .jh-card span { display: none; }

    /* The two mega-panels slide in over the list. */
    .jh-panel-mega { position: absolute; z-index: 2; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: .8rem 1.1rem 1.5rem; background: linear-gradient(180deg, #14244a, #0a142c); color: var(--p-ink); transform: translateX(100%); visibility: hidden; transition: transform .42s var(--jh-ease), visibility 0s .42s; }
    .jh-item.is-open > .jh-panel-mega { transform: none; visibility: visible; transition: transform .42s var(--jh-ease), visibility 0s; }

    .jhb { display: flex; flex-direction: column; gap: .9rem; }
    .jhb-side { display: contents; }
    .jhb-h, .jhn-atlas { order: -3; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .45); font-family: var(--jh-serif); font-size: .86rem; letter-spacing: .05em; }
    .jhb-h i, .jhn-atlas i:last-child { margin-left: auto; color: var(--jh-gold); }
    .jhb-side .jh-find { order: -2; }
    .jhb-sub { display: none; }
    .jhb-rows { display: grid; gap: .9rem; }
    .jhb-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
    .jh-tile, .jh-tile.is-lg { height: 118px; }
    .jhb-row.is-lg .jh-tile:first-child, .jhb-row:not(.is-lg) .jh-tile:last-child:nth-child(odd) { grid-column: 1 / -1; height: 132px; }
    .jh-tile.is-lg .jh-tile-link { font-size: .9rem; }
    .jh-tile-top { display: none; }
    .jhb-help { flex-wrap: wrap; }

    /* The four bespoke panels in the drawer: one column for lists, two for anything card-shaped. */
    .jh-lanes { display: grid; gap: .6rem; }
    .jh-lcards, .jh-faces { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
    .jh .jh-lane li a { min-height: 40px; display: flex; align-items: center; font-size: .95rem; }
    .jh-face b { font-size: .88rem; }

    .jhn { display: flex; flex-direction: column; gap: .8rem; }
    .jhn-map { min-height: 0; border: 0; border-radius: 0; background: none !important; box-shadow: none; overflow: visible; animation: none !important; }
    .jhn-svg, .jhn-card, .jh-seg { display: none; }
    .jhn-atlas { position: static; height: auto; justify-content: flex-start; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .jhn-atlas i:first-child { font-size: 1.15rem; color: var(--jh-gold); }
    .jhn-tools { position: sticky; top: -.8rem; z-index: 3; margin: 0 -1.1rem; padding: .6rem 1.1rem .7rem; background: #13234a; }
    .jhn-tools .jh-find { height: 42px; }
    .jhn-grp { margin: 0; }
    .jhn-grp-h { position: sticky; top: 50px; z-index: 2; margin: 0 -1.1rem; padding: .5rem 1.1rem; border: 0; background: #0f1d3d; }
    .jhn-a { min-height: 60px; margin: 0; padding: 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 1rem; }
    .jh a.jhn-a { color: #fff; }
    .jhn-a.is-dim { display: none; }
    .jhn-a::after { content: '\F285'; font-family: 'bootstrap-icons'; margin-left: auto; color: rgba(255, 255, 255, .3); font-size: .8rem; }
    .jhn-th { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; overflow: hidden; background: #1b2c55; color: rgba(212, 175, 55, .75); font-family: var(--jh-serif); font-size: .8rem; }
    .jhn-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .jhn-sub { display: block; font-size: .76rem; color: rgba(255, 255, 255, .55); }
    .jhn-sub:empty { display: none; }
}

/* The narrowest phones, with the language link showing: the account keeps its icon and gives up its word. */
@media (max-width: 379.98px) { .jh-xs-hide { display: none !important; } .jh-rail-r, .jh-acct { gap: .7rem; } }

@media (prefers-reduced-motion: reduce) {
    .jh *, .jh *::before, .jh *::after { animation: none !important; transition-duration: .01ms !important; }
}
