/* 9to9 Properties — site overrides (no body-class dependency) */

body.nine-properties {
    --nine-pm-brand-btn: #0abf53;
    --nine-pm-brand-btn-hover: #089a45;
    --nine-pm-brand-secondary: #0abf53;
    --nine-pm-brand-secondary-hover: #089a45;
    --nine-pm-brand-third: #0abf53;
    --nine-pm-brand-third-hover: #089a45;
    --nine-pm-content-max: 1280px;
    --nine-pm-content-gutter: 15px;
}

body.nine-properties .cs_btn.cs_style_1.cs_primary_bg,
body.nine-properties .cs_player_btn.cs_primary_bg,
body.nine-properties .cs_offerbox_icon.cs_primary_bg {
    background-color: var(--nine-pm-brand-btn) !important;
    color: #fff !important;
}

body.nine-properties .cs_btn.cs_style_1.cs_primary_bg:hover {
    background-color: var(--nine-pm-brand-btn-hover) !important;
    color: #fff !important;
}

/* Home — single page background (matches Xproperty default white) */
body.website-template.app-lp.nine-properties {
    --web-wash: #fff;
    background-color: #fff !important;
}

body.website-template.app-lp.nine-properties .nine-pm-rental-band,
body.website-template.app-lp.nine-properties .nine-pm-ad-band,
body.website-template.app-lp.nine-properties .nine-pm-section-band {
    background: transparent !important;
}

body.website-template.app-lp.nine-properties .nine-pm-rental-section.white-box,
body.website-template.app-lp.nine-properties .nine-pm-owners-section.white-box,
body.website-template.app-lp.nine-properties .nine-pm-featured-section.white-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.website-template.app-lp.nine-properties .nine-pm-owners-section .referral-banner {
    border: 1px solid #e1e1e1;
    background: #fff;
}

body.nine-properties .cs_footer .cs_logo {
    margin-bottom: 2rem;
    line-height: 0;
}

body.nine-properties .cs_footer .cs_logo img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

.cs_site_header.cs_style_1,
.cs_site_header.cs_style_1.cs_sticky_active {
    background-color: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

body.nine-properties .cs_site_header.cs_style_1 .container {
    width: 100%;
    max-width: var(--nine-pm-content-max, 1280px) !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--nine-pm-content-gutter, 15px);
    padding-right: var(--nine-pm-content-gutter, 15px);
    box-sizing: border-box;
}

@media (max-width: 767px) {
    body.nine-properties .cs_site_header.cs_style_1 .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.cs_site_header.cs_style_1 .cs_main_header_in,
.cs_site_header.cs_style_1.cs_sticky_active .cs_main_header_in {
    height: 67px !important;
    min-height: 67px !important;
    max-height: 67px !important;
}

/* Account pages: fixed header offset (replaces removed breadcrumb hero spacing) */
body.xproperty-account-page {
    --nine-site-header-height: 67px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.xproperty-account-page > .cs_preloader,
body.xproperty-account-page > header,
body.xproperty-account-page > button#scrollToTopBtn {
    flex-shrink: 0;
}

body.xproperty-account-page > header {
    flex: 0 0 auto;
}

body.xproperty-account-page > .nine-pm-support-page,
body.xproperty-account-page > .nine-pm-account-shell {
    flex: 1 0 auto;
}

body.xproperty-account-page > .xproperty-account-footer {
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 1199px) {
    body.xproperty-account-page {
        --nine-site-header-height: 62px;
    }
}

body.nine-properties .nine-pm-account-shell {
    min-height: calc(100vh - var(--nine-site-header-height, 67px));
}

body.nine-properties .nine-pm-account-shell .nine-pm-account-page {
    padding-top: 0 !important;
    padding-bottom: 72px;
}

body.nine-properties .nine-pm-account__content {
    padding-bottom: 32px;
}

/* Mobile nav close — larger tap target */
@media (max-width: 1199px) {
    .cs_site_header.cs_style_1 .cs_nav .cs_nav_list_wrap .cs_close_nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(255 255 255 / 92%);
        box-shadow: 0 4px 16px rgb(9 35 60 / 12%);
        cursor: pointer;
        z-index: 1002;
        -webkit-tap-highlight-color: transparent;
    }

    .cs_site_header.cs_style_1 .cs_nav .cs_nav_list_wrap .cs_close_nav::before,
    .cs_site_header.cs_style_1 .cs_nav .cs_nav_list_wrap .cs_close_nav::after {
        pointer-events: none;
    }

    .cs_site_header.cs_style_1 .cs_nav .cs_nav_list_wrap .cs_close_nav.active {
        transform: scale(1);
    }
}

.cs_site_header.cs_style_1 .nine-header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.cs_site_header.cs_style_1 .nine-header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cs_site_header.cs_style_1 .nine-header-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    padding: 2px 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    text-decoration: none;
}

