/* Real estate */
:root {
    --re: #1663f0;
    --re-soft: #edf3ff;
}
.re .btn-primary,
.re-hero .btn-primary {
    background: var(--re);
    border-color: var(--re);
}
.re .btn-outline-primary {
    color: var(--re);
    border-color: #a9c2f7;
}
.re .btn-outline-primary:hover {
    background: var(--re);
    color: #fff;
}
.re .see-all {
    color: var(--re);
}

/* Hero: lake band with a house photo fading in on the right; content in the container */
.re-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(5, 30, 70, .78) 0%, rgba(5, 30, 70, .45) 50%, rgba(5, 30, 70, .1) 100%),
                var(--hero) center 60% / cover no-repeat;
    color: #fff;
    padding: 2.04rem 0 1.7rem;
}
.re-hero > .container {
    position: relative;
    z-index: 1;
}
.re-hero-house {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 72%;
    object-fit: cover;
    object-position: center 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(0deg, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%), linear-gradient(0deg, transparent 0%, #000 30%);
    mask-composite: intersect;
}
.re-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.re-hero > .container > p {
    font-size: 1.15rem;
    font-weight: 600;
    margin: .3rem 0 1.4rem;
}
.re-search {
    background: #fff;
    border-radius: 6px;
    box-shadow: none;
    color: var(--ek-text);
    overflow: hidden;
}
.re-types {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .7rem 0.765rem;
    border-bottom: 1px solid var(--ek-border);
    background: #f5f7f8;
}
.re-types label {
    flex-shrink: 0;
    cursor: pointer;
}
.re-types input {
    position: absolute;
    opacity: 0;
}
.re-types span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 0.807rem;
    border-radius: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: #303038;
}
.re-types span .bi {
    font-size: 1.05rem;
}
.re-types input:checked + span {
    background: var(--re);
    color: #fff;
}
.re-types input:focus-visible + span {
    outline: 2px solid var(--re);
}
.re-fields {
    display: flex;
    gap: .7rem;
    padding: 0.765rem;
}
.re-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .35rem 0.722rem;
    min-width: 0;
}
.re-field > .bi {
    color: var(--ek-muted);
    font-size: 1.05rem;
}
.re-field > span {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.re-field small {
    font-size: .68rem;
    color: var(--ek-muted);
}
.re-field select,
.re-field input {
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    font-weight: 600;
    font-size: .88rem;
    width: 100%;
    min-width: 0;
}
.re-range {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: .3rem;
}
.re-fields .btn {
    min-width: 170px;
    font-weight: 700;
    font-size: 1.02rem;
    border-radius: 6px;
}

/* Perks */
.re-perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.85rem 1.02rem;
    margin-bottom: 1.25rem;
}
.re-perks > div {
    display: flex;
    align-items: center;
    gap: 0.68rem;
}
.re-perks strong {
    display: block;
    font-size: .88rem;
}
.re-perks small {
    font-size: .74rem;
    color: var(--ek-muted);
}
.pk {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.pk.green { background: #e7f7ec; color: #03a94d; }
.pk.orange { background: #fff1e4; color: #f97316; }
.pk.blue { background: #eaf2ff; color: #2563eb; }
.pk.red { background: #ffecec; color: #ef4444; }

/* Layout */
.re-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.062rem;
    align-items: start;
}
.re-layout.left {
    grid-template-columns: 270px minmax(0, 1fr);
}
.re-layout > main {
    display: flex;
    flex-direction: column;
    gap: 1.062rem;
}
.re-side {
    display: flex;
    flex-direction: column;
    gap: 1.062rem;
}
.re-box {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.935rem 1.02rem;
    margin-bottom: 0;
}
.col-lg-7 > .re-box,
.col-lg-5 > .re-box {
    margin-bottom: 1.25rem;
}
.re-box h2 {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0;
}
.re-box > h2 {
    margin-bottom: .9rem;
}
.re-expand {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ek-text);
}
.re-tabs {
    display: flex;
    gap: .2rem;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: .8rem;
}
.re-tabs button {
    border: 0;
    background: transparent;
    font-size: .8rem;
    padding: .3rem .65rem;
    border-radius: 6px;
    color: #303038;
}
.re-tabs button.active {
    background: var(--re);
    color: #fff;
}

/* Cards */
.re-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.765rem;
}
.re-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.re-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    overflow: hidden;
    color: var(--ek-text);
    transition: box-shadow .2s;
}
.re-card[hidden] {
    display: none;
}
.re-card:hover {
    box-shadow: none;
}
.re-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--re-soft);
}
.re-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.re-card:hover .re-img img {
    transform: scale(1.05);
}
.re-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    padding: .15rem .55rem;
    border-radius: 5px;
    background: #03a94d;
}
.re-badge.featured { background: #ef4444; }
.re-badge.rent { background: #f59e0b; }
.re-badge.new { background: #03a94d; }
.re-badge.inline {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
}
.re-badge.inline.sale { background: var(--re); }
.re-badge.inline.kind { background: #f1f3f5; color: #303038; }
.re-badge.inline.cert { background: #e8f8ee; color: #008f40; }
.p-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #767678;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.p-fav.on {
    color: #ef4444;
}
.re-body {
    padding: .65rem 0.637rem 0.637rem;
}
.re-price {
    color: #e11d48;
    font-weight: 800;
    font-size: 1.02rem;
}
.re-price small,
.re-big-price small {
    color: var(--ek-muted);
    font-weight: 500;
    font-size: .72rem;
}
.re-title {
    font-weight: 700;
    font-size: .86rem;
    margin: .1rem 0 .15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-loc {
    font-size: .74rem;
    color: var(--ek-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-loc .bi {
    color: var(--re);
}
.re-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 0.765rem;
    font-size: .74rem;
    color: #606060;
    margin-top: .45rem;
}

/* Map */
.re-map {
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ek-border);
    z-index: 0;
}
.re-map.wide {
    height: 340px;
    margin-bottom: 1rem;
}
.re-pin span {
    display: inline-block;
    background: var(--re);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .45rem;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: none;
    white-space: nowrap;
    transform: translate(-50%, -100%);
}
.re-pin.rent span {
    background: #f59e0b;
}

/* Filters */
.re-filter .form-label {
    font-size: .8rem;
    font-weight: 600;
    margin: .7rem 0 .3rem;
}
.re-filter .form-select,
.re-filter .form-control {
    font-size: .85rem;
    border-radius: 6px;
}
.re-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.re-filter .form-check {
    display: block;
    font-size: .84rem;
    margin-top: .55rem;
}

/* Agencies */
.re-agencies {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.765rem;
}
.re-agencies.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.re-agency {
    display: flex;
    gap: 0.637rem;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.68rem;
    color: var(--ek-text);
}
.re-agency.link:hover {
    border-color: var(--re);
}
.re-agency strong {
    display: block;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-agency small {
    display: block;
    color: var(--ek-muted);
    font-size: .72rem;
    margin-bottom: .4rem;
}
.re-agency .btn {
    font-size: .74rem;
    padding: .15rem 0.68rem;
}
.re-alogo {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--re-soft);
    color: var(--re);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.re-alogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.re-alogo.lg {
    width: 84px;
    height: 84px;
    border-radius: 6px;
}
.re-agency-head {
    display: flex;
    align-items: center;
    gap: 0.935rem;
    margin-bottom: 1rem;
}
.re-agency-head h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 .2rem;
}


/* List page */
.re-listhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.637rem;
    margin-bottom: 1rem;
}
.re-listhead h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

/* Detail */
.re-gallery .carousel-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
}
.re-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--ek-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.re-gallery .carousel-control-prev,
.re-gallery .carousel-control-next {
    opacity: 1;
    width: 60px;
}
.re-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    overflow-x: auto;
}
.re-thumbs button {
    border: 2px solid transparent;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    background: none;
    flex-shrink: 0;
}
.re-thumbs button.active {
    border-color: var(--re);
}
.re-thumbs img {
    width: 92px;
    height: 64px;
    object-fit: cover;
    display: block;
}
.re-detail {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 1.105rem 1.19rem;
    margin-top: 1rem;
}
.re-detail h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: .2rem 0 .3rem;
}
.re-detail h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 1.3rem 0 .6rem;
}
.re-detail .re-loc {
    font-size: .88rem;
    white-space: normal;
}
.re-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .6rem;
}
.re-facts > div {
    background: var(--re-soft);
    border-radius: 6px;
    padding: .6rem 0.68rem;
}
.re-facts small {
    display: block;
    font-size: .72rem;
    color: var(--ek-muted);
}
.re-desc {
    color: #303038;
    line-height: 1.7;
}
.re-sticky {
    position: sticky;
    top: 1rem;
}
.re-big-price {
    color: #e11d48;
    font-size: 1.8rem;
    font-weight: 800;
}
.re-seller {
    display: flex;
    align-items: center;
    gap: 0.637rem;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .7rem 0.68rem;
    margin: .6rem 0 1rem;
}
.re-seller small {
    display: block;
    font-size: .72rem;
    color: var(--ek-muted);
}
.re-seller a {
    color: var(--ek-text);
}
.re-safe {
    font-size: .74rem;
    color: #92400e;
    background: #fffbeb;
    border-radius: 6px;
    padding: .55rem .7rem;
    margin: 1rem 0 0;
}

