/* Basic resets and font styling */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #fff;
}

/* Map container (merged rules) */
#map {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  margin-right: 0;
  transition: width 0.3s ease, margin-right 0.3s ease;
}

/* Custom marker label styling */
.marker-label {
  position: absolute;
  transform: translate(-50%, 0);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #666;
  text-shadow: 1px 1px 1px white, -1px -1px 1px white;
  pointer-events: none;
  white-space: nowrap;
}

/* Floating info tile styling */
#infoTile {
  position: fixed;
  top: 10px;
  width: 600px;
  z-index: 1000000;
}
@media only screen and (max-width: 600px) {
  #infoTile {
    width: 100%;
  }
}
#infoTile span.inner-tile {
  width: 96%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Common condo image styles */
.condo-image {
  background-size: cover;
  background-position: center;
  background-color: #BFDAF8;
  border-radius: 10px 10px 0 0;
  position: relative;
}
#infoTile .condo-image {
  padding: 100px 10px 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.search-result-item .condo-image {
  width: 100%;
  padding: 70px 10px 10px;
}

/* Condo image overlay */
.condo-image-overlay {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 75%;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}
#infoTile .condo-image strong {
  position: relative;
}

/* Stats and available units */
#infoTile .stats a,
.available-units {
  text-align: center;
  border-radius: 50px;
  padding: 10px 18px;
  border: 1px solid #006AE2;
  font-size: 13px;
  background: #fff;
  color: #006AE2;
  float: right;
  font-weight: 400;
  text-decoration: none;
}

/* Close button */
#infoTile .close-btn {
  display: block;
  margin: 10px;
  width: 35px;
  height: 35px;
  float: right;
  cursor: pointer;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  background-image: url('/close.svg');
  background-position: center;
  background-size: 25px;
  background-repeat: no-repeat;
  position: relative;
  z-index: 2;
}

/* Cluster marker overrides */
.gmnoprint > div,
.gm-control-active,
.gm-svpc {
  border-radius: 50px !important;
}

/* Floating Search Button */
#floatingSearchButton {
  position: fixed;
  top: 10px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: white url('/search-icon.svg') no-repeat center;
  background-size: 24px 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
}
#floatingSearchButton:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#backToTop{
    position: absolute;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: url('/top.svg') center center no-repeat white;
        cursor: pointer;
        z-index: 100;
        border-radius: 50px;
        display: none;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
   }
    #backToTop:hover{
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

/* Search Panel sliding in from the right */

#searchPanel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width:100%;
  max-width: 430px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  overflow-y: auto;
}
#searchPanel.open {
  transform: translateX(0);
}
#searchPanel h2 {
  margin: 10px 20px 13px 0;
  font-size: 20px;
  text-align: left;
  font-weight: bold;
  color: #ccc;
}
.search-bg {
margin-left:15px;
background:#fff;

}
#searchPanelHeader,.panel-header{
background:#006AE2;
height:70px;
border-radius:0 0 0 10px;
position:sticky;
top:0;
left:0;
z-index:1001;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#searchPanelHeader span{
color: #fff;
    font-size: 24px;
    letter-spacing: 1px;
    display: block;
    padding: 23px 40px 0;
}
@media only screen and (max-width: 500px) {
.search-bg {
width:100%;
margin:0;
}
#searchPanelHeader,.panel-header{
border-radius:0 0 10px 10px;

}
#searchPanelHeader span{
padding:25px 0 0 70px;
    text-align: left;

}
}

/*Search*/


/*Sort Options */
.sort-panel{
    margin-top:10px
}
.sort-label, .price-filter-label {
text-transform: uppercase;
    font-size: 10px;
    padding: 0 0 5px 20px;
    font-weight: 300;
    letter-spacing: 1px;
    }
.sort-option,.sort-order  {
display:block;
padding:10px 20px;
border:1px solid #eee;
float:left;
color:#333;
transition:all .5s ease-in-out;
height:40px;
}
.sort-option:nth-child(2){
    border-radius:15px 0 0 15px;
}
.sort-option.active,.sort-order.active {
border-color:#006AE2;
background-color:#E0EDFC
}
.sort-order {
padding:0;
width:40px;
height:40px;
background-image:url('/up.svg');
background-position:center;
background-size:80% 80%;
background-repeat:no-repeat;
transition:transform .5s ease-in-out;
border-radius:0 15px 15px 0;
}
.sort-order.active{
background-image:url('/down.svg');
}


