/* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
#map {
    height: 100%;
}

/* Optional: Makes the sample page fill the window. */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.LabelText {
    background-color: #00a1e1;
    padding: 2px 4px;
    color: white;
}

#signal {
    color: #008800;
    position: absolute;
    float: right;
    display: block;
    width: auto;
    height: 20px;
    top: 5px;
    right: 5px;
    background: white;
    border-radius: 2px;
    -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.25);
    padding: 5px;
    font-family: sans-serif;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

#VesselExtraDetail {
    font-size: 0.875rem;
    position: absolute;
    z-index: 999;
    float: right;
    display: none;
    width: auto;
    bottom: 24px;
    right: 60px;
    background: white;
    border-radius: 2px;
    -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.25);
    padding: 8px;
    font-family: sans-serif;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#MarkerSearchBar {
    font-size: 0.875rem;
    position: absolute;
    z-index: 999;
    top: 12px;
    background: transparent;
    font-family: sans-serif;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    width: 70%;
    max-width: 480px;
    left: 50%;
    margin-left: -215px;
    display: flex;
    flex-direction: column;
    height: 36px;
    box-sizing: border-box;
}

#MarkerSearchBar div:first-child {
    display: flex;
}

#VesselExtraDetail > .item {
    margin-bottom: 0.25rem;
}

#VesselExtraDetail > .item > .title {
    display: inline-block;
    font-size: 0.9375rem;
    margin-right: 6px;
    width: 6.25rem;
    text-align: right;
}

#VesselExtraDetail > .item > .value {
    display: inline-block;
    font-weight: bold;
    width: 10rem;
}

.layoutCenter {
  display: flex;
  align-items: center;
  justify-content: center;
}

#MarkerSearchTextBar {
    display: flex;
    flex: 1;
    padding: 0.5rem;
    border-color: #0071DC;
    border: #0071DC solid 2px;
    border-radius: 4px;
    margin-right: -4px;
    box-sizing: border-box;
}

#MarkerSearchTextBar:focus {
    outline: none;
}

#MarkerSearchButton {
    display: flex;
    width: 37px;
    padding: 0.5rem;
    background-color: #0071DC;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

#MarkerSearchButton > img {
    width: 1rem;
    height: auto;
}

#MarkerSearchBar > div:nth-child(2) {
    display: block;
    width: 100%;
    max-height: 250px;
}

#MarkerSearchResultArea {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    border-radius: 2px;
    background-color: white;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.25);
    height: 100%;
}

#MarkerSearchResultTable {
    display: flex;
    width: 100%;
}

#SearchResultsList {
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    box-sizing: border-box;
    padding: 8px 8px;
    scrollbar-width: thin;
}

.SearchResultListItem {
    display: flex;
    justify-content: space-between;
    padding: 8px 0px;
    cursor: pointer;
}

.SearchResultListItem.selected {
    background-color: #E6F7FF;
}

.SearchResultListItem.disabled {
    cursor: auto;
    color: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.SearchResultListItem.disabled .details .icon > img {
 fill: rgba(0, 0, 0, 0.25);
}

.SearchResultListItem .details,
.SearchResultListItem .details .icon,
.SearchResultListItem .actions,
.SearchResultListItem .actions > .locateAction {
    display: flex;
    justify-content: center;
    align-items: center;
}

.SearchResultListItem .details {
    flex: 1;
    justify-content: start;
}

.SearchResultListItem .details .info {
    display: flex;
    flex-direction: column;
    margin-left: 4px;
}

.SearchResultListItem .details .info span {
    display: flex;
    text-overflow: ellipsis;
}

.SearchResultListItem .details .icon {
    width: 25px;
    height: 25px;
}

.SearchResultListItem .details .icon > img {
    width: 25px;
    height: 25px;
}

.SearchResultListItem .actions {
    flex: 1;
    justify-content: end;
}

.SearchResultListItem .actions .locateAction {
    cursor: pointer;
}

.SearchResultListItem .actions .locateAction span {
    display: flex;
    color: #0071DC;
}

.SearchResultListItem .actions .locateAction img {
    margin-left: 4px;
    width: 20px;
    height: 20px;
}

#SearchResultsTagsContainer {
    display: block;
}

#SearchResultsTags {
    display: flex;
    box-sizing: border-box;
    overflow-y: hidden;
    padding: 8px 8px;
    gap: 8px;
    scrollbar-width: thin;
}

.SearchResultsTagsListItem {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    border: #C1C1C1 solid 1px;
    cursor: pointer;
    height: 100%;
}

.SearchResultsTagsListItem > span {
    color: #C1C1C1;
    white-space: nowrap;
}

.SearchResultsTagsListItem.selected {
    border: #0071DC solid 1px;
}

.SearchResultsTagsListItem.selected > span {
    color: #0071DC;
}

#EmptyListMessage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.25);
    min-height: 7rem;
}

#MapToolbar {
    font-size: 0.875rem;
    position: absolute;
    z-index: 999;
    float: right;
    width: 30px;
    top: 85px;
    right: 10px;
    background: white;
    border-radius: 2px;
    border: 2px solid rgba(0,0,0,.2);
    padding: 0px;
    font-family: sans-serif;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

#MapTileLayerSelector {
    padding: 2px;
    cursor: pointer;
}

#MapTileLayerSelector > img{
    width: 25px;
    height: 25px;
}

#MapOptionArea {
    font-size: 0.875rem;
    position: absolute;
    z-index: 999;
    top: 85px;
    right: 55px;
    display: none;
    background: white;
    border-radius: 2px;
    -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.25);
    padding: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: sans-serif;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 250px;
}

#MapTileLayerOptionArea {
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch ;
    max-height: 300px;
    overflow-y: scroll;
}

.MapTileLayerOption  {
    padding:5px;
    background-color: #dbb25a;
    border-radius: 5px;
    margin-bottom: -0.75rem;
    cursor: pointer;
}

.MapTileLayerOption:last-child  {
    margin-bottom: 0rem;
}

.mapTileLayerMap {
    height: 100px;
}

.mapTileLayerOptionRadioArea {
    position: relative;
    top: -12px;
    z-index: 999;
    background-color: #dbb25a;
    width: fit-content;
    padding: 2px;
    border-radius: 5px;
    cursor: pointer;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    #MarkerSearchBar {
        margin-left: 0;
        left: 15%;
    }
}
