/* http://meyerweb.com/eric/tools/css/reset/reset.css */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}a{text-decoration:none;}img{display:block;max-width:100%;height:auto; margin: 0 auto;}*{box-sizing: border-box;}

b{
    font-weight: bold;
}
h1,h2 {
    font-size: 20px;
}
h3{
    font-size: 18px;
}
body{
    font-family: sans-serif;
    text-align: center;
    background: #909BA5;
    max-width: 1200px;
    margin:0 auto;
}

#header {
    background: #000;
    color: #fff;
    display: -webkit-box;display: -ms-flexbox;display: flex;
    -ms-flex-pack: distribute;justify-content: space-around;
    line-height: 40px;
}
#header a{
    color: inherit;
    text-decoration: none;
}

#tours{
    display: -webkit-box;display: -ms-flexbox;display: flex;
    -ms-flex-pack: distribute;justify-content: space-around;
    -ms-flex-flow:row wrap;flex-flow:row wrap;
}
.tour {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    display: inline-block;
    background: #F1F1F1;
    border-radius: 4px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    /* display: none; */
}
.tour .mainpic{
    width: 100%;
}
.tour h1, .tour .category {
    line-height: 40px;
    padding: 0 8px;
    text-align: center;
    color: #fff;
    background: #000;
    font-size: 18px;
}
.tour .category {
    font-weight: 100;
    font-size: 14px;
    padding: 6px;
    line-height: 1.1em;
    background: #22282D;
}
.tour .info{
    background: #F1F1F1;
    padding:0 5px;
}
.info span {
    vertical-align: top;
    line-height:39px;
    margin: 0 5px;
    color: #222;
    display: inline-block;
}
.icon {
    height: 25px;
    width: 25px;
    display: inline-block;
    vertical-align: middle;
}
span.address {
    font-weight: 100;
    color: #676767;
}

/* checkboxes */
/*
.filter:checked + span:before {
    background: #000;
    border: 1.5px solid #fff;
}
.filter + span:before {
    content: '';
    display: inline-block;
    height: 16px;
    width: 16px;
    border: 1px solid #cacaca;
    background: #fff;
    box-sizing: border-box;
    margin-right: 5px;
    vertical-align: middle;
    transition: .2s;
}
*/
#filters {
    background: #6A7986;
    padding: 1px 0;
}
button.filter, button.subCatFilter {
    display: block;
    width: 100%;
    font-size: 16px;
    margin: 4px 0;
    padding: 10px;
    border: 1px solid #CEDDEA;
    background: #eef;
}


/* */
.current-category {
	top: 0;
    background: #FF0000;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    padding: 8px;
    margin-top: 5px;	
}
.scrolls .current-category{
	position: fixed;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
	box-shadow: 1px 1px 4px rgba(0,0,0,.3);
}
.scrolls #filters{
	margin-bottom:37px; /* height of non-fixed .current-category */
}
.current-category:empty{
	display:none;
}

#touroftheday {
    background: #CCDFFF;
    padding: 8px;
    padding-bottom: 1px;
}
#touroftheday .tour{
    display: block; 
}

/* Search */
#searchBar{
    padding: 2px;
}
input#search, button.search {
    border: none;
    height: 25px;
    display: inline-block;
    vertical-align: text-top;
    background: #fff;
}
#searchBar .icon {
    height: 20px;
    width: 20px;
}

/* ,MAP */
#map{
    width:100%;
    height: 320px;
}
.mapstuff {
    display: inline-block;
    padding: 1em;
    box-sizing: border-box;
    text-align: center;
    vertical-align: top;
    background: #FFF5E8;
    font-family: sans-serif;
}
.infobutton {
    display: block;
    text-align: center;
    padding: 3px;
    margin-top: 4px;
}
.popup-info {
    max-width: 100px;
    text-align: center;
    overflow-x: hidden;
}
.legend {
    background: #fff;
    border-radius: 4px;
    padding:0 8px;
}
.legend img {
    max-height: 30px;
}
.legend span{
    margin: 6px 2px;
    text-align: center;
    font-weight: 100;
    line-height: 1em;
    display: inline-block;
}
#legend {
    text-align: left;
    font-size: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 3px;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none; 
}
#legend:empty{
	display:none;
}
#legend img {
    vertical-align: middle;
    margin: 5px auto;
    height: 22px;
    width: auto;
}
#legend .disabled, #legend.detached .disabled {
    /* display: none; */
    /* opacity: .1; */
    cursor: pointer;                     

    background-color: #ffeeee;	
}
#legend .disabled:after {
    content: 'x';
    position: absolute;
    width: 100%;
    height: 100%;
    top: -15px;
    left: 0;
    font-size: 52px;
    color: #ff00006b;
    padding: 0;
    margin: 0;
}
#legend.detached div.solo {
    background-color: #efefef;
    border: 1px solid black;
    border-radius: 2px;
}
#legend .disabled:hover {
    opacity: .5;
}
#legend.detached {
    text-align: center;
}

#legend.detached div {
    display: inline-block;
    font-size: 15px;
    padding: 0 2px;
    border: 1px solid #eee;
    text-align: center;
    margin: 2px 3px;
    background: #f9f9f9;
    position: relative;
    background-repeat: no-repeat;
    background-position-x: center;
    background-size: 34px;
    height: 34px;
    vertical-align: top;
    padding-top: 16px;
}
.legend-filter-name {
    background: #fbfbfb;
}

#legend > div.show-all {
    /* height: 44px; */
    /* vertical-align: top; */
    /* font-size: 15px; */
    font-weight: 900;	
    background-size: 16px;
}

/* Fixes for ios google maps */
.gm-style-iw-d {
    overflow: visible !important;
}
.gm-style-iw.gm-style-iw-c {
    padding: 12px !important;
}

/*  phone */
@media (max-width:520px){
    
}

/* tablet */
@media (min-width:520px){
    #touroftheday .tour {
        width: 100%;
        margin-top: 0;
    }
    #touroftheday > h1 {
        font-size: 28px;
        font-weight: bold;
        padding: 7px 0;
        background: #4E7290;
        color: #fff;
        margin: 0 auto;
        border-radius: 2px;
    }
    button.filter{
        margin: 4px;
        max-width: 48%;
        display: inline-block;
    }
    
    .tour{
        width: 48%;
        max-width: none;
    }

}