#map { height: 500px; width: 100%; position: relative; }

.no-image {
  width: 100%;
  height: 170px;
  background-color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
}

.locate-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #0d6efd;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  text-align: center;
  line-height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 10;
  cursor: pointer;
}

.precio-tag {
  background-color: #0d6efd;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}

@media (max-width: 768px) {
  #map { height: 75vh; min-height: 400px; }
  h1 { font-size: 1.2rem; }
  h5 { font-size: 0.8rem; }
  h2 { font-size: 1.0rem; }
  #filtroSelect, #correoInput {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 576px) {
  #viewsCount { font-size: 0.6rem; padding: 3px 5px; }
  #fechaActual { font-size: 0.65rem; }
}

.panel-title{
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.cardx {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.cardx img{
  width: 100%;
  height: 170px;

  background: #f2f2f2;
}

.cardx-body{
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.price{
  font-weight: 700;
  font-size: 16px;
}

.desc{
  font-size: 13px;
  color: #555;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}

.btnx{
  margin-top: auto;
  display: inline-block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.empty{
  padding: 14px;
  border: 1px dashed #ccc;
  border-radius: 12px;
  color: #666;
  text-align: center;
  grid-column: 1 / -1;
  background: #fafafa;
}