/*
**********************************************
***      created by Boris Schmakowski      ***
***          www.schmakowski.de            ***
**********************************************
*/

/*--- Übersicht ---*/

.noresult {
  font-size: 1em !important;
  font-weight: 400 !important;
  margin-top: 1em;
}
#locationlocator button.mymap-success {
	padding: 15px 0 !important;
}

#resulttop .resultbar .locationsactive {
  background: rgb(240, 240, 240) !important;
  box-shadow: none !important;
  border-top: none !important;
}

#locationlocator #locationsearch_div {
  background: rgb(255, 255, 255);
  width: 40%;
  padding: 25px !important;
  border-radius: 3px;
}

#locationlocator #locationsearch_div h2 {
  background: transparent;
  margin: 0;
  font-size: 22px !important;
  color: rgb(0, 0, 0) !important;
  height: auto;
  margin-bottom: 20px !important;
  letter-spacing: .3px;
  line-height: 1.2;
  white-space: pre-line;
}

#locationlocator #locationsearch_div #autosuggest.input-append {
	width: 100% !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	display: flex !important;
}
#locationlocator #locationsearch_div #autosuggest .twitter-typeahead {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0;
}
#locationlocator #locationsearch_div #autosuggest button {
	flex: 0 0 auto;
}
#locationlocator #locationsearch_div .tt-hint,
#locationlocator #locationsearch_div #searchinput {
	width: 100% !important;
	height: 50px !important;
	padding: 0 0 0 50px !important;
	box-sizing: border-box !important;
}
#autosuggest button.mymap {
	padding: 0 1.25em !important;
}

.leaflet-popup-content img {
	display: block !important;
	float: none !important;
	max-width: 100% !important;
	max-height: 80px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0 0.75em 0 !important;
}
#locationresult #resulttop address {
  width: 95%;
  font-style: normal;
}

#resulttop .row0, #resulttop .row1 {
  margin-bottom: 10px;
  background: rgb(248, 248, 248);
  border: 0;
  padding: 10px 10px 5px 10px !important;
  position: relative;
}

/* Telefonnummern in Ergebnisliste und Karten-Popup nicht verlinken */
#resulttop .locationaddress a,
.leaflet-popup .locationaddress a {
  pointer-events: none !important;
  color: inherit !important;
  text-decoration: none !important;
  cursor: inherit !important;
}

/* Ganze Ergebniskarte zur Detailansicht verlinken */
#resulttop .row0,
#resulttop .row1 {
  position: relative !important;
  cursor: pointer;
}

/* Zwischencontainer darf nicht Bezugspunkt des absoluten Links sein */
#resulttop .row0 .mytool,
#resulttop .row1 .mytool {
  position: static !important;
}

/* Titel-Link über die gesamte Ergebniskarte erweitern */
#resulttop .row0 .location-title a::after,
#resulttop .row1 .location-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* Marker bleibt separat klickbar */
#resulttop .row0 address > a:first-child,
#resulttop .row1 address > a:first-child {
  position: relative !important;
  z-index: 20 !important;
}

/* Info-Icon sichtbar, gehört aber zur großen Klickfläche */
#resulttop .row0 .detailsicon,
#resulttop .row1 .detailsicon {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: none;
}

/* Titel beim Hover über die Karte rot */
#resulttop .row0:hover .location-title,
#resulttop .row0:hover .location-title a,
#resulttop .row1:hover .location-title,
#resulttop .row1:hover .location-title a {
  color: #bb1823 !important;
}
/* Box beim Hover über die Karte grau dunkler */
#resulttop .row0:hover,
#resulttop .row1:hover {
  background: rgb(240, 240, 240) !important;
}

.location-title, .location-title a {
  margin: 0 0 10px 0 !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  line-height: 1.3em !important;
  text-decoration: none !important;
  color: rgb(33,33,33) !important;
  display: block !important;
}
#resulttop .location-title,
#resulttop .location-title a {
	color: rgb(33,33,33) !important;
}
span.locationaddress {
  font-size: 16px !important;
  color: rgb(33,33,33) !important;
  line-height: 1.3em !important;
  margin-bottom: 1em !important;
}

