@charset "utf-8";

html, body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#site {
    display: flex;
    align-items: stretch;
    flex-flow: row nowrap;
    height: 100%;
    width: 100%;
}

#map {
    align-self: stretch;
    flex: 5;
}

.with-search #map {
    display: none;
} 

#search-open {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px;
    background-color: RGB(255, 255, 255);
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    padding: 8px;
    border-radius: 2px;
    box-shadow: 0px 1px 4px -1px rgba(0, 0, 0, 0.3);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 15px;
    transition: all ease .25s;
    width: 75px;
    height: 25px;
}

#search-open:hover {
    background-color: rgba(220, 220, 220);
}

.with-search #search-open {
    display: none;
}

#search {
    background-color: white;
    flex: 1 0 300px;
    max-width: 0;
    flex-flow: column nowrap;
    align-items: stretch;
    transition: all ease .25s;
    font-family: Roboto, Arial, Helvetica, sans-serif;
}

.with-search #search { max-width: unset; }

#search ol,
#search ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#search-close {
    width: 24px;
    height: 24px;
    padding: 10px; 
    cursor: pointer;
    transition: all ease .25s;
    color: RGB(100, 100, 100);
}

#search-close:hover {
    background-color: RGBA(73, 73, 59, 25%);
}

#search-close:active {
    background-color: RGBA(73, 73, 59, 50%);
    transform: scale(0.95);
}

.tab-list {
    display: flex;
    flex-flow: row nowrap;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.tab-list li {
    border: 1px solid gray;
    border-radius: 5px;
    margin: 5px;
    flex: 1;
    text-align: center;
    padding: .5em 0; 
    cursor: pointer;
    transition: all ease .1s;
}

.tab-list li:hover {
    background-color: RGBA(73, 73, 59, 25%);
}

.tab-list li:active {
    background-color: RGBA(73, 73, 59, 50%);
    transform: scale(0.95);
}

.tab-list li.selected {
    background-color: RGB(73, 73, 59);
    color: white;
    font-weight: bold;
    transform: scale(1);
    box-shadow: 0 0 5px RGBA(0, 0, 0, 50%);
}

.tab-page {
    margin: 5px; 
    height: calc(100% - 100px);
    flex-flow: column nowrap;
    align-items: stretch;
    display: none;
}

.tab-page.selected { display: flex; }

.icon-list {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    overflow-y: auto;
}

.icon-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 5px;
    cursor: pointer;
    transition: all ease .1s;
    border-radius: 5px;	
}

#icon-list-before li {
    width: unset;
    flex: 1;
}

.icon-list img {
    opacity: 0.25;
    transition: all ease .1s;
}

.icon-list .selected img {
    opacity: 1;
}

.icon-list li:hover {
    background-color: RGBA(0, 0, 0, 10%);
}

.icon-list li:active {
    background-color: RGBA(0, 0, 0, 50%);
}

#search-box {
    padding: 1em;
    border: 1px solid gray; 
    border-radius: 5px;
    margin-bottom: 5px;
}

#places-list {
    flex: 1;
    overflow-y: auto;
}

#places-list li {
    margin-top: 5px;
    display: none;
    align-items: center;
    height: 45px;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all ease .25s;	
}

#places-list li.selected {
    display: flex;
}

#places-list li .image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    margin-right: 5px;	
}

#places-list li:hover {
    background-color: RGBA(0, 0, 0, 10%);
}

#places-list li:active {
    background-color: RGBA(0, 0, 0, 50%);
}

@media (min-width: 700px) {
    .with-search #map {  display: block; }
    .with-search #search { max-width: 350px; }
}