/****** icons ******/
.map-icon{
    width: 20px;
    height: 28px;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.map-icon.kostka{
    background-image: url(../img/stores/map-icon-kostka.svg);
}
.map-icon.shopandrental{
    background-image: url(../img/stores/map-icon-prodejna-a-pujcovna.svg);
}
.map-icon.shop{
    background-image: url(../img/stores/map-icon-prodejna.svg);
}
.map-icon.rental{
    background-image: url(../img/stores/map-icon-pujcovna.svg);
}

.medal{
    width: 60px;
    height: 50px;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
	z-index: 99;
}
.medal.gold{
    background-image: url(../img/stores/reseller-gold.png);
}
.medal.silver{
    background-image: url(../img/stores/reseller-silver.png);
}
.medal.bronze{
    background-image: url(../img/stores/reseller-bronze.png);
}
.medal.classic{
    background-image: url(../img/stores/reseller-classic.png);
}

.sicon{
    width: 40px;
    height: 40px;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    border-radius: .4rem;
}
.sicon.wifi{
    background-image: url(../img/stores/icon-wifi.svg);
}
.sicon.service{
    background-image: url(../img/stores/icon-servis.svg);
}
.sicon.rental{
    background-image: url(../img/stores/icon-pujcovna.svg);
}
.sicon.track{
    background-image: url(../img/stores/icon-okruh.svg);
}
.sicon.coffee{
    background-image: url(../img/stores/icon-coffee.svg);
}

.btn.btn-light{
    background-color: #fff;
    color: #878787;
    border: 1px solid #c6c6c6;
}
.btn.btn-light:hover{
    background-color: #f5f5f5;
}
.btn.btn-light:focus{
    box-shadow: 0 0 0 0.2rem rgba(116, 116, 116, 0.25);
}
.btn.btn-light:active{
    box-shadow: 0 0 0 0.2rem rgba(116, 116, 116, 0.25);
}
input.form-control{
    border: 1px solid #c6c6c6;
    border-radius: .2rem;
}


/****** stores page ******/
#stores #wrapper{
    padding: 0 0 30px 0;
}
#stores #wrapper > .container{
    width:100%;
}

/****** map ******/
.map-wrapper{
    position: relative;
}
.map-loader{
    display: none;
}
.map-loader.active{
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    gap: 1rem;
    content: '';
}
#map {
	min-height: 600px;
	height: 60%;
	margin: auto;
    position: relative;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
/****** map info window ******/
#map .info-window{
    width: 400px;
    padding: .4rem;
}
.info-window p{
    margin: 0;
}
.info-window .direction-link{
    color: #e60d19;
}
.info-window .main{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: .6rem 0;
}
.info-window .main img{
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    width:110px;
}
.info-window .main .name{
    font-weight: 600;
    font-size: 1.2rem;
}
.info-window .other{
    padding: .6rem 0;
}
@media screen and (max-width: 576px){
    #map .info-window{
        width: 100%;
    }
    .info-window .main{
        flex-direction: column;
        align-items: center;
    }
    .info-window .other{
        text-align: center;
    }
}

/****** stores content ******/
.wrap-main{
    width: 1000px;
    margin: auto;
}
@media screen and (max-width: 1100px){
    .wrap-main{
        width: 100%;
        padding: 0 2rem;
    }
}

