html {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

body {
    margin-bottom: 3em;
}

*, :after, :before {
    box-sizing: border-box;
}

@media (prefers-reduced-motion:no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

*::-webkit-scrollbar {
    -webkit-appearance: none;
}

*::-webkit-scrollbar:vertical {
    width:10px;
}

*::-webkit-scrollbar-button:increment,*::-webkit-scrollbar-button {
    display: none;
}

*::-webkit-scrollbar:horizontal {
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background-color: #797979;
    border-radius: 20px;
    border: 2px solid #f1f2f3;
}

*::-webkit-scrollbar-track {
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.wp-search {
    border-bottom: 1px solid #DDD;
}

.container-top {
    display: flex;
    flex-direction: column;
}

.container-top img {
    width: 200px;
    margin: 1em;
}

.search {
    flex-direction: column;
    width: 100%;
    align-items: normal;
    padding: 1em;
}

.search__name {
    margin-bottom: 0.5em;
}

.search__location {
    float: left;
    width: calc(100% - 44px);
    margin-right: 8px;
}

.search__name, .search__location {
    display: flex;
    padding: 6px 8px 6px 5px;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    border: 0.5px solid #333;
    border-radius: 4px;
}


.search__name input, .search__location input {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    flex: 1 0 0;
    border: none;
    border-radius: unset;
    outline: none;
    width: 100%;
}

.search__button {
    display: flex;
    padding: 10px 10px;
    justify-content: center;
    color: #FFF;
    align-items: center;
    border-radius: 4px;
    background: #333;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.search__button:disabled {
    outline: none;
    border: transparent;
    background: #DDD;
}

#gmaps {
    display: none;
    height: 100vh;
}

#restaurants {
    width: 100vw;
}

.restaurants_wrap {
    margin: 16px;
}

.restaurant {
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#gmaps .restaurant:hover, .restaurant.selected  {
    box-shadow: none;
    border-radius: 0;
}

.restaurant:hover, .restaurant.selected  {
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.restaurant img {
    border-radius: 8px;
}

.swiper {
    width: 100%;
    height: 11.042rem;
}

:root {
    --swiper-theme-color: #ffd129
}

.swiper-slide {
    height: auto;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev, .swiper-button-next {
    border-radius: 24px;
    background: #FFF;
    width: 32px;
    height: 32px;
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 10px;
    font-weight: bold;
    color: #000;
}

.restaurant__content {
    padding: 12px;

}

.restaurant__info {
    min-height: 5rem;
}

.restaurant__name {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.restaurant__address {
    color: #333;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.restaurant__address>span {
    font-size: 14px;
    vertical-align: bottom;
    color: #AAA;
}

.restaurant__reservation {
    padding: 12px 32px;
    color: #FFF;
    border-radius: 4px;
    background: #333;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin: 0;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.paginator {
    display: flex;
    position: relative;
    align-items: center;
    padding-bottom: 5em;
    margin: 1em auto 0 auto;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.paginator>a {
    border-radius: 24px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    text-decoration: none;
    border: 1px solid #fff;
}

.paginator .prev, .paginator .next {
    border: 1px solid #333;
    padding: 8px 10px;
}

.paginator>a.active, .paginator>a:hover {
    border: 1px solid #333;
    background: #333;
    color: #fff;
}

.paginator>a.active {
    pointer-events: none
}

.paginator .prev::before {
    font-family: 'Material Icons';
    content: '\e5cb';
}

.paginator .next::before {
    font-family: 'Material Icons';
    content: '\e409';
}

.no-restaurants {
    margin: 0 1em;
}

.no-restaurants div:first-child {
    font-weight: bold;
    margin: 1em 0;
    font-size: 20px;
}



.show-button {
    position: fixed;
    bottom: 1em;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.5em;
    cursor: pointer;
    z-index: 1;
    font-size: 14px;

    color: #fff;
    border-radius: 24px;
    border: 1px solid #DDD;
    background: #333;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20), 0px 0px 30px 0px rgba(0, 0, 0, 0.12), 0px 0px 24px 0px rgba(0, 0, 0, 0.14);
}

.show-list {
    display: none;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    height: 86vh;
    width: 96vw;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

iframe {
    width: 100%;
    height: 100%;
    outline: none;
    border: 0;
}

.material-icons {
    font-size: 16px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
#close {
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#close:hover,
#close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
}

#modal-body {padding: 2px 16px;height: 66vh;}

.modal-footer {
    padding: 2px 16px;
}

#gmaps .restaurant {
    margin: 0px;
}

#gmaps .restaurant__content {
    padding: 12px 0 0 0;
}

#gmaps .restaurant__info {
    min-height: 5rem;
}

#gmaps .restaurant .restaurant__address {
    display: block;
}

.gm-style {
    font:unset;
}

.gm-style-iw {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    background: #fff !important;
}

.gm-style-iw-d {
    max-width: 17.25rem;
    height: auto;
    min-height: 300px !important;
    padding: 8px 12px 12px 12px !important;
    overflow: hidden !important;
}

.gm-style-iw-d img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 8px 8px !important;
}

.gm-style-iw-d .info-content {
    padding: 12px 16px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.gm-style-iw-d .info-content .restaurant__name {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.gm-style-iw-d .info-content .restaurant__address {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 4px;
}

.gm-style-iw-d .info-content .restaurant__address span {
    margin-right: 4px;
}

.gm-style-iw-d .info-content .restaurant__reservation {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 0px;
}

.gm-style-iw-d .info-content .restaurant__reservation:hover {
    background-color: #555;
}

.gm-style-iw-ch {
    padding-top: 16px !important;
}

.gm-style-iw-t button.gm-ui-hover-effect,
.gm-style-iw-t button.gm-ui-hover-effect > span {
    width: 20px !important;
    height: 20px !important;
}

.gm-style-iw-t button.gm-ui-hover-effect > span {
    margin: 4px 12px 0px -8px !important;
}

@media only screen and (min-width: 450px) {
    .restaurants_wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
        margin: 0rem 0rem 0rem 1rem;
    }

    .restaurant {
        flex: 0 0 calc(50% - 1rem);
    }

    .total-restaurants {
        color: #333;
        font-style: normal;
        font-weight: 600;
        margin: 1rem 1rem 1rem 1rem !important;
    }

}

@media only screen and (min-width: 900px) {
    .content {
        display: flex;
    }
    #restaurants {
        width: 50%;
        height: calc(100vh - 80px);
        overflow: auto;
    }
    #restaurants:not(.ng-hide) {
        display: block !important; /* don't remove important*/
    }
    #gmaps {
        height: calc(100vh - 80px);
        display: block; /* don't remove important*/
        width: 50%;
    }
    .container-top {
        flex-direction: row;
        align-items: center;
        height: 80px;
    }
    .search {
        display: flex;
        width: 600px;
        padding: 6px;
        align-items: flex-start;
        gap: 8px;
        flex-direction: row;
        border: 1px solid #DDD;
        border-radius: 4px;
    }
    .search__name, .search__location {
        margin: 0;
        border: none;
        border-radius: unset;
        border-right: 0.5px solid #aaa;
    }

    .show-button {
        display: none !important; /* don't remove important*/
    }

    #gmaps .restaurant .restaurant__address {
        display: block;
    }
}

.ng-cloak { display: none !important; }

@keyframes spinner-grow {
    0% {
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: none;
    }
}

.spinner-grow {
    color: #ffd129;
    margin: 1rem;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: spinner-grow .75s linear infinite;
}

.total-restaurants {
    margin: 1rem 1rem 1rem 1rem;
}

#gmaps.show-map {
    display: block;
}
#restaurants.show-map {
    display: none;
}