
/* =========================================================
   OwnerEstates UI — Property & Project Cards v1
   ========================================================= */

/* Card content */
.property-item .description,
.projecthome .description {
    background: #fff;
    border-radius: 0 0 16px 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

/* Hover */
.property-item:hover .description,
.projecthome .item:hover .description {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

/* Property / Project titles */
.property-item .description h5,
.projecthome .description h3 {
    margin: 0 34px 8px 0;
    color: #17222b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

/* Links */
.property-item .description > a:not(.heart),
.projecthome .description > a:not(.heart) {
    color: inherit;
    text-decoration: none;
}

/* Address */
.property-item .dia_chi,
.projecthome .dia_chi {
    margin: 0 0 14px;
    color: #75808a;
    font-size: 14px;
    line-height: 1.5;
}

.property-item .dia_chi i,
.projecthome .dia_chi i {
    margin-right: 5px;
    color: #163b6d;
}

/* Property specifications */
.property-item .threemt {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin: 0;
    padding-top: 13px;
    border-top: 1px solid #edf0f2;
}

.property-item .threemt > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4e5a63;
    font-size: 13px;
}

.property-item .threemt img {
    width: 17px;
    height: 17px;
    opacity: .78;
}

/* Project price */
.projecthome .description .bold500 {
    margin: 12px 0 0;
    color: #17222b;
    font-size: 15px;
    font-weight: 700;
}

/* Wishlist */
.property-item .description .heart,
.projecthome .description .heart {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.property-item .description .heart:hover,
.projecthome .description .heart:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .14);
}

/* Mobile */
@media (max-width: 767px) {
    .property-item .description,
    .projecthome .description {
        padding: 15px 15px 14px;
        border-radius: 0 0 14px 14px;
    }

    .property-item .description h5,
    .projecthome .description h3 {
        font-size: 17px;
    }
}


/* =========================================================
   OwnerEstates UI — Header v1
   ========================================================= */

.topmenu {
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 3px 18px rgba(15, 23, 42, .045);
}

.topmenu .main-header {
    background: transparent;
}

.topmenu .navbar {
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Logo */
.topmenu .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 36px;
}

.topmenu .navbar-brand .logo {
    max-height: 42px;
    width: auto;
}

/* Desktop navigation */
@media (min-width: 992px) {

    .topmenu .main-menu-nav {
        align-items: center;
        gap: 18px;
    }

    .topmenu .navbar-nav.menu {
        align-items: center;
        gap: 3px;
    }

    .topmenu .navbar-nav.menu > .menu-item {
        position: relative;
        margin: 0;
    }

    .topmenu .navbar-nav.menu > .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 9px 13px;
        border-radius: 9px;
        color: #26343c;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        transition:
            color .2s ease,
            background-color .2s ease;
    }

    .topmenu .navbar-nav.menu > .menu-item > a:hover {
        color: #163b6d;
        background: rgba(22, 59, 109, .065);
    }

    /* Current page */
    .topmenu .navbar-nav.menu > .current-menu-item > a {
        color: #163b6d;
        background: rgba(22, 59, 109, .08);
    }

    .topmenu .navbar-nav.menu > .current-menu-item::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 1px;
        height: 2px;
        border-radius: 2px;
        background: #163b6d;
    }

    /* Dropdown arrow */
    .topmenu .sub-toggle-desktop {
        margin-left: -8px;
        margin-right: 6px;
        color: #7b858c;
        font-size: 11px;
        pointer-events: none;
    }

    /* Dropdown menu */
    .topmenu .sub-menu {
        min-width: 220px;
        padding: 8px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    }

    .topmenu .sub-menu .menu-item > a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        color: #35434b;
        font-size: 14px;
        font-weight: 500;
        transition:
            color .2s ease,
            background-color .2s ease;
    }

    .topmenu .sub-menu .menu-item > a:hover {
        color: #163b6d;
        background: rgba(22, 59, 109, .07);
    }

    /* Main CTA */
    .topmenu .add-property {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-left: 8px;
        padding: 9px 17px;
        border: 1px solid #163b6d;
        border-radius: 10px;
        background: #163b6d;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 5px 14px rgba(22, 59, 109, .16);
        transition:
            transform .2s ease,
            box-shadow .2s ease,
            background-color .2s ease;
    }

    .topmenu .add-property:hover {
        background: #102f59;
        border-color: #102f59;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(22, 59, 109, .22);
    }
}

