#map {

    width: 100%;

    /** these styles for loading screen **/
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map img {
    max-width: none;
}

#map div.control-container {
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    cursor: pointer;
    margin: 3px;
    text-align: center;
}

#map div.control-container.centered {
    /*
    overriding element style calculated values so that the
    opened dialog is centered at top of screen
    */
    /*position: relative !important;*/
    top: 50% !important;
    left: 50% !important;


    transform: translate(-50%, -50%);

    min-width: 350px;
    max-width: 100%;
    max-height: fit-content;
    z-index: 999999;
    margin: 0;
}

#map div.control-container button {
    width: 45%;
    padding: 5px;
    margin: 5px;
    border: 1px solid black;
    border-radius: 3px
}


#map #searchListingsGroup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 360px;
    padding-top: 5px;
}

#searchContainer {
    max-width: 200px;
}

#map #searchListingsGroup > * {
    flex-grow: 1;
}


#map div#detail-toggle {
    color: rgb(25, 25, 25);
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 38px;
    padding-left: 5px;
    padding-right: 5px;
}

#map div#detail-toggle svg:first-child {
    float: left;
    margin: 10px 5px 0 3px;
}

div#my-location button {
    background-color: #fff;
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    margin-right: 10px;
    padding: 0;
}

div#my-location button div {
    margin: auto;
    width: 36px;
    height: 36px;
    background: url(https://maps.gstatic.com/tactile/mylocation/mylocation-sprite-2x.png) 0 0 no-repeat;
    background-size: 360px 36px;
}

.marker-label {
    background-color: white;
    border: 1px solid var(--map-icon-text-color);
    border-radius: 4px;
    padding: 2px;
    opacity: 0.8;
}


.filters-container {
    max-width: 360px;
    margin: 5px 10px;
    padding: 2px 0;
    border: 1px solid var(--map-filter-border-color);
    background-color: white;
    display: none;
}


#categoryFilters {
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
    justify-content: start;
}

#communityFilters {
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
    justify-content: center;
}

#categoryFilters, #communityFilters div:hover {
    font-weight: bold;
}

#categoryFilters div, #communityFilters div {
    margin: 2px 5px;
}

.filter-close {
    float: right;
    display: none;
    margin-top: 5px;
}

img[src*='svgs'], #categoryFilters svg {
    color: var(--map-icon-color);
}

button#filtersToggle {
    margin-left: 10px;
    padding: 0 10px;
    border: 1px solid var(--map-filter-border-color);
    border-radius: 0;
}

#categoryFilters svg.filtered-hidden {
    filter: none;
    opacity: 0.3;
}

#communityFilters span {
    background-color: black;
    color: white;
    font-weight: bold;
}

#communityFilters span.filtered-hidden {
    background-color: white;
    color: black;
    font-weight: normal;
}

#communityFilters .tag-color-asian-owned {
    background-color: #339933;
}

#communityFilters .tag-color-black-owned {
    background-color: rgba(49, 47, 47, 0.788);
}

#communityFilters .tag-color-disability-owned {
    background-color: #cc3333;
}

#communityFilters .tag-color-family-owned {
    background-color: #b85c00;
}

#communityFilters .tag-color-latino-owned {
    background-color: #339933;
}

#communityFilters .tag-color-lgbtq-owned {
    background-color: #330099;
}

#communityFilters .tag-color-minority-owned {
    background-color: #339933;
}

#communityFilters .tag-color-native-owned {
    background-color: #756f17;
}

#communityFilters .tag-color-pacific-islander-owned {
    background-color: rgba(49, 47, 47, 0.788);
}

#communityFilters .tag-color-vegan {
    background-color: #663399;
}

#communityFilters .tag-color-veteran-owned {
    background-color: #197f8a;
}

#communityFilters .tag-color-woman-owned {
    background-color: #c5258f;
}

#communityFilters .tag-color-worker-owned {
    background-color: rgba(49, 47, 47, 0.788);
}

#listing-control {
    z-index: 99999999;
}

#listingsContainer::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(white, transparent);
    pointer-events: none;
    content: '';
    display: inline-block;
}

#listingsContainer {
    position: relative;
    max-height: 730px;
}

#listingsContainer::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    content: '';
    display: inline-block;
}

#listings {
    max-height: 500px;
    width: 360px;
    overflow-y: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/*.scroller-page{*/
/*    outline:1px solid red;*/
/*}*/

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

