:root {
  --listing-color: #0288D1;
  --nonhighlight-color: #f47925;
  --building-color: #FF9800;
  --shop-color: #7B1FA2;
  --gavel-color: #A58B2F;
}

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

#results {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}


#listings {
    display: flex;
    flex-direction: column;
    flex-basis: 30%;
    order: 1;
    flex: 1;
    padding-right: 20px;
    height: calc(100vh - 50px);
    overflow-y: scroll;
}


.paging {
  display: inline-block;
  margin-left:50px;
}

#gmap-canvas img{max-width:none!important;background:none!important;font-size: inherit;font-weight:inherit;}

.details-icons {
  text-align: right;
}

.details-icons div {
  display: inline-block;
  margin-right: 10px;
}

.favorite-link {
  color: #0044b5;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  text-align: right;
}

@media (max-width: 800px) {
  #results {
    flex-direction: column !important;
  }

  #map { 
    flex: none !important;
    order: 1 !important;
  }

  #listings {
    flex: none !important;
    order: 2 !important;
  }

  .searchFormContainer { 
     flex-direction: column;
     width:1000px;max-width:100%;
align-items:end;padding:0 20px;
  }

  .searchFormContainerMain {
    display: none !important;
  }

  .searchFormMobileShow {
    flex-direction: column !important;
    display: flex !important;
    margin:10px;
  }
}

.searchFormMobileShow {
  display: none;
}

/*
   * Always set the map height explicitly to define the size of the div element
   * that contains the map.
   */
.favoriteMenu {display:inline-block;} 
#map {height: calc(100vh - 50px);
	display: flex;
    flex-direction: column;
    flex-basis: 100%;
    order: 2;
    flex: 2;
  overflow-y:hidden;}

#home-locationpin img {width:17px;}
.locationPinIcon {
   right: 27px;
    padding-top: 0;
    cursor: pointer;
    position: relative;
    /* margin-top: 9px; */
    height: auto !important;
    width: 18px;
    margin-left: inherit;
}

.listViewContainer {
  float: right;
  margin:0 10px;
  vertical-align:center;
}
.listViewContainer label  {text-transform:uppercase;letter-spacing:1px;padding:0 5px 5px;margin-top:0;color:#263238;font-size:16px;}

.listViewContainer input[type=checkbox]{ transform:scale(1.3, 1.3);}

.favoritesViewContainer {padding-left:10px;}

#printContainer { 
  float: right;
  display: none;
  text-align: right;
  margin:10px;
}

.locationInputContainer { 
  display: flex; 
  align-items: left; 
  width:100%;
}

#details-map .map-container { 
  max-width:100%;
  overflow:hidden;
  color:red;
  width:100%;
  height:100%;
}

.location-overview h4 {
  margin-top: 0;
}

#gmap-canvas { 
  height:100%; 
  width:100%;
  max-width:100%;
}

#details-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  padding: 30px;

}
#details-map {
  flex-basis: 50%;
  order: 1;
  flex: 1;
}
#details-location-overview {
  flex-basis: 50%;
  order: 2;
  flex: 1;
  margin-left: 20px;
  	padding:30px;
}

#details-location-overview ul {
    margin-bottom:20px;}

#details-location-overview ul li {
    font-size: .92em;
    line-height: 1.25em;
    margin-bottom: 4px;
}

#details #tabs {margin:20px;}
#details #tabs.ui-widget.ui-widget-content {border:none!important;}
#details #tabs .ui-widget-header {
  	border:none;
	border-bottom: 1px solid #dddddd;
    background: #fbfbfb;
    color: #333333;
    font-weight: bold;
}
#details #tabs .ui-state-active,#details #tabs .ui-widget-content .ui-state-active, #details #tabs .ui-widget-header .ui-state-active, #details #tabs a.ui-button:active, #details #tabs .ui-button:active, #details #tabs .ui-button.ui-state-active:hover {
    border: 1px solid #003eff;
    background: #000;
    font-weight: normal;
    color: #ffffff;
}


/*
   * Property styles in unhighlighted state.
   */
.mapitem {
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 50%;
  color: #263238;
  display: flex;
  font-size: 14px;
  gap: 15px;
  height: 30px;
  justify-content: center;
  padding: 4px;
  position: relative;
  position: relative;
  transition: all 0.3s ease-out;
  width: 30px;
}

.mapitem::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #FFFFFF;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 95%;
  transform: translate(-50%, 0);
  transition: all 0.3s ease-out;
  width: 0;
  z-index: 1;
}

.mapitem .icon {
  align-items: center;
  display: flex;
  justify-content: center;
  color: #FFFFFF;
}

.mapitem .icon svg {
  height: 20px;
  width: auto;
}

.mapitem .details {
  display: none;
  flex-direction: column;
  flex: 1;
  max-width:400px;height:auto;max-height:350px;
}

.mapitem .title,
.mapitem .service,
.mapitem .location {
  text-transform: none;
}

.mapitem .title {
  font-size: 14px;
  color: #015191;
  font-weight: 900;
  line-height: 15px;
}

.mapitem .details .service {text-transform:none;font-size:12px;}

