/**
*
* Custom styles added outside of build process
*
* TODO: consolidate .nav-tabs styles once tab styles are finalized
* TO-DO: Change --{$prefix}<names> to generic names and then set the colors
*        for these variables at the top level basec on the brand body.maxbroock, body.realestateone, etc
**/

/**
* ====================================================
* Our History
* ====================================================
**/

.our-history-timeline__container {

    --timeline-border-color: var(--mb-primary, var(--reo-primary));
    --timeline-dot-color: var(--mb-primary, var(--reo-primary));
    --timeline-dash-color: var(--mb-primary, var(--reo-primary));

    border-left: 2px solid var(--timeline-border-color);

    li {
        position: relative;
    }

    /* timeline connector - dot */
    >ul>li:not(:has(ul)) {

        :before {
            content: ' ';
            display: block;
            position: absolute;
            left: -2.45rem;
            top: 0.30rem;
            bottom: 0;
            width: 1rem;
            height: 1rem;
            background: var(--timeline-dot-color);
            border-radius: 50%;
        }
    }

    /* timeline connector - dash */
    >ul>li>ul {
        :before {
            content: '';
            display: block;
            position: absolute;
            left: -3.8rem;
            top: 0.75rem;
            width: 2.5rem;
            height: 2px;
            background-image: repeating-linear-gradient(to right,
                    var(--timeline-dash-color) 0,
                    var(--timeline-dash-color) 5px,
                    transparent 5px,
                    transparent 8px);
        }
    }
}

/**
* ====================================================
*  Charitable Foundation
* ====================================================
**/

.charitable-foundation {
    .text-m-width {
        max-width: 1017px;
        margin: auto;
    }
}

/**
* ====================================================
* Housing Report
* ====================================================
**/

.market-report-card {
    aspect-ratio: 1 / 1;
    border: 1px solid black;
    max-width: 280px;

    img {
        max-height: 120px;
    }
}

/**
* ====================================================
* Pre-Approval Process Page
* ====================================================
**/

.pre-approval-process-page {

    @media (min-width: 576px) {
        .border-sm-top {
            border-top: 1px solid var(--mb-dark-gray, var(--reo-dark-gray)) !important;
        }
    }

    .pre-approval-form {
        input {
            border-color: var(--mb-dark-gray, var(--reo-dark-gray)) !important;
            line-height: 1;
        }

        textarea {
            margin-top: 15px;
            width: 100%;
            resize: none;
            overflow-y: auto;
            border-color: var(--mb-dark-gray, var(--reo-dark-gray)) !important;

                        @media screen and (min-width: 768px) {
                height: 11.25rem;
                margin-top: 1.85rem;
                padding-top: 10px;
                border-top-width: 1px;
            }

            @media screen and (min-width: 992px) {
                height: 11.25rem;
            }

            @media screen and (min-width: 1200px) {
                height: 11.45rem;
            }

        }

        ::placeholder {
            color: var(--mb-light-gray-1, var(--reo-light-gray-1));
        }

    }

    .logo-button-container {
        --img-width: 360px;

        max-width: var(--img-width);
        margin: 0 auto;

        a {
            width: fit-content;
            position: relative;
            right: 76px;

            /* center button on small screens */
            @media screen and (max-width: 768px) {
                right: 18px;

            }
        }

        img {
            max-width: var(--img-width);
            height: auto;

            @media screen and (max-width: 768px) {
                position: relative;
                right: 20px;
            }
        }
    }

    #goodToGoCashOfferModal .logo-button-container a {
        right: initial;
    }
}

/**
* ====================================================
* First to know landing page
* ====================================================
**/

