html {
    font-size: 20px;
}

body {
    letter-spacing: -.5px;
}

#site-header .navbar {
    transition: background-color .3s ease;
}


/* #site-header.menu-open .navbar, */

#site-header.sticky .navbar {
    background-color: #FFF;
    /* -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); */
}

#site-header:not(.sticky):not(.menu-open) .navbar-brand svg path,
#site-header:not(.sticky):not(.menu-open) .navbar-brand svg polygon {
    fill: #FFF !important;
}

#site-header:not(.sticky) .navbar .nav-link:not(.active) {
    text-shadow: 0 0 6px rgba(0, 0, 0, .7);
}

#site-header:not(.sticky) .navbar .nav-link.active {
    background-color: #FFF;
    border-radius: var(--bs-border-radius);
    color: var(--bs-primary);
    text-shadow: none;
}

#site-header.sticky .navbar .nav-link.active {
    background-color: var(--bs-secondary);
    border-radius: var(--bs-border-radius);
    color: #FFF;
}

#site-header .navbar .nav-link.nav-link:not(.active):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* #site-footer .footer-bot>.container-fluid,
.footer-bot>.container-fluid {
    padding: 0;
} */

#site-footer .footer-bot,
.footer-bot {
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, .1);
    color: #000;
}

#site-footer .social-links {
    margin-top: 0;
}

.hero,
.hero .carousel-inner,
.hero .carousel-item {
    height: 745px;
}

.hero .carousel-item img {
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero .carousel-item::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
}

.hero .carousel-item .carousel-caption {
    z-index: 3;
}

#hero {
    position: relative;
    height: 445px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-position: center;
    background-size: cover;
}

#hero::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
}

#hero .container {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 90px;
}

#season {
    position: relative;
}

#season::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    top: 0;
    bottom: 0;
    width: 10%;
    left: 48%;
}

#season::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    background-image: url('/assets/images/backgrounds/Season-BG.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    top: 0;
    bottom: 0;
    right: 0;
    left: 50%;
}

#season .container {
    position: relative;
    z-index: 3;
}

#resources {
    position: relative;
}

#resources::before,
#resources::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    pointer-events: none;
    width: 430px;
    height: 430px;
    background-image: url('/assets/images/backgrounds/Resources-BG.svg');
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain;
}

#resources::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    transform: rotate(180deg);
}

#resources .container {
    position: relative;
    z-index: 3;
}

#directory {
    position: relative;
}

#directory::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    background: linear-gradient(to right, rgba(var(--bs-light-rgb), 1) 0%, rgba(var(--bs-light-rgb), 0) 100%);
    top: 0;
    bottom: 0;
    width: 10%;
    left: 48%;
}

#directory::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    background-image: url('/assets/images/backgrounds/Directory-BG.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    top: 0;
    bottom: 0;
    right: 0;
    left: 50%;
}

#directory .container {
    position: relative;
    z-index: 3;
}

#contact {
    background-image: url('/assets/images/backgrounds/BG-Pattern.png');
    background-position: center bottom;
    background-repeat: repeat-x;
    background-size: auto;
    padding-bottom: 10rem !important;
}

#directory-list .item {
    margin-bottom: var(--bs-gutter-x);
}

#filters-toggler {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    padding-left: 0;
    padding-right: 0;
}

#filters-toggler>svg {
    margin-right: 5px;
}

#filters-toggler::after {
    content: "";
    display: inline-block;
    position: absolute;
    right: -25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 429.3l22.6-22.6 192-192L493.3 192 448 146.7l-22.6 22.6L256 338.7 86.6 169.4 64 146.7 18.7 192l22.6 22.6 192 192L256 429.3z' fill='%23858585'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 15px;
    height: 15px;
}

#filters-toggler[aria-expanded="true"] {
    color: var(--bs-secondary);
}

#filters-toggler[aria-expanded="true"]>svg path {
    fill: var(--bs-secondary) !important;
}

#filters-toggler[aria-expanded="true"]::after {
    transform: rotate(-180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 429.3l22.6-22.6 192-192L493.3 192 448 146.7l-22.6 22.6L256 338.7 86.6 169.4 64 146.7 18.7 192l22.6 22.6 192 192L256 429.3z' fill='%23226228'/%3E%3C/svg%3E");
}

#directoryFilters .navbar-nav {
    gap: 2rem;
}

.map-wrapper {
    display: flex;
    /* margin-bottom: -4rem; */
}

.map-wrapper .location-list {
    /* flex: 1 0 25%; */
    flex: 0 1 40%;
    max-width: 600px;
    /* height: 1100px; */
    max-height: 800px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #FFF;
}

.map-wrapper .location-item.active {
    background-color: var(--bs-light-bg-subtle);
}