/* Mobile */
@media (max-width: 991px) {

    .topmenu .navbar {
        min-height: 64px;
    }

    .topmenu .navbar-brand .logo {
        max-height: 38px;
    }

    .topmenu .navbar-toggler {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid #e4e8ea;
        border-radius: 10px;
        background: #fff;
        color: #163b6d;
    }

    .topmenu .main-menu-content {
        background: #fff;
    }

    .topmenu .menu--mobile > .menu-item > a {
        font-weight: 600;
    }
}


/* =========================================================
   OwnerEstates UI — Homepage Hero v1
   ========================================================= */

.home_banner {
    position: relative;
    min-height: 560px;
    height: 62vh;
    max-height: 700px;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

/* Premium dark overlay */
.home_banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 24, 30, .58) 0%,
            rgba(8, 24, 30, .38) 45%,
            rgba(8, 24, 30, .20) 100%
        );
    z-index: 1;
    pointer-events: none;
}

/* Search container */
.home_banner .topsearch {
    width: min(920px, calc(100% - 40px));
    z-index: 2;
}

/* Main title */
.home_banner .banner-text-description {
    max-width: 850px;
    margin: 0 auto 28px !important;
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .22);
}

/* Search form */
.home_banner #frmhomesearch {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Tabs */
.home_banner .typesearch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 10px !important;
    padding: 5px !important;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home_banner .typesearch::after {
    content: "";
    display: block;
    clear: both;
}

