/*
 * MAP WRAPPER
 */
.tpg-shortcode-locations {
  position: relative;
}

/*
 * LEAFLET MAP WRAPPER
 */
.tpg-shortcode-locations .leaflet-container {
  font: .75rem/1.2em arial; /*reset leaflet sizing*/
}

.tpg-shortcode-locations .leaflet-touch .leaflet-bar a {
  text-decoration: none;
}

/*
 * LEAFLET POPUP CONTENT
 */
.tpg-shortcode-locations .leaflet-popup {
  max-width: 250px;
}

.tpg-shortcode-locations .leaflet-popup-content {
  margin: 0;
  padding: 1rem;
}

.tpg-shortcode-locations .leaflet-popup-content h2 {
  font-size: 1rem;
  line-height: 1.2em;
  margin: 0 0 .5em 0;
  font-weight: bold;
}

.tpg-shortcode-locations .leaflet-popup-content p.popup-excerpt {
  margin: 0 0 .5em 0;
}

.tpg-shortcode-locations .leaflet-popup-content p:last-child {
  margin: 0 0 0 0;
  font-weight: bold;
}

.tpg-shortcode-locations .leaflet-container a.leaflet-popup-close-button {
  margin: 1px 1px 0 0;
  border: 1px solid black;
  border-radius: 100%;
  padding: 0;
  width: 1rem;
  height: 1rem;
  color: white;
  background: black;
  font: 1rem/1em Arial, "sans-serif";
  text-transform: uppercase;
}

.tpg-shortcode-locations .leaflet-container a.leaflet-popup-close-button:focus {
  outline: auto !important;
  outline-color: var(--outline-color) !important;
}

/* end: leaflet popup content */

/*
 * MAP FILTER
 */
.tpg-shortcode-locations .filter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}

.tpg-shortcode-locations .filter form {
  position: relative;
  background: #D9F3FD;
  height: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
	display:none;
}

/*
 * CECKBOXES FILTER
 */
.tpg-shortcode-locations .filter .filter-checkbox {
  padding: 1rem;
}

.tpg-shortcode-locations .filter .checkbox-input {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
  margin-bottom: .5em;
}

.tpg-shortcode-locations .filter .checkbox-input:last-child {
  margin-bottom: 0;
}

.tpg-shortcode-locations .filter .checkbox-input input {
  position: absolute !important;
  left: 0px !important;
  bottom: 0px !important;
  width: 20px;
  height: 22px;
}

.tpg-shortcode-locations .filter .checkbox-input input:focus:before {
  content: "";
  display: block;
  position: absolute;
  width: 83%;
  height: 77%;
  left: 2px;
  top: 2px;
  outline: 2px solid #ff0000 !important;
}

.tpg-shortcode-locations .filter .checkbox-input input[aria-checked="true"] {
  appearance: none;
  background: #2d75ff;
  border-radius: 3px;
}

.tpg-shortcode-locations .filter .checkbox-input input[aria-checked="true"]:after {
  content: '\2713';
  display: inline-block;
  color: #fff;
  position: absolute;
  left: 5px;
  top: 3px;
}

.tpg-shortcode-locations .filter .checkbox-input label {
  position: relative;
  cursor: pointer;
  display: block;
  float: none;
  width: 100%;
  font-size: .875rem;
  line-height: 1em;
  padding: 3px 10px 3px 25px;
}

/* end: checkboxes filters */


/*
 * FILTER SEARCH
 */
.tpg-shortcode-locations .filter .filter-search {
  position: relative;
}

.tpg-shortcode-locations .filter .filter-search input {
  background: transparent;
  border: none;
  border-top: 1px solid #C1DBE5;
  padding: 1rem;
  margin-bottom: 0;
  width: 100%;
  font: 1rem/1em Arial, "Sans-serif";
}

/* Edge */
.tpg-shortcode-locations .filter .filter-search ::-webkit-input-placeholder {
  color: rgba(0, 0, 0, .5);
}

/* Internet Explorer 10-11 */
.tpg-shortcode-locations .filter .filter-search :-ms-input-placeholder {
  color: rgba(0, 0, 0, .5);
}

.tpg-shortcode-locations .filter .filter-search ::placeholder {
  color: rgba(0, 0, 0, .5);
}

