:root {
    --primary: #F54C00;
    --secondary: black;
    --light: rgba(238, 238, 238, 1);
    --lighter: rgba(245, 245, 245, 1);
    --dark: var(--dark);

    --md-sys-color-primary: var(--primary) !important;
    --md-sys-color-secondary: var(--secondary) !important;

    --mud-palette-primary: var(--primary) !important;
}

html {
    min-height: 100%;
    height: 100%;
}

*::selection {
    background-color: var(--primary);
    color: white;
} 

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    font-family: ag-book, Roboto, sans-serif;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: ag-book, sans-serif;
    font-weight: 700;
}

.mud-slider-container {
    margin: 0 !important;
}



a {
    color: var(--primary);
    transition: .2s;

    &:hover {
        color: darkred;
    }
}


header#nav {

    width: 100%;

    #nav-logo-big {
        display: block;
    }
    #nav-logo-small {
        display: none;
        width: auto !important;
        object-fit: contain !important;
        height: 2.1rem !important;
        margin: 0!important;
    }

    & >.inner {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;

        #menu {
            position: relative;
            width: 100%;
            max-width: 1725px;
            padding: 1rem;
            #logos {
                padding: 1rem;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                padding-bottom: 1rem;
                img {
                    height: 100%;
                    width: auto;
                }
            }
            ul {
                margin-top: 8rem;
                margin-bottom: 0;
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 2.5rem;
                @media(max-width: 800px) {
                    gap: 1rem;
                }
                li {
                    
                    list-style: none;
                    a {
                        text-decoration: none;
                        color: black;
                        font-weight: 500;
                        font-size: 1.25rem;
                        transition: .2s;
                        cursor: pointer;
                        &:hover {
                            color: var(--md-sys-color-primary);
                        }
                        @media(max-width: 800px) {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            gap: .5rem;
                            font-size: 1rem;   
                        }
                    }
                }
            
            }

            #navtoggler {
                background-color: var(--primary);
                width: 1.66em;
                height: 1.66em;
                font-size: 1.5rem;
                display: none;
                align-items: center;
                justify-content: center;
                color: white;
                border: none;
                border-radius: 999px;
            }

            @media(max-width: 1000px) {
                display: flex;
                justify-content: space-between !important;
                align-items: center !important;
                gap: 0rem !important;
                flex-wrap: wrap !important;
                flex-direction: row !important;
                padding-left: 1.5rem !important;
                padding-right: 1.5rem !important;
                padding-top: .5rem !important;
                padding-bottom: .5rem !important;

                #logos {
                    position: relative;
                }

                #navtoggler {
                    display: flex;
                }


                #nav-logo-big {
                    display: none;
                }
                #nav-logo-small {
                    display: block;
                }

                & #navdropdown {
                    width: 100%;
                    display: grid;
                    grid-template-rows: 0fr;
                    transition: .2s ease-in-out;
                    margin-top: 0em;
                    > .inner {
                        overflow: hidden;
                        .inner2 {
                            ul {
                                padding-top: 1rem;
                                padding-bottom: 1rem;
                                padding-left: 1rem;
                                margin: 0;
                                display: flex;
                                flex-direction: column;
                                gap: 1rem;
                                align-items: flex-start;
                                justify-content: flex-start;

                                a {
                                    font-size: 1.5rem;
                                    font-weight: 800;
                                }
                            }
                        }
                    }

                    &.open {
                        grid-template-rows: 1fr;
                    }
                }
            }
        }

        #nav-hero {
            width: 100%;
            max-width: 100%;
            
            .inner {
                display: grid;
                grid-template-columns: auto 500px 1100px auto;
                grid-template-columns: 1fr minmax(auto, 500px) minmax(auto, 1100px) 1fr;
                .left,
                .right {
                    min-height: 400px;
                }
                
                .left {
                    @media(max-width: 1000px) {
                        min-height: 200px;
                    }
                    grid-column: 2 / 3;
                    padding: 2rem;
                    border-left: 1rem solid var(--md-sys-color-primary);
                    background: #eee;
                    .h1 {
                        font-size: 2.5rem;
                        margin-bottom: 1rem;
                    }
                    p {
                        font-size: 1.25rem;
                    }
                }
                .right {
                    grid-column: 3 / span 2;
                    background-size: cover;
                    background-position: center;
                    background-repeat: no-repeat;
                }
            }

        }

    }
    @media(max-width: 800px){
        & > .inner {
            /* #menu {
                display: flex;
                flex-direction: column;
                gap: 2rem;
                > * {
                    margin-top: 0 !important;
                    position: relative !important;
                }
                #logo-rgs {
                    display: block;
                    width: 100%;
                    text-align: center;
                    img {
                        max-width: 75%;
                        margin: auto;
                    }
                }
            } */
            #nav-hero {
                .inner {
                    display: flex;
                    flex-direction: column;
                }
            }
        }
    }
}


