/* Whole search area */
.units-search {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Fixed header at top */
.units-search-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0 !important;
  padding: 0; /* overrides default padding */
}

/* Sticky footer with result count */
.units-search-footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: #363434;
  border-top: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: center;
  color: #fff;
}

.units-search-footer .results-count {
  font-size: 0.95em;
  font-weight: 500;
}

/* Filters bar */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 1rem;
  background-color: #363434;
  height: 150px;
  color: #fff;
}


.filters-bar select {
  font-size:14px;
  font-weight: 500;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  padding: 0.5em 1.8em 0.5em 0.5em;
  height: 39px;
}




.select-wrapper {
  position: relative;
  display: inline-block;
  width:auto !important;
}


@media screen and (max-width: 768px) {
  .filters-bar {
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 5vw 10vw;
    height:auto;
  }

  .select-wrapper, .flyout {
    width: 100% !important;

  }
  .select-wrapper select, .flyout-toggle {
    width: 100% !important; 
  }
}

.select-wrapper select {
  appearance: none; /* remove default arrow (Chrome, Safari, FF) */
  -moz-appearance: none;
  -webkit-appearance: none;
  padding-right: 2em; /* make room for custom arrow */
  background-color:#ddd;
}

.select-wrapper select:hover {
    background-color: #fff;
}

.select-wrapper select:focus {
  outline: none;
  border-color: #fff;
  background-color:#aaa;
}

.select-wrapper::after {
  content: '\e114'; /* your icon */
  font-family: 'Glyphicons Halflings';
  color: #a2c55c;
  position: absolute;
  right: 0.75em;
  top: 50%;
  pointer-events: none;
}

.filters-bar > button {
  padding: 0 1em !important;
  height: 39px;
}

/* Flyout dropdown wrapper */
.flyout {
  position: relative;
  display: inline-block;
}

.flyout-toggle {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px; /* readable toggle text */
  color: #333;
  height:39px;
  display:flex;
  align-items: center;
  justify-content: space-between;
  padding:0 .5em;
  padding-right: 2em;
  position: relative;
  background-color:#ddd;
}

.flyout-toggle:hover {
    background-color: #fff;
}

.flyout-toggle::after {
  content: '\e114'; /* your icon */
  font-family: 'Glyphicons Halflings';
  color: #a2c55c;
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%); 
  pointer-events: none;
}

.flyout-toggle:focus {
  outline: none;
  border-color: #fff;
  background-color:#aaa;
}


/* Flyout panel (the dropdown itself) */
.flyout-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  display: none;
  min-width: 200px;
  padding: 1.5em;
  background: #fff;       /* white background */
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 15px;        /* bump font size */
  color: #222;            /* force dark text */
}

.flyout.open .flyout-panel {
  display: block;
}

/* Labels inside flyout */
.flyout-panel label {
  display: block;
  margin: 6px 0;
  font-size: 15px;
  color: #222;
  cursor: pointer;
}

.flyout-panel input[type="checkbox"] {
  margin-right: 6px;

}

.flyout-panel label {
        font-weight: 100;

}

.flyout-panel input[type="number"] {
    background: #EBEBEB;
    border: none;
    border-radius: 4px;
    padding: 0.4em;
    font-weight: 100;
}


/* Units grid */
.units-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#rent-slider {
  margin:1em 1em;
}

/* Cap grid at 3 columns */
@media screen and (min-width: 1200px) {
  .units-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Wide layout: map left, units right */
@media screen and (min-width: 1400px) {
  .units-search-wrapper {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
  }

  .units-map {
    background: #f5f5f5;
    border: 1px solid #ddd;
    min-height: 600px;
  }

  .units-list {
    grid-column: 2;
  }
}


.unit__card-summary, .unit__card-availability {
  font-size:14px;
}

.unit__card-photos {

}

.unit__card-photos .highlight {
  position: absolute;
  top:10px;
  left:10px;
  background: #a2c55c;
  color:#fff;
  padding:5px 10px;
  font-size:12px;
  font-weight:500;
  border-radius:4px;
  text-transform:uppercase;
}

.basic-styles .unit__card-description a.call-to-action {
  font-size: 0.75em;
  text-decoration: none;
  padding:0.5em 0em;
}

#units-map {
  position: sticky;
  width: 100%;
  min-height: 300px;
  background: #eee;
  width: 50% !important;          /* override Google’s inline width:auto */
  position: fixed !important;  
}


.units-search-wrapper {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
}

@media screen and (max-width: 1400px) {
  #units-map {
    display:none;
  }
  .units-search-wrapper {
    display: block;
  }
}


.units-list {
  overflow: auto;
}

.gm-style-iw-d {
  width:315px;
}

.no-results {
    min-height: 500px;
    width: 100%;
    z-index: 50;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }