html {
    height: 100%;
}
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    overflow: hidden;
    color: #202020;
}

a {
    color: #202020;
}

a:hover {
    color: #af9456;
}

.header {
    padding: 20px;
    background-color: #202020;
    flex: 0;
    z-index: 120;
}

.header .items {
    list-style: none;
    color: #808a93;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: stretch;
    margin: 0; padding: 0;
}

.header .items li {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    padding: 0; margin: 0 5px;
}

.header .items li.levels {

}

.header .items .empty {
    flex: 1;
}

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

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#map .loader {
    position: absolute;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#toast {
    background-color: #202020;
    padding: 10px 15px;
    color: white;
    position: absolute;
    bottom: 30px;
    left: 50%;
    font-weight: 700;
    transform: translateX(-50%);
    border-radius: 1000px;
    display: none;
}

.tooltip {
    z-index: 150;
}

.gold-button {
    color: white;
    background: #202020;
}

.gold-button:hover {
    color: white;
    background: #af9456;
}

/** Search **/

#search {
    display: none;
    position: relative;
}

#search .search-input {
    left: -210px;
    top: 38px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: absolute;
    transition: opacity .2s ease 0s,top .2s ease 0s,visibility 0s ease 0s;
}

#search .search-input input {
    background: #fff;
    border: 5px solid #383838;
    width:240px;
    border-radius: 2px;
    box-shadow:0 0 0 4px #383838;
    outline: none;
    padding: 4px;
}

#search .search-input:before {
    content: '';
    position: absolute;
    top: -30px;
    right: 5px;
    padding-top: 20px;
    margin-left: -11px;
    border-bottom: 11px solid #383838;
    border-left: 12px solid transparent;
    border-right:12px solid transparent
}

#search button {
    width: 28px;
    height: 28px;
    border: 0;
    background: url('../images/icon-search.png') no-repeat;
    background-size: contain;
}

#search.active .search-input {
    opacity: 1;
    transform: none;
    visibility: visible;
    top: 48px;
    transition: all .2s ease 0s;
}


/** Levels **/

#levels {
    font-weight: 700;
    display: none;
}

#levels span {
    display: inline-block;
    margin-right: 10px;
}

#levels button {
    display: inline-block;
    height: 35px;
    width: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 3px;
    background: #808a93;
    color: #fff;
    box-shadow: none;
    min-width: 0;
    font-weight: 400;
    letter-spacing: 0;
    padding: 0;
    font-size: 13px;
    border: none;
    margin: 5px;
}

#levels button:hover {
    background:#737d87
}

#levels button.selected {
    background:#af9456
}

#levels .dropdown-menu {
    min-width: 35px;
    max-width: 35px;
}

#levels .dropdown-menu .dropdown-item {
    padding: 3px 6px;
    text-align: right;
    color: #202020;
    font-weight: 600;
}

/** Store popup **/

#store-callout > a {
    display: block;
    text-decoration: none;
}

#store-callout > a:hover {
    color: #202020;
}

#store-callout .content {
    max-width: 300px;
    min-width: 180px;
}

#store-callout div {
    font-weight: 400;
    font-size: 0.9em;
}

#store-callout .name {
    font-weight: 600;
    font-size: 1.8em;
}

#store-callout .short {
    margin-top: 5px;
    display:none;
}

#store-callout .categories {
    margin-bottom: 5px;
}

#store-callout .phone {
    display: none;
}

#store-callout .categories {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 0.9em;
}

#store-callout .more img {
    height: 30px;
}

.bubble {
    cursor: pointer;
    position: absolute;
    background: #feffff;
    border-radius: .4em;
    width: auto;
    padding: 10px;
    display: none;
    left: 0px;
    top: 0px;
    -webkit-box-shadow: 0px 0px 28px -11px rgba(0,0,0,0.87);
    -moz-box-shadow: 0px 0px 28px -11px rgba(0,0,0,0.87);
    box-shadow: 0px 0px 28px -11px rgba(0,0,0,0.87);
}

.bubble:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #feffff;
    border-bottom: 0;
    margin-left: -10px;
    margin-bottom: -10px;
}

.bubble div.content img {
    max-height: 40px;
    max-width: 120px;
}