.tpg-shortcode-locations .filter .filter-search svg {
  position: absolute;
  right: 24px;
  top: 50%;
  margin-top: -8px;
  height: 16px;
}

.tpg-shortcode-locations .filter .filter-search .icon-close {
  display: none;
}

/*
 * FILTER SEARCH RESULTS
 */
.tpg-shortcode-locations .filter .filter-search .search-suggestions {
  position: absolute;
  right: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  margin: 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .15);
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li {
  margin: 0;
  padding: 0;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li a {
  margin: 2px;
  padding: 1em;
  display: block;
  font-size: .875rem;
  line-height: 1.2em;
  border-bottom: 1px solid #c1dbe5;
  text-decoration: none;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li:last-child a {
  border-bottom: none;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li a:hover {
  background: #c1dbe5;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li a h3,
.tpg-shortcode-locations .filter .filter-search .search-suggestions li a p {
  margin: 0;
  text-decoration: none !important;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li a h3 {
  color: #000;
  font-size: 1em;
  line-height: 1.2em;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions li a p {
  color: rgba(0, 0, 0, .7);
  font-size: 1em;
  line-height: 1.2em;
}


/*
 * FILTER SEARCH LOADING
 */
.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading {
  padding: 10px;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading div {
  background-image: linear-gradient(to right, #d0d0d0 0%, #bbbbbb 50%, #d0d0d0 100%);
  background-size: 200% auto;
  background-position: 0 100%;
  animation: gradient 1.5s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

@keyframes gradient {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading div:first-child {
  width: 100%;
  height: 15px;
  margin-bottom: 10px;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading div:nth-child(2) {
  width: 80%;
  margin-bottom: 5px;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading div:last-child {
  width: 75%;
}

.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading div:nth-child(2),
.tpg-shortcode-locations .filter .filter-search .search-suggestions .loading div:last-child {
  height: 10px;
}


.tpg-shortcode-locations .filter .filter-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .4);
  display: none;
  justify-content: center;
  align-items: center;
}

.tpg-loading {
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}



.tpg-shortcode-locations .leaflet-touch .leaflet-bar a:focus,
.tpg-shortcode-locations .geocoder-control-input:focus {
  outline: 2px solid #ff0000 !important;
}

.tpg-shortcode-locations .filter .checkbox-input input:focus {
  outline: none !important;
}


/** Show/hide button for filter **/
.tpg-shortcode-locations .filter .show-filter,
.tpg-shortcode-locations .filter .hide-filter {
  text-decoration: underline;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  background: none;
  border: none;
  box-shadow: none;
  background: #d9f3fd;
  color: #000;
  border-radius: 0;
  padding: .5em 1em;
  min-width: auto;
  white-space: nowrap;
}

.tpg-shortcode-locations .filter .show-filter:hover,
.tpg-shortcode-locations .filter .hide-filter:hover {
  text-decoration: underline;
}

.tpg-shortcode-locations .filter .show-filter {
  xdisplay: none;
}
.tpg-shortcode-locations .filter .hide-filter {
  display: none;
}
/*my position */

.tpg-shortcode-locations .filter .show-me {
	display: inline-block;
    width: 125px;
    box-shadow: none;
    border-radius: 0;
    background-color: #e6edf1;
	position: relative;
    top: -6px;
    left: -1px;
}


.tpg-shortcode-locations .filter .show-filter,
.tpg-shortcode-locations .filter .hide-filter,
.tpg-shortcode-locations .filter .show-me {
	text-transform:uppercase;
	font-size:.618rem!important;
}


.tpg-shortcode-locations .my-pos-icon {
	display:block;
	width:20px;
	height:20px;
}
.tpg-shortcode-locations .my-pos-icon:after {
	content:'';
	display:inline-block;
	width:100%;
	height:100%;
	margin-left:-2px;
	margin-top:-2px;
	background-color:#155587;
	border-radius:100%;
	border:2px solid white;
	animation:core-anim-my-pos-icon 1s ease infinite;
}
@keyframes core-anim-my-pos-icon{
	0%{
		transform:scale(1);
	}
	50%{
		transform:scale(1.309);
	}
	100%{
		transform:scale(1);
	}
}

.tpg-shortcode-locations .geocoder-control-suggestions ul {margin-left:0!important;}
.tpg-shortcode-locations .geocoder-control-suggestions li {margin-left:0!important;}