/* Text for assistive technology; no changes to the visible site design. */
.a11y-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Native links replace buttons nested in links, retaining their existing presentation. */
a.carousel-btn,
a.callback_btn {
    display: inline-block;
    letter-spacing: normal;
}
a.callback_btn {
    background-color: var(--red);
}
.modal-content a.profile-link {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    padding: 12px;
    margin: 20px 0 0;
    border: 0;
    border-radius: 0 0 0 25px;
    background-color: #d80000;
    color: #fff;
    text-transform: uppercase;
    box-sizing: border-box;
    text-decoration: none;
    letter-spacing: normal;
}
.modal-content a.profile-link:hover {
    background-color: #a60000;
}

/* Native filter buttons retain the presentation of the former label wrappers. */
#ajax_filter .dropdown > button.dropdown-toggle {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 14px;
    line-height: normal;
    letter-spacing: normal;
    padding: 10px 15px;
    margin: 0 0 2px;
    border: 0;
    border-radius: 5px;
    background-color: transparent;
    color: var(--black);
    text-align: start;
    appearance: none;
    cursor: pointer;
    transition: color 0.3s;
}
#ajax_filter .dropdown:hover > button.dropdown-toggle {
    color: var(--white);
}
#ajax_filter .dropdown-content input.a11y-text {
    display: block;
}
#ajax_filter .dropdown-content label:has(input:focus-visible) {
    outline: auto 1px;
}

/* Display-only tenant logos retain the former wrappers' inherited color. */
.client-grid div.logo-wrapper {
    color: var(--red);
}

/* Native headings retain the typography and decorations of the former tags. */
.broker-card > .broker-card-name,
#brokerModal .broker-listings-heading,
.retail-tabs .property-section-heading,
.main-content .home-intro-heading,
.main-content .home-section-heading,
.main-content .home-slide-heading,
.service .service-subheading {
    display: inline-block;
    position: relative;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    padding: 20px 0;
}
.broker-card > .broker-card-name {
    text-align: center;
}
.broker-card > .broker-card-name::after,
#brokerModal .broker-listings-heading::after,
.retail-tabs .property-section-heading::after,
.main-content .home-intro-heading::after,
.main-content .home-section-heading::after,
.main-content .home-slide-heading::after,
.service .service-subheading::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: red;
    margin-top: 5px;
}
.service .service-subheading {
    margin: 0;
}

/* Preserve careers typography with the corrected native heading hierarchy. */
.careers .careers-intro-heading {
    font-size: 30px;
    color: var(--red);
}
.careers .careers-program-heading {
    font-size: 60px;
    font-weight: 600;
    margin: 0;
}
@media (max-width: 480px) {
    .careers .careers-intro-heading,
    .careers .careers-program-heading {
        font-size: 1.3rem;
    }
}

#brokerModal .broker-name {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    line-height: normal;
    text-align: left;
    color: var(--white);
    padding: 0;
    margin: 0 0 10px;
}
#brokerModal .broker-title {
    font-weight: 600;
    line-height: normal;
    letter-spacing: normal;
}
@media (max-width: 575.98px) {
    .broker-card > .broker-card-name {
        text-align: left;
    }
}

.retail-tabs .property-panel-title {
    display: block;
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
    color: var(--red);
    padding: 0;
    margin: 20px 0;
}
.retail-tabs .property-section-heading {
    color: inherit;
    margin: 0;
}
.retail-tabs .property-broker-name {
    display: block;
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
    color: var(--black);
    text-align: left;
    padding: 20px 0;
    margin: 0;
}

/* Keep the radio-driven grid/animations while exposing the controls to AT. */
.retail-tabs > input[type="radio"].a11y-text {
    display: block;
}
.retail-tabs > input[type="radio"]:focus-visible + .page + label.nav > span {
    outline: auto 1px;
}

/* Make keyboard focus visible inside the brochure's existing scroll area. */
#brochure_pdf:focus-visible {
    outline: 2px solid #2c2926;
    outline-offset: -2px;
}

.main-content .home-intro-heading {
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    color: var(--red);
    margin: 0;
}
.main-content .home-intro-heading::after {
    display: none;
}
.main-content .home-section-heading {
    color: inherit;
    margin: 0;
}
.main-content .featured .home-slide-heading {
    font-size: 42px;
    text-align: inherit;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    margin: 0;
}
@media (max-width: 575.98px) {
    .main-content .featured .home-slide-heading {
        font-size: 18px;
    }
}

/* WCAG 1.4.3: retain the brand colors and use the bold large-text threshold. */
/*Manual change: */
.footer .footer-column h2,
.about .stats .stat > p,
.footer .footer-links > span {
    color: #fff;
}

.footer .footer-logo > p,
.footer .footer-logo > p > sup {
    color: #fff;
}

.about .stats .stat > p {
    line-height: 1.5;
}

/* The global 0.7em superscript would fall below the large-text threshold. */
.footer .footer-logo > p > sup {
    font-weight: inherit;
    font-size: inherit;
    line-height: 0;
}

@media (max-width: 991.98px) {
    /* Give the larger statistics room to wrap without clipping their text. */
    .about {
        flex-direction: column;
    }
    .about .right.stats {
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    .about .stats .stat {
        flex: 1 1 10rem;
        width: auto;
        min-width: 0;
        margin: 0;
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    /* Mobile counter rules also shrink the numbers below the threshold. */
    .about .stats .stat > p > strong,
    .about .stats .stat > p .count-up {
        font-weight: 700;
        font-size: 19px;
    }
}
#toggle-map {
    color: white !important;  
}

.retail-content p {
    background: transparent !important;
}

/* Native home accordion buttons retain the former divs' presentation. */
.main-content .right-section button.accordion-header {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: normal;
    text-align: start;
    appearance: none;
}

/* Pure white text for the Our Team careers link on the brand-red background. */
#teamContainer > a.learn-more {
    color: #fff;
}

/* Pure white text for broker details and contact links in the Our Team popup. */
#brokerModal #broker-title,
#brokerModal #broker-bio,
#brokerModal #broker-phone,
#brokerModal #broker-email,
#brokerModal #broker-social {
    color: #fff;
}

/* A 14px video icon sits inside a transparent 24px square target. */
#home-video-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    appearance: none;
}

#home-video-toggle > svg {
    display: block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: transparent;
    fill: currentColor;
}

#home-video-toggle[data-paused="true"] .video-toggle-pause,
#home-video-toggle[data-paused="false"] .video-toggle-play {
    display: none;
}

#home-video-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #000;
}

#home-video-toggle[inert] {
    visibility: hidden;
}

/* Keep the visible dots small while giving each button a 24px square target. */
.owl-carousel .owl-dots > button.owl-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    vertical-align: middle;
}

/* Keep broker card link bounds inside the card, away from wrapped dot rows. */
.brokerslisting .brokerslist .item > a {
    display: block;
    height: 100%;
    overflow: hidden;
}

/* Enlarge footer link hit areas without increasing their text size. */
.footer .footer-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

/* Center the broker popup and keep scrolling inside its content panel. */
html.broker-modal-open {
    overflow: hidden;
}

#brokerModal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

#brokerModal > .modal-content {
    position: relative;
    width: 70vw;
    max-width: 100% !important;
    max-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#brokerModal > .modal-content > .close-btn {
    display: block;
}

@media (max-width: 991.98px) {
    #brokerModal {
        padding: 16px;
    }
    #brokerModal > .modal-content {
        width: 100%;
    }
}