.home_banner .typesearch a {
    float: none !important;
    margin: 0 !important;
    padding: 9px 18px !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: #44545b !important;
    font-size: 14px;
    font-weight: 600 !important;
    line-height: 1.2;
    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.home_banner .typesearch a:hover {
    color: #163b6d !important;
    background: rgba(22,59,109,.07) !important;
}

.home_banner .typesearch a.active {
    background: #163b6d !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(22,59,109,.22);
}

/* Main white search bar */
.home_banner .topsearch .input-group-lg {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-height: 68px;
    padding: 8px !important;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 40px rgba(5,20,27,.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Search icons */
.home_banner .topsearch .input-group-text {
    height: 50px;
    padding: 0 4px 0 14px;
    border: 0 !important;
    background: transparent !important;
    color: #163b6d;
    font-size: 17px;
}

/* Inputs */
.home_banner .topsearch .keyword-input,
.home_banner .topsearch .location-input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.home_banner .topsearch .form-control {
    height: 50px !important;
    padding: 0 14px 0 8px;
    border: 0 !important;
    background: transparent !important;
    color: #17252b;
    font-size: 15px;
    font-weight: 500;
}

.home_banner .topsearch .form-control::placeholder {
    color: #89959a !important;
    font-weight: 400;
}

/* Divider between keyword/location */
.home_banner .location-input {
    position: relative;
}

.home_banner .location-input::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #e5eaec;
}

/* Search button */
.home_banner .search-button-wrapper {
    margin-left: 8px;
}

.home_banner .search-button-wrapper .btn {
    min-width: 125px;
    height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px !important;
    background: #163b6d !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(22,59,109,.20);
    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.home_banner .search-button-wrapper .btn:hover {
    background: #102f59 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22,59,109,.27);
}

/* Suggestions */
.home_banner .listsuggest,
.home_banner .suggestion {
    border: 1px solid #e5e9eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991px) {

    .home_banner {
        min-height: 520px;
    }

    .home_banner .topsearch {
        width: min(760px, calc(100% - 30px));
    }

    .home_banner .banner-text-description {
        font-size: clamp(30px, 5vw, 44px);
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 576px) {

    .home_banner {
        min-height: 570px !important;
        padding: 70px 0 !important;
    }

    .home_banner::before {
        background: rgba(8, 24, 30, .50);
    }

    .home_banner .topsearch {
        width: 100%;
        padding: 0 16px;
    }

    .home_banner .banner-text-description {
        margin-bottom: 22px !important;
        font-size: 30px;
        line-height: 1.12;
        letter-spacing: -.7px;
    }

    .home_banner .typesearch {
        width: 100%;
        display: flex;
    }

    .home_banner .typesearch a {
        flex: 1;
        text-align: center;
        padding: 10px 8px !important;
    }

    .home_banner .topsearch .input-group-lg {
        display: flex;
        flex-wrap: wrap;
        padding: 8px !important;
        border-radius: 14px;
    }

    .home_banner .topsearch .keyword-input,
    .home_banner .topsearch .location-input {
        width: calc(100% - 48px) !important;
        flex: 0 0 calc(100% - 48px);
        margin: 0 !important;
    }

    .home_banner .topsearch .input-group-prepend {
        width: 48px;
        margin: 0 !important;
    }

    .home_banner .topsearch .input-group-text {
        width: 48px;
        justify-content: center;
        padding: 0;
    }

    .home_banner .location-input::before {
        display: none;
    }

    .home_banner .keyword-input + .input-group-prepend {
        border-top: 1px solid #e8ecee;
    }

    .home_banner .keyword-input + .input-group-prepend +
    .location-input {
        border-top: 1px solid #e8ecee;
    }

    .home_banner .search-button-wrapper {
        width: 100% !important;
        margin: 8px 0 0 !important;
    }

    .home_banner .search-button-wrapper .btn {
        width: 100%;
        height: 50px;
    }
}


/* =========================================================
   OWNER ESTATES — HERO SEARCH BAR V2
   ========================================================= */

@media (min-width: 769px) {

    /* Barre principale */
    .home_banner .topsearch .input-group-lg {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        justify-content: flex-start;
        background: #fff;
        border-radius: 18px;
        padding: 10px;
        box-shadow: 0 14px 40px rgba(22, 59, 109, .18);
        overflow: visible;
    }

    /* Recherche projet / propriété */
    .home_banner .topsearch .keyword-input {
        display: block;
        flex: 1 1 42%;
        width: auto;
        min-width: 250px;
        position: relative;
    }

    /* Localisation */
    .home_banner .topsearch .location-input {
        display: block;
        flex: 1 1 30%;
        width: auto;
        min-width: 190px;
        position: relative;
    }

    /* Inputs */
    .home_banner .topsearch .keyword-input .form-control,
    .home_banner .topsearch .location-input .form-control {
        height: 56px !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 18px !important;
        font-size: 15px;
        color: #17263a;
        box-shadow: none !important;
    }

    /* Placeholder */
    .home_banner .topsearch .form-control::placeholder {
        color: #7c8795 !important;
        opacity: 1;
    }

    /* Icônes */
    .home_banner .topsearch .input-group-prepend {
        display: flex;
        align-items: center;
        background: #fff;
    }

    .home_banner .topsearch .input-group-text {
        height: 56px;
        min-width: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff !important;
        color: #163b6d;
        border: 0 !important;
        font-size: 18px;
        padding: 0 8px 0 15px;
    }

    /* Séparation entre recherche et localisation */
    .home_banner .topsearch .location-input {
        border-left: 1px solid #e4e8ee;
    }

    /* Bouton Search */
    .home_banner .topsearch .search-button-wrapper {
        display: flex;
        margin-left: 8px;
    }

    .home_banner .topsearch .search-button-wrapper .btn {
        min-width: 145px;
        height: 56px;
        border: 0 !important;
        border-radius: 12px !important;
        background: #163b6d !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 700;
        padding: 0 25px;
        box-shadow: 0 6px 18px rgba(22, 59, 109, .22);
        transition: all .2s ease;
    }

    .home_banner .topsearch .search-button-wrapper .btn:hover {
        background: #214d83 !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(22, 59, 109, .28);
    }

    /* Advanced sous la barre */
    .home_banner .topsearch .advanced-search {
        flex: 0 0 100%;
        width: 100%;
        padding: 7px 8px 0;
        text-align: left;
    }

    .home_banner .topsearch .advanced-search > a {
        color: #163b6d !important;
        font-size: 13px;
        font-weight: 600;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .home_banner .topsearch .input-group-lg {
        background: #fff;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 12px 30px rgba(22, 59, 109, .18);
    }

    .home_banner .topsearch .keyword-input,
    .home_banner .topsearch .location-input {
        width: calc(100% - 45px) !important;
    }

    .home_banner .topsearch .form-control {
        height: 50px !important;
        background: #fff !important;
        color: #17263a;
    }

    .home_banner .topsearch .search-button-wrapper .btn {
        height: 52px;
        border-radius: 10px !important;
        background: #163b6d !important;
        color: #fff !important;
        font-weight: 700;
    }
}







exist
cat >> platform/themes/flex-home/public/css/ownerestates.css <<'CSS'


/* =========================================================
   OWNER ESTATES — HOMEPAGE CTA + LOCATIONS V1
   ========================================================= */

.projecthome .btn,
.projecthome .tf-btn,
.homehouse .btn,
.blog-container .btn {
    border-radius: 10px;
    font-weight: 700;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}

.projecthome .btn-primary,
.projecthome .btn-orange,
.homehouse .btn-primary,
.blog-container .btn-primary {
    background: #163b6d !important;
    border-color: #163b6d !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(22, 59, 109, .16);
}

.projecthome .btn-primary:hover,
.projecthome .btn-orange:hover,
.homehouse .btn-primary:hover,
.blog-container .btn-primary:hover {
    background: #214d83 !important;
    border-color: #214d83 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(22, 59, 109, .22);
}

/* Properties by Locations */
.itemitemarea,
.itemarea {
    position: relative;
    overflow: hidden;
    border-radius: 18px !important;
    background: #163b6d;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.itemitemarea:hover,
.itemarea:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}

.itemitemarea img,
.itemarea img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px !important;
    transition:
        transform .45s ease,
        filter .35s ease;
}

.itemitemarea:hover img,
.itemarea:hover img {
    transform: scale(1.045);
}

.itemitemarea::after,
.itemarea::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(8, 24, 48, .72) 0%,
            rgba(8, 24, 48, .24) 50%,
            rgba(8, 24, 48, .05) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.itemitemarea h3,
.itemarea h3 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.itemitemarea:hover h3,
.itemarea:hover h3 {
    color: #cdeeff !important;
}

@media (max-width: 767px) {
    .itemitemarea,
    .itemarea {
        border-radius: 14px !important;
    }

    .itemitemarea img,
    .itemarea img {
        border-radius: 14px !important;
    }

    .itemitemarea h3,
    .itemarea h3 {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 18px;
    }
}


/* =========================================================
   OWNER ESTATES — FEATURED OWNERS V1
   ========================================================= */

.list-agency .agents-grid {
    height: 100%;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.list-agency .agents-grid:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 59, 109, .16);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

/* Image */
.list-agency .fr-grid-thumb {
    height: 230px;
    padding: 0 !important;
    background: #f3f6f9;
    overflow: hidden;
}

.list-agency .fr-grid-thumb a,
.list-agency .fr-grid-thumb span {
    display: block;
    width: 100%;
    height: 100%;
}

.list-agency .fr-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .4s ease;
}

.list-agency .agents-grid:hover .fr-grid-thumb img {
    transform: scale(1.035);
}

/* Name row */
.list-agency .fr-grid-detail {
    padding: 18px 18px 12px !important;
}

.list-agency .fr-can-name {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.list-agency .fr-can-name a {
    color: #17263a !important;
    text-decoration: none;
}

.list-agency .fr-can-name a:hover {
    color: #163b6d !important;
}

/* Email round button */
.list-agency .agent-email a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf6fb !important;
    color: #163b6d !important;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.list-agency .agent-email a:hover {
    background: #cdeeff !important;
    transform: translateY(-1px);
}

/* Contact info */
.list-agency .fr-grid-info {
    margin: 0 !important;
    padding: 0 18px 14px;
}

.list-agency .fr-grid-info ul {
    margin: 0;
    padding: 0;
}

.list-agency .fr-grid-info ul li {
    padding: 5px 0 !important;
    color: #6d7882;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-agency .fr-grid-info ul li strong {
    color: #344554;
    font-weight: 600;
}

/* Footer */
.list-agency .fr-grid-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px !important;
    border-top: 1px solid #edf0f3 !important;
    background: #fbfcfd;
}

.list-agency .fr-position {
    color: #5d6974;
    font-size: 14px;
}

.list-agency .fr-position i {
    color: #163b6d;
}

/* View button */
.list-agency .prt-view {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 15px !important;
    border-radius: 9px !important;
    background: #163b6d !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.list-agency .prt-view:hover {
    background: #214d83 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(22, 59, 109, .18);
}

/* Mobile */
@media (max-width: 767px) {
    .list-agency .agents-grid {
        border-radius: 14px;
    }

    .list-agency .fr-grid-thumb {
        height: 210px;
    }
}


/* =========================================================
   OWNER ESTATES — MORTGAGE CALCULATOR PREMIUM V1
   ========================================================= */

.mortgage-calculator-container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.mortgage-calculator {
    --mc-primary: #163b6d !important;
    border: 1px solid #e5eaf0;
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08) !important;
}

/* Header */
.mortgage-calculator__header {
    padding: 28px 30px 8px !important;
}

.mortgage-calculator__title {
    color: #17263a !important;
    font-size: 26px !important;
    font-weight: 750 !important;
    letter-spacing: -.3px;
}

.mortgage-calculator__description {
    color: #6d7882 !important;
    font-size: 15px !important;
}

/* Calculation method tabs */
.mortgage-calculator__tabs {
    padding: 0 30px !important;
    border-bottom: 1px solid #e7ebf0 !important;
}

.mortgage-calculator__tab {
    color: #71808d !important;
    font-weight: 600 !important;
}

.mortgage-calculator__tab:hover,
.mortgage-calculator__tab--active {
    color: #163b6d !important;
}

.mortgage-calculator__tab--active:after {
    background: #163b6d !important;
    height: 3px !important;
    border-radius: 3px 3px 0 0;
}

/* Main area */
.mortgage-calculator__body {
    gap: 30px !important;
    padding: 30px !important;
}

/* Labels */
.mortgage-calculator__label {
    color: #344554 !important;
    font-weight: 650 !important;
}

.mortgage-calculator__field-hint {
    color: #89949e !important;
}

/* Inputs */
.mortgage-calculator__input-wrapper {
    min-height: 50px;
    border: 1px solid #dfe5eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.mortgage-calculator__input-wrapper:hover {
    border-color: #b9c7d3 !important;
}

.mortgage-calculator__input-wrapper:focus-within {
    border-color: #163b6d !important;
    box-shadow: 0 0 0 3px rgba(22, 59, 109, .09);
}

.mortgage-calculator__input {
    color: #17263a !important;
    font-weight: 550;
}

.mortgage-calculator__input-suffix {
    background: #f5f8fa !important;
    color: #566573 !important;
    border-left-color: #dfe5eb !important;
    font-weight: 600;
}

/* Slider */
.mortgage-calculator__slider {
    height: 6px !important;
    border-radius: 20px !important;
}

.mortgage-calculator__slider::-webkit-slider-thumb {
    width: 20px !important;
    height: 20px !important;
    background: #163b6d !important;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(22, 59, 109, .28) !important;
}

.mortgage-calculator__slider::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    background: #163b6d !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(22, 59, 109, .28) !important;
}