#search-control {
    max-width: 224px;
    font-size: 16px;
}

#search {
    box-shadow: none;
    background-color: white;
    margin-bottom: 0;
}

#btn-search-clear {
    color: var(--map-search-icon-color);
    display: none;
}

#search-icon {
    color: var(--map-search-icon-color);
}

#searchContainer {
    display: flex;
    margin: 0 10px;
    align-items: center;
    position: relative;
}

#searchStatus {
    position: absolute;
    top: 42px;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 3px;
    border: 1px solid #aaa;
    border-radius: 10px;

    left: 50%;
    transform: translateX(-50%);
}

#searchStatus * {
    margin: 0 3px;
}

#searchStatusMessage {
    white-space: nowrap;
}

#NoResults {
    width: 340px;
    display: none;
    color: #9a9a9a;
    font-size: 2em;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 30px;
    margin: auto;
}

.mc {
    filter: invert(64%) sepia(91%) saturate(389%) hue-rotate(68deg) brightness(84%) contrast(86%);
}

.lc {
    margin: 10px;
    border: 1px solid var(--map-card-border-color);
    border-radius: 0;
    padding: 10px;
    position: relative;
    left: 0;
    background-color: var(--map-card-background-color);
    overflow: hidden;
    min-width: 350px;
    max-width: 360px;
    font-size: 1.5em;
}

.lc h3 {
    padding: 15px 15px 10px;
    margin: -15px -15px 0;
    background: var(--map-card-header-background-style);
}

.lc h3 a,
.blc h3 a {
    color: white;
    font-weight: bold;
    font-family: 'Roboto Slab', serif;
}

div.blc {
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    font-size: 16px;
}


.lc a.i13,
.blc a.i13 {
    margin: 5px;
    padding: 3px 10px;
    height: unset;
    line-height: 30px;
    width: unset;
    flex-grow: 1;
}

.lc a.i13 {
    background: var(--map-card-button-background-style);
    border: none;
    font-size: 0.9em;
}

.lc > div {
    padding-top: 8px;
}

.lc .listing-parent-category.label {
    margin: 0;
}

.lc span.listing-parent-category.label {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid grey;
    margin: 5px;
    color: black !important;
    background-color: white !important;
}

/** We reuse content from side cards, don't need find on map button when in the map infowindow**/
a.hide-in-infoWindow {
    display: none;
}

.lc a.hide-in-infoWindow {
    display: unset;
}

div#listing-control > div#detail-toggle {
    background-image: linear-gradient(to right, black 10%, #ff0018 20%, #ffa52c 30%, #ffff41 40%, #008018 50%, #0000f9 60%, #86007d 70%, #cc0099 80%, black 90%);
    background-size: 1000% 100%;

    color: transparent;
    -webkit-text-fill-color: transparent;

    background-clip: text;
    -webkit-background-clip: text;

    animation: background_slide 6s ease-in-out infinite;
}

div#listing-control > div#detail-toggle > svg > path {
    color: black;
}

@keyframes background_slide {
    0%, 100% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }
}


/**********
 * (div.gm-style-iw-d) means inside the infoWindow content area
 **/

div.gm-style-iw-d h3 a {
    color: #c5258f;
}

div.gm-style-iw-d a.i13 {
    background: #c5258f;
!important;
    border: none;
}

div.gm-style-iw-d span.tag-label-link {
    font-size: .7em;
    width: 105px;
    white-space: nowrap;
    height: 24px;
    line-height: 22px;
}

div.gm-style-iw-t button[title='Close'] {
    width: 50px !important;
    height: 50px !important;
    right: -4px !important;
    opacity: 1 !important;
}

div.gm-style-iw-t button[title='Close'] span {
    width: 30px !important;
    height: 30px !important;
    -webkit-mask-image: url('/wp-content/uploads/fa/svgs/solid/rectangle-xmark.svg') !important;
    filter: invert(32%) sepia(89%) saturate(4814%) hue-rotate(302deg) brightness(80%) contrast(91%);
}

div.gm-style-iw-d .offer {
    margin: 5px 0 10px
}

div.gm-style-iw-d .offer-title {
    line-height: 30px;
}


#loading {
    position: relative;
    text-align: center;
    /*max-width: 100%;*/
    z-index: 9999999;
    top: 80px;
    margin: 0 auto;
    /*left:0;*/
    /*top:0;*/
}

#loading .lds-ellipsis {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 40px;
    background: #ffffff;
    opacity: 0.7;
    border-radius: 15px;
}

