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

body.nine-properties {
    --nine-pm-brand-btn: #fdb813;
    --nine-pm-brand-btn-hover: #e5a610;
    --nine-pm-brand-secondary: #f46c7b;
    --nine-pm-brand-secondary-hover: #e85a6a;
    --nine-pm-brand-third: #f24e09;
    --nine-pm-brand-third-hover: #d94408;
}

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;
}

body.nine-properties .cs_btn.cs_style_1.cs_primary_bg:hover {
    background-color: var(--nine-pm-brand-btn-hover) !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;
}

.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;
}

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

.cs_site_header.cs_style_1 .nine-header-bar {
    position: relative;
}

.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: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Desktop — nav, logo, and CTAs grouped around center */
.cs_site_header.cs_style_1 .nine-header-cluster {
    display: none;
}

@media (min-width: 1200px) {
    .cs_site_header.cs_style_1 .nine-header-bar {
        justify-content: center !important;
    }

    .cs_site_header.cs_style_1 .nine-header-logo-mobile,
    .cs_site_header.cs_style_1 .nine-header-mobile-nav,
    .cs_site_header.cs_style_1 .nine-header-mobile-actions {
        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-cluster {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 22px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__group {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 22px;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__link {
        color: inherit;
        text-decoration: none;
        white-space: nowrap;
        letter-spacing: 0.02em;
        padding: 6px 12px;
        border-radius: 6px;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__link:hover {
        color: var(--nine-pm-brand-secondary, #f46c7b) !important;
        opacity: 1;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__link.is-active {
        color: var(--nine-pm-brand-secondary, #f46c7b) !important;
        background: rgb(244 108 123 / 12%);
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__actions .nine-header-list-btn {
        border-color: transparent !important;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__actions .nine-header-list-btn:hover {
        border-color: var(--primary-color) !important;
    }

    .cs_site_header.cs_style_1 .nine-header-logo-cluster {
        margin: 0 6px;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__actions {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 18px;
    }

    .cs_site_header.cs_style_1 .nine-header-cluster__actions .cs_btn {
        white-space: nowrap;
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 44px;
        height: 44px;
        margin-left: 2px;
        border-radius: 50%;
        color: var(--nine-pm-brand-secondary, #f46c7b);
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link:hover {
        color: var(--nine-pm-brand-secondary, #f46c7b);
        background: rgb(244 108 123 / 12%);
        transform: scale(1.05);
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link.is-active {
        background: rgb(244 108 123 / 12%);
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link i {
        font-size: 23px;
        line-height: 1;
    }
}

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

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

    .cs_site_header.cs_style_1 .nine-header-logo-mobile .nine-header-logo {
        height: 63px;
    }

    .cs_site_header.cs_style_1 .nine-header-nav > li > a:hover,
    .cs_site_header.cs_style_1 .nine-header-mobile-actions .cs_login:hover {
        color: var(--nine-pm-brand-secondary, #f46c7b) !important;
        opacity: 1;
    }

    .cs_site_header.cs_style_1 .nine-header-nav > li > a.is-active {
        color: var(--nine-pm-brand-secondary, #f46c7b) !important;
        background: rgb(244 108 123 / 12%);
        border-radius: 6px;
    }

    .cs_site_header.cs_style_1 .nine-header-mobile-actions .nine-header-list-btn {
        border-color: transparent !important;
    }

    .cs_site_header.cs_style_1 .nine-header-mobile-actions .nine-header-list-btn:hover {
        border-color: var(--primary-color) !important;
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--nine-pm-brand-secondary, #f46c7b);
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link:hover,
    .cs_site_header.cs_style_1 .nine-header-favourites-link.is-active {
        color: var(--nine-pm-brand-secondary, #f46c7b);
        background: rgb(244 108 123 / 12%);
    }

    .cs_site_header.cs_style_1 .nine-header-favourites-link i {
        font-size: 22px;
        line-height: 1;
    }
}

/* 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: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

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