.mortgage-calculator__slider-value {
    color: #163b6d !important;
    font-weight: 700 !important;
}

/* Results panel */
.mortgage-calculator__results-panel {
    position: relative;
    justify-content: center;
    min-height: 100%;
    border-radius: 16px !important;
    background:
        linear-gradient(145deg, #163b6d 0%, #102f59 100%) !important;
    box-shadow: 0 12px 28px rgba(22, 59, 109, .20);
    overflow: hidden;
}

/* subtle premium light */
.mortgage-calculator__results-panel:before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: rgba(205, 238, 255, .09);
    pointer-events: none;
}

.mortgage-calculator__results-content,
.mortgage-calculator__results-icon {
    position: relative;
    z-index: 1;
}

.mortgage-calculator__results-icon {
    color: #cdeeff;
}

.mortgage-calculator__result-label {
    color: rgba(255,255,255,.78) !important;
}

.mortgage-calculator__result-sub {
    color: rgba(255,255,255,.65) !important;
}

.mortgage-calculator__result-value {
    color: #fff !important;
    font-weight: 750 !important;
}

.mortgage-calculator__result-value--large {
    font-size: 27px !important;
}

/* Details button */
.mortgage-calculator__details-btn {
    min-height: 42px;
    padding: 9px 18px !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 9px !important;
    color: #fff !important;
    font-weight: 650 !important;
}

