:root {
    --b2r-ink: #132238;
    --b2r-muted: #64748b;
    --b2r-border: #e6ebf2;
    --b2r-surface: #ffffff;
    --b2r-soft: #f5f7fb;
    --b2r-primary: #1769e0;
    --b2r-primary-dark: #0e4fb3;
    --b2r-accent: #f5b63f;
    --b2r-radius: 20px;
    --b2r-shadow: 0 20px 55px rgba(18, 34, 56, 0.10);
}

.frontend-shell {
    padding-top: 72px;
    padding-bottom: 0;
    margin: 0;
    background: var(--b2r-soft);
    color: var(--b2r-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.frontend-shell a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.frontend-shell .frontend-main {
    min-height: 60vh;
}

.frontend-shell .b2r-navbar {
    min-height: 72px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(230, 235, 242, .9);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 7px 24px rgba(18, 34, 56, .04);
}

.frontend-shell .b2r-navbar .navbar-header,
.frontend-shell .b2r-navbar .navbar-brand,
.frontend-shell .b2r-navbar .navbar-nav > li > a {
    min-height: 72px;
}

.frontend-shell .b2r-navbar .navbar-brand,
.frontend-shell .b2r-navbar .navbar-nav > li > a {
    display: flex;
    align-items: center;
}

.frontend-shell .b2r-navbar .navbar-nav > li > a {
    color: #42526a;
    font-size: 14px;
    font-weight: 600;
    padding: 0 16px;
}

.frontend-shell .b2r-navbar .navbar-nav > li > a:hover,
.frontend-shell .b2r-navbar .navbar-nav > li > a:focus {
    color: var(--b2r-primary);
    background: transparent;
}

.frontend-shell .b2r-brand {
    gap: 10px;
    color: var(--b2r-ink) !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
    padding-top: 0;
    padding-bottom: 0;
}

.frontend-shell .b2r-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--b2r-primary), #49a2ff);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 9px 24px rgba(23, 105, 224, .28);
}

.frontend-shell .navbar-user {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0 8px 0 16px;
}

.frontend-shell .navbar-user span {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f0f5fb;
    color: #42526a;
    font-size: 13px;
    font-weight: 700;
}

.frontend-shell .b2r-nav-cta {
    min-height: auto !important;
    margin: 16px 0 16px 10px;
    padding: 10px 18px !important;
    border-radius: 999px;
    background: var(--b2r-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(23, 105, 224, .22);
}

.frontend-shell .b2r-nav-cta:hover,
.frontend-shell .b2r-nav-cta:focus {
    background: var(--b2r-primary-dark) !important;
    color: #fff !important;
}

.frontend-shell .btn {
    border-radius: 12px;
    font-weight: 700;
    border-width: 1px;
    box-shadow: none;
}

.frontend-shell .btn-lg {
    padding: 13px 22px;
    font-size: 16px;
}

.frontend-shell .btn-primary {
    border-color: var(--b2r-primary);
    background: var(--b2r-primary);
    color: #fff;
}

.frontend-shell .btn-primary:hover,
.frontend-shell .btn-primary:focus {
    border-color: var(--b2r-primary-dark);
    background: var(--b2r-primary-dark);
    color: #fff;
}

.frontend-shell .btn-ghost {
    border: 1px solid rgba(255, 255, 255, .44);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.frontend-shell .btn-ghost:hover,
.frontend-shell .btn-ghost:focus {
    border-color: #fff;
    background: #fff;
    color: var(--b2r-ink);
}

.frontend-shell .btn-light {
    border-color: #fff;
    background: #fff;
    color: var(--b2r-primary-dark);
}

.frontend-shell .btn-light:hover,
.frontend-shell .btn-light:focus {
    background: #eef5ff;
    border-color: #eef5ff;
    color: var(--b2r-primary-dark);
}

.frontend-shell .form-control {
    height: 48px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
}

.frontend-shell textarea.form-control {
    height: auto;
}

.frontend-shell .form-control:focus {
    border-color: rgba(23, 105, 224, .55);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, .09);
}

.frontend-shell label {
    color: #42526a;
    font-size: 13px;
    font-weight: 700;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 74px;
    background:
        linear-gradient(110deg, rgba(9, 28, 57, .96) 0%, rgba(17, 69, 128, .90) 50%, rgba(23, 105, 224, .75) 100%),
        url('../images/header.png') center center / cover no-repeat;
    color: #fff;
}

.landing-hero:before,
.landing-hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.landing-hero:before {
    width: 420px;
    height: 420px;
    right: -180px;
    top: -180px;
}

.landing-hero:after {
    width: 280px;
    height: 280px;
    left: 45%;
    bottom: -220px;
}

.landing-hero-row {
    display: flex;
    align-items: center;
}

.landing-hero-copy {
    padding-right: 56px;
}

.landing-eyebrow,
.section-kicker,
.search-panel-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.landing-eyebrow {
    margin-bottom: 18px;
    color: #a9d0ff;
}

.landing-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: #fff;
    font-size: 54px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.7px;
}

