/* Keep the listing fonts on ordinary same-origin static URLs. The catalog
   uses them even on a cold visit when the theme finishes painting first. */
@font-face {
    font-family: VVCOListingsSerif;
    src: url("instrument-serif.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: VVCOListingsSans;
    src: url("dm-sans.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
/* The production theme positions its masthead outside the document and offsets
   its own #main. A virtual directory has a different content wrapper. Keep
   the real masthead in flow, including when the menu wraps or fonts load. */
html:has(body.vvco-property-directory),
body.vvco-property-directory {
    overflow-x: clip !important;
}
html:has(body.vvco-property-directory) {
    scroll-padding-top: calc(var(--vvco-directory-header, 0px) + var(--vvco-directory-tabs, 0px) + var(--vvco-directory-admin, 0px) + 8px);
}
body.vvco-property-directory .site > .site-header {
    position: sticky;
    top: var(--vvco-directory-admin, 0px);
    z-index: 1000;
    transform: none;
}
/* Inspiro Lite inserts padding on this container for its fixed header. */
body.vvco-property-directory #page > .site-content-contain > #content:has(#vvco-listings) {
    padding-top: 0 !important;
}
#vvco-listings.vvco-listings .vvco-catalog-navigation {
    position: sticky;
    top: calc(var(--vvco-directory-header, 0px) + var(--vvco-directory-admin, 0px));
    z-index: 900;
    background: #0b1c28;
    border-bottom: 1px solid #37515f;
}
#vvco-listings.vvco-listings .vvco-catalog-navigation-inner {
    align-items: stretch;
}
#vvco-listings.vvco-listings .vvco-catalog-navigation a {
    color: #fff;
    line-height: 1.25;
    font-size: 15px;
    white-space: nowrap;
}
#vvco-listings.vvco-listings .vvco-catalog-navigation a[aria-current],
#vvco-listings.vvco-listings .vvco-catalog-navigation a:hover {
    border-bottom-color: #c4dce7;
}
#vvco-listings.vvco-listings .vvco-catalog-navigation a:focus-visible {
    outline: 2px solid #c4dce7;
    outline-offset: -3px;
}
@media (max-width: 700px) {
    #vvco-listings.vvco-listings .vvco-catalog-navigation-inner {
        justify-content: space-between;
        gap: 8px;
    }
    #vvco-listings.vvco-listings .vvco-catalog-navigation a {
        min-height: 44px;
        font-size: 14px;
    }
}
/* Native dialogs own scrolling while open, including thumb scrolling on iOS. */
html:has(body.vvco-property-directory #vvco-listings dialog[open]),
body.vvco-property-directory:has(#vvco-listings dialog[open]) {
    overflow: hidden !important;
}

/* The public header builder shows the same menu both inline and in a drawer
   on tablets. Use its drawer on narrow directory pages so three lines of
   duplicate navigation don't cover the listing. */
@media (max-width: 1024px) {
    body.vvco-property-directory:has(.side-nav .navbar-nav)
        .site-header .ihb-tablet:has(.ihb-component-hamburger) .ihb-component-menu {
        display: none;
    }
    body.vvco-property-directory .site-header .ihb-header-builder:is(.ihb-tablet, .ihb-mobile) .navbar-brand-wpz {
        width: 155px;
        max-width: 100%;
        padding-right: 0;
    }
    body.vvco-property-directory .site-header .navbar:has(.ihb-tablet .ihb-component-hamburger) {
        padding-block: 4px;
    }
}