#loading .lds-ellipsis div {
    position: absolute;
    top: 15px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: black;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

#loading .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

#loading .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

#loading .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

#loading .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}


/*****
 *  NEW MAP STUFF STARTS HERE - above is suspect...tbf so is below
 */


div.off-canvas-wrapper {
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow: clip;
}

header > nav#top-bar-primary > div.row {
    margin: auto
}

footer {
    display: none !important
}


#intro-content {
    text-align: center;
    padding: 1em 1em 0;
    background-color: #fafafa;
}

#header-image {
    background-color: black;
    width: 100%;
    text-align: center;
    display: flex;
}

#header-image img {
    min-width: 100%;
    height: 150px;
    object-fit: cover;
}

#header-image > #header-center {
    height: 150px;
}

#header-image > #header-left,
#header-image > #header-right {
    display: block;
    height: 150px;
    width: 100%;
    overflow: hidden;
}

#intro-content img#title {
    text-align: center;
    display: block;
    margin: auto;
}

#intro-options {
    display: none;
}

#intro-options a {
    text-decoration: none;
    border-radius: 10px;
    height: 2.5em;
    max-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin: 12px;
}


/** use grid to make the map and cards side by side **/

#panels-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    grid-template-rows: 1fr;
    grid-template-areas: "cards map";
    border-top: 1px solid #ddd;
    position: relative;
    height: calc(100vh - 400px); /** 400px is the height of the content above the container **/
}

#panels-container #map-panel {
    grid-area: map;
    position: relative;
    height: 100%;
}

#panels-container #cards-panel {
    grid-area: cards;
    position: relative;
    height: 100%;
    overflow: hidden;
}

#panels-container #cards-panel #no-results {
    position: relative;
    top: 0;
    display: none;
    color: #9a9a9a;
    font-size: 2em;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 30px;
    margin: auto;
}

#panels-container #cards-list::-webkit-scrollbar {
    display: none;
}

#panels-container #cards-list {
    display: inline-grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr auto;
    grid-gap: 20px;
    padding: 20px;
    /**
     * cards list doesn't scroll without this
     */
    height: 100%;
    overflow: scroll;
    /** hide scrollbar **/
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}


/*div#close-button {*/
/*    display: none;*/
/*    position: absolute;*/
/*    z-index: 1000;*/
/*    right: .3em;*/
/*    top: .2em;*/
/*    white-space: nowrap;*/
/*    font-size: 2em;*/
/*    line-height: 1em;*/
/*    color: #C2528F;*/
/*    background-color: white;*/
/*    padding: 4px 7px;*/
/*    border-radius: 5px*/
/*}*/

/*#close-button svg {*/
/*    !* make it look like a button *!*/
/*    color: #c5258f;*/
/*    background-color: white;*/
/*    padding: 5px 10px;*/
/*    border-radius: 10px;*/

/*    box-shadow: rgba(0, 0, 0, 0.07) 0 1px 2px,*/
/*    rgba(0, 0, 0, 0.07) 0 2px 4px, rgba(0, 0, 0, 0.07) 0 4px 8px, rgba(0, 0, 0, 0.07) 0 8px 16px, rgba(0, 0, 0, 0.07) 0 16px 32px, rgba(0, 0, 0, 0.07) 0 32px 64px;*/
/*    border: 1px solid #be82a8;*/
/*    cursor: pointer;*/
/*}*/

#panels-container div.status {
    display: none; /* needed mostly for mobile */
}

div#mobile-controls {
    position: absolute;
    width: 100%;
    z-index: 1000;
    left: 50%;
    bottom: 1em;
    transform: translateX(-50%);

    display: none;
    /*display: flex; is what we use when they should show */
    justify-content: center;
    column-gap: 10px;
    white-space: nowrap;
    font-size: 1.2em;
    line-height: 1em;
}

div#mobile-controls > div {
    /* make it look like a button */
    color: #c5258f;
    background-color: white;
    padding: 10px 15px;
    border-radius: 15px;

    box-shadow: rgba(0, 0, 0, 0.07) 0 1px 2px,
    rgba(0, 0, 0, 0.07) 0 2px 4px, rgba(0, 0, 0, 0.07) 0 4px 8px, rgba(0, 0, 0, 0.07) 0 8px 16px, rgba(0, 0, 0, 0.07) 0 16px 32px, rgba(0, 0, 0, 0.07) 0 32px 64px;
    border: 1px solid #be82a8;
    cursor: pointer;
}