.landing-lead {
    max-width: 700px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 19px;
    line-height: 1.65;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.landing-trust-row span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 600;
}

.search-panel {
    position: relative;
    z-index: 2;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    color: var(--b2r-ink);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.search-panel-heading {
    margin-bottom: 20px;
}

.search-panel-kicker,
.section-kicker {
    color: var(--b2r-primary);
}

.search-panel h2 {
    margin: 7px 0 0;
    color: var(--b2r-ink);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.landing-search-form .form-group {
    margin-bottom: 15px;
}

.compact-row {
    margin-left: -6px;
    margin-right: -6px;
}

.compact-row > div {
    padding-left: 6px;
    padding-right: 6px;
}

.landing-section {
    padding: 76px 0;
    background: var(--b2r-soft);
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.section-heading-row h2,
.owner-panel h2 {
    margin: 8px 0 8px;
    color: var(--b2r-ink);
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-heading-row p {
    margin: 0;
    color: var(--b2r-muted);
    font-size: 16px;
}

.property-grid {
    display: flex;
    flex-wrap: wrap;
}

.property-grid-item {
    display: flex;
    margin-bottom: 28px;
}

.property-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--b2r-border);
    border-radius: var(--b2r-radius);
    background: var(--b2r-surface);
    box-shadow: 0 12px 34px rgba(18, 34, 56, .055);
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--b2r-shadow);
}

.property-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    height: 235px;
    background: #eaf0f7;
}

.property-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.property-card:hover .property-card-media img {
    transform: scale(1.035);
}

.property-city {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--b2r-ink);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}

.property-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.property-card-body h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.property-card-body h3 a {
    color: var(--b2r-ink);
}

.property-card-body h3 a:hover {
    color: var(--b2r-primary);
    text-decoration: none;
}

.property-card-body p {
    flex: 1;
    margin-bottom: 18px;
    color: var(--b2r-muted);
    font-size: 14px;
    line-height: 1.7;
}

.property-link {
    color: var(--b2r-primary);
    font-size: 14px;
    font-weight: 800;
}

.property-link:hover,
.property-link:focus {
    color: var(--b2r-primary-dark);
    text-decoration: none;
}

.empty-state {
    padding: 50px 24px;
    border: 1px dashed #ced8e6;
    border-radius: var(--b2r-radius);
    background: #fff;
    text-align: center;
}

.landing-pagination {
    text-align: center;
}

.landing-pagination .pagination > li > a,
.landing-pagination .pagination > li > span {
    margin: 0 3px;
    border: 0;
    border-radius: 9px;
    color: var(--b2r-ink);
}

.landing-pagination .pagination > .active > span,
.landing-pagination .pagination > .active > a {
    background: var(--b2r-primary);
    color: #fff;
}

.landing-benefits {
    padding-top: 12px;
}

.benefit-card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--b2r-border);
    border-radius: var(--b2r-radius);
    background: #fff;
}

.benefit-number {
    display: inline-block;
    margin-bottom: 35px;
    color: var(--b2r-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.benefit-card h3 {
    margin: 0 0 13px;
    color: var(--b2r-ink);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.benefit-card p {
    margin: 0;
    color: var(--b2r-muted);
    line-height: 1.7;
}

.owner-section {
    padding: 8px 0 82px;
    background: var(--b2r-soft);
}

.owner-panel {
    overflow: hidden;
    padding: 52px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 95% 10%, rgba(90, 166, 255, .34), transparent 34%),
        linear-gradient(135deg, #0b2e5a, #155fbd 70%, #237fe8);
    color: #fff;
    box-shadow: 0 28px 70px rgba(15, 66, 126, .2);
}

.owner-panel-row {
    display: flex;
    align-items: center;
}

.section-kicker-light {
    color: #acd2ff;
}

.owner-panel h2 {
    color: #fff;
    font-size: 39px;
}

.owner-panel p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.75;
}

.owner-panel-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.owner-login-link {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 700;
}

.owner-login-link:hover {
    color: #fff;
}

.b2r-footer {
    padding: 50px 0 24px;
    border-top: 1px solid var(--b2r-border);
    background: #fff;
}

.b2r-footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--b2r-ink);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.b2r-footer-brand:hover {
    color: var(--b2r-primary);
    text-decoration: none;
}

.b2r-footer p {
    max-width: 650px;
    margin: 0;
    color: var(--b2r-muted);
    line-height: 1.7;
}

.b2r-footer-actions {
    padding-top: 6px;
    text-align: right;
}

.b2r-footer-actions .btn + .btn {
    margin-left: 8px;
}

.b2r-footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--b2r-border);
    color: #94a3b8;
    font-size: 12px;
}

/* Modern treatment for the rest of the legacy public pages. */
.frontend-shell .places {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 70px;
}

.frontend-shell .places > h1 {
    margin: 0 0 28px;
    color: var(--b2r-ink);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.frontend-shell .places > p {
    color: var(--b2r-muted);
    font-size: 16px;
    line-height: 1.75;
}

.frontend-shell .places .thumbnail {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--b2r-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 34, 56, .06);
}

