/**
 * 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
 */

#informationcontainer,
#googlemaps {
    float: none !important;
    width: 100% !important;
}

/**
 * Information container
 */

#informationcontainer {
    margin-bottom: 1em;
}

#informationcontainer .pbuic-tablinks {
    margin: 0;
}

#tablinks_informationwindow_search {
    display: inline-block !important;
    background-color: #fafafa;
    padding-bottom: 2px;
    border-color: #d5d5d5;
}

#tablinks_informationwindow_search.tl-item-is-active {
    border-color: #d5d5d5 #d5d5d5 rgba(255,255,255,0);
}

#searchform fieldset {
    margin: 0;
}

#searchform select {
    background: #fff;
}

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

#searchform button {
    margin-right: 0;
}

#search_result_box {
    margin-top: 1em;
    width: 100% !important;
    height: auto !important;
}

#searchbox {
    padding: 1.5em;
    border: 1px solid #ddd;
    border-top: 0;
    background-color: #fafafa;
}

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

#googlemapscontainer .proFormList {
	overflow: hidden;
}

/*
	Itemlists - styles for itemlists
	--------------------------------------------------
*/
table.searchresult {
	margin: 1em 0;
    border-spacing: 0;
}

table.searchresult thead tr th {
    text-align: left;
    color: #fff;
    background: #b5910f;
}

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

table.searchresult tbody tr.clickable td {
    padding: .8em .5em;
	cursor: pointer; /* needed for IE7: gets even slower when changing cursor on hover states */
	border-bottom: 1px solid #ddd;
}

table.searchresult tbody tr.clickable:hover td,
table.searchresult tbody tr.clickable.active td {
    color: #3c2829;
	background-color: #f6f6f6;
}

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

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

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

table.searchoptions tbody tr.clickable td {
	cursor: pointer; /* needed for IE7: gets even slower when changing cursor on hover states */
	border: 1px solid #ddd;
}

/* row hover */
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.fromaddress th.print img:hover {
	cursor: pointer; /* needed for IE7: gets even slower when changing cursor on hover states */
}

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

table.routedescription tbody tr.clickable td {
	cursor: pointer; /* needed for IE7: gets even slower when changing cursor on hover states */
	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;
}

/**
 * Google maps
 */

#googlemaps {
    height: 350px !important;
}

@media screen and (min-width: 800px) {
    /**
     * Information container
     */

    #googlemapscontainer {
        overflow: hidden;
        width: 100%;
    }

    #informationcontainer {
        float: left !important;
        width: 35% !important;
        padding-right: 3%;
    }

    /**
     * Google maps
     */

    #googlemaps {
        float: right !important;
        width: 65% !important;
        height: 500px !important;
    }
}
