/**
 * Show relations on the map (Google Maps)
 *
 * There is a bit of javascript which scrolls to the Google Maps container when
 * a result is clicked. This to make sure it works logically on mobile devices
 */

#googlemapscontainer #googlemaps button {
    border-radius: 0 !important;
    box-shadow: none !important;
}

#googlemapscontainer img {
    border-radius: 0 !important;
}

.google-infowindow {
    width: 100%;
    max-width: 300px;
    line-height: 1.4;
}

.google-infowindow h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.google-infowindow dl,
.google-infowindow dd {
    display: block;
    margin: 0;
}

.google-infowindow dt {
    margin-top: .5rem;
    font-weight: bold;
}

/**
 * Information container
 */

#informationcontainer {
    width: 100% !important;
    margin: 2rem 0 1em;
}

#informationcontainer .pbuic-tablinks ul {
    height: auto;
}

#informationcontainer #tablinks_informationwindow_search {
    display: block;
}

#informationcontainer #tablinks_informationwindow_search.tl-item-is-active {
    display: none;
}

#searchform fieldset {
    margin: 0 !important;
}

#informationcontainer fieldset#obj_0 > legend {
    margin-top: 0;
}

#searchform input[type='text'] {
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    line-height: 30px;
}

#searchform button {
    margin-right: 0;
}

#search_result_box {
    width: 100% !important;
    height: auto !important;
}

#searchbox,
.searchresult {
    width: 100% !important;
}

#googlemapscontainer .proFormList {
	overflow: hidden;
}

/**
 * Google maps
 */

#googlemaps {
    width: 100% !important;
}

@media (max-width: 600px) {
    #googlemaps {
        height: 350px !important;
    }
}

/**
 * Item lists
 */

table.searchresult {
	margin: 1em 0;
}

table.searchresult thead tr th {
    text-align: left;
	border: 1px solid #dddddd;
}

table.searchresult thead tr th.distance {
	text-align: right;
}

table.searchresult tbody tr.clickable td {
	border: 1px solid #dddddd;
}

/**
 * Item lists - row hover
 */

table.searchresult tbody tr.clickable:hover td {
    cursor: pointer;
    background-color: #f2f2f2;
}

table.searchresult tbody tr td.distance {
	text-align: right;
}

table.searchoptions thead tr th {
	border: 1px solid #dddddd;
}

table.searchoptions tbody tr.active td {
	background-color: #f2f2f2;
}

table.searchoptions tbody tr.clickable td {
	border: 1px solid #dddddd;
}

table.searchoptions tbody tr.clickable:hover td {
	background-color: #f2f2f2;
}

table.routedescription tbody tr.fromaddress th {
	padding: 5px 2px;
}

table.routedescription tbody tr.fromaddress th.print {
	text-align: center;
}

table.routedescription tbody tr.clickable td {
	border-top: 1px solid #dddddd;
}

table.routedescription tbody tr.clickable td {
	padding: 5px 2px;
}

table.routedescription tbody tr.clickable:hover td {
	background-color: #f2f2f2;
}

table.routedescription tbody tr td.distance {
	text-align: right;
}

table.routedescription tbody tr.last {
	border-bottom: 1px solid #dddddd;
}

table.routedescription tbody tr.toaddress td {
	padding: 5px 2px;
}