.map-wrapper .location-item {
    padding: 1.5rem .75rem;
    cursor: pointer;
    border-bottom: solid 2px var(--bs-secondary-bg-subtle);
}

.map-wrapper .location-item>* {
    margin-bottom: 0;
}


/* .map-wrapper .location-item+.location-item {
    border-top: solid 2px var(--bs-secondary-bg-subtle);
} */

.map-wrapper .map {
    flex: 1;
    position: relative;
}

.map #location-info {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 550px;
    z-index: 999;
    max-height: calc(100% - 40px);
    overflow: auto;
}

.map #location-info.hidden {
    display: none;
}

.map #location-info #close-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 10px;
    right: 20px;
}

.map-wrapper #map {
    height: 100%;
}

#map .custom-icon,
#local-map .custom-icon {
    background-image: url('/sites/vagrown/files/map-icon.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#map .custom-icon .location-title,
#local-map .custom-icon .location-title {
    position: absolute;
    white-space: nowrap;
    background-color: #FFF;
    text-align: center;
    padding: 6px 12px;
    border-radius: var(--bs-border-radius);
    color: var(--bs-secondary);
    text-transform: uppercase;
    font-weight: 700;
    left: 50%;
    top: 90%;
    transform: translateX(-50%);
    pointer-events: none;
}

#map .custom-icon:not(.active-pin) .location-title {
    display: none;
}

#local-map {
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    display: none;
}