.search-container {
padding:10px;
box-shadow:0 0 10px rgba(0,0,0,.1)
}
/* Search Field */
.search-field-container {
  position: relative;
}
.search-field {
  width: 100%;
  margin-bottom: 10px;
  padding: 20px;
  font-size: 16px;
  box-sizing: border-box;
  border: 1px solid #eee;
  border-radius: 100px;
  position: relative;
}
.search-field:focus {
  outline: none !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.search-field::placeholder {
  color: #ccc;
  font-style: italic;
}
.search-field-icon, .search-clear-icon {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 25px;
  height: 25px;
  pointer-events: none;
}
.price-filter-clear {
cursor: pointer;
    display: inline;
    position: absolute;
    right: -45px;
    top: 40px;
    opacity:.7;
}
   .search-clear-icon,.dropdown-clear,.search-clear-icon {
  opacity:.7;
}
  .search-field-icon:hover, .dropdown-clear:hover,.search-clear-icon:hover, .price-filter-clear:hover {
  opacity:1;
}
.search-clear-icon{
right:52px;
pointer-events: auto;
cursor:pointer;
}
/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.dropdown-selected {
  padding: 20px;
  background: #fff;
  border-radius: 100px;
  border: 1px solid #eee;
  position: relative;
}
.dropdown-selected.active {
  border-radius: 10px 10px 0 0;
  border-bottom: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.dropdown-selected .dropdown-arrow, .dropdown-clear  {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  pointer-events: none;
  }

.dropdown-clear {
right:50px;
pointer-events:auto;
cursor:pointer;
}
.dropdown-selected .dropdown-text {
  display: inline-block;
}
.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  color: #333;
  font-size: 16px;
  letter-spacing: 1px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.dropdown-option {
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
  font-weight: 400;
}
.dropdown-option:last-child {
  border-bottom: none;
}
.dropdown-option:hover {
  color: #006AE2;
  background-color: #E0EDFC;
}

.dropdown-option.selected {
  background-color: #E0EDFC;
  font-weight: 500;
}

.search-dropdown-count {
border-radius: 100px;
    width: 30px;
    height: 30px;
    color: #fff;
    text-align: center;
    line-height: 24px;
    background: #006AE2;
    border: 3px solid #E0EDFC;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
}

/* Search Results */
.search-results {
  margin: 10px;
  padding-bottom:30px
}
.search-results p {
    padding: 5px 0 5px 20px;
    text-transform: uppercase;
    color: #666;
    font-size: 10px;
    margin: 0;
    font-weight: 400;
    letter-spacing: .5px;
}
.search-result-item {
  border: 3px solid #fff;
  box-sizing: border-box;
  margin-bottom: 10px;
  border-radius: 13px;
  position: relative;
}
.search-result-item.active {
  border-color: #FDAD01;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.search-result-item .condo-image strong {
  display: block;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: #fff;
  position: relative;
}
.result-links {
  margin-top: 5px;
}
.result-links a {
  margin-right: 10px;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}
.result-links a:hover {
  text-decoration: underline;
}

/* Attribution */
.attribution {
  font-size: 10px;
  color: #fff;
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: 0.7;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
.attribution:hover {
  opacity: 1;
  cursor: default;
}
.attribution a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

/* See on map */
.see-on-map {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-image: url('/location.svg');
  background-position: center;
  background-color: rgba(255, 255, 255, 1);
  background-repeat: no-repeat;
  border-radius: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 1s ease-in-out;
}
.see-on-map:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Map logo */
.map-logo {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-image: url('/logo-round.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10000;
  transition:all .5s ease-in-out;
}

@media only screen and (max-width: 500px) {
.map-logo {
left:auto;
right:370px;
}
}
@media only screen and (max-width: 430px) {
.map-logo {
left:10px;
right:auto;
}
}
/*Placeholders*/
.placeholder,
.no-results {
text-align:center;
padding:50px 0 0 70px;
}
.price-filter{
max-width:300px;
position:relative;
margin-top:10px
}
.price-options{
text-align:center;
padding-top:5px;
}
.price-option {
display:inline-block;
width:40px;
height:40px;
background-image:url('/slider.svg');
background-repeat:no-repeat;
background-position:center;
}
.price-option .bar {
background: #eee;
    display: inline-block;
    width: 50px;
    height: 7px;
    margin: 19px 0 0 28px;
}
.price-option .bar.active {
background: #E0EDFC;
}
.price-option-label{
display:inline-block;
color:#666;
width:40px;
}
.price-option-label:nth-child(1){
float:left;
}
.price-option-label:nth-child(2){
margin:0 auto;
}
.price-option-label:last-child{
float:right;
}
.price-option.active{
background-image:url('/slider-active.svg');
}
.price-option.active-range{
background-image:url('/slider-active-range.svg');
}
.slider-labels,
.slider {
display:flex;
justify-content: space-between;
}
.global-filter-clear{
display:none; 
position:fixed; 
top:70px; 
right:20px;
width:50px;
height:50px;
border-radius:50px;
background:url('/clear-filter.svg') white center center no-repeat;
cursor:pointer;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.global-filter-clear:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  
}
.global-filter-clear div{
width:15px;
height:15px;
background:#F98686;
border-radius:20px;
position:absolute;
top:0;
right:0;
border:2px solid #fff;
}
.filter-icon {
opacity:.5;
    pointer-events: none;
    display: inline;
    opacity: .5;
    position: relative;
    top: 4px;
    width: 20px;
}
/* Condo Units Panel Styles */
.condo-units-container{
    height:100%;
    background:white;
    margin-left:10px;
    min-width:390px;
}
.condo-units-container>.description{
    line-height: 1.6em;
    position: absolute;
    padding: 40px;
    top: 300px;
    text-align: justify;
}

@media only screen and (max-width: 430px) {
    .condo-units-container{
        margin-left:0
    }
}
#condo-units {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 430px;
  height: 100%;
  transition: right 0.3s ease;
  z-index: 1000;
  display: none;
}

.loading {
  width:160px;
  height:160px;
  background:url('/loading.svg') white no-repeat center;
  background-size:contain;
  position:absolute;
  top:170px;
  right:120px;
  opacity:.2
}
@media only screen and (min-width: 1450px) {
  #condo-units{
    max-width:850px;
  }
  .loading{
    right:350px;
  }
}
#closeCondoUnits{
    float:right;
    float: right;
    padding: 10px;
    margin: 10px;
    border-radius: 50px;
    box-shadow: 0px 0 10px rgba(0,0,0,0.1);
    cursor:pointer;
}
#closeCondoUnits:hover{
    box-shadow: 0px 0 10px rgba(0,0,0,0.2);
}
#condo-units.open {
  right: 0;
}


