/* ==========================================================================
   LocationsHub new header/footer — site-specific overrides for rs.locationshub.com
   --------------------------------------------------------------------------
   lh-chrome.css (from lh_headerfooter_v3.2) is generated and shared with www.locationshub.com,
   so it is NOT edited here. This file must load AFTER every other stylesheet (see the end
   of metadata.php).

   Why it exists: the old site CSS (site.css, lhub-bundle, bootstrap, style.css,
   custom.css, the inline `a, a:visited` rule in metadata.php) has element rules
   such as `footer a:visited {font-size:10px;color:#333}`, `a:visited`,
   `footer a:hover {opacity:.8}`, `a {transition:all .4s}`, `p {margin;line-height}`
   and `h2 {font-family;...}` that tie or beat lh-chrome.css's class selectors.

   How it stays safe: every selector starts with #lh-header or #lh-footer, so
   nothing here can touch the rest of the site, and the ID specificity beats
   all old (non-!important) rules regardless of load order.

   RESPONSIVE: lh-chrome.css changes sizes/layout at 1200px, 760px, 600px and 380px.
   Because these ID rules beat its class rules, any property set here that lh-chrome.css
   changes in a media query must be repeated here in the same media query (see the
   bottom of this file). Don't set `display` on header/footer parts here unless
   it matches lh-chrome.css at every width.
   ========================================================================== */

/* ---- side padding: line the header/footer content up with the property cards ----
   The cards sit in .container-fluid.section-images-padding (custom.css): 80px each side
   from 992px up, Bootstrap's 12px below that. lh-chrome.css uses 68px / 32px / 20px,
   which left the logo, buttons and footer columns off the card edges. */
#lh-header .lhc-wrap,
#lh-footer .lhc-wrap {
    padding-left: 12px;
    padding-right: 12px;
}
@media (min-width: 992px) {
    #lh-header .lhc-wrap,
    #lh-footer .lhc-wrap {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* Admin panel (logged-in pages: header.php adds .lhc-admin) follows the admin layout instead:
   full width, from 992px up the logo lines up with the sidebar text (16px) and the right side
   with the content panel's text (24px, .bgc-f7 p-lg-4); below 992px (no sidebar) the panel
   content sits 8px from each edge. The footer has no admin class, hence body:has(). */
#lh-header.lhc-admin .lhc-wrap,
body:has(#lh-header.lhc-admin) #lh-footer .lhc-wrap {
    padding-left: 8px;
    padding-right: 8px;
}
@media (min-width: 992px) {
    #lh-header.lhc-admin .lhc-wrap,
    body:has(#lh-header.lhc-admin) #lh-footer .lhc-wrap {
        padding-left: 16px;
        padding-right: 24px;
    }
}

/* ---- base: font, size, colour, box model ---------------------------------- */
#lh-header,
#lh-footer {
    font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    color: #fff;
    text-align: left;
    position: relative;
}

#lh-header *,
#lh-footer *,
#lh-header *::before,
#lh-footer *::before,
#lh-header *::after,
#lh-footer *::after {
    box-sizing: border-box;
    letter-spacing: inherit;
    text-transform: inherit;
}

#lh-header header,
#lh-footer footer,
#lh-header nav,
#lh-footer nav {
    width: auto;
    height: auto;
    margin: 0;
    float: none;
    position: static;
}

/* ---- links: beat `a`, `a:visited`, `footer a`, `footer a:visited`, transitions */
#lh-header a,
#lh-footer a {
    font-family: inherit;
    font-size: 14px;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    opacity: 1;
    -webkit-transition: none;
    transition: none;
    outline: none;
}

#lh-header a:focus-visible,
#lh-footer a:focus-visible,
#lh-header button:focus-visible {
    outline: 3px solid #1A73E8;
    outline-offset: 2px;
}