.cs_site_header.cs_style_1 .nine-header-logo img {
    display: block !important;
    width: auto !important;
    max-width: 125px !important;
    height: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.cs_site_header.cs_style_1 .nine-header-nav {
    display: none;
}

.cs_site_header.cs_style_1 .nine-header-actions {
    display: none;
}

.cs_site_header.cs_style_1 .nine-header-nav__link,
.cs_site_header.cs_style_1 .nine-header-nav-list > li > a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    text-transform: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.cs_site_header.cs_style_1 .nine-header-nav__link:hover,
.cs_site_header.cs_style_1 .nine-header-nav-list > li > a:hover {
    color: var(--nine-pm-brand-btn, #0abf53) !important;
    opacity: 1;
}

.cs_site_header.cs_style_1 .nine-header-nav__link.is-active,
.cs_site_header.cs_style_1 .nine-header-nav-list > li > a.is-active {
    color: var(--nine-pm-brand-btn, #0abf53) !important;
    background: rgb(10 191 83 / 12%);
}

.cs_site_header.cs_style_1 .nine-header-list-btn {
    border-color: transparent !important;
    white-space: nowrap;
    background-color: var(--nine-pm-brand-btn, #0abf53) !important;
    color: #fff !important;
    overflow: hidden;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.cs_site_header.cs_style_1 .nine-header-list-btn::before,
.cs_site_header.cs_style_1 .nine-header-list-btn:hover::before,
.cs_site_header.cs_style_1 .nine-header-list-btn:focus-visible::before {
    display: none !important;
    content: none !important;
}

.cs_site_header.cs_style_1 .nine-header-list-btn span {
    position: relative;
    z-index: 1;
    background: transparent !important;
    color: inherit !important;
}

.cs_site_header.cs_style_1 .nine-header-list-btn:hover,
.cs_site_header.cs_style_1 .nine-header-list-btn:focus-visible {
    background-color: var(--nine-pm-brand-btn-hover, #089a45) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(10 191 83 / 24%);
}

.cs_site_header.cs_style_1 .nine-header-list-btn:hover span,
.cs_site_header.cs_style_1 .nine-header-list-btn:focus-visible span {
    background: transparent !important;
    color: #fff !important;
}

.cs_site_header.cs_style_1 .nine-header-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--nine-pm-brand-btn, #0abf53);
    border-radius: 20px;
    background: transparent;
    color: var(--nine-pm-brand-btn, #0abf53);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cs_site_header.cs_style_1 .nine-header-track-btn:hover {
    background: var(--nine-pm-brand-btn, #0abf53);
    border-color: var(--nine-pm-brand-btn, #0abf53);
    color: #fff;
}

.cs_site_header.cs_style_1 .nine-header-account-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    color: #09233c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cs_site_header.cs_style_1 .nine-header-account-link:hover,
.cs_site_header.cs_style_1 .nine-header-account-link.is-active {
    color: var(--nine-pm-brand-btn, #0abf53);
    background: rgb(10 191 83 / 10%);
}

.cs_site_header.cs_style_1 .nine-header-logout-form {
    margin: 0;
}

/* Desktop — logo | nav | CTAs */
@media (min-width: 1200px) {
    .cs_site_header.cs_style_1 .nine-header-mobile-nav {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cs_site_header.cs_style_1 .nine-header-nav {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 2px;
        min-width: 0;
    }

    .cs_site_header.cs_style_1 .nine-header-actions {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        flex-wrap: nowrap;
        gap: 12px;
    }
}

@media (max-width: 1199px) {
    .cs_site_header.cs_style_1 .nine-header-nav,
    .cs_site_header.cs_style_1 .nine-header-actions {
        display: none !important;
    }

    .cs_site_header.cs_style_1 .nine-header-brand {
        flex: 1;
    }

    .cs_site_header.cs_style_1 .nine-header-mobile-nav {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }

    .cs_site_header.cs_style_1 .nine-header-nav-list > li > a:hover {
        color: var(--nine-pm-brand-btn, #0abf53) !important;
        opacity: 1;
    }

    .cs_site_header.cs_style_1 .nine-header-nav-list > li > a.is-active {
        color: var(--nine-pm-brand-btn, #0abf53) !important;
        background: rgb(10 191 83 / 12%);
        border-radius: 6px;
    }

    .cs_site_header.cs_style_1 .nine-header-mobile-cta {
        margin-top: 8px;
    }

    .cs_site_header.cs_style_1 .nine-header-mobile-cta .nine-header-list-btn,
    .cs_site_header.cs_style_1 .nine-header-mobile-cta .nine-header-track-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Public saved homes page */
body.nine-properties .xproperty-favourites-public {
    padding: calc(67px + 2rem) 0 3rem;
    background: #f8f8f8;
}

body.nine-properties .xproperty-favourites-public__inner {
    max-width: 1280px;
}

body.nine-properties .xproperty-favourites-public__header {
    margin-bottom: 1.5rem;
}

body.nine-properties .xproperty-favourites-public__title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

body.nine-properties .xproperty-favourites-public__intro {
    margin: 0;
    max-width: 42rem;
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
}

/* Home hero — 65% viewport height */
.cs_hero.cs_style_1.cs_hero_home {
    min-height: 65vh !important;
    height: 65vh !important;
    max-height: none !important;
    padding: 96px 0 40px !important;
    background-size: cover !important;
    background-position: center center !important;
}

.cs_hero.cs_style_1.cs_hero_home .cs_hero_content {
    padding-top: 36px !important;
}

.cs_hero.cs_style_1.cs_hero_home .cs_hero_title,
.cs_hero.cs_style_1.cs_hero_home h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 991px) {
    .cs_site_header.cs_style_1 .cs_main_header_in {
        height: 63px !important;
        min-height: 63px !important;
        max-height: 63px !important;
    }

    .cs_site_header.cs_style_1 .nine-header-logo {
        height: 63px !important;
        max-height: 63px !important;
        padding: 2px 0 !important;
    }

    .cs_site_header.cs_style_1 .nine-header-logo img {
        width: auto !important;
        max-width: 140px !important;
        height: 44px !important;
        max-height: 44px !important;
    }

    .cs_hero.cs_style_1.cs_hero_home {
        min-height: 65vh !important;
        height: auto !important;
    }
}