#condo-units iframe {
    width: 100%;
    height: calc(100% - 160px);
    border: none;
    top: 90px;
    z-index:2;
    position:relative;
}



/* Styles for the filter inside the condo units panel */
#container_filter {
font-family:sans-serif;
box-shadow:0 5px 5px rgba(0,0,0,10%);
padding:10px;
background:#fff;
position:absolute;
width:calc(100% - 10px);
position:absolute;
z-index:3;
min-width:390px;
}

.subcontainer_filter {
float:left;
padding:10px 12px 5px 0;
}
.subcontainer_filter:nth-child(3){
    padding-right:0;
}
.bd_filter,
.type_toggle {
display:block;
float:left;
width:40px;
height:40px;
line-height:40px;
text-align:center;
text-decoration:none;
color:#333;
border:1px solid #eee;
font-size:14px;
font-weight:500
}

.type_toggle:nth-child(2){
    border-radius:15px 0 0 15px;
}
.bd_filter:nth-child(3){
    border-radius:15px 0 0 15px;
}
.bd_filter:last-child,
.type_toggle:last-child{
    border-radius:0 15px 15px 0;
}
.preview-text.type_toggle{
    border-radius:15px;
    width:75px;
    cursor:pointer;
}
.preview-text.type_toggle:hover{
    border-color:#666;
    color:#333;
}
.preview-slash {
    color:#aaa;
}
.icon{
display:block;
float:left;
margin-right:5px;
width:40px;
height:40px;
line-height:40px;
text-align:center;
border-radius:20px;
background-size:80% 80%;
background-repeat:no-repeat;
background-position: center center;
opacity:.6;
}

.bathicon {
background-image:url('/bath.svg');
}

.bedicon {
background-image:url('/bed.svg');

}

.icon.up, .icon.down:hover {
background-image:url('/up.svg');
opacity:1;
}

.icon.down, .icon.up:hover{
background-image:url('/down.svg');
opacity:1;
}

#up, #down {
width:40px
}

.type_toggle{
width:55px;
}


.bd_filter_active{
background:#E0EDFC;
border-color:#006AE2;
}

a.bd_filter:hover,
.type_toggle:hover {
background-color:#fff;
color:#006AE2;
border-color:#006AE2;
}


.filter_label {
padding:0 0 5px 7px;
text-transform:uppercase;
font-size:10px;
color:#666
}

.bed-bath-preview img {
    padding: 6px 15px;
    opacity:.7;
    cursor:pointer;
}
.bed-bath-preview img:hover {
    opacity:1
}
.building-area,
.building-name {
    color:#fff;
    letter-spacing:1px;
    text-wrap:nowrap;
    text-overflow: ellipsis;
    
}
.building-area {
    font-size:14px;
    padding:18px 0 3px 20px;
}
.building-name {
    font-size:20px;
    overflow:hidden;
    padding:0 0 0 20px;
    text-transform:uppercase;
    font-weight:600;

}
@media only screen and (max-width: 500px) {
    .building-area,
    .building-name {
     padding-left:70px;
    }
    #condo-units iframe,
    #container_filter {
        margin:0;
        width:100%;
    }
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.rotating {
  -webkit-animation: rotating 2s ease infinite;
  -moz-animation: rotating 2s ease infinite;
  -ms-animation: rotating 2s ease infinite;
  -o-animation: rotating 2s ease infinite;
  animation: rotating 2s ease infinite;
}