.frontend-shell .places .thumbnail > img,
.frontend-shell .places .thumbnail > a > img {
    width: 100%;
}

.frontend-shell .places .thumbnail .caption {
    padding: 18px;
}

.frontend-shell .places .thumbnail h3 {
    color: var(--b2r-ink);
    font-weight: 800;
}

.frontend-shell .places .nav-tabs {
    margin-top: 28px;
    border-bottom: 1px solid var(--b2r-border);
}

.frontend-shell .places .nav-tabs > li > a {
    border: 0;
    border-radius: 10px 10px 0 0;
    color: var(--b2r-muted);
    font-weight: 700;
}

.frontend-shell .places .nav-tabs > li.active > a,
.frontend-shell .places .nav-tabs > li.active > a:hover,
.frontend-shell .places .nav-tabs > li.active > a:focus {
    border: 0;
    background: #fff;
    color: var(--b2r-primary);
}

.frontend-shell .places .tab-content {
    padding: 22px;
    border: 1px solid var(--b2r-border);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
}

.frontend-shell .places .tab-content img {
    border-radius: 14px;
}

.frontend-shell section {
    margin-top: 56px;
}

.frontend-shell .articles-list,
.frontend-shell .well {
    border: 1px solid var(--b2r-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.frontend-shell .table-responsive,
.frontend-shell .table {
    background: #fff;
}

.frontend-shell .alert {
    border: 0;
    border-radius: 12px;
}

@media (max-width: 991px) {
    .landing-hero {
        padding: 56px 0 62px;
    }

    .landing-hero-row,
    .owner-panel-row {
        display: block;
    }

    .landing-hero-copy {
        padding-right: 15px;
        margin-bottom: 34px;
    }

    .landing-hero h1 {
        font-size: 46px;
    }

    .owner-panel-action {
        margin-top: 26px;
    }

    .benefit-card {
        min-height: auto;
        margin-bottom: 18px;
    }
}

@media (max-width: 767px) {
    .frontend-shell {
        padding-top: 64px;
    }

    .frontend-shell .b2r-navbar,
    .frontend-shell .b2r-navbar .navbar-header,
    .frontend-shell .b2r-navbar .navbar-brand {
        min-height: 64px;
    }

    .frontend-shell .b2r-navbar .navbar-brand {
        height: 64px;
    }

    .frontend-shell .b2r-navbar .navbar-toggle {
        margin-top: 14px;
        margin-right: 15px;
        border: 0;
        border-radius: 10px;
        background: #f1f5f9;
    }

    .frontend-shell .b2r-navbar .navbar-toggle:hover,
    .frontend-shell .b2r-navbar .navbar-toggle:focus {
        background: #e7eef7;
    }

    .frontend-shell .b2r-navbar .navbar-collapse {
        max-height: calc(100vh - 64px);
        border-top: 1px solid var(--b2r-border);
        background: #fff;
        box-shadow: 0 16px 30px rgba(18, 34, 56, .08);
    }

    .frontend-shell .b2r-navbar .navbar-nav {
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .frontend-shell .b2r-navbar .navbar-nav > li > a,
    .frontend-shell .navbar-user {
        min-height: 48px;
        padding: 12px 16px;
    }

    .frontend-shell .b2r-nav-cta {
        display: inline-flex !important;
        margin: 5px 16px 14px;
        min-height: auto !important;
    }

    .landing-hero {
        padding: 42px 0 46px;
    }

    .landing-hero h1 {
        font-size: 38px;
        letter-spacing: -1.1px;
    }

    .landing-lead {
        font-size: 17px;
    }

    .landing-actions {
        display: block;
    }

    .landing-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .search-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .compact-row > div {
        padding-left: 6px;
        padding-right: 6px;
    }

    .landing-section {
        padding: 56px 0;
    }

    .section-heading-row h2,
    .owner-panel h2 {
        font-size: 31px;
    }

    .property-card-media {
        height: 220px;
    }

    .owner-section {
        padding-bottom: 58px;
    }

    .owner-panel {
        padding: 34px 24px;
        border-radius: 22px;
    }

    .owner-panel-action .btn {
        width: 100%;
    }

    .b2r-footer {
        padding-top: 40px;
    }

    .b2r-footer-actions {
        margin-top: 22px;
        text-align: left;
    }

    .frontend-shell .places {
        padding: 30px 15px 52px;
    }

    .frontend-shell .places > h1 {
        font-size: 31px;
    }

    .frontend-shell .places .nav-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    .frontend-shell .places .nav-tabs > li {
        float: none;
        flex: 0 0 auto;
    }

    .frontend-shell .places .tab-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .landing-hero h1 {
        font-size: 34px;
    }

    .landing-trust-row span {
        font-size: 11px;
    }

    .property-card-media {
        height: 205px;
    }

    .b2r-footer-actions .btn {
        display: block;
        width: 100%;
    }

    .b2r-footer-actions .btn + .btn {
        margin: 9px 0 0;
    }
}