.first-to-know-landing {

    .header-image {
        height: clamp(200px, calc(109px + 24.2vw), 400px);
        margin-bottom: clamp(80px, calc(44px + 9.7vw), 120px);
    }

    .first-to-know-header {
        line-height: 1.1;
    }

    .first-to-know-signup-form {
        bottom: 0;
        margin: 0;

        input[type="checkbox"] + label {
            line-height: 1.2;
        }

        .form-select {
            background-position: right 35%;
            padding-right: 20px;
            text-overflow: ellipsis;
        }

        /* @include media-breakpoint-up(sm) { ... } */
        @media (min-width: 576px) {
            position: absolute
         }
    }

    /* Accordion menu styles */
    .accordion {
        border-top: 1px solid var(--mb-dark-gray, var(--reo-dark-gray));
        border-bottom: 1px solid var(--mb-dark-gray, var(--reo-dark-gray));

        .accordion-item {
            border-color: var(--mb-dark-gray, var(--reo-dark-gray)) !important;
        }

        .accordion-button {
            gap: 10px;
            &::after {
                display: none;
            }
            &:not(.collapsed) {
                color: var(--mb-primary, var(--reo-primary));
                background-color: transparent;
                box-shadow: none;
            }
            .bi-chevron-up {
                color: var(--mb-black, var(--reo-black));
                opacity: 0.5;
                transition: transform 0.2s ease-in-out;
                transform: rotate(180deg);
            }

            &:not(.collapsed) .bi-chevron-up {
                transform: rotate(0deg);
            }
        }
    }
}

/**
* ====================================================
* Your Homesuite
* ====================================================
**/

.your-homesuite {
    .card-box-shadow-2 {
        box-shadow: 0px 4px 6px 3px rgba(0, 0, 0, 0.13);
    }

    .swiper-wrapper {
        transition-timing-function: linear;
        align-items: flex-end;
    }

    .swiper-slide {
        width: auto;
    }

    /* Center logos within slides */
    .homesuite-logo-card {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;

        a {
            width: 100%;
            height: 100%;
        }
    }

    .homesuite-logo-card img:not(.mich-title-img) {
        max-height: 70px;
        width: auto;
        height: 70px;
        object-fit: cover;
    }

    .mich-title-img  {
        position: relative;
        max-height: 120px;
        height: 110px;
        /* top: 0px;
        left: -32px; */
    }

    /* Homesuite Signup Form */
    .homesuite-signup-form {

        input, textarea {
            &::placeholder {
                color: var(--mb-light-gray-1, var(--reo-light-gray-1));
            }
            border-color: var(--mb-dark-gray, var(--reo-dark-gray));
        }
        .homesuite-consent {
            font-size: 12px;
        }
        .terms-disclaimer {
            font-size: 11px;
            line-height: 1.4;
            a:not(:hover) {
                color: var(--mb-dark-gray, var(--reo-dark-gray));
            }
        }
    }

    .homesuite-form-copy {
        max-width: 500px;

        @media screen and (max-width: 576px) {
            text-align: center;
            margin-bottom: 0px auto 40px auto;
        }
    }
}

/**
* ====================================================
* Prepare to shop for a home
* ====================================================
**/

