:root {
  --color-dark-blue: #152f53;
  --color-dark-blue-2: #1c2b52;
  --color-black: #0a0915;
  --color-light-gray: #f2f2f2;
  --color-white: #fff;
}

#map-property-sort {
  padding-right: 20px;
  cursor: pointer;
  width: auto;
}

.property-filter-wrap hr {
  margin: 1rem 0;
}

/* Property Radius Wrap Styling */
.property-radius-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.property-radius-wrap .filter-label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  font-size: 13px;
  text-align: center;
}

.property-radius-wrap .radius-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.property-radius-wrap .radius-unit {
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

/* Google Places Autocomplete Styling */
.pac-container {
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  margin-top: 2px;
}

.pac-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pac-item:hover {
  background-color: #f8f9fa;
}

.pac-item:last-child {
  border-bottom: none;
}

.pac-item-selected {
  background-color: #e3f2fd;
}

.pac-matched {
  font-weight: bold;
  color: #0073aa;
}

/* Property Suggestions Styling */
.property-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.property-suggestions.show {
  display: block;
}

.property-suggestions li {
  list-style: none;
  margin: 0;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.property-suggestions li:hover {
  background-color: #f8f9fa;
}

.property-suggestions li:last-child {
  border-bottom: none;
}

.listing-actions-link {
  margin-top: 1rem;
}
/* Add loading opacity for property-listing */
.property-listing.loading,
.property-filter-wrap.loading .property-filters-dropdown-inner {
  opacity: 0.5 !important;
  pointer-events: none;
}

/* .property-filters-dropdown-inner .search-icon {
    position: absolute;
    right: 7px;
    top: 16px;
    color: #1a2154;
} */


#property-search-container {
  position: relative;
}

#property-search-container input {
  padding-right: 44px;
}

/* icons base */
#property-search-container .search-icon,
#property-search-container .clear-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.6;
}

/* default state (no text) */
#property-search-container .clear-icon {
  display: none;
}

/* when text exists */
#property-search-container.has-text .search-icon {
  display: none;
}

#property-search-container.has-text .clear-icon {
  display: block;
  cursor: pointer;
}

#property-search-container .clear-icon:hover {
  opacity: 1;
}
#map-header-text-wrapper {
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}

/* Button desktop positioning */
.services-brochure-btn {
  white-space: nowrap;
}

/* Mobile layout */
@media (max-width: 767px) {
  #map-header-text-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    margin-bottom: 7px;
  }

  .services-brochure-btn {
    margin-top: 10px;
  }
}
/* .map-filters-container {
  padding-left: 40px;
  padding-right: 50px;
} */

.building .col-inner.pt-0 {
  padding-top: 0;
}

#ajax-property-list {
  /* padding: 20px; */
  max-height: 100%;
  overflow: auto;
}

/* WEBKIT BROWSERS — Chrome, Safari, Edge */
#ajax-property-list::-webkit-scrollbar {
  width: 15px;
}

#ajax-property-list::-webkit-scrollbar-track {
  background: #f1f1f1; /* light track */
  border-radius: 10px;
}

#ajax-property-list::-webkit-scrollbar-thumb {
  background: var(--color-dark-blue-2);
  border-radius: 10px;
}

#ajax-property-list::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-dark-blue-2-rgb), 0.85);
}

#ajax-property-list {
  scrollbar-width: 15px; /* auto | thin | none */
  scrollbar-color: var(--color-dark-blue-2) #f1f1f1;
  /* padding: 20px;
  height: 100%;
  overflow: auto; */
}

.ajax-property-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.ajax-property-pagination button {
  padding: 8px 12px;
}

.ajax-property-pagination .page-status {
  font-size: 14px;
  opacity: 0.8;
}

/* #Interactive Map specific styles */
#interactive-map {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
}

#interactive-map .listing-post--featured {
  position: relative;
  overflow: hidden;
}

#interactive-map .listing-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 15px 2px 15px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

#interactive-map .listing-badge--blue {
  background: var(--color-dark-blue-2); /* adjust to brand blue */
  color: #ffffff;
  /* margin: 0px 0px calc(var(--kit-widget-spacing, 0px) + -20px) 0px; */
  width: auto;
  max-width: auto;
  background-color: #152f5361;
  border-radius: 8px 0px 0px 0px;
}

#interactive-map .listing-image {
  border-radius: 8px;
  overflow: hidden;
  height: 275px;
  position: relative;
  margin-bottom: 7px;
}

#interactive-map .listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* this is the key */
  object-position: center; /* optional but recommended */
  display: block;
}