.mortgage-calculator__details-btn:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #163b6d !important;
}

/* Modal */
.mortgage-calculator__modal-content {
    border-radius: 16px !important;
    overflow: hidden;
}

.mortgage-calculator__modal-header {
    background: #f5f8fa !important;
}

.mortgage-calculator__modal-tab--active {
    background: #163b6d !important;
    border-color: #163b6d !important;
}

/* Mobile */
@media (max-width: 768px) {

    .mortgage-calculator {
        border-radius: 15px !important;
    }

    .mortgage-calculator__header {
        padding: 22px 20px 5px !important;
    }

    .mortgage-calculator__title {
        font-size: 22px !important;
    }

    .mortgage-calculator__tabs {
        padding: 0 20px !important;
        overflow-x: auto;
    }

    .mortgage-calculator__body {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding: 20px !important;
    }

    .mortgage-calculator__results-panel {
        min-height: 280px;
    }
}


/* =========================================================
   OWNER ESTATES — REAL ESTATE INSIGHTS V1
   Homepage only
   ========================================================= */

.discover .blog-container .container-grid {
    margin-bottom: 24px;
}

.discover .blog-container .grid-in {
    height: 100%;
    border-radius: 18px !important;
    overflow: hidden;
    background: #fff;
}

.discover .blog-container .grid-shadow {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff !important;
    border: 1px solid #e7ebf0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.discover .blog-container .grid-shadow:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 59, 109, .16);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12) !important;
}