@media (max-width: 991px) {
    .navbar-brand {
        flex: 1 0 143px;
        max-width: 143px;
    }
    .navbar-brand>svg {
        width: 143px !important;
        height: 58px !important;
    }
    #primary-menu {
        --bs-nav-link-font-size: 1.125rem;
        padding: 0 2rem;
    }
    #navbarNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFF;
        z-index: 1;
        /* padding-top: 50px; */
        -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
        box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    }
    #navbarNav .nav-item {
        border-top: solid 2px var(--bs-secondary-bg-subtle);
    }
    #navbarNav .nav-link {
        color: var(--bs-secondary);
        text-shadow: none !important;
    }
    #primary-menu .nav-item:first-child {
        border-top: none;
    }
    #navbarNav .nav-link {
        text-align: center;
    }
    #site-header.sticky .navbar .nav-link.active {
        background: none;
        color: var(--bs-secondary);
    }
    #season::before {
        display: none;
    }
    #season::after {
        display: none;
    }
    #resources::before,
    #resources::after {
        display: none;
    }
    #resources .col-12:last-child>.list-group.border-top {
        border-top: none !important;
    }
    #directory::before {
        display: none;
    }
    #directory::after {
        display: none;
    }
    .py-lg .mobile-bg {
        width: 100%;
        transform: translateY(4rem);
    }
    #directory-list nav.navbar {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        width: calc(100% + 2.5rem) !important;
    }
    #filters-toggler {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
    #directoryFilters>.navbar-nav {
        gap: 0;
        border-top: 2px solid var(--bs-secondary-bg-subtle);
    }
    #directoryFilters .navbar-nav>.nav-item {
        border-bottom: 2px solid var(--bs-secondary-bg-subtle);
    }
    #directoryFilters .nav-link {
        font-size: 16px;
        font-weight: 700;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    #directoryFilters .nav-link.show {
        background-color: #FFF;
    }
    #directoryFilters .dropdown-menu {
        --bs-dropdown-border-radius: 0;
        box-shadow: none;
    }
    #directoryFilters .dropdown-menu-inner {
        border-top: 2px solid var(--bs-secondary-bg-subtle);
        padding: 15px 25px;
    }
    #directoryFilters .dropdown-menu-inner .nav {
        column-count: 1;
    }
    #directoryTabs .items>.col-12 {
        /* padding-left: 0;
        padding-right: 0; */
        padding-left: .5rem;
        padding-right: .5rem;
    }
    #directory-list .item {
        border-radius: 0;
        margin-bottom: 25px;
    }
    #directory-list .item .card-body {
        padding: 25px;
    }
    .map-wrapper .location-list {
        display: none;
    }
    #map {
        transition: all .3s ease-in-out;
    }
    #map .leaflet-bottom.leaflet-right {
        top: 20px;
        left: 20px;
        bottom: auto;
        right: auto;
        z-index: 998;
    }
    #map .leaflet-right .leaflet-control {
        float: left;
        display: flex;
    }
    #map .leaflet-bar a {
        border-bottom: none;
        border-right: 1px solid #ccc;
    }
    #map .leaflet-control-attribution {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }
    .map {
        display: flex;
        flex-direction: column-reverse;
    }
    .map #location-info {
        position: relative;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100dvw;
        max-height: unset;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }
    .map #location-info>.card-body {
        padding: 15px 25px;
    }
    .map #location-info>.card-body>p {
        margin-bottom: 0;
    }
    .map #location-info .list-group {
        border: none !important;
        position: static;
    }
    .map #location-info .list-group .list-group-item-action[data-bs-toggle="collapse"] {
        position: absolute;
        inset: 0;
        justify-content: flex-end;
    }
    .map #location-info .list-group .list-group-item-action[aria-expanded="false"]::after {
        transform: rotate(0deg) translateY(6px);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9.249' height='15' viewBox='0 0 9.249 15'%3E%3Cpath id='Link_Arrow' data-name='Link Arrow' d='M1.75,0,0,1.749,5.749,7.5,0,13.249,1.75,15l7.5-7.5Z' transform='translate(0 0)' fill='%2336213E'/%3E%3C/svg%3E%0A");
    }
    .map #location-info .list-group .list-group-item-action[data-bs-toggle="collapse"]>span {
        display: none;
    }
    .map #location-info .list-group .list-group-item-action[aria-expanded="true"] {
        pointer-events: none;
        opacity: 0;
    }
    .map #location-info #close-btn {
        top: 15px;
        right: 10px;
    }
    .map #location-info #close-btn>svg {
        width: 15px;
        height: 15px;
    }
    .map #location-info #close-btn>svg>path {
        fill: #36213E !important;
    }
    .map-wrapper.info-open:has(.collapse.show) #map,
    .map-wrapper.info-open:has(.collapsing) #map {
        min-height: 1px !important;
    }
    .map:has(.collapse:not(.show)) #location-info #close-btn {
        opacity: 0;
        pointer-events: none;
    }
    #local-map {
        display: block;
        transition: opacity .3s ease-in-out;
    }
    #local-map:not(.show) {
        opacity: 0;
    }
    #nav-icon {
        width: 28px;
        height: 36px;
        position: relative;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
        display: inline-block;
    }
    #nav-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #FFF;
        border-radius: 1px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }
    #nav-icon span:nth-child(1) {
        top: 0px;
    }
    #nav-icon span:nth-child(2),
    #nav-icon span:nth-child(3) {
        top: 12px;
    }
    #nav-icon span:nth-child(4) {
        top: 24px;
    }
    #nav-icon.open span:nth-child(1) {
        top: 18px;
        width: 0%;
        left: 50%;
    }
    #nav-icon.open span:nth-child(2) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #nav-icon.open span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #nav-icon.open span:nth-child(4) {
        top: 18px;
        width: 0%;
        left: 50%;
    }
    .navbar-toggler {
        padding: 13px 15px;
        border-radius: 0;
        height: 55px;
        border: none;
        box-shadow: none !important;
    }
    .navbar-toggler-icon {
        color: #FFF;
        display: flex;
        width: auto;
        height: auto;
        background: none;
    }
    .navbar-toggler-icon em {
        display: inline-block;
        font-size: 13px;
        margin-right: 10px;
        line-height: 20px;
        font-style: normal;
    }
    .navbar-toggler.open #nav-icon span {
        background: var(--bs-secondary);
    }
    #site-header.sticky .navbar-toggler #nav-icon span {
        background: var(--bs-secondary);
    }
}

@media (min-width: 767px) {
    #site-footer .col:has(.collapse-mobile) button[data-bs-toggle="collapse"] {
        pointer-events: none;
        background: none;
        border: none;
        padding: 0;
        color: var(--bs-heading-color);
    }
    #site-footer .col:has(.collapse-mobile) .collapse {
        display: block;
    }
}

@media (max-width: 767px) {
    #site-footer .row>.col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #site-footer .row>.col {
        text-align: center;
    }
    #site-footer .col:has(.collapse-mobile) button[data-bs-toggle="collapse"] {
        display: flex;
        justify-content: center;
        background: none;
        border: none;
        padding: 0;
        color: var(--bs-heading-color);
        gap: 1rem;
    }
    #site-footer .col:has(.collapse-mobile) button[data-bs-toggle="collapse"]::after {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 429.3l22.6-22.6 192-192L493.3 192 448 146.7l-22.6 22.6L256 338.7 86.6 169.4 64 146.7 18.7 192l22.6 22.6 192 192L256 429.3z' fill='%23626262'/%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        transition: all .3s ease;
    }
    #site-footer .col:has(.collapse-mobile) button[aria-expanded="true"]::after {
        transform: rotate(-180deg);
    }
    #site-footer .collapse-mobile {
        text-align: center;
    }
    #block-b5vagrown-growerresources,
    #block-b5vagrown-mediacenter,
    #block-b5vagrown-memberdirectory {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}