.x-slider_slide-image {
    border-radius: 0.6666666667rem;
    overflow: hidden;
}

.hero-arrow {
    display: block;
}

.type-page-inner-container.x-slider_slide {
    padding: 0;
    width: 100%;
}

/* GRID ***************************************************/
#grid {
    padding-left: 0;
}

.wpgb-loader {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    background: rgba(255,255,255,0.65);
}

#grid.wpgb-loading .wpgb-loader {
    opacity: 1;
    visibility: visible;
}

#grid .wpgb-loader .loading-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.loading-animation {
    width: 48px;
    height: 48px;
}

.wpgb-loader .loading-animation * {
    color: var(--current-color);
    background: var(--current-color);
}

.loading-animation>div {
    display: inline-block;
    float: left;
    width: 12px;
    height: 12px;
    margin: 19px 2px;
    border-radius: 100%;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.loading-animation>div:nth-child(1) {
    -webkit-animation: wpgb-loader-5 .6s -.14s infinite ease-in-out;
    animation: wpgb-loader-5 .6s -.14s infinite ease-in-out;
}

.loading-animation>div:nth-child(2) {
    -webkit-animation: wpgb-loader-5 .6s -.07s infinite ease-in-out;
    animation: wpgb-loader-5 .6s -.07s infinite ease-in-out;
}

.loading-animation>div:nth-child(3) {
    -webkit-animation: wpgb-loader-5 .6s 0s infinite ease-in-out;
    animation: wpgb-loader-5 .6s 0s infinite ease-in-out;
}

@-webkit-keyframes wpgb-loader-5 {
    33% {
        -webkit-transform: translateY(10px)
    }

    66% {
        -webkit-transform: translateY(-10px)
    }

    100% {
        -webkit-transform: translateY(0)
    }
}

@keyframes wpgb-loader-5 {
    33% {
        transform: translateY(10px)
    }

    66% {
        transform: translateY(-10px)
    }

    100% {
        transform: translateY(0)
    }
}

/* CARDS **************************************************/
.card {
    transition: transform 200ms cubic-bezier(0.1,.3,.2,1),box-shadow 200ms cubic-bezier(0.1,.3,.2,1) !important;
    box-shadow: 0.3px 2.1px 2.2px rgb(0 0 0 / 3%), 0.7px 5.1px 5.3px rgb(0 0 0 / 4%), 1.3px 9.5px 10px rgb(0 0 0 / 5%), 2.2px 17px 17.9px rgb(0 0 0 / 6%), 4.2px 31.8px 33.4px rgb(0 0 0 / 7%), 10px 76px 80px rgb(0 0 0 / 10%);
    border-radius: 0.6666666667rem;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 
    0.3px 2.1px 12.2px rgb(0 0 0 / 4%), 
    0.7px 5.1px 15.3px rgb(0 0 0 / 5%), 
    1.3px 9.5px 20px rgb(0 0 0 / 6%), 
    2.2px 17px 27.9px rgb(0 0 0 / 7%), 
    4.2px 31.8px 43.4px rgb(0 0 0 / 8%), 
    10px 76px 90px rgb(0 0 0 / 11%);
}

.card-wrapper {
    transform: translateY(0);
    opacity: 1;
    transition: 700ms cubic-bezier(0.1,0.3,0.2,1);
    transition-property: transform, opacity;    
}

.card-feature-icon {
    padding: 5px;
    fill: var(--accent);
    width: 48px;
    transition: fill 200ms ease-out;
}

.card-feature-icon:hover {
    fill: var(--current-color);
}

.card-media-thumb-overlay {
    transition: opacity 250ms var(--smooth);
    opacity: 0;
}

.card-media-thumb:hover .card-media-thumb-overlay {
    opacity: 1;
}

.slide-caption-text.noanimborder a {
    pointer-events: none;
}


/*** FAcets ********************************************************************/
#filter-wrapper {
    padding-left:4px;
}

.wpgb-facet button.wpgb-apply, .wpgb-facet button.wpgb-reset {
    margin: 0 !important;
}

.wpgb-facet button.wpgb-reset {
    background-color: var(--secondary);
}

.toggle-filters {
    display: none;    
}