.mapitem .address {
  color: #9E9E9E;
  font-size: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.mapitem .features {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mapitem .features>div {
  align-items: center;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  font-size: 10px;
  gap: 5px;
  padding: 5px;
}

/*
   * Property styles in highlighted state.
   */
.mapitem.highlight {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
  height: auto;
  padding: 8px 15px;
  width: auto;
}

.mapitem.highlight::after {
  border-top: 9px solid #FFFFFF;
}

.mapitem.highlight .details {
  display: flex;
}

.mapitem.highlight .icon svg {
  width: 50px;
  height: 50px;
}

.mapitem .bed {
  color: #FFA000;
}

.mapitem .bath {
  color: #03A9F4;
}

.mapitem .size {
  color: #388E3C;
}

.mapitem.highlight .icon {
  color: var(--listing-color);
}

.mapitem:not(.highlight)  {
  background-color: var(--nonhighlight-color);
}

.mapitem:not(.highlight)::after {
  border-top: 9px solid var(--nonhighlight-color);
}

/*
   * Property styles in unhighlighted state.
   */
.listitem {
    align-items: left;
    background-color: #FFFFFF;
    color: #263238;
    display: flex;
    font-size: inherit;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2;
    position: relative;
    transition: all 0.3s ease-out;
}

.listitem::after {

  border-bottom: 9px solid #ccc;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 95%;
  z-index: 1;
}

.listitem .icon {
	  color:#000;
    padding-top: 0px;
    display: flex;
    justify-content: center;
    width: 30px;
	margin-left:10px;
		height:fit-content;
	background:#f2f2f2;
	padding:0 5px 8px;
	border-radius:30px;
}


.listitem .icon svg {
  height: 30px;
  width: auto;
}

.listitem .details {
  flex-direction: column;
  flex: 1;
}

/* taxonomy */
ul.subtopics {
  border: none;
  margin: 10px 0 0 0;
}

ul.subtopics li {
  display: inline-block;
  margin: 0 8px 8px 0;
  font-size: 14px;
  padding: 0;
  font-weight: normal;
  border: none;
  background: #CBDEED;
  color: #000;
  border-radius: 20px;
}

ul.subtopics li a {
    display: block;
    padding: 5px 15px;
	line-height:1.3em;
    transition: all .2s ease-out;
}


ul.subtopics li:hover {
  background: #0c5192;
}

ul.subtopics li:hover a {
  /*text-decoration: underline; color: #0c5192;*/
  color: #fff;
}

ul.subtopics li.alt-pill {
  background: #efefef
    /*#FFB351*/
  ;
  padding: 9px 20px;
  transition: all .3s ease-out;
}

ul.subtopics li.alt-pill:hover {
  /*background: #0c5192; color: #fff;*/
}

#re-search {background-color:#ffffffc9!important;color:#0044b5;margin-top:10px;}

.listitem .address,
.listitem .listPhone,
.listitem .listWeb  {
  margin: 0;
  padding: 5px 0 0 0;
  font-weight: bold;
  font-size: 14px;
  line-height: 15px;
}

.listitem .features {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listitem .features>div {
  align-items: center;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  gap: 5px;
  padding: 5px;
}

.listitem .title {
    font-size: 19px;
    color: #0044b5;
    text-transform: none;
    font-weight: 900;
    line-height: 21px;
    cursor: pointer;
}

.listitem .service {
    font-size: 15px;
    color: #000;
   text-transform: none; 
    font-weight: 700;
    line-height: 19px;
    font-weight: 400;
}


.listitem .bed {
  color: #FFA000;
}

.listitem .bath {
  color: #03A9F4;
}

.listitem .size {
  color: #388E3C;
}

.listitem .icon {
  color: var(--listing-color);
}

.ui-autocomplete-loading {
  background: white url("/wp-content/plugins/map-211ndp/public/images/ui-anim_basic_16x16.gif") right center no-repeat;
}

.submitFieldContainer.fieldContainer {
	flex-basis:content;}

.searchFormContainer { 
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

.searchFormContainer .fieldContainer {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: left;
  margin: 10px;
  width: 100%
}

.searchFormContainer label {
  display: block;
  margin: 5px 18px;
    color: #21296B;
    font-family: 'palanquin dark', sans-serif;
    font-size: 1.1rem;

}

.searchFormContainer #home-search-error.error, .searchFormContainer #home-location-error.error, .searchFormContainer #mainside-search-error.error, .searchFormContainer #mainside-location-error.error  {color:red;font-size:15px;font-family: 'palanquin', sans-serif;text-transform:uppercase; font-weight:400;letter-spacing:.5px;}



/*.searchFormContainer .error:before {content:'* ';
}*/


.searchFormContainer input[type="submit"] {
    background-color: var(--e-global-color-7d33c40)!important;
    color: #000!important;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.searchFormContainer input[type="submit"]:hover {background-color:var(--e-global-color-e663275)!important;}

.searchFormContainer input[type="text"], .searchFormContainer input:not([type="button"]):not([type="submit"]) {
	background-color:#F5F5F5;
}


.submitFieldContainer.fieldContainer {
	flex-basis:content;}

#mainside-searchForm .searchFormContainer {
  margin: 10px;
  flex-direction: column;
}
#sidebar-searchForm .searchFormContainer {
    margin: 10px;
    flex-direction: column;
}

/************ Modal Content on Map ***********/
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}
/************ Modal Content ***********/
.modal-content .fieldContainer input[type=text] {max-width:300px; margin:8px;2px;}
.modal-content .fieldContainer {margin:10px;}
.modal-content .locationFieldContainer .locationPinIcon {
    right: 27px;
    top: 10px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
    height: 34px !important;
    width: 22px;
	margin-left:-18px;
}


.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.favorite {
  border-bottom:#000 1px solid;
}

#widget-code {
  width: 100%;  
}