/* header: utility strip */
#lh-header .lhc-strip a,
#lh-header .lhc-strip a:visited {
    color: #E6E6E6;
    font-size: 13px;
}
#lh-header .lhc-strip a:hover,
#lh-header .lhc-strip a:focus {
    color: #fff;
    text-decoration: underline;
}

/* header: logo, primary nav, login, "More" links (Menu panel) */
#lh-header .lhc-logo,
#lh-footer .lhc-logo {
    display: inline-flex;
}
#lh-header .lhc-nav a,
#lh-header .lhc-nav a:visited,
#lh-header .lhc-nav a:hover,
#lh-header .lhc-nav a:focus,
#lh-header .lhc-login,
#lh-header .lhc-login:visited {
    color: #fff;
}
#lh-header .lhc-nav a:hover {
    border-bottom-color: #4A4B50;
}
#lh-header .lhc-nav a[aria-current=page] {
    font-weight: 700;
    border-bottom-color: #C8311A;
}
#lh-header .lhc-login:hover,
#lh-header .lhc-login:focus {
    color: #fff;
    text-decoration: underline;
}
#lh-header .lhc-more a,
#lh-header .lhc-more a:visited {
    color: #E6E6E6;
}
#lh-header .lhc-more a:hover,
#lh-header .lhc-more a:focus {
    color: #fff;
    text-decoration: underline;
}

/* header: Menu button (shown below 1200px) — beat old `button` rules */
#lh-header .lhc-menubtn {
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

/* header: red "Search Locations" button */
#lh-header .lhc-btn,
#lh-header .lhc-btn:visited,
#lh-header .lhc-btn:hover,
#lh-header .lhc-btn:focus {
    display: inline-flex;
    color: #fff;
    font: 500 15px/1 Roboto, sans-serif;
    text-decoration: none;
}
#lh-header .lhc-btn {
    background: #C8311A;
}
#lh-header .lhc-btn:hover,
#lh-header .lhc-btn:focus {
    background: #9E2614;
}

/* skip link */
#lh-header .lhc-skip,
#lh-header .lhc-skip:visited {
    color: #111214;
    font: 500 15px Roboto, sans-serif;
}

/* footer links */
#lh-footer .lhc-foot-cols a,
#lh-footer .lhc-foot-cols a:visited,
#lh-footer .lhc-foot-bot a,
#lh-footer .lhc-foot-bot a:visited,
#lh-footer .lhc-social a,
#lh-footer .lhc-social a:visited {
    color: #E6E6E6;
}
#lh-footer .lhc-foot-cols a:hover,
#lh-footer .lhc-foot-cols a:focus,
#lh-footer .lhc-foot-bot a:hover,
#lh-footer .lhc-foot-bot a:focus {
    color: #fff;
    text-decoration: underline;
}
#lh-footer .lhc-social a:hover,
#lh-footer .lhc-social a:focus {
    color: #fff;
    border-color: #fff;
}
#lh-footer address a,
#lh-footer address a:visited,
#lh-footer address a:hover {
    color: #E6E6E6;
    text-decoration: underline;
}

/* ---- text elements: beat `p`, `h2`, `address`, `li` ---------------------- */
#lh-footer p {
    margin: 0;
    padding: 0;
    color: #A9ABB0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

#lh-footer h2 {
    margin: 0 0 4px;
    padding: 0;
    font: 500 12px/1 'Roboto Mono', ui-monospace, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #A9ABB0;
}

#lh-footer address {
    margin: 0;
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #E6E6E6;
}

#lh-footer .lhc-foot-bot,
#lh-footer .lhc-foot-bot span {
    color: #A9ABB0;
    font-size: 13px;
}

/* ---- images & icons ------------------------------------------------------- */
#lh-header img,
#lh-footer img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: none;
    border: 0;
    vertical-align: middle;
}
#lh-header .lhc-logo img,
#lh-footer .lhc-logo img {
    height: 28px;
}

#lh-header svg,
#lh-footer svg {
    flex: none;
    overflow: visible;
    vertical-align: middle;
}