.shop-for-home-buy-sell {

    .home-buy-sell-accordion ul {
        list-style: none;
        padding-left: 0;

        li {
            position: relative;
            padding-left: 25px;

            &::before {
                content: "";
                display: block;
                position: absolute;
                font-family: "bootstrap-icons" !important;
                left: 0;
                top: 8px;
                width: 12px;
                height: 12px;
                border: 1px solid var(--mb-dark-gray-2, var(--reo-dark-gray-2));
                border-radius: 2px;
                background-color: transparent;
                cursor: pointer;
            }
        }

        li.check-item {
            cursor: pointer;
        }

        li.check-item::before {
            content: "\f584";  /* empty square */
            top: 5px;
            font-size: 13px;
            border: none;
        }

        li.check-item.checked::before {
            content: "\f26c";  /* dark checkbox */
            /* content: "\f26d"; light checkbox */
            font-family: "bootstrap-icons" !important;
            top: 5px;
            font-size: 13px;
            border: none;
        }
    }

    #movingOutOfAreaFormModal {
        --mb-border-color: var(--mb-dark-gray-2, var(--reo-dark-gray-2));

        a:not(:hover) {
            color: var(--mb-dark-gray-2, var(--reo-dark-gray-2));
        }

        .modal-body {
            padding: 60px 30px;
            border-radius: var(--mb-modal-border-radius, var(--reo-modal-border-radius));
        }

        .modal-text {
            font-size: 15px;
            font-weight: 500;
        }

        .modal-form-header {
            margin-bottom: 25px;
        }

        .modal-form-row {
            margin-bottom: 25px;
        }

        .agent-find-languages {
            row-gap: 0.5rem;
            margin-bottom: 15px;
        }

        .agent-find-languages .modal-text {
            margin-bottom: 5px;
        }

        .agent-find-submit {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

        .agent-find-submit .modal-text {
            margin-bottom: 0;
            font-style: italic;
        }

        .form-control,
        .form-select {
            font-size: 15px;
        }

        .form-check {
            font-size: 15px;
        }

        .moving-services-intro {
            margin-bottom: 20px;
        }

        .moving-services {
            margin-bottom: 30px;
        }

        .form-check label {
            margin-left: 5px;
        }

        textarea.form-control {
            overflow-y: auto;
            overflow-x: hidden;
            height: 200px;
            padding: 10px;
            color: var(--mb-dark-gray, var(--reo-dark-gray));
            line-height: 1.6;
            border: 1px solid var(--mb-border-color, var(--reo-border-color));
        }

        .terms-disclaimer {
            color: var(--mb-black, var(--reo-black));
        }
    }


    /* Accordion menu styles */
    .accordion {
        border-top: 1px solid var(--mb-dark-gray, var(--reo-dark-gray));
        border-bottom: 1px solid var(--mb-dark-gray, var(--reo-dark-gray));

        .accordion-item {
            border-color: var(--mb-dark-gray, var(--reo-dark-gray)) !important;
        }

        .accordion-button {
            gap: 10px;

            &::after {
                display: none;
            }

            &:not(.collapsed) {
                color: var(--mb-primary, var(--reo-primary));
                background-color: transparent;
                box-shadow: none;
            }

            .bi-chevron-up {
                color: var(--mb-black, var(--reo-black));
                opacity: 0.5;
                transition: transform 0.2s ease-in-out;
                transform: rotate(180deg);
            }

            &:not(.collapsed) .bi-chevron-up {
                transform: rotate(0deg);
            }
        }
    }

    .cta-section {

        h5 {
            font-family: "mencken-std", Times, "Times New Roman", Georgia, serif;
        }

        .cta-content {
            max-width: 1024px;
            margin: auto;
            box-shadow: 0px 4px 6px 3px rgba(0, 0, 0, 0.13);

            border-radius: 10px;
        }
    }
}

/**
* ====================================================
* Services Page
* ====================================================
**/

.services-page {

    .card-shell {
        border-radius: 14px;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.12);
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .main-subheading {
        max-width: 600px;
        margin: 0px auto;
    }

    /* Single service card content */
    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        flex: 1 1 auto;
        text-align: center;
    }

    .service-card-text {
        line-height: 1.4;
    }

    .service-card img,
    .service-card-2x img {
        object-fit: contain;
        height: 72px;
        width: 190px;
    }

    .service-card .btn,
    .service-card-2x .btn {
        border-radius: 20px;
        line-height: 1;
        max-width: 108px;
        width: 100%;

        i {
            font-size: 0.9rem;
        }
    }

    /* The 2x-wide card */
    .service-card-2x .service-cards-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'img1 img2'
            'middletext middletext'
            'link1 link2';
        gap: 16px;
        height: 100%;
        align-content: space-between;
    }

    @media (max-width: 767.98px) {
        .service-card-2x .service-cards-grid {
            grid-template-columns: 1fr;
            grid-template-areas:
                'img1'
                'link1'
                'middletext'
                'img2'
                'link2';
        }
    }

    .service-card-img {
        text-align: center;
    }

    .service-card-img.left-side {
        grid-area: img1;
    }

    .service-card-img.right-side {
        grid-area: img2;
    }

    .service-card-link-group.left-side {
        grid-area: link1;
    }

    .service-card-link-group.right-side {
        grid-area: link2;
    }

    .middle-text {
        grid-area: middletext;
    }

    .client-services-card-content {
        max-width: 900px;
    }

}