.bubble .content-container  {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
}

.bubble div div.navigation img {
    height: 30px;
    margin-left: 12px;
    margin-right: 0px;
}

/** Sprites **/

.sprites {
    background-color: white;
    z-index: 110;
}

#sprites {
    visibility: hidden;
    background:white;
    margin: 10px 0;
    text-align: center;
    z-index: 200;
}

#sprites ul {
    list-style: none;
    margin: 0px;
}

#sprites ul li {
    display: inline-block;
}

#sprites ul li button {
    display: inline-block;
    border: none;
    background: none;
    padding: 5px;
    margin: 0px;
}

#sprites ul li button img {
    width: 28px;
    height: 28px;
}

/** autocomplete **/

.search-input .dropdown-item {
    display: flex;
}

.search-input .dropdown-item > div {
    margin: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.search-input .dropdown-item .store-img {
    width: 60px;
    height: 30px;
}

.search-input .dropdown-item .store-img img {
    max-width: calc(100% - 4px);
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.search-input .dropdown-item .store-level {
    text-align: center;
    width: 30px;
    color: white;
    border-radius: 3px;
    background-color: #808a93;
}

.search-input .dropdown-item .store-name {
    display: block;
    flex: 1;
    line-height: 28px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.bootstrap-autocomplete {
    padding: 0px;
    border-radius: 0;
}

.bootstrap-autocomplete .dropdown-item,
.bootstrap-autocomplete .dropdown-item.active {
    padding: 8px;
    font-weight: 500;
}

.bootstrap-autocomplete .dropdown-item.active {
    background-color: #af9456;
    color:white;
}

/** shop **/

#store-modal .modal-body {
    padding: 0px;
}

.shops-container > div {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.shops-container > div > div {
    margin: 10px;
}

.shops-container > div .image {
    width: 100%;
    text-align: center;
    line-height: 90px;
}

.shops-container > div .image img {
    max-height: 90px;
}

.shops-container > div .name {
    color: #af9456;
    font-size: 26px;
    text-align: center;
    line-height: 90px;
    padding: 0px;
}

.shops-container > div .info {
    display: flex;
    flex-direction: column;
}

.shops-container > div .info i {
    margin: -4px 10px 0 0;
    position: relative;
    top: 7px;
}

.shops-container > div .info > div {
    width: 100%;
    color: #202020;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shops-container > div.shop-descr {
    background: #f8f8f8;
    padding: 23px 0;
    border-top: 1px solid #d1d1d1;
    border-border: 1px solid #d1d1d1;
    display: flex;
    flex-direction: column;
}

.shops-container .big-image {
    margin: 10px 20px;
    text-align: center;
}

.shops-container .big-image img {
    max-width: 100%;
    min-width: auto;
}

@media (min-width: 992px) {
    .shops-container > div {
        flex-direction: row;
    }
    .shops-container > div.shop-descr {
        flex-direction: row;
    }
    .shops-container > div .info > div {
        width: 33%;
        line-height: 90px;
    }
    .shops-container > div .info {
        flex-direction: row;
    }
    .shops-container > div .info {
        width: 52%;
    }
    .shops-container > div .name {
        width: 33%;
    }
    .shops-container > div .image {
        width: 17%;
    }
    .shops-container .big-image img { max-width: 50%; min-width: 280px; }
}


.shops-container > div .level i {
    display: inline-block;
    width: 21px;
    height: 27px;
    background: url('https://galeriakrakowska.pl/img/place.png') no-repeat;
}

.shops-container > div .phone i {
    display: inline-block;
    width: 19px;
    height: 27px;
    background: url('https://galeriakrakowska.pl/img/phone.png') no-repeat;
}

.shops-container > div .promo i {
    display: inline-block;
    width: 21px;
    height: 25px;
    background: url('https://galeriakrakowska.pl/img/promo.png') no-repeat;
}


#store-modal .modal-dialog {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    #store-modal .modal-dialog {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    #store-modal .modal-dialog {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    #store-modal .modal-dialog {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    #store-modal .modal-dialog {
        max-width: 1140px;
    }
}

#store-modal img.loader {
    margin: 20px auto;
    display: block;
}