.filter-panel-overlay {
    /* display: none; */
    transition: opacity 300ms ease-in-out;
    opacity: 0;
    background: rgba(255,255,255,0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    pointer-events: none;
}

.wpgb-facet .wpgb-checkbox-facet .wpgb-checkbox[aria-pressed="true"] .wpgb-checkbox-control {
    border-color: var(--secondary) !important;
    background-color: var(--secondary) !important;
}

/* Current filters, only visible <1600px */
main .wpgb-facet-13 .wpgb-button[aria-pressed="true"] {
    background-color: var(--secondary);
    border: none;
}

main .wpgb-facet-13 {
    display: none;
}

main .wpgb-facet-13 .wpgb-button .wpgb-button-label {
    font-size: 13px;
}

main .wpgb-facet ul .wpgb-button {
    min-height: 30px;
}

main .wpgb-facet > fieldset:last-child {
    margin-bottom: 0;
}

.wpgb-facet-title {
    margin-bottom: 6px !important;
    font-size: 18px !important;
}

main .wpgb-facet .wpgb-hierarchical-list li {
    margin: 0 0 6px 0 !important;
}

.wpgb-result-count {
    font-size: 14px;
    color: #888;
}

.wpgb-facet .wpgb-geolocation-facet {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

main .wpgb-geolocation-facet .wpgb-geo-radius input {
    color: var(--current-color);
}

main .wpgb-facet .wpgb-geo-radius input:focus, main .wpgb-facet .wpgb-geo-radius input:hover {
    width: 30px !important;
    text-align: center;
    padding: 2px;
    box-shadow: 0 0 0 1px;
}

main .wpgb-facet .wpgb-map-pan-to-search {
    top: -48px;
    left: unset;
    right: 0;
    transform: none;
    box-shadow: none;
    background: none;
    margin: 0;
}

main .wpgb-facet .wpgb-map-pan-to-search:hover {
    background-color: none;
}

main .wpgb-facet .wpgb-map-pan-to-search input:checked + .wpgb-checkbox-control {
    border-color: var(--secondary) !important;
    background: var(--secondary);
}

main .wpgb-facet .wpgb-button.wpgb-reset {
    padding-top: 1.2rem;
    padding-right: 2rem;
    padding-bottom: 1.2rem;
    padding-left: 2rem;
    line-height: 1.2em;
    font-size: 1.2rem;
    text-align: center;
}

.wpgb-facet .wpgb-checkbox-label {
    line-height: 1.1;
}

#brx-content .wpgb-facet .wpgb-range-facet .wpgb-range-slider .wpgb-range-progress {
    background-color: var(--secondary);
}

#brx-content .wpgb-facet .wpgb-range-facet .wpgb-range-slider .wpgb-range-thumb {
    border-color: var(--secondary);
}



/* Legend */
.legend {
    transition: max-height 200ms ease-in-out;
    max-height: 600px;
    overflow: hidden;
}

.legend-open-close-icon {
    position: absolute;
    top: -4px;
    right: 1rem;
    transition: transform 150ms ease-out;
    cursor: pointer;
}

.legend.closed .legend-open-close-icon {
    transform: rotateZ(180deg);
}

.legend h3 {
    font-size: 2.1rem;
}

.legend.closed {
    max-height: 2.5rem;
}

body.bricks_template-filter-grid-map .legend.closed {
    max-height: 1000px;
}

.legend-icon {
    width: 24px !important;
    height: 24px !important;
    fill: var(--current-color);
    font-size: 24px !important;
}

/*** Map *****************************************************/

#map {
    row-gap: 0;
}

.popup-logo {
    width: 100px;
    height: auto;
    margin-top: 20px;
}

.wpgb-map-marker-content {
    line-height: 1.3 !important;
}
.popup-read-more {
    background: var(--primary);
    color: #fff;
    padding: 1.4rem 2.8rem;
    border-radius: 4px;
    width: auto;
    margin-top: 20px;
    text-align: center;
}

.wpgb-facet .gm-style .gm-style-iw-d .wpgb-map-marker-img {
    height: 100% !important;
    min-height: 8vw;
    display: flex !important;
    justify-content: center;
    background-color: #fff !important;
}

.wpgb-map-facet {
    width: 100% !important;
    height: calc(100vh - 68px);
    border-radius: .6666666667rem;
}



/* Loading button */

main .wpgb-facet .wpgb-load-more {
    background: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
}

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

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

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

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

