:root {
    --body-font-family: "Montserrat", Arial, Helvetica, sans-serif;
    --bs-font-sans-serif: "Montserrat", Arial, Helvetica, sans-serif;
    --bs-btn-font-family: "Montserrat", Arial, Helvetica, sans-serif;
    --primary-color: #006d6f;
    --bs-form-invalid-color: #ff6b6b;
    --bs-form-invalid-border-color: #ff6b6b;
    --bs-danger-rgb: 255, 109, 109;
}

.flex-body {
    display: flex;
}

.hero-image {
    padding: 70px 0px;
    background-repeat: no-repeat;
    background-position: top;
    background-image: url("../images/hero.png");
    flex-grow: 2;
    height: 100%;
    background-size: cover;
    transition: 0.15s ease-in;
}

main {
    flex-grow: 2;
}

main > .container-fluid {
    max-width: 1920px;
    min-height: 100vh;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.flag {
    box-shadow: 1px 1px 4px #000c;
}

.footer {
    background-color: #f5f5f5;
    font-size: 0.9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
    content: "";
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.btn-primary {
    --front: #fff;
    --background: #006d6f;
    --bs-btn-color: var(--front);
    --bs-btn-bg: var(--background);
    --bs-btn-border-color: var(--background);
    --bs-btn-hover-color: var(--front);
    --bs-btn-hover-bg: #005d5f;
    --bs-btn-hover-border-color: #005d5f;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--front);
    --bs-btn-active-bg: #005d5f;
    --bs-btn-active-border-color: #005d5f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #003d3f;
    --bs-btn-disabled-border-color: #003d3f;
}

.navbar-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background-color: #d32f2f;
    color: white;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.flag {
    width: 50px;
    height: auto;
    margin-right: 5px;
    vertical-align: middle;
}

.nav-item.dropdown .flag-dropdown-toggle {
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.nav-item.dropdown .flag-dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item.dropdown .flag-dropdown-toggle::after {
    display: none;
}

.universal-form-container {
    --background-color: #006d6f;
    --border-color: #fff;
}

.universal-form-container--white {
    --background-color: #fff;
    --border-color: #006d6f;
}

.additional-input {
    display: none;
}

.additional-filters-visible .additional-input {
    display: block;
}

.universal-form-container, .universal-form-container--white {
    padding-top: 2%;
    background-color: var(--background-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    transition: 0.15s ease-in;

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

    .form-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin: auto;

        &.additional-filters-visible {

            .btn {
                max-width: 80%;
                min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
                height: calc(3.5rem + calc(var(--bs-border-width) * 2));
                margin-top: 1rem;
            }
        }

        .btn {
            max-width: 80%;
            min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
            height: calc(3.5rem + calc(var(--bs-border-width) * 2));
            @media only screen and (max-width: 991px) {
                max-width: 80%;
            }
        }

        div {
            .form-floating {
                @media only screen and (min-width: 768px) {
                    max-width: 388px;
                }
            }
        }

        .invalid-feedback {
            --bs-danger-rgb: ;
            font-weight: bold;
        }
    }
}

.form-grid {
    text-align: center;
}

.btn-white {
    background-color: #ffffff;
    color: #006d6f;
    font-weight: bold;
    --bs-btn-color: #006d6f;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #006d6f;
    --bs-btn-hover-color: #006d6f;
    --bs-btn-hover-bg: #f2f2f2;
    --bs-btn-hover-border-color: #00595b;
    --bs-btn-focus-shadow-rgb: 0, 109, 111;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #00595b;
    --bs-btn-active-border-color: #004f50;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #99c2c3;
    --bs-btn-disabled-bg: #ffffff;
    --bs-btn-disabled-border-color: #99c2c3;
    width: 237px;
    height: 50px;
}

.form-label {
    text-align: left;
}

.custom-floating {
    width: 100%;
    position: relative;
    @media only screen and (min-width: 768px) {
        max-width: 62.5%;

    }

    .form-control, .form-select {
        border: 1px solid var(--border-color);
        padding: 1rem 0.75rem;
        color: var(--border-color);
        background-color: var(--background-color);
        border-radius: 8px;
        width: 100%;
    }

    .form-control.is-invalid {
        border-color: var(--bs-form-invalid-border-color);
    }
}

.custom-floating label {
    color: var(--border-color);
    background-color: var(--background-color);
    padding: 0 0.5rem 0 0.5rem;
    position: absolute;
    top: 0px;
    height: unset;
    margin-left: 12px !important;
    font-size: 1rem !important;
}

.custom-floating .brand-label {
    margin-left: 20.5% !important;
}

.custom-floating .form-control:focus {
    border-color: var(--background-color);
}

.form-floating > .form-control:not(:placeholder-shown) {
    padding: 1rem !important;
}

.img-thumb {
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 0.5rem;
    /* Bootstrap's rounded */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#imagePreview {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.img-thumb-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 90px;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.img-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-thumb-wrapper .btn-close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Car View Page Styles Only
   =========================== */

.publication-container nav {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.publication-container .car-icons {
}

.publication-container .car-icons div {
    flex: 1 1 100px;
}

.publication-container .specs {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.publication-container .specs td {
    border: 1px solid #ccc;
    padding: 6px 10px;
}

.publication-container h2 {
    color: #006d6f;
}

.form-header {
    color: white;
    font-size: 28px;
    padding-top: unset !important;
    margin-top: unset !important;
    margin-bottom: 3rem !important;
}

.form-check-label {
    color: white;
    left: 13rem;

    @media screen and (max-width: 768px) {
        font-size: 14px;
    }

    vertical-align: -moz-middle-with-baseline !important;
}

.form-check-input {
    --bs-form-check-bg: #006d6f !important;
    border-color: white !important;
    width: 24px;
    height: 24px;
    border-radius: 8px !important;
    margin-right: 8px !important;
    margin-top: 0 !important;

}

.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {
    color: #FF4D4D;
}

.form-check {
    /*max-width: 40%;*/
    /*margin: auto;*/
    text-align: left;
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
}

.form-check .form-check-input {
    float: unset !important;
}

@media screen and (max-width: 768px) {
    .new-flex-container {
        flex-direction: column !important;
    }
}

.d-flex {
    gap: 50px !important;
}

.margin-none {
    margin: unset !important;
}

td {
    vertical-align: middle !important;
}

.btn-reset {
    border-radius: unset !important;
    border-bottom-right-radius: 8px !important;
}

.form-limiter {
    max-height: 13.75em !important;
}

.btn-warning {
    @media (min-width: 992px) {
        min-width: 110px !important;
    }
}

.btn-danger {
    @media (min-width: 992px) {
        min-width: 110px !important;
    }
}

.mt-2-im {
    margin-top: 2em !important;
}

/*breadcrumbs*/
.breadcrumb {
    padding: 0;
    background-color: #ffffff;
    color: #aaa;
    border-radius: 0;
    font-size: 0.875rem;

    a {
        color: #006d6f;
    }

    & > * {
        margin-left: 5px;
    }

    & > *:first-child {
        margin-left: 0;
    }

    & > *:last-child {
        color: #006d6f;
    }
}


/*main page*/
.hero-section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    padding: 1rem;
    text-align: center;
}

.max-w-350 {
    max-width: 350px;
}

.how-it-works .step {
    margin-bottom: 30px;
}

.toggle-password {
    position: absolute;
    right: -14px;
    top: 0px;
    width: 38px;
    height: 28px;
    background-color: var(--background-color);
    color: var(--border-color);
}

.row-visible {
    display: block;
}

.general-filters {
    width: 100% !important;
}

.additional-input {
    .form-control, .form-select {
        margin-top: 1rem;
    }
}

.custom-date {
    .input-group.date {
        flex-direction: row-reverse;

        span {
            /*display: none;*/
            margin-top: 1rem;
            background: var(--background-color);
            color: var(--border-color);
            border-color: var(--border-color);

            &:first-of-type {
                border-radius: 0 8px 8px 0 !important;
            }

            @media only screen and (max-width: 1199px) and (min-width: 991px) {
                display: none;
            }
        }

        input {
            border-radius: 8px 0 0 8px !important;
            @media only screen and (max-width: 1199px) and (min-width: 991px) {
                border-radius: 8px !important;
            }
        }

        flex-wrap: nowrap !important;
    }
}

/*.filters {*/
/*    justify-content: center;*/
/*    @media (max-width: 991px) {*/
/*        flex-direction: column;*/
/*    }*/

/*    &:has(.additional-filters.row-visible) .general-filters {*/
/*        width: 50% !important;*/
/*        @media only screen and (min-width: 1400px) {*/
/*            width: 25% !important;*/
/*        }*/
/*        @media only screen and (max-width: 991px) {*/
/*            width: 100% !important;*/
/*        }*/
/*    }*/
/*}*/

/*.additional-filters {*/
/*    display: none;*/
/*    width: 100% !important;*/
/*    @media only screen and (min-width: 1400px) {*/
/*        width: 50% !important;*/
/*    }*/
/*    @media only screen and (max-width: 991px) {*/
/*        justify-content: center;*/
/*        align-items: center;*/
/*    }*/

/*    &.row-visible {*/
/*        display: flex;*/
/*        flex-wrap: wrap;*/
/*        column-gap: 10px;*/
/*    }*/

/*    .form-select {*/
/*        margin-top: 1rem !important;*/
/*    }*/

/*    > div {*/
/*        margin-bottom: 0.5rem;*/
/*        flex: 0 0 calc(50% - 10px);*/
/*        @media only screen and (max-width: 991px) {*/
/*            flex: 0 0 100%;*/
/*        }*/
/*    }*/
/*}*/

.horizontal-search {
    margin-top: 1rem;
    padding-bottom: 1rem;
    &.universal-form-container--white, &.universal-form-container {
        width: 25%;
        max-width: unset !important;
    }

    @media only screen and (min-width: 768px) {
        .custom-floating {
            max-width: 90%;
        }
    }
    @media only screen and (min-width: 991px) {
        .custom-floating {
            max-width: 80%;
        }
    }

    @media only screen and (min-width: 991px) {
        .form-grid {
            flex-direction: column;
            /*align-items: flex-end;*/
        }
    }

    @media only screen and (max-width: 767px) {
        & > div {
            width: 90%;
            /*max-width: 540px;*/
            margin: 0 auto;
        }

        .form-grid {
            width: 90%;
            /*max-width: 540px;*/
        }
    }

    a {
        display: none;
    }


    /*.filters {*/
    /*    flex-direction: column;*/
    /*}*/

    /*.general-filters {*/
    /*    width: 100% !important;*/
    /*    flex-direction: row !important;*/
    /*    justify-content: center;*/
    /*    align-items: center;*/

    /*    & > div {*/
    /*        flex: 0 0 calc(33.3% - 10px);*/
    /*    }*/

    /*    @media only screen and (max-width: 575px) {*/
    /*        flex-direction: column !important;*/
    /*        justify-content: center;*/
    /*        align-items: center;*/
    /*    }*/
    /*}*/

    /*.additional-filters {*/
    /*    width: 100% !important;*/

    /*    & > div {*/
    /*        flex: 0 0 calc(33% - 10px);*/
    /*    }*/

    /*    @media only screen and (max-width: 575px) {*/
    /*        & > div {*/
    /*            flex: 0 0 100%;*/
    /*        }*/
    /*    }*/
    /*}*/

    /*.filters:has(.additional-filters.row-visible) .general-filters {*/
    /*    width: 100% !important;*/
    /*    justify-content: center !important;*/
    /*    align-items: center;*/

    /*    & > div {*/
    /*        flex: 0 0 calc(33.3% - 10px);*/
    /*    }*/

    /*    @media only screen and (max-width: 575px) {*/
    /*        flex-direction: column !important;*/
    /*    }*/
    /*}*/
}


.search-results .list-view {
    .summary {
        display: none;
    }

    margin:auto;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(1, auto);
    gap: 1rem;
    /*text-align:center;*/
    @media only screen and (max-width: 991px) and (min-width: 768px) {
        grid-template-columns: repeat(2, auto);
    }


    .action {
        display: flex;
        flex-direction: column;
        justify-content: center;

        a {
            min-width: 200px;
            flex: 0 0 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}

.record-card {
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    width: 100% !important;
    box-shadow: 0 0 2px #000;
    justify-content: space-between;


    > div:first-of-type {
        display: flex;
        gap: 1rem;
        flex-grow: 2;
    }

    .image {
        height: 150px;
        aspect-ratio: 4/3;
        border-radius: 8px;
        text-align: center;
    }

    .image img {
        max-width: 100%;
        max-height: 100%;
    }

    .content-wrapper {
        flex-grow: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .content-title {
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
    }

    .content-details {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        div {
            display: flex;
            gap: 0.5rem;
            flex: 0 0 calc(50% - 1rem);

            img {
                width: 16px;
                height: fit-content;
            }

            p {
                font-weight: bold;
            }
        }

        @media only screen and (max-width: 991px) {
            justify-content: space-between;
            max-height: 100%;
            flex-grow: 2;
            div {
                flex-basis: 100%;
                justify-content: space-between;
            }
        }
    }

    @media only screen and (max-width: 991px) {
        flex-direction: column;
        > div:first-of-type {
            flex-direction: column;
        }
    }
}

.search-header {
    font-weight: bold;
    color: var(--primary-color);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem !important;
}

.search-container .search-results {
    min-width: 60%;
    margin-right: auto;
}

.search-container .horizontal-search {
    margin-left: auto;
}
.search-container {
    display: flex;
    width: 100%;
    padding: 0 1rem;
    gap: 1rem;
    @media only screen and (max-width: 1200px) {
        flex-direction: column;
        height: auto;

        .search-results,
        .horizontal-search {
            width: 100%;
        }
    }
    max-width: 100%;
    @media only screen and (max-width: 991px) and (min-width: 720px) {
        padding: 0 1rem;
    }
}
.form-label {
    display: inline-block !important;
    width: fit-content !important;
    z-index: 9;
}

.active-link {
    color: black;
    font-weight: 600;
}