#map {
    border: 1px solid var(--map-border-color);
    height: 780px;
    width: 100%;

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

#map img {
    max-width: none;
}

button.gm-fullscreen-control {
    transform-origin: 50% 50%;
    height: 20px;
    animation: 1s infinite throbOut;
}

button.gm-fullscreen-control[aria-pressed="true"] {
    animation: 1s infinite throbIn;
}

@keyframes throbOut {
    0% {
        transform: scale(1.1);
    }
    33% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes throbIn {
    0% {
        transform: scale(1);
    }
    33% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

#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: 8px;
    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;
}

#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 i {
    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;
}

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

#search-clear {
    margin-top: 9px;
    margin-left: -10px;
    font-size: 15px;
    color: var(--map-search-icon-color);
    display: none;
    float: right;
}

#search-icon {
    margin-top: 9px;
    font-size: 18px;
    color: var(--map-search-icon-color);
}

#searchStatus {
    position: absolute;
    bottom: -42px;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;

    padding: 1px 5px;
}

#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;
}


/** Special Offer styles **/

.offer .offer-title {
    color: #f8993a;
    font-size: 1.2em;
    font-weight: bold;
}

.offer-message {
    border: 1px solid #f8993a;
    border-radius: 1px;
    padding: 5px 10px;
    color: white;
    font-weight: bold;
    background-color: #f8993a;
}

span.post-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/** 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);
    }
}