.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-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/*** SWITCHTAB ***************************************/
.switchtab-controller {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.switchtab-controller > li {
  flex: 1 1 auto;
  border: var(--current-color) 1px solid;
  border-width: 1px 1px 1px 0;
    border-radius: 0 1rem 1rem 0;
    overflow: hidden;
    background: #fff;
}

.switchtab-controller > li:first-child {
    border-width: 1px;
    border-radius: 1rem 0 0 1rem;
    overflow: hidden;
}

.switchtab-controller > li > a {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  color: var(--current-color);
  text-decoration: none;
}

.switchtab-controller > li.is-active > a {
  background-color: var(--current-color);
  color: #fff;
}

/* Panel default state*/
.switchtab-panel {
  display: none;
  width: 100%;
}

.column-header-wrapper {
    row-gap: 0 !important;
    margin-bottom: 1rem;
}



@media only screen and (min-width: 992px) {
    .switchtab-panel {
        display: flex !important;
    }   
    
    .switchtab-controller {
        display: none;
    }
 
    .switchtab-panel.grid-block {
        width: 48%;
    }
    
    .switchtab-panel.map-block {
        width: 52%;
    }
    
}



/* MEDIA QUERIES ************************************/

@media only screen and (max-width: 1800px) {
    .wpgb-facet .wpgb-geolocation-facet {
        flex-direction: column;
    }
    .wpgb-map-facet {
        height: calc(100vh - 94px);
    }

    #grid-wrapper .wpgb-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));    
    }
    
}

@media only screen and (max-width: 1600px) {
/* Filter panel becomes off-canvas at 1600px on Wineries page.
   This behaviour is overridden on Events page.
*/
    /* body.filter-panel-open {
        position: fixed;
    } */
    
    #filter-wrapper {
        overflow-y: scroll;
        padding-bottom: 85px;
        flex-wrap: nowrap;
        padding-top: 80px;
        transition: padding 200ms ease-out;
        overflow-x: hidden;
    }

    #brx-header.slide-up + #brx-content #filter-wrapper {
        padding-top:0px;
    }

    .filter-block {
        position: fixed !important;
        left: 0;
        top: 0 !important;
        z-index: 99;
        padding: 2rem;
        width: 300px !important;
        background: #fff;
        box-shadow: 0 0 14px 0px rgb(0 0 0 / 30%);
        transition: transform 250ms ease-out;
        transform: translateX(-295px);
        max-height: 100vh;
    }
    
    .filter-block:not(.open):hover {
        transform: translateX(-288px);
    }
    
    .filter-block.open {
        transform: translateX(0);
    }
    
    .filter-block .toggle-filters:hover {
        color: var(--primary);
    }
    
    .toggle-filters:not(.filter-panel-overlay):not(.small-toggle) {
        display: flex !important;
        transition: color 200ms ease-in-out;
        cursor: pointer;
    }
    
    .filter-block-open {
        position: absolute;
        top: 50%;
        right: -60px;
        transform: rotateZ(270deg);
        background: #fff;
        padding: 6px 20px;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 11px 14px -4px rgba(0,0,0,0.3);        
    }

    body.filter-panel-open .filter-panel-overlay {
        /* display: block; */
        opacity: 1;
    }
    
    main .wpgb-facet-13 {
        display: block;
    }
    
}

@media only screen and (max-width: 1500px) {

    #regions .x-splide__arrows .splide__arrow--prev {
        left: 0;
        color: #fff;
    }

    #regions .x-splide__arrows .splide__arrow--next {
        right: 0;
        color: #fff;
    }

}

@media only screen and (max-width: 992px) {
    .winery-card-excerpt {
        font-size: 1.5rem !important;
    }
    
    .legend {
        display: table;
    }
    
    .legend-open-close-icon {
        display: none;
    }
    
    .tabGroup .tabgroup-buttons {
        position: sticky;
        top: 10px;
        z-index: 9;
    }


}


@media only screen and (max-width: 478px) {
    #grid-wrapper .wpgb-masonry {
        grid-template-columns: repeat(1, minmax(0, 1fr));    
    }
    #grid .column-header {
        row-gap: 0.5rem;
    }
    
    #grid .column-header .search-field {
        width: 100%;
    }
    
    #map .column-header .brxe-shortcode {
        width:100%;
        padding-bottom: 40px;
    }
    
    .filter-block {
        height: 100vh;
    }
    
    #filter-wrapper {
        flex-wrap: nowrap;
    }
    
    #generated-sidebar {
        min-width: 100%;
    }
    
    .route-row > div {
        column-gap: 1rem;
    }
    
    .filter-block-open {
        right: -60px;
    }

}