#interactive-map .listing-post {
  box-shadow: none;
  border: none;
}

#interactive-map .property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 0.5rem;
}

#interactive-map .property-price {
  font-size: 16px;
  color: #152f53;
  font-weight: 600;
}
/* #interactive-map .property-listing .property-title {
  font-size: 1.5rem;
  font-weight: 400;
  max-width: 250px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
  color: var(--color-black);
} */

#interactive-map .property-listing .property-title,
#interactive-map .property-listing .property-details {
  color: #5c5c5c;
  font-size: 12px;
  font-weight: 400;
}

#interactive-map .property-listing .property-office {
  color: #5c5c5c;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
}

#interactive-map .listing-details {
  padding-left: 0;
  padding-right: 0;
  color: var(--color-black);
}

#interactive-map .property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

#interactive-map .property-taxes,
#interactive-map .property-detail-item span {
  font-size: 1rem;
  color: var(--color-black);
}

#interactive-map .property-details {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
}

#interactive-map .property-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

#interactive-map .property-detail-item img {
  width: 20px;
  height: auto;
}

/* Map Filters */

#interactive-map .property-filter-wrap {
  margin-top: 0.5rem;
  /* margin-bottom: 1.5rem; */
  display: flex;
  gap: 1.5rem;
  gap: 15px;
  align-items: center;
  /* border-bottom: 1px solid #ececec; */
  flex-wrap: wrap;
  width: 100%;
}

#interactive-map .property-search-wrap {
  flex-basis: 500px;
  background-color: transparent;
}

#interactive-map .property-filters-dropdown {
  position: relative;
}

#interactive-map .property-filters-dropdown-content {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateY(calc(100% - 1rem));
  width: 100vw;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#interactive-map
  .property-filters-dropdown.active
  .property-filters-dropdown-content {
  transform: translateY(calc(100% + 0rem));
  opacity: 1;
  pointer-events: auto;
}

#interactive-map
  .property-filters-dropdown.filter-price
  .property-filters-dropdown-content {
  max-width: 365px;
}

#interactive-map
  .property-filters-dropdown.filter-sqft
  .property-filters-dropdown-content {
  max-width: 275px;
}

#interactive-map
  .property-filters-dropdown.filter-bed-bath
  .property-filters-dropdown-content {
  max-width: 365px;
}

#interactive-map .property-filters-dropdown-title {
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 25px;
  padding: 8px 25px;
  width: fit-content;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  font-family: Inter, sans-serif;
  color: #1a2154;
  cursor: pointer;
  margin: 0px;
}

/* #interactive-map .property-filters-dropdown-title,
#interactive-map .property-filters-dropdown-content-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--color-dark-blue-2);
  font-weight: 400;
} */

#interactive-map .property-filters-dropdown-icon {
  width: 12px;
  height: auto;
  object-fit: contain;
}

/* Loading overlay on the details panel */
#interactive-map-details {
  position: relative;
  min-height: 200px; /* prevents layout jump */
  margin-bottom: 30px;
  height: 80vh;
}

#interactive-map-details.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
  z-index: 50;
}

#interactive-map-details.is-loading::after {
  content: "";
  position: absolute;
  top: 90px;
  left: 50%;
  width: 96px;          /* 3x size */
  height: 96px;         /* 3x size */
  margin-left: -48px;   /* center */
  border-radius: 50%;
  border: 8px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.7);
  animation: mlsSpin .75s linear infinite;
  z-index: 51;
}

@keyframes mlsSpin {
  to { transform: rotate(360deg); }
}