/****** stores types ******/
.store-types{
    display: flex;
    justify-content: center;
}
.store-types .nav{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
    gap: 2rem;
}
@media screen and (max-width: 480px){
    .store-types .nav{
        flex-direction: column;
    }
}
.store-types .type-link{
    display: flex;
    align-items: center;
    position: relative;
}
.type-link.all .map-icon{
    width: 20px;
    height: 28px;
    margin-left: -10px;
}
.type-link .text{
    margin-left: .5rem;
    font-size: 1.2rem;
    color: #414141;
}
a.type-link:hover::before,
a.type-link.active::before{
    content: '';
    position: absolute;
    top: 1px;
    left: 10px;
    width: calc(100% - 9px);
    height: 100%;
    border-bottom: 2px solid #e60d19;
}
a.type-link.all:hover::before,
a.type-link.all.active::before{
    z-index: 4;
    left: 0px;
    width: 100%;
    border-bottom: 2px solid #2b2b2b;
}
a.type-link.kostka:hover::before,
a.type-link.kostka.active::before{
    border-bottom: 2px solid #2b2b2b;
}
a.type-link.prodejnypujcovny:hover::before,
a.type-link.prodejnypujcovny.active::before{
    border-bottom: 2px solid #e84536;
}
a.type-link.prodejny:hover::before,
a.type-link.prodejny.active::before{
    border-bottom: 2px solid #34a751;
}
a.type-link.pujcovny:hover::before,
a.type-link.pujcovny.active::before{
    border-bottom: 2px solid #557dbe;
}
.type-link .map-icon.kostka{
    z-index: 4;
}
.type-link .map-icon.shopandrental{
    z-index: 3;
}
.type-link .map-icon.shop{
    z-index: 2;
}
.type-link .map-icon.rental{
    z-index: 1;
}


/****** stores search ******/
.store-search{
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: end;
    flex-wrap: wrap;
    margin: auto;
    margin-bottom: 2rem;
}
@media screen and (max-width: 576px){
    .store-search{
        width: 100%;
    }
}
.address-input .input-group{
    display: flex;
}
input.form-control{
    color: #292929;
    font-weight: 600;
}
.address-input .btn-light{
    border-left: 0;
    border-radius: 0 .2rem .2rem 0;
    padding: .4rem;
}

/****** search list ******/
.store-list-wrapper{
    position: relative;
    min-height: 100px;
}
.store-list-loader{
    display: none;
}
.store-list-loader.active{
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-size: 2rem;
    gap: 1rem;
    content: '';
    padding: 1rem 0;
}
.stores-item{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 1rem 0;
    border-radius: .6rem;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.stores-item .pic{
    flex: 18%;
}
.stores-item .data{
    flex: 70%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 2rem .5rem;
}
.stores-item .distance{
    flex: 12%;
}
.stores-item > div{
    padding: 1rem;
}
.stores-item .pic{
    position: relative;
    padding-right: 0;
}
.stores-item .pic img{
    width: calc(100% - 2rem);
    max-width: 125px;
	padding: 12px;
    margin: 1rem;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.stores-item .data p{
    margin: .2rem 0;
    font-size: .9rem;
    line-height: 1rem;
}
.stores-item .data p:first-child{
    margin-top: 0;
}
.stores-item .data p:last-child{
    margin-top: 0;
}
.stores-item .data .services{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.stores-item .data .name{
    font-size: 1.2rem;
    font-weight: 600;
}
.stores-item .data .address{
    margin-bottom: .6rem;
}
.stores-item .data .mail a,
.stores-item .data .web a{
    color: #e80e1b;
    text-decoration: underline;
}
.data .service-info .note{
    padding-top: 1rem;
}
.stores-item .distance{
    padding: 0;
    background-color: #dedede;
    border-radius: 0 .6rem .6rem 0;
}
.distance .link-wrap-parent{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.distance .map-icon{
    width: 30px;
    height: 43px;
}
.distance .text{
    font-size: 1.2rem;
    color: #414141;
}
@media screen and (max-width: 992px){
    .stores-item .pic{
        flex: 23%;
    }
    .stores-item .data{
        flex: 65%;
    }
}
@media screen and (max-width: 768px){
    .stores-item .pic{
        flex: 28%;
    }
    .stores-item .data{
        flex: 60%;
        grid-auto-flow: row;
        gap: 1rem;
    }
}
@media screen and (max-width: 576px){
    .stores-item .pic{
        flex: 40%;
    }
    .stores-item .data{
        flex: 60%;
    }
    .stores-item .distance{
        flex: 100%;
        border-radius: 0 0 .6rem .6rem;
    }
    .distance .link-wrap-parent{
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: .6rem;
    }
}
@media screen and (max-width: 480px){
    .stores-item .pic{
        flex: 100%;
        padding-right: 1rem;
        display: flex;
        justify-content: center;
    }
    .stores-item .data{
        flex: 100%;
        padding: 1rem 1.6rem;
    }
	.medal{
		left: calc((100% - 125px - 25px)/2);
	}
}