/**
* ====================================================
* Agent Profile Page Testimonial Modal
* todo: possibly move to separate scss file?
* ====================================================
**/

.modal-body:has(#form-container-testimonial) {
    h3 {
        margin-bottom: 30px;
    }

    .agent-star-rating p {
        margin-top: 5px;
        margin-bottom: 0px;
    }

    .fb-label {
        margin-bottom: 0.625rem;
        font-weight: 600;
        color: var(--mb-black, var(--reo-black));
    }
}

/*
* ====================================================
* Our History - Reo
* ====================================================
**/

.our-history-reo {

    --timeline-border-color: #ffffff;
    --transition-timing-used-on-main-nav: 0.3s ease-in-out;

    .mw-500 {
        max-width: 500px;
    }

    .our-history-intro__container {

        .our-history-intro__title {
            width: 100%;
            max-width: 400px;
        }

    }

    /* todo: shouldn't be named contolsss */
    .our-history-photos__slider-controls {

        /*  567px = sm */
        @media (min-width: 576px) {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        position: absolute;
        bottom: 20px;
        right: 20px;
        z-index: 4;

        margin-bottom: 5px;

        button.btn {
            position: relative;
            padding: 0.125rem 0.625rem;
            background-color: #e1dfdf;
            border: none;
            color: #444b4a;
            font-size: 1.25rem;

            /* 780px = md */
            @media (min-width: 768px) {
                padding: 0.125rem 0.875rem;
                font-size: 1.5rem;
            }

            &:hover {
                color: #000000;
            }

            &:focus-visible {
                box-shadow: none;
                color: #000000;
            }

            &.explore-btn-prev {
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;

                &:after {
                    content: "";
                    display: block;
                    position: absolute;
                    top: 50%;
                    right: 0;
                    height: 70%;
                    width: 1px;
                    background-color: #444b4a;
                    transform: translateY(-50%);
                }
            }

            &.explore-btn-next {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }

            &:disabled {
                border: none;
                color: #444b4a;
                opacity: 0.5;
            }
        }
    }

    .timeline__list {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .timeline__list::-webkit-scrollbar {
        /* Hide scrollbar for Chrome */
        display: none;
    }

    .timeline-scroll-sticky {
        position: sticky;
        top: 105px;
        /* navigation height */
        height: 100vh;
        overflow: hidden;
        transition: var(--transition-timing-used-on-main-nav);
    }

    .timeline__item {

        position: relative;

        padding: 80px 30px 100px 30px;
        width: 33.3333333%;
        min-width: 33.3333333%;

        @media screen and (max-width: 768px) {
            width: 100%;
            min-width: 100%;
        }

        &::before {
            border-top: 1px solid transparent;
            content: '';
            left: 30px;
            position: absolute;
            top: 9.5px;
            width: 100%;
        }

        &::after {
            background-color: transparent;
            border: 1px solid var(--timeline-border-color);
            border-radius: 50%;
            content: '';
            position: absolute;
            height: 20px;
            left: 30px;
            top: 0;
            width: 20px;
        }

        @media screen and (max-width: 768px) {
            &::after {
                transform: translateX(-50%);
            }
        }
    }

    .timeline__item.active {
        &::after {
            border-color: var(--timeline-border-color);
            background-color: var(--timeline-border-color);
        }

        &::before {
            border-top: 1px solid var(--timeline-border-color);
            content: '';
            left: 30px;
            position: absolute;
            top: 9.5px;
            width: 100%;

            @media screen and (max-width: 768px) {
                left: 20px;
            }
        }
    }

    footer {
        margin-top: 0px;
    }
}

/* 
* ====================================================
* Questions and Answers
* ====================================================
*/

.question-and-answer-page {

    --deep-blue: #00263E;

    .alphabet-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        font-family: "mencken-std", Times, "Times New Roman", Georgia, serif;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: 30px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: none;
        border-bottom: 1px solid var(--mb-gray, var(--reo-gray));

        @media (min-width: 768px) {
            margin-left: 0;
            margin-right: 0;
        }

        ::-webkit-scrollbar {
            display: none; 
        }

        .alphabet-menu-link {
            padding: 20px 15px;
            flex-shrink: 0;
            white-space: nowrap;
        }
    }
    /* Accordion start */
    .qa-group {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .qa-group-alt {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
        padding-top: 40px;
        padding-bottom: 55px;
    }

    .qa-group-row {
        gap: 22px;

        @media (min-width: 992px) {
            gap: 70px;
        }
    }

    .qa-group-letter-col {
        min-width: 44px;
        padding-top: 10px;
    }

    .qa-group-letter {
        font-family: "mencken-std", Times, "Times New Roman", Georgia, serif;
        font-size: clamp(48px, 4.4vw, 58px);
        line-height: 1;
        font-weight: 400;
        color: var(--deep-blue);
    }

    .qa-group-accordion-col {
        min-width: 0;
    }

    .accordion {

        border-bottom: 1px solid var(--mb-gray, var(--reo-gray));
        background-color: transparent;

        .accordion-item {
            border-color: var(--mb-gray, var(--reo-gray)) !important;
            background-color: transparent;
        }

        .accordion-button {
            gap: 10px;
            background-color: transparent;
            box-shadow: none;
            font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            &::after {
                display: none;
            }
            &:not(.collapsed) {
                color: var(--mb-primary, var(--reo-primary));
                background-color: transparent;
                box-shadow: none;
            }
            .bi-chevron-up {
                color: var(--mb-black, var(--reo-black));
                order: 2;
                margin-left: auto;
                opacity: 0.5;
                transition: transform 0.2s ease-in-out;
                transform: rotate(180deg);
            }

            &:not(.collapsed) .bi-chevron-up {
                transform: rotate(0deg);
            }
        }
    }

    .qa-accordion {
        border-bottom: 1px solid var(--mb-dark-gray, var(--reo-dark-gray));

        .accordion-item {
            background-color: transparent;
            border: 0;
            border-bottom: 1px solid var(--mb-dark-gray, var(--reo-dark-gray));
        }

        /* .accordion-button {
            gap: 10px;
            color: var(--mb-black, var(--reo-black));


            &:not(.collapsed) {
                color: var(--mb-black, var(--reo-black));
            }

            &:not(.collapsed) .bi-chevron-up {
                transform: rotate(0deg);
            }
        } */

        .accordion-body {
            max-width: 960px;

            p {
                margin: 0;
                color: var(--mb-dark-gray, var(--reo-dark-gray));
            }
        }
    }
    /* accordion end */
}

.question-and-answer-page-2 {

    --deep-blue: #00263E;

    /* Accordion start */
    .qa-group {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .qa-group-alt {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .category-heading {
        color: var(--deep-blue);
    }

    .accordion {

        border-bottom: 1px solid var(--mb-gray, var(--reo-gray));
        background-color: transparent;

        .accordion-item {
            border-color: var(--mb-gray, var(--reo-gray)) !important;
            background-color: transparent;
        }

        .accordion-button {
            gap: 10px;
            background-color: transparent;
            box-shadow: none;
            font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            &::after {
                display: none;
            }
            &:not(.collapsed) {
                color: var(--mb-primary, var(--reo-primary));
                background-color: transparent;
                box-shadow: none;
            }
            .bi-chevron-up {
                color: var(--mb-black, var(--reo-black));
                order: 2;
                margin-left: auto;
                opacity: 0.5;
                transition: transform 0.2s ease-in-out;
                transform: rotate(180deg);
            }

            &:not(.collapsed) .bi-chevron-up {
                transform: rotate(0deg);
            }
        }
    }

    .accordion-body {
        p {
            color: var(--mb-dark-gray, var(--reo-dark-gray));
        }
    }
    /* accordion end */
}

/* 
* ====================================================
* About Blog
* ====================================================
*/

.blog-page iframe {
    border:none;
    border-top:1px solid #eaeaea;
}