.price-range-inputs {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.price-range-inputs > div {
  flex-basis: 160px;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-direction: column;
  margin-top: 1rem;
}

.filter-buttons button {
  flex: 1;
}

/* 
.price-range-input {
  width: 100%;
  max-width: 160px;
  height: 31px;
  font-size: 0.75rem;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
  border: 1px solid #000;
  background: #fff; 
  border-radius: 8px;
  border: 1px solid #000;
} */

.price-range-inputs h4 {
  color: #111827;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.property-filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  pointer-events: none;
  cursor: auto;
}

.property-filters-dropdown.active .property-filters-overlay {
  pointer-events: auto;
}

.property-filters-dropdown-button {
  border-radius: 8px;
  background: #1d2e51;
  color: #fff;
  text-align: center;
  font-family: Avenir;
  font-size: 18px;
  font-weight: 800;
  height: 56px;
  padding: 1rem 0.75rem;
  width: 100%;
}

.home-type-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Property Search Wrap Styling */
.property-search-wrap {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.search-input-container {
  flex: 1;
  position: relative;
}

.property-filter-wrap input[type="number"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100%;
  padding: 8px 12px 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
  background-image: none !important;
  cursor: pointer;
}

.property-filter-wrap input[type="number"]:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
  background: #fff;
}

.property-search-wrap input[type="text"]::placeholder {
  color: #999;
  font-style: italic;
}

.property-search-wrap input[type="text"] {
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 0.75rem 0.75rem 0.75rem 0;
  height: 48px;

  color: #828282;
  font-size: 16px;
  width: 100%;
  font-weight: 400;
  outline: none;
}

.property-search-button {
  height: 2rem;
  padding: 0.5rem 0.75rem;
  color: var(--color-white);
  background-color: var(--color-dark-blue-2);
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 1rem;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.property-search-button:hover {
  opacity: 0.6;
}

/* Bed Bath Options */
.bed-bath-inputs {
  display: flex;
  gap: 1.25rem;
  flex-direction: column;
}

.bed-bath-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bed-bath-options-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bed-bath-options button {
  padding: 5px 10px;
  margin: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-family: Inter, sans-serif;
  color: #1a2154 !important;
}

.bed-bath-options button.button-any {
  width: 55px;
  color: #1c2b52;
}

.bed-bath-options button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 3px solid transparent;
  background-color: transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}

.bed-bath-options button.selected {
  border: 3px solid #2f4568;
}

.property-filters-inputs.home-type-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.property-filters-dropdown-content label {
  font-weight: bold;
}

.property-filters-dropdown-content input[type="checkbox"] {
  border-radius: 8px;
  width: 25px;
  height: 25px;
  accent-color: #2f4568;
}

.property-filters-dropdown-content input[type="checkbox"] + label {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* New Styles: Without Bootystrap 11/25/2025 */

#map-header {
  /* margin-top:20px; */
  /* margin-bottom: 0px; */
  color:var( --e-global-color-primary );
  font-size: 2rem;
  text-align: center;
}

/* Building Row Styles */
#interactive-map-details {
  display: flex;
  gap: 1rem;
  width: 100%;
  border: 1px solid #ececec;
  margin-top: 0.5em;
}

#interactive-map-details .property-filter {
  width: 100%;
}

.building-content {
  flex: 6;
      overflow: auto;
  /* height: 100vh; */
}

.building-maps {
  flex: 5;
}

/* Property Listings Styles */
.property-listing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  overflow: auto;
  padding: 15px;
}

#interactive-map .listing-image img.vendor-logo {
    position: absolute;
    z-index: 999;
    bottom: 0;
    right: 0;
    width: 90px;
    height: auto;
    object-fit: contain;
    background-color: #fff;
    padding: 7px 7px;
    border-top-left-radius: 5px;
}

/* Google Map Markers */
.infowindow-card .infowindow-img {
  width: 200px;
}

/* poppup styles */
.gm-style-iw {
  padding:0px !important;
}
.gm-style-iw-d {
  padding-left: 18px !important;
  border-radius: 15px;
  padding-top: 17px;
}

.infowindow-img {
  border-radius: 15px;
}

.infowindow-content-col {
  padding:7px 0px 0px 0px;
      line-height: 1.3em;
}
.infowindow-img-col {
  position: relative;
}
.infowindow-vendor-logo {
  position: absolute;
  bottom: 7px;
  right: 3px;
  background-color: #fff;
  border-radius: 5px;
  width: 80px !important;
  padding: 4px 7px;
  height: auto !important;
  max-height: none !important;
}
.infowindow-office {
  font-style: italic;
  max-width: 100%;
}
.gm-style-iw-chr {
    position: absolute;
    top: 0px;
    right: 0px;
}
.infowindow-title {
  font-weight: 600;
}
@media (max-width: 1260px) {
  #interactive-map .property-filter-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  #interactive-map .property-search-wrap {
    flex-basis: 100%;
  }
}

@media (max-width: 1200px) {

  #interactive-map .row.building {
    flex-direction: column;
  }
  .building-maps{
    display: none;
  }  


  #interactive-map .property-filter-wrap {
    flex-direction: column;
    align-items: stretch;
  } 
  #interactive-map .property-filters-dropdown,
  #interactive-map .property-filters-dropdown-title {
    width: 100%;;
  }
}

@media (max-width: 768px) {
  .property-listing {
    grid-template-columns: repeat(1, 1fr);
  }

}