#sidebar {
    border-right: 1px solid black;
    background-color: white;
    position: relative;
    height: auto;
    position: relative;
    & .sidebar-wrapper {
        overflow: hidden;
        max-width: 100%;
        opacity: 1;
        transition: .4s .5s;
        position: sticky;
        top: 0;
        z-index: 1;
        & .hide-sidebar & {
            transition-delay: 0s;
            opacity: 0;
        }
        & .inner {
            padding: 1rem;
            padding-top: 1.5rem;
            position: sticky;
            display: flex;
            flex-direction: column;
            /* gap: .5rem; */
            top: 0;
        }
    }

    & #filter-close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        display: none;
    }

    form {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }
}


#expedition-wrapper {
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    min-height: 400px;
    position: relative;
    width: 100%;
    max-width: calc(1600px + (2rem * 2));
    margin: 0 auto;
    flex-grow: 1;
    position: relative;
    transition: .5s ease-in-out;

    & #database-search {
        position: sticky;
        top: 0;
        background-color: white;
        padding: .25rem;
        z-index: 3;
        display: flex;
        gap: .5rem;
        align-items: center;

        > * {
            /* margin: 0 !important; */
        }

        & #filter-toggle {
            display: none !important;
        }

    }
    
    @media(max-width: 800px) {
        grid-template-columns: 1fr !important;
        & #database-search {
            padding-left: 2rem;
            padding-right: 2rem;
            margin-left: -2rem;
            margin-right: -2rem;
            
            & #filter-toggle {
                display: block !important;    
            }

        }
        & #filter-close {
            display: block;
        }

        & #sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            max-width: 250px;
            height: 100%;
            z-index: 100;
            box-shadow: none;
            transform: translateX(-100%);
            transition: .3s;
            #filter-toggle {
                display: flex;
                transform: translateX(100%);
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }
        }
        &.hide-sidebar {
            #sidebar {
                box-shadow: 2rem 0 8rem rgba(0, 0, 0, .8);
                transform: translateX(0%);
                .sidebar-wrapper {
                    opacity: 1;
                }
            }
        }
    }
}

#expedition-wrapper {
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    min-height: 400px;
    position: relative;
    width: 100%;
    max-width: calc(1600px + (2rem * 2));
    margin: 0 auto;
    flex-grow: 1;
    position: relative;
    transition: .5s ease-in-out;

    & #database-search {
        position: sticky;
        top: 0;
        background-color: white;
        padding: .25rem;
        z-index: 3;
        display: flex;
        gap: .5rem;
        align-items: center;

        > * {
            /* margin: 0 !important; */
        }

        & #filter-toggle {
            display: none !important;
        }

    }
    
    @media(max-width: 800px) {
        grid-template-columns: 1fr !important;
        & #database-search {
            padding-left: 2rem;
            padding-right: 2rem;
            margin-left: -2rem;
            margin-right: -2rem;
            
            & #filter-toggle {
                display: block !important;    
            }

        }
        & #filter-close {
            display: block;
        }

        & #sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            max-width: 250px;
            height: 100%;
            z-index: 100;
            box-shadow: none;
            transform: translateX(-100%);
            transition: .3s;
            #filter-toggle {
                display: flex;
                transform: translateX(100%);
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }
        }
        &.hide-sidebar {
            #sidebar {
                box-shadow: 2rem 0 8rem rgba(0, 0, 0, .8);
                transform: translateX(0%);
                .sidebar-wrapper {
                    opacity: 1;
                }
            }
        }
    }
}

