/**

// DEFAULT COLORS
// redefining these outsie of custom colors for easy access down the file.
$primary: #586E50;
$secondary: #CF6328;
$tertiary: #F2E7DA;
$melon: #FCC068; 
$lemon: #FAF33B;
$background: #F2E7DA;
$foreground: #54403B;
$danger: #c0392b;
$gray: #ecf0f1;
$black: #434343;
*/

#farm-map {
    width: 100%;
    height: auto;
    min-height: 70vh !important;
    position: relative;
    display: block;
    z-index: 999;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.45);
}

/* in the google map display */
.gm-ui-hover-effect {
    background: none;
    display: flex !important;
    justify-content: end !important;
    border: 0px;
    margin: 5px 5px 0 0 !important;
    padding: 5px;
    text-transform: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 25px !important;
    height: 25px !important;

    span {
        pointer-events: none;
        display: block;
        width: 24px;
        height: 24px;
        margin: 0 !important;
    }
}

.farm-info {

    h3 {
        font-size: 2rem;
        margin: 0 auto 8px auto;
        text-align: center;
    }

    p {
        text-align: center;
    }

    a,
    button.get-directions-btn {
        display: block;
        position: relative;
        width: 100%;
        padding: 10px;
        font-weight: 700;
        text-decoration: none;
        font-size: 1rem;
        margin: 0 auto 8px auto;
        text-align: center;
        background-color: #CF6328;
        color: white;
    }

    button.get-directions-btn {
        background-color: #CF6328;
        color: white;
    }

    a:hover,
    a:active,
    a:focus {
        color: white;
        text-decoration: none;
        background-color: #FCC068;
    }

    button.get-directions-btn:hover {
        color: white;
        text-decoration: none;
        background-color: #FCC068;
    }
}

@media print {

    #main-menu,
    .navbar-toggler,
    footer,
    nav.footer-nav,
    h1,
    .filter-wrap,
    #farm-map,
    .entry-content,
    #print-list,
    .filter-wrap.farm-zip.farm-cat {
        display: none !important;
    }

    #farm-populate-by-zip {
        ul {
            width: 100% !important;

            li {
                width: 100% !important;
            }
        }
    }
}

#farm-populate-by-zip {
    display: none;
    background-color: #586E50;
    padding: 2rem;
    border-radius: 8px;
    color: white;

    h4.filteredmembers {
        color: #FAF33B;
        display: block;
        width: fit-content;
    }

    button#print-list {
        width: fit-content !important;
        display: block;
        position: relative;
        margin-bottom: 15px !important;
        letter-spacing: normal !important;
        font-weight: 700 !important;

        &:hover,
        &:active,
        &:focus {
            color: #54403B !important;
        }
    }

    a {
        color: white !important;
        font-weight: 700;
        text-decoration: none;

        span.addr {
            color: #FCC068;
            padding-left: 1.25rem;
        }

        &:hover,
        &:active,
        &:focus {
            text-decoration: underline;
        }
    }

    span.list-view-farm {
        color: white !important;
        font-weight: 400;
        text-decoration: none;

        span.addr {
            color: #FCC068;
            padding-left: 1.25rem;
        }
    }
}

#farm-directions-panel {
    display: none;
    padding: 2rem;
    background-color: #FCC068;
    border-radius: 15px;
    margin-top: 3rem;

    .adp-summary {
        font-weight: 700;
        padding: 1rem;
        background-color: #f9d195;
        margin: 0 auto;
        width: 100%;

        @media (min-width: 768px) {
            max-width: 75%;
        }

        span {
            color: #54403B;
        }
    }

    #dest-h6 {
        margin-top: 1rem;
    }

    .adp-placemark {
        width: 100%;

        td:has(img) {
            display: none;
        }

        td.adp-text {
            padding: 0.5rem;
            background-color: white;
            border: solid 1px #586E50;
        }
    }

    .adp-legal {
        font-size: 0.85rem;
    }


    table.adp-directions {
        margin: 0 auto;
        width: 100%;

        @media (min-width: 768px) {
            max-width: 75%;
        }

        tbody {
            tr {
                border-bottom: #586E50 solid 2px;

                &:first-of-type {
                    border-top: #586E50 solid 2px;
                }
            }

            td {
                padding: 1rem 0;
                font-weight: 700;
                color: #54403B;
            }

            td.adp-text {
                font-weight: 700;
                padding: 1rem;
            }
        }
    }
}

.filter-wrap {
    padding: 2rem;
    margin: 1rem 0;
    border: solid black 1px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 2rem;

    /* $lg = 992px */
    @media (max-width: 992px) {
        display: block;
    }

    .filter-wrap-selection {
        align-items: center;
        align-content: center;

        @media (max-width: 992px) {
            padding-bottom: 1rem;
        }

        select,
        input {
            padding: 10px 15px;
            width: 100%;
            height: auto;
        }
    }

    .btn-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: 2rem;
        grid-column-start: 1;
        grid-column-end: 5;

        button.btn-secondary {
            background-color: #CF6328 !important;
            width: 100%;
            padding: 1rem;
            font-weight: 600 !important;

            &:hover,
            &:active,
            &:focus {
                color: #CF6328 !important;
                background-color: #F2E7DA !important;
            }
        }
    }
}

#apply-filter,
#clear-filter {
    letter-spacing: normal !important;
    font-size: 1.25rem !important;
}

#manual-origin-field-if-error {
    display: none;
    padding: 0;
    margin-bottom: 2rem;

    form {
        padding: 0;
        width: 100%;
        height: auto;

        label {
            font-weight: 700 !important;
        }

        input {
            margin-bottom: 1rem;
            width: 100%;
            height: auto;
            border-radius: 0;

            &::placeholder {
                content: "Address...";
            }
        }
    }
}

#key-box {
    display: block;
    margin-bottom: 1rem;
    padding: 2rem;
    background-color: #ecf0f1;

    h6 {
        color: #54403B;
        padding-bottom: 1rem;
    }

    #key-grid {
        display: grid;
        gap: 1.5rem 1rem;
        grid-template-columns: repeat(5, 1fr);

        @media (max-width: 768px) {
            grid-template-columns: repeat(3, 1fr);
        }

        @media (max-width: 540px) {
            grid-template-columns: repeat(2, 1fr);
            padding: 0;
        }

        img.icon-img {
            max-width: 50px;
            margin: 0;
        }

        .icon-wrap {
            display: flex;
            justify-content: start;
            align-items: center;
            align-content: center;
            font-size: 0.75rem;
            line-height: 1;

            p {
                margin: 0;
                padding: 0 5px;
            }
        }
    }
}