/* Image */
.discover .blog-container .hourseitem {
    margin: 0 !important;
    overflow: hidden;
}

.discover .blog-container .blii {
    padding-top: 62% !important;
    overflow: hidden;
    background: #eef3f7;
}

.discover .blog-container .blii .img {
    overflow: hidden;
}

.discover .blog-container .blii img.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transform: scale(1);
    transition: transform .45s ease;
}

.discover .blog-container .grid-shadow:hover .blii img.thumb {
    transform: scale(1.045);
}

/* Content */
.discover .blog-container .grid-h {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 220px !important;
    padding: 20px !important;
    background: #fff !important;
}

/* Article title */
.discover .blog-container .blog-title > a {
    text-decoration: none !important;
}

.discover .blog-container .blog-title h2 {
    display: -webkit-box !important;
    min-height: auto !important;
    margin: 0 0 12px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #17263a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: -.15px;
    transition: color .2s ease;
}

.discover .blog-container .blog-title > a:hover h2 {
    color: #163b6d !important;
}

/* Meta */
.discover .blog-container .post-meta {
    margin-bottom: 13px;
    color: #87939d !important;
    font-size: 12.5px !important;
    line-height: 1.5;
}

.discover .blog-container .post-meta p {
    margin: 0 !important;
}

.discover .blog-container .post-meta a {
    color: #163b6d !important;
    font-weight: 600;
    text-decoration: none !important;
}

.discover .blog-container .post-meta a:hover {
    text-decoration: underline !important;
}

.discover .blog-container .post-meta .fa-eye {
    margin-right: 3px;
    color: #9aa6af;
}

/* Excerpt */
.discover .blog-container .blog-excerpt {
    margin-top: auto;
}

