html, body {
  height: 100%;
  overflow: hidden;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

#map {
  height: 100vh;
  touch-action: pan-x pan-y;
  pointer-events: auto;
}

.locate-btn {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.locate-btn:hover {
  background: #f2f2f2;
}

#info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 30px);
  max-width: 380px;

  background: white;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);

  z-index: 1000;
  touch-action: auto;
  pointer-events: auto;
}

@media (max-width: 600px) {

  #info {
    bottom: 0;
    left: 0;
    transform: none;

    width: 100%;
    border-radius: 16px 16px 0 0;
  }

}

/* imagen */

.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

#street-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* degradado */

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
  );
}

/* título sobre imagen */

#street {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  color: white;
  font-size: 20px;
  font-weight: 600;
}

/* contenido */

.card-content {
  padding: 16px;
}

#history {
  color: #444;
  line-height: 1.5;
  max-height: 140px;
  #overflow: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#search-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1100;
}

#search-input {
  border: none;
  padding: 12px 14px;
  width: 60vw;
  max-width: 320px;
  font-size: 16px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


#search-btn {
  border: none;
  background: #2A7FFF;
  color: white;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
}


#searchBox {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;

  height: 48px;
  font-size: 18px;

  padding: 10px 14px;

  border-radius: 10px;
  border: 1px solid #ccc;

  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

  z-index: 1000;
}
