html { scroll-behavior: smooth; }

#main-navbar {
    transition: all .3s ease-in-out;
}

body[data-explore-nav-transparent="true"] #main-navbar:not(.navbar-scrolled) {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
}

body:not([data-explore-nav-transparent="true"]) #main-navbar,
body[data-explore-nav-transparent="true"] #main-navbar.navbar-scrolled,
#main-navbar.navbar-scrolled {
    background: #0E2943 !important;
    border-bottom: 1px solid rgba(184, 134, 11, .2) !important;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#nav-spacer { height: 80px; }

#sticky-breadcrumb {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(180%) blur(6px);
}

@supports (backdrop-filter: blur(1px)) {
    #sticky-breadcrumb {
        background: rgba(255,255,255,.90);
    }
}

@supports not (backdrop-filter: blur(1px)) {
    #sticky-breadcrumb {
        background: #ffffff;
    }
}

.circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 2px solid #B8860B;
    color: #B8860B;
    text-decoration: none !important;
    transition: all .2s ease;
    flex: 0 0 auto;
    cursor: pointer;
}

.circle-arrow:hover {
    background: #B8860B;
    color: #fff;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    margin-top: 1rem;
    padding: .9rem 1.1rem;
    border-radius: 9999px;
    background: #0E2943;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none !important;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.45);
    transition: opacity .15s ease, transform .15s ease;
    touch-action: manipulation;
}

.contact-btn:hover { opacity: .95; }
.contact-btn:active { transform: scale(.99); }
.contact-btn svg { width: 18px; height: 18px; }

.mortgage-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 38px;
    padding: .55rem .9rem;
    border-radius: 9999px;
    border: 1px solid rgba(14, 41, 67, .12);
    background: #ffffff;
    color: #0E2943;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all .2s ease;
    cursor: pointer;
}

.mortgage-chip:hover {
    border-color: rgba(184, 134, 11, .55);
    color: #B8860B;
}

.mortgage-chip.is-active {
    background: #0E2943;
    border-color: #0E2943;
    color: #ffffff;
    box-shadow: 0 14px 30px -20px rgba(14, 41, 67, .8);
}

.mortgage-range {
    appearance: none;
    height: 6px;
    border-radius: 9999px;
    background: rgba(14, 41, 67, .12);
    outline: none;
}

.mortgage-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: #B8860B;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    cursor: pointer;
}

.mortgage-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: #B8860B;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    cursor: pointer;
}

.mortgage-breakdown-segment {
    display: block;
    height: 100%;
    width: 0;
    transition: width .25s ease;
}

.luxury-card {
    background: linear-gradient(135deg, #1b3b66 0%, #17365c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px -18px rgba(0,0,0,.28);
}

.carousel-track { display: flex; }
.agent-slide { flex: 0 0 calc(33.333% - 1.3333rem); margin-right: 2rem; padding-bottom: .5rem; }

@media (max-width: 1024px) {
    .agent-slide { flex: 0 0 calc(50% - 1rem); margin-right: 2rem; }
}

@media (max-width: 640px) {
    .agent-slide { flex: 0 0 100%; margin-right: 0; }
}

.carousel-arrow {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: rgba(0,0,0,0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .3s;
    cursor: pointer;
}

.carousel-arrow:hover { background: rgba(0,0,0,0.65); }

.events-scroll {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.events-scroll::-webkit-scrollbar { display: none; }

.events-carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    cursor: pointer;
}

.events-carousel-arrow:hover {
    background: rgba(255,255,255,0.1);
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

header.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0E2943;
}

header.hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.balance { text-wrap: balance; }

.prose-wrap h1,
.prose-wrap h2,
.prose-wrap h3 {
    color: #0E2943;
    font-weight: 800;
}

.prose-wrap h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.prose-wrap h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
}

.prose-wrap,
.prose-wrap p,
.prose-wrap li {
    color: #374151;
    line-height: 1.8;
    font-size: 1rem;
}

.prose-wrap p { margin-bottom: 1rem; }
.prose-wrap ul { list-style: disc; padding-left: 1.25rem; margin-top: .75rem; }
.prose-wrap a { color: #0E2943; text-decoration: underline; }
.prose-wrap a:hover { color: #B8860B; }

.townhub-richtext p { margin-bottom: 1rem; }
.townhub-richtext p:last-child { margin-bottom: 0; }

.localnews-full-bleed,
.townhub-full-bleed {
    box-shadow: 0 0 0 100vmax #0E2943;
    clip-path: inset(0 -100vmax);
}

.article-content > *:first-child { margin-top: 0 !important; }
.article-content p { margin: 0 0 1.25rem 0; line-height: 1.85; font-size: 1.05rem; color: rgb(55 65 81); }
.article-content h2 { margin: 2.5rem 0 1rem 0; font-size: 1.75rem; font-weight: 800; color: #0E2943; line-height: 1.3; scroll-margin-top: 100px; }
.article-content h3 { margin: 1.5rem 0 .75rem 0; font-size: 1.35rem; font-weight: 800; color: #0E2943; line-height: 1.35; }
.article-content ul,
.article-content ol { margin: 0 0 1.25rem 1.2rem; color: rgb(55 65 81); }
.article-content li { margin: .4rem 0; line-height: 1.8; }
.article-content blockquote { border-left: 4px solid rgba(184,134,11,.5); padding-left: 1.25rem; color: rgb(75 85 99); margin: 1.5rem 0; font-style: italic; }
.article-content a { color: #0E2943; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.article-content a:hover { color: #B8860B; }

.hero-title-shadow { text-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.hero-copy-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.circle-arrow-sm {
    width: 36px;
    height: 36px;
}

.sharethis-inline {
    text-align: left !important;
    margin-top: 20px;
}

.sharethis-inline > span {
    float: right;
}