/* ---- logged-in account area (header-account.php) -------------------------- */
#lh-header .lhc-account {
    position: relative;
}

#lh-header .lhc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid #2C2D31;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
#lh-header .lhc-avatar:hover {
    border-color: #fff;
}
#lh-header .lhc-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
/* 1200px and up: the avatar in the account area opens the dropdown.
   Below 1200px on logged-in pages: this other avatar (header.php) opens the slide-in menu instead. */
#lh-header .lhc-avatar.lhc-admin-mobbtn {
    display: none;
}

/* account dropdown: anchor it under the avatar instead of custom.css's translate(-60%) */
#lh-header .lhc-account .right-side-dropdown {
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1000;
    margin-top: 10px;
    transform: translateY(6px);
    color: #111214;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
#lh-header .lhc-account .right-side-dropdown-show {
    transform: translateY(0);
}
#lh-header .lhc-account .sidebar_list_item a {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}
/* custom.css forces `.right-side-dropdown .sidebar_list_item a {color:black !important}`,
   but style.css gives hover/focus a #181A20 background -> black on black.
   !important is needed to beat it; the #lh-header scope keeps this to the account menu. */
#lh-header .lhc-account .sidebar_list_item a:hover,
#lh-header .lhc-account .sidebar_list_item a:focus,
#lh-header .lhc-account .sidebar_list_item a:active,
#lh-header .lhc-account .sidebar_list_item a.-is-active {
    color: #fff !important;
    text-decoration: none;
}
#lh-header .lhc-account .sidebar_list_item a:hover svg,
#lh-header .lhc-account .sidebar_list_item a:focus svg,
#lh-header .lhc-account .sidebar_list_item a.-is-active svg {
    fill: #fff;
}
#lh-header .lhc-account .sidebar_list_item:last-child {
    margin-bottom: 0;
}
#lh-header .lhc-account .svg-icon {
    width: 1em;
    height: 1em;
    /* custom.css fades the icon over .4s while the link's text/background switch instantly
       (#lh-header a has transition:none), which makes the icon lag/blink. Switch it instantly too. */
    -webkit-transition: none;
    transition: none;
}

/* ==========================================================================
   Responsive — mirrors the media queries in lh-chrome.css
   ========================================================================== */
@media (max-width: 1199px) {
    #lh-header .lhc-nav a {
        font-size: 16px;
    }
    #lh-header .lhc-nav a:hover,
    #lh-header .lhc-nav a[aria-current=page] {
        border-bottom-color: #2C2D31;
    }
    #lh-header .lhc-nav a:hover {
        text-decoration: underline;
    }
    #lh-header .lhc-login {
        font-size: 16px;
    }
    #lh-header .lhc-btn,
    #lh-header .lhc-btn:visited,
    #lh-header .lhc-btn:hover,
    #lh-header .lhc-btn:focus {
        min-height: 44px;
    }

    /* logged-in (admin) pages: no header Menu button/panel; the avatar opens the site's own
       slide-in menu (mobile-nav-dashboard.php, which carries the main nav links) instead */
    #lh-header.lhc-admin .lhc-menubtn,
    #lh-header.lhc-admin .lhc-menu {
        display: none;
    }
    #lh-header .lhc-avatar.lhc-admin-mobbtn {
        display: inline-flex;
        width: 44px;
        height: 44px;
        order: 3; /* v3.2 puts the Menu button after Search (order:3); the avatar takes its place */
    }
}

@media (max-width: 600px) {
    #lh-header .lhc-strip a,
    #lh-header .lhc-strip a:visited {
        font-size: 12px;
    }
    #lh-header .lhc-logo img {
        height: 22px;
    }
}

@media (max-width: 380px) {
    #lh-header .lhc-logo img {
        height: 19px;
    }
}

@media print {
    #lh-header,
    #lh-footer {
        display: none;
    }
}