/* Form / mine */
.re-deal {
    display: inline-flex;
    background: var(--ek-bg);
    border-radius: 6px;
    padding: .25rem;
}
.re-deal input {
    position: absolute;
    opacity: 0;
}
.re-deal span {
    display: block;
    padding: .4rem 0.935rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
}
.re-deal input:checked + span {
    background: var(--re);
    color: #fff;
}
.re-edit-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .6rem;
    margin-bottom: 1rem;
}
.re-edit-photos img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.re-edit-photos span {
    display: block;
    font-size: .75rem;
    margin-top: .2rem;
}
.re-mine {
    display: flex;
    align-items: center;
    gap: 0.765rem;
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .7rem;
    margin-bottom: .7rem;
}
.re-mine.off {
    opacity: .6;
}
.re-mine img {
    width: 96px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}
.re-mine a.fw-bold {
    color: var(--ek-text);
}

@media (max-width: 1199.98px) {
    .re-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .re-agencies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .re-layout,
    .re-layout.left {
        grid-template-columns: minmax(0, 1fr);
    }
    .re-hero-house {
        display: none;
    }
    .re-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .re-grid,
    .re-grid.cols-3,
    .re-agencies.wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .re-fields {
        flex-wrap: wrap;
    }
    .re-field,
    .re-fields .btn {
        flex: 1 1 100%;
    }
    .re-tabs {
        margin: 0;
        order: 3;
        width: 100%;
    }
}
@media (max-width: 575.98px) {
    .re-perks,
    .re-grid,
    .re-grid.cols-3,
    .re-agencies,
    .re-agencies.wide {
        grid-template-columns: minmax(0, 1fr);
    }
    .re-agency-head {
        flex-wrap: wrap;
    }
}