.discover .blog-container .blog-excerpt p {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #66737e !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

/* Section background */
.discover .blog-container {
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 767px) {
    .discover .blog-container .grid-in,
    .discover .blog-container .grid-shadow {
        border-radius: 14px !important;
    }

    .discover .blog-container .grid-h {
        min-height: 0 !important;
        padding: 17px !important;
    }

    .discover .blog-container .blog-title h2 {
        font-size: 17px !important;
    }

    .discover .blog-container .blii {
        padding-top: 58% !important;
    }
}


/* =========================================================
   OWNER ESTATES — RECENTLY VIEWED PROPERTIES V1
   ========================================================= */

.homehouse.padtop30 {
    padding-top: 44px !important;
    padding-bottom: 18px;
}

.homehouse.padtop30 > .row:first-child {
    margin-bottom: 8px;
}

.homehouse.padtop30 > .row:first-child h2 {
    margin-bottom: 10px;
    color: #17263a;
    font-size: clamp(26px, 2vw, 32px);
    font-weight: 700;
    letter-spacing: -.3px;
}

.homehouse.padtop30 > .row:first-child p {
    max-width: 760px;
    margin-bottom: 8px;
    color: #6d7882;
    line-height: 1.65;
}

.homehouse.padtop30 .projecthome {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.homehouse.padtop30 .projecthome > .row > div {
    margin-bottom: 22px;
}

/* subtle section separation */
.homehouse.padtop30 {
    border-top: 1px solid #edf1f4;
}

/* mobile */
@media (max-width: 767px) {
    .homehouse.padtop30 {
        padding-top: 30px !important;
    }

    .homehouse.padtop30 > .row:first-child h2 {
        font-size: 24px;
    }
}


/* =========================================================
   OWNER ESTATES — MARKET INTELLIGENCE MOBILE V1
   ========================================================= */

.oe-market-mobile-nav {
    margin: 18px 0;
}

.oe-market-mode {
    display: flex;
    max-width: 420px;
    padding: 4px;
    background: #edf2f6;
    border-radius: 12px;
}

.oe-market-mode__btn {
    flex: 1;
    padding: 10px 18px;
    border-radius: 9px;
    color: #64717d !important;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}

.oe-market-mode__btn.is-active {
    background: #163b6d;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(22,59,109,.18);
}

.oe-market-mobile-actions {
    display: none;
}

@media (max-width: 767px) {

    .oe-market-mobile-nav {
        position: sticky;
        top: 8px;
        z-index: 50;
        margin: 12px 0 18px;
        padding: 10px;
        background: rgba(255,255,255,.96);
        border: 1px solid #e5eaf0;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(15,23,42,.08);
        backdrop-filter: blur(10px);
    }

    .oe-market-mode {
        width: 100%;
        max-width: none;
    }

    .oe-market-mode__btn {
        padding: 10px 8px;
        font-size: 14px;
    }

    .oe-market-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 8px;
    }

    .oe-mobile-filter-toggle,
    .oe-mobile-results-link {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 9px;
        font-size: 13px;
        font-weight: 700;
    }

    .oe-mobile-filter-toggle {
        border: 1px solid #dce4eb;
        background: #fff;
        color: #163b6d;
    }

    .oe-mobile-filter-toggle span {
        min-width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border-radius: 20px;
        background: #cdeeff;
        color: #163b6d;
        font-size: 11px;
    }

    .oe-mobile-results-link {
        background: #163b6d;
        color: #fff !important;
        text-decoration: none !important;
    }

    .oe-market-filter-shell {
        display: none;
    }

    .oe-market-filter-shell.is-open {
        display: block;
    }

    .oe-filter-card {
        margin-top: 0 !important;
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .oe-filter-card .row {
        --bs-gutter-y: 10px;
    }

    .oe-filter-card .oe-filter-title {
        margin-bottom: 12px;
    }

    #oe-latest-transactions {
        scroll-margin-top: 145px;
    }
}


/* =========================================================
   OWNER ESTATES — MARKET MOBILE ACCORDIONS V1
   ========================================================= */

.oe-mobile-accordion__toggle {
    display: none;
}

@media (max-width: 767px) {

    .oe-mobile-accordion {
        margin-top: 14px !important;
        margin-bottom: 14px !important;
        padding: 0 !important;
        border: 1px solid #e4eaf0 !important;
        border-radius: 14px !important;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
    }

    .oe-mobile-accordion__toggle {
        width: 100%;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border: 0;
        background: #fff;
        color: #17263a;
        font-size: 15px;
        font-weight: 750;
        text-align: left;
        cursor: pointer;
    }

    .oe-mobile-accordion__toggle span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .oe-mobile-accordion__icon {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #edf6fb;
        color: #163b6d;
        font-size: 18px;
        font-weight: 500;
        transition:
            transform .2s ease,
            background-color .2s ease;
    }

    .oe-mobile-accordion.is-open .oe-mobile-accordion__icon {
        transform: rotate(45deg);
        background: #cdeeff;
    }

    .oe-mobile-accordion__content {
        display: none;
        padding: 0 14px 16px;
    }

    .oe-mobile-accordion.is-open .oe-mobile-accordion__content {
        display: block;
    }

    .oe-mobile-accordion__content > :first-child {
        margin-top: 0 !important;
    }

    .oe-mobile-accordion .oe-table-header {
        padding-top: 8px !important;
    }

    /*
     * The generated accordion button already contains the title,
     * therefore hide duplicated section headers on mobile.
     */
    .oe-mobile-accordion__content >
    .oe-ranking-panel__header,

    .oe-mobile-accordion__content >
    .oe-trends-panel__header,

    .oe-mobile-accordion__content >
    .oe-score-panel__header,

    .oe-mobile-accordion__content >
    .oe-community-leaders__header,

    .oe-mobile-accordion__content >
    .oe-table-header {
        display: none;
    }
}


/* =========================================================
   OWNER ESTATES — FORCE MOBILE ACCORDIONS CLOSED
   ========================================================= */

@media (max-width: 991px) {

    .oe-mobile-accordion__content {
        display: none !important;
    }

    .oe-mobile-accordion.is-open > .oe-mobile-accordion__content {
        display: block !important;
    }

    .oe-mobile-accordion__toggle {
        display: flex !important;
    }
}