.nlc {
    display: inline-block;
    height: auto;
    width: 100%;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding-bottom: 5px;
    text-align: left;
    box-shadow: rgba(0, 0, 0, 0.07) 0 1px 2px,
    rgba(0, 0, 0, 0.05) 0 2px 4px,
    rgba(0, 0, 0, 0.05) 0 4px 8px,
    rgba(0, 0, 0, 0.05) 0 8px 16px,
    rgba(0, 0, 0, 0.05) 0 16px 32px,
    rgba(0, 0, 0, 0.05) 0 32px 64px;
}

.nlc .hero-image {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.nlc a {
    text-decoration: none;
}

.nlc picture {
    object-fit: cover;
}

.nlc img {
    height: 250px;
    object-fit: cover;
    /*border-radius: 10px 10px 0 0;*/
}

.nlc div.listing-details {
    padding: 0 15px;
    max-height: unset;
    overflow: hidden;
    transition: all 1s ease-in-out;
}

.nlc div.listing-details.clamp {
    max-height: 360px;
}

.nlc div.listing-details + .clamp-toggle {
    width: 100%;
    cursor: pointer;
    color: #c5258f;
    padding: 5px 0 0;
    border-top: 1px solid #eaeaea;
}

.nlc div.listing-title {
    line-height: 1.2em;
    font-size: 1.9em;
    margin: 10px 0 0;
}

.nlc span.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0;
    width: 100%;
    border-width: 1px;
}

.nlc span.post-tags * {
    margin: 0; /** remove margin fix **/
}

.nlc div.address {
    font-size: 1em;
    margin: 5px 0;
    color: #666;
}

.nlc div.categories {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 5px;
}

.nlc div.categories .listing-parent-category {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid gold;
    margin: 5px 0;
}


.nlc div.listing-description {
    margin-top: 5px;
}

.nlc div.link-bar {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    font-size: 1.2em;
    column-gap: 20px;
    color: #c5258f;
}

/** styles for when the listing card is in the modal **/
#listing-modal .modal-header {
    border: none;
}


#city-list {
    width: 100%;
    max-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    gap: 20px;
    overflow: scroll;
}

#intro-options #city-list div {
    display: inline-block;
    width: 43%;
}

#city-list div {
    /*display: inline-block;*/
    width: 43%;
}

#city-list img {
    border-radius: 10px;

}

#city-list .city-button {
    cursor: pointer;
}

@media all and (max-width: 1800px) {
    /** Two card columns on left and map on right **/
    #panels-container #cards-list {
        grid-template-columns: 1fr 1fr;
        grid-gap: 15px;
        padding: 10px;
    }
}

@media all and (max-width: 1000px) {
    /** One card column on left and map on right **/
    #panels-container #cards-list {
        grid-template-columns: 1fr;
        padding: 5px;
    }

    /* card to map ratio should be 1:1 around this point*/
    #panels-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media all and (max-width: 650px) {


    #intro-content {
        overflow: scroll;
        height: 100vh;
    }

    #intro-options {
        width: 100%;
        display: block;
        justify-content: space-evenly;
        height: 100%;
    }

    #page.intro-view #map-panel,
    #page.intro-view #cards-panel {
        visibility: hidden;
    }

    #page.list-view #intro-content,
    #page.map-view #intro-content {
        display: none;
    }

    #panels-container {
        height: 200vh;
        grid-template-rows:1fr 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: "map" "cards";
    }

    #cards-panel, #map-panel {
        height: 100vh;
    }

    #panels-container div.status {
        font-size: 1.1em;
        padding-left: 20px;
        margin-bottom: -20px;
    }


    #page.list-view #panels-container {
        grid-template-areas: "cards" "map";
    }


    #page.list-view #map-panel,
    #page.map-view #cards-panel {
        visibility: hidden;
    }

    #page.list-view #list-view-button,
    #page.map-view #map-view-button {
        display: none;
    }


    #page.list-view div#mobile-controls,
    #page.map-view div#mobile-controls {
        display: flex; /** show the controls **/
        position: fixed;
    }

    #page.map-view div#mobile-controls {
        margin-left: 20px;
        justify-content: flex-start;
    }


    /** admin bar messes up full screen for admin users  **/
    html {
        /** remove reserved space for the admin bar **/
        margin-top: 0 !important;
    }

    #wpadminbar {
        display: none;
    }
}