.map-search-wrapper {
  background: #f4f6fb;
  min-height: calc(100vh - 72px);
}

.map-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 18px;
  position: sticky;
  top: 56px;
  z-index: 20;
}

.map-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.map-filter-grid .form-control,
.map-filter-grid .form-select,
.map-filter-grid .btn {
  min-height: 42px;
  border-radius: 8px;
  font-size: 14px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(360px, 45%) minmax(0, 55%);
  height: calc(100vh - 130px);
}

#map {
  width: 100%;
  height: 100%;
  background: #dbe4ef;
}

#propertyList {
  overflow-y: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.map-property-card {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .07);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.map-property-card:hover,
.map-property-card.active {
  border-color: var(--zr-blue);
  box-shadow: 0 8px 24px rgba(26, 111, 196, .14);
  transform: translateY(-1px);
}

.map-property-image {
  min-height: 160px;
  background: #e5e7eb;
}

.map-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-property-body {
  padding: 14px;
  min-width: 0;
}

.map-property-price {
  color: var(--zr-blue);
  font-size: 1.05rem;
  font-weight: 700;
}

.map-property-price span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.map-property-title {
  color: #1a1f2e;
  display: -webkit-box;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-property-location,
.map-property-meta {
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.map-property-location {
  gap: 5px;
}

.map-property-location i,
.map-property-meta i {
  color: var(--zr-blue);
  margin-right: 4px;
}

.map-empty-state {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  color: #6b7280;
  padding: 28px;
  text-align: center;
}

.map-info-window {
  display: grid;
  gap: 3px;
  min-width: 180px;
}

.map-info-window span {
  color: #1a6fc4;
  font-weight: 700;
}

.map-info-window small {
  color: #6b7280;
}

@media (max-width: 1100px) {
  .map-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .map-filter-bar {
    position: static;
  }

  .map-filter-grid,
  .map-layout,
  .map-property-card {
    grid-template-columns: 1fr;
  }

  .map-layout {
    height: auto;
  }

  #map {
    height: 360px;
  }

  #propertyList {
    padding: 14px;
  }
}
