* {
	box-sizing:border-box;
}

 	/*main*/

[data-role='page'] {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
}
.ui-mobile .ui-page-active {
	display:flex;
	flex-direction:column;
}

[data-role='main'] {
	flex: 1 1 auto;
	overflow:auto;
	position:relative;
	z-index:1;
}

[data-role='header'],
[data-role='footer'] {
	height:var(--header-height);
	flex:none;
	border-width:0;
	position:relative;
	z-index:2;
	box-shadow:0 0 10px rgba(0,0,0,0.1);
}




.collapsed,
ul.nav {
	list-style-type:none;
	margin-top: 0;
	margin-bottom: 0;
	padding-left: 0;
}

[data-role='header'] h1.ui-title {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	padding:0;
	margin:0;
	line-height:var(--header-height);
	text-align:center;
}

[data-role='header'] .nav {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

.nav a {
	display:block;
	line-height:var(--header-height);
	padding:0 calc((1/3) * var(--header-height));
	color:inherit;
	text-decoration: none;
	font-weight:bold;
}


	/*flex*/

.flex-parent {
	display:flex;
}
.flex-child {
	flex:1 1 auto;
}
.flex-none {
	flex:none;
}
.flex-align-center {
	align-items:center;
}
.flex-justify-center {
	justify-content:center;
	/* text-align: center; */
	/* margin: auto; */
}
.flex-wrap {
	flex-wrap:wrap;
}
.flex-vertical {
	flex-direction:column;
}


	/*form*/

.form-control {
    margin: 0.5em 0;
}
.form-input,
.form-button {
	outline:0;
    font: inherit;
	-webkit-appearance:none;
}
.form-input {
    display: block;
    width: 100%;
    border: solid #FFCD00;
    border-width: 2px;
    border-radius: var(--border-radius);
    padding:0.4em 0.5em;
}

.form-button {
    background-color: #ddd;
    border-width: 0;
    display: block;
    width: 100%;
    padding: 0.2em 0.5em;
    margin: 0;
    border-radius: 0.2em;
}

.form-label {
    margin-bottom: 0 !important;
    font-size: 0.7em;
    color: var(--color-text);
    padding: 0.2rem 0.5rem;
}

.media-image{
	vertical-align: text-bottom;

}

.map {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}



.market-item {
	margin:0.5em 0;
}
.market-icon,
.market-name {
	padding: 0 1em;
}

.market-profile-top {
	display:flex;
  height: 40vh;
}
.market-profile-bottom {
	position:relative;
  height: 50%;
}
.market-image {
	width:100px;
	height:100px;
}
.market-details {
	width:calc(100% - 100px);
}
.market-details dl {
	display:flex;
	flex-wrap:wrap;
}
.market-details dt {
	width:6em;
}
.market-details dd {
	width:calc(100% - 6em);
	margin-left:0;
}

.noclick { pointer-events:none; }

#page-map [data-role='main'] {
	overflow:hidden;
}
#page-map .menu {
    position: absolute;
    bottom: 1em;
    left: 1em;
    width: calc(100% - 2em);
    height: 100px;
    background-color: white;
    padding: 1em;
    pointer-events: none;
    transform: translateY(2em);
    opacity: 0;
    transition: all 0.3s;
}
#page-map .menu.active {
	opacity:1;
    transform: translateY(0);
    pointer-events:initial;
}

.ui-mobile label {
    margin: auto;
}
.search-box {
	padding:0.2em 0.5em;
	height:var(--header-height);
	position:relative;
	z-index:2;
	margin: 1.2em auto -1.2em;
	/* background-color:white; */
}
.hotdog {
    position: relative;
    font-family: Quicksand, Verdana, Sans Serif;
    width: 60%;
    margin: 1em auto;
    margin-bottom: 2em;
    border-radius: var(--border-radius);
    background-image: url('../img/search_icon.png');
    background-size: 25px auto;
    background-repeat: no-repeat;
    background-position: 6px 1px;
    padding-left: 35px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.4);
    margin-top: 15px;
    height: 30px;
    text-decoration: none;
    width: 260px;
}
.hotdog>input {
    width: 100%;
    display: block;
    border-width: 0;
    align-self: center;
    background-color: transparent;
    padding: 0.3em;
    font: inherit;
    line-height: inherit;
    outline:0;
    -webkit-appearance:none;
}


.icon {
	width:1.5em;
	height:1.5em;
	vertical-align: text-bottom;
	pointer-events:none;
}

.filter-box {
    position: absolute;
    z-index: 1;
    background-color: white;
    width: 100%;
    height: var(--header-height);
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: all 0.3s;
}
.filter-box.active {
    transform: translateY(100%);
}

.filter-list {
    display: flex;
    width: 100%;
    overflow: auto;
    align-items: center;
    height: 100%;
}
[data-filter] {
    font-weight: bold;
    padding: 0 0.3em;
    white-space: nowrap;
}





/*https://codepen.io/bronkula/pen/bvrgxQ*/
/* Create the look of a generic thumbnail */
.thumbnail {
  position:relative;
  display:inline-block;
  width:100%;
  height:9em;
  margin-left: auto;
  margin-right: auto;
  border-radius:0.6em;
  border:0.25em solid white;
  vertical-align:middle;
  box-shadow:0 0.15em 0.35em 0.1em rgba(0,0,0,0.2);
  margin:0.5em;
  background-position:center;
  background-size:cover;
}



/* This will hide the file input */
.imagepicker input {
  display:none;
}
.imagepicker {
  cursor:pointer;
  color:white;
  background-color:rgba(0,0,0,0.3);
}
/* This will add the floating plus symbol to the imagepicker */
.imagepicker:before {
  content:'+';
  position:absolute;
  font-size:3em;
  vertical-align:middle;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}
/* This will hide the plus symbol behind the background of the imagepicker if the class "picked" is added to the element */
.imagepicker.picked:before {
  z-index:-1;
}