address span.label.label-important.distance span {
  color: #ffffff !important;
  font-size: 16px !important;
  padding: 0 8px !important;
}

span.detailsicon {
	display: inline-block !important;
	font-style: normal !important;
	font-variant: normal !important;
	text-rendering: auto !important;
	line-height: 1.3 !important;
	position: relative !important;
	padding-left: 5px !important;
	text-align: start;
	vertical-align: middle !important;
	top: -2px !important;
}
span.detailsicon::before {
	font-family: "Font Awesome 7 Pro" !important;
	font-weight: 300 !important;
    content: '\f05a' !important;
	font-size: 16px !important;
}
.leaflet-popup-content span.detailsicon {
	top: 0 !important;
}
.resultmymap.mymap.mymap-inverse, .mytool .mymap.mymap-inverse.resultmymap, .mytool .mymap.mymap-inverse.resultmymap:hover {
  display: inline-block !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: rgb(33,33,33) !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  cursor: pointer !important;
  border: none !important;
  line-height: 1em !important;
  width: auto !important;
  max-width: 100px !important;
  margin-left: 3px !important;
  padding: 4px !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}
.mytool span.routeicon, .mytool a.mymap.mymap-inverse.resultmymap.route {
  display: none !important;
}


/*--- Detailansicht ---*/

.expert-contactdata p {
	padding-bottom: 0.5em;
}

div.expert-logo	{
	margin: 0 0 1em 2em;
	float: right;
	width: 40%;
	max-width: 400px;
}
div.expert-logo img{
	display: block;
	width: 100%;
	height: auto;
}
@media (max-width: 900px) {
	div.expert-logo	{
		width: 30%;
		max-width: 300px;
	}
}
@media (max-width: 600px) {
	div.expert-logo	{
		width: 30%;
		max-width: 250px;
	}
}

div.expert-partner,
div.expert-street,
div.expert-phone,
div.expert-mail,
div.expert-mobil,
div.expert-fax,
div.expert-www,
div.expert-social,
div.expert-hours,
div.expert-description {
	display: flex;
	align-items: flex-start;
}
div.expert-partner::before,
div.expert-street::before,
div.expert-phone::before,
div.expert-mail::before,
div.expert-mobil::before,
div.expert-fax::before,
div.expert-www::before,
div.expert-social::before,
div.expert-hours::before,
div.expert-description::before {
	font-family: "Font Awesome 7 Pro";
	font-weight: 300;
	flex: 0 0 2.5em;
	text-align: center;
}
div.expert-partner::before 	{content: '\f007';}
div.expert-street p,
div.expert-city p {
	padding-bottom: 0;
}
div.expert-street::before 	{content: '\f2bb';}
div.expert-city,
div.expert-region {
	padding-left: 2.5em;
}
div.expert-phone::before 	{content: '\f095';}
div.expert-mail::before 	{content: '\f0e0';}
div.expert-mobil::before 	{content: '\f3cd';}
div.expert-fax::before 		{content: '\f1ac';}
div.expert-www::before 		{content: '\f0ac';}
div.expert-social 			{align-items: center;}
div.expert-social::before 	{content: '\23';}
div.expert-hours::before 	{content: '\f017';}
div.expert-description 		{
	align-items: flex-end;
	margin-bottom: 4vh;
}
div.expert-description p	{padding: 0;}
div.expert-description::before 	{content: '\e202';}

span.distance {
  display: none;
}

@media screen and (max-width: 767px) {
  #locationlocator .mymap-group, #locationlocator #locationsearch_div, #locationlocator .span1 {
    float: none;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  #locationresult, #map, .mmlmap {
    width: 100% !important;
    float: left;
  }
  #locationresult {
    margin-top: 2em !important;
  }
}