#expedition-wrapper-v2 {
    padding: 2rem;
    display: block;
    gap: 2rem;
    min-height: 400px;
    position: relative;
    width: 100%;
    max-width: calc(1200px + (2rem * 2));
    margin: 0 auto;
    flex-grow: 1;
    position: relative;
    transition: .5s ease-in-out;

    & #database-search {
        position: sticky;
        top: 0;
        background-color: white;
        padding: .25rem;
        z-index: 3;
        display: flex;
        gap: .5rem;
        align-items: center;

        > * {
            /* margin: 0 !important; */
        }

        & #filter-toggle {
            display: none !important;
        }

    }
    
    @media(max-width: 800px) {
        grid-template-columns: 1fr !important;
        & #database-search {
            padding-left: 2rem;
            padding-right: 2rem;
            margin-left: -2rem;
            margin-right: -2rem;
            
            & #filter-toggle {
                display: block !important;    
            }

        }
        & #filter-close {
            display: block;
        }

        & #sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            max-width: 250px;
            height: 100%;
            z-index: 100;
            box-shadow: none;
            transform: translateX(-100%);
            transition: .3s;
            #filter-toggle {
                display: flex;
                transform: translateX(100%);
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }
        }
        &.hide-sidebar {
            #sidebar {
                box-shadow: 2rem 0 8rem rgba(0, 0, 0, .8);
                transform: translateX(0%);
                .sidebar-wrapper {
                    opacity: 1;
                }
            }
        }
    }
}

#expd-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    position: relative;
    padding-bottom: 4rem;

    & .expd-result-item {
        /* box-shadow: inset 0 .25rem .5rem rgba(0, 0, 0, .1); */
        box-shadow: 
            0 0 1rem rgba(0, 0, 0, .1),
            0 0 2rem rgba(0, 0, 0, .06);
        padding: 1rem;
        border-left: .5rem solid var(--primary);
        background-color: var(--lighter);

        & .h2 {
            font-size: clamp(1.1rem, 1.5vw, 1.5rem);
            font-weight: 400;
        }

        & .h3 {
            font-size: .8rem;
            font-weight: 600;
            margin: 0;

            & + p {
                margin-top: .25rem;
            }
        }
    }
}

#exped-dialog,
#exped-dialog-loader {
    --padding: clamp(.5rem, 2vw, 2rem);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: var(--padding);
    z-index: 100;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
    background-color: transparent;

    > * {
        margin: auto;
    }

    & .exped-dialog-hero {
        position: relative;
        z-index: 10;
        margin-bottom: 4rem;
        margin-top: 2rem;
        display: flex;
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        max-width: 800px;

        & img {
            width: 100%;
            max-width: 180px;
        }

        & .exped-dialog-hero-text {
            max-width: 400px;
        }

        @media(max-width: 700px) {
            grid-template-columns: 1fr !important;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;

            & .exped-dialog-hero-text {
                width: 100% !important;
                padding: 2rem;
                max-width: 100% !important;
            }
        }
    }

    & #exped-dialog-close {
        --padding2: min(var(--padding) + 1px, .5rem);
        position: sticky;
        top: calc(100% - (var(--padding2) * 2));
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-.5rem);
        z-index: 1001;
        font-size: .75rem;
    }
}   


.exped-dialog-content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: auto;
    border-left: clamp(.25rem, 2vw, 1rem) solid var(--primary);
    background-color: white;
    box-shadow: 
        0 0 1rem rgba(0, 0, 0, .2),
        0 0 2rem rgba(0, 0, 0, .1);

    & .exped-dialog-content-hero {
        background-color: var(--lighter);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        & .h2 {
            font-size: 1.4rem;
            text-wrap: balance;
        }
        & > * {
            margin: 0;
        }
    }

    & .exped-dialog-content {
        padding: 2rem;
        & .h3 {
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: .6em;
        }
    }
}



.p-no-margin p{
    margin: 0 !important;
}

.btn {
    all: unset;
    background-color: var(--md-sys-color-primary);
    color: white !important;
    padding: .5rem 1rem;
    border-radius: .25rem;
    cursor: pointer;
    transition: .3s;
    filter: brightness(1);
    &:hover {
        filter: brightness(1.7);
    }
}

.formsection {
    padding: 1rem;
    background-color: var(--lighter);
    border-left: .5rem solid var(--primary);
    box-shadow: 
        0 0 1rem rgba(0, 0, 0, .1),
        0 0 2rem rgba(0, 0, 0, .06);
    margin-bottom: 1rem;
}