html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Sometype Mono";
  font-weight: 400;
  background: #f2f2f2;
  color: #111;
}

strong,
.bold {
  font-weight: 700;
}

.typewriter {
  font-family: "Sometype Mono";
  font-weight: 700;
}

/* ===================== Layout general ===================== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("../img/background.png") no-repeat top center;
  background-size: cover;
  box-sizing: border-box;
  border: 2px solid #7D7D7D;
}

/* ===================== Header / hero ===================== */
.hero {
  position: relative;
  padding: 26px 16px 18px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.10);

  /* si querés un “papel” sutil */
  background-image:
    radial-gradient(circle at 12% 15%, rgba(0,0,0,.03), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(0,0,0,.03), transparent 42%),
    radial-gradient(circle at 30% 90%, rgba(0,0,0,.03), transparent 42%);
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  margin-bottom: 10px;
}

.hero-logo img {
  max-height: 56px;
  width: auto;
  display: block;
}

.hero-logo-placeholder {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(0,0,0,0.20);
  color: #666;
  font-size: 12px;
}

.hero-band {
  display: flex;
  justify-content: center;
  margin: 38px 0 38px;
}

.hero-band-inner {
  background: #0b0b0b;
  color: #fff;
  padding: 14px 18px;
  border-radius: 0px;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  transform: rotate(-1deg);
  font-size: clamp(18px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 980px;
  width: 100%;
  text-align: center;
  background-image: url("../img/background_b.png") no-repeat;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.64) 100%), url("../img/background_b.png") lightgray 0px -309.364px / 100% 781.667% no-repeat;
}

.hero-text {
  margin: 0 auto 14px;
  color: #231F20;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  padding: 0 8px;
}

/* ===================== Searchbar ===================== */
.searchbar {
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;

  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 0px;
  padding: 12px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.searchbar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px 10px;
  font-family: "Sometype Mono", monospace;
  background: transparent;
  color: #231F20;
}

.searchbar input::placeholder {
  color: #9a9a9a;
}

.icon-btn{
  background: none;
  border: 0px;
}

.btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  font-family: "Sometype Mono", monospace;
  color: #222;
}

.btn:hover {
  background: #f7f7f7;
}

/* ===================== Nearby box ===================== */
.nearby {
  max-width: 980px;
  margin: 12px auto 0;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  padding: 12px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

.nearby-title {
  margin-bottom: 8px;
}

.nearby-list {
  max-height: 180px;
  overflow: auto;
  font-size: 13px;
}

/* meta/status debajo */
.hero-meta {
  max-width: 980px;
  margin: 10px auto 0;
  text-align: center;
}

.hero-meta small {
  color: #555;
  display: block;
  margin-top: 8px;
}

.status {
  margin-top: 8px;
  font-size: 13px;
  color: #222;
}

/* ===================== Mapa ===================== */
.map-area {
  flex: 1;
  padding: 12px 16px 14px;
  background: #f2f2f2;

  /* ✅ CLAVE: para que el botón Volver quede “encima del mapa” */
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 530px;
  border-radius: 0px;
  border: 1px solid rgba(0,0,0,0.14);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  background: #e9e9e9;
}

/* ===================== Footer ===================== */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 12px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}

.footer img {
  height: 28px;
  width: auto;
  opacity: 0.95;
}

.footer-placeholder {
  color: #666;
  font-size: 12px;
}

/* ===================== Labels provincias ===================== */
.province-label {
  background: rgba(255,255,255,0.90);
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
}

/* ===================== Google Maps InfoWindow tweaks ===================== */
.gm-style .gm-style-iw-c {
  padding-top: 20px !important;
  /* margin-top: 215px; */
  z-index: 99999;
}
.gm-style-iw-chr {
  position: absolute;
  right: 0px;
  top: -10px;
  width: 35px;
  height: 35px;
}
.gm-style .gm-style-iw-d {
  text-align: center;
  display: block !important;
}

/* ===================== InfoWindow layout (puntos) ===================== */
.iw-wrap { max-width: 360px; }
.iw-title { font-weight: 900; margin-bottom: 6px; }
.iw-addr { margin-bottom: 8px; }
.iw-meta { color: #555; font-size: 12px; margin-bottom: 10px; }

.iw-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.iw-btn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
}

.iw-link {
  font-size: 12px;
  color: #1a73e8;
  text-decoration: none;
}

/* ===================== InfoWindow (Tu ubicación) ===================== */
.origin-iw { max-width: 320px; text-align: center; }
.origin-title { font-weight: 900; margin-bottom: 6px; }
.origin-addr { color: #333; margin-bottom: 6px; }
.origin-tip { color: #666; font-size: 12px; }

/* ===================== Responsive ===================== */
@media (max-width: 520px) {
  .searchbar {
    flex-direction: row;      /* ✅ 1 sola línea */
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 90%;
  }

  .searchbar input {
    flex: 1;
    min-width: 0;            /* ✅ CLAVE para que no empuje al botón */
    font-size: 14px;
    padding: 10px 10px;
  }

  .icon-btn {
    flex: 0 0 auto;          /* ✅ la lupita no se achica raro */
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }

  .hero-band-inner {
    transform: none;
  }
  .gm-style .gm-style-iw-d {
  overflow: visible !important;
  background: white;
}
}

/* ===================== Popup puntos (custom InfoWindow) ===================== */

/* Oculta el botón close default de Google */
.gm-ui-hover-effect {
  display: none !important;
}

/* Saca padding/fondo default del contenedor del InfoWindow */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-top: 20px !important;
  background: none;
}

.gm-style .gm-style-iw-d {
  overflow: visible !important;
  background: white;
  max-height: 400px !important;
}

/* Caja papel */
.place-popup {
  font-family: "Sometype Mono";
  background: #fff;
  padding: 24px 8px 16px;
  max-width: 360px;
  box-shadow: 0 22px 45px rgba(0,0,0,.28);
  position: relative;
  border: 7px solid #C3C3C3;
}

/* Botón cerrar centrado arriba */
.place-popup__close {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  background: #111;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

.place-popup__close:hover {
  background: #000;
}

.place-popup__title {
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  letter-spacing: .8px;
  margin: 0 0 22px;
  text-transform: uppercase;
}

/* Dirección en dos “bloques” como tu ejemplo */
.place-popup__addr {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-align: left;
}

.place-popup__addrLabel {
  display: inline-block;
  margin-right: 10px;
}

.place-popup__addrText {
  display: inline-block;
}

/* Meta (chiquito) */
.place-popup__meta {
  font-size: 12px;
  color: #333;
  opacity: .9;
  margin-bottom: 14px;
}

.place-popup__metaLine {
  margin: 2px 0;
}

/* Acción */
.place-popup__actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.place-popup__link {
  font-size: 12px;
  color: #111;
  text-decoration: underline;
}

/* ===================== Popup MI UBICACIÓN ===================== */

.origin-popup {
  font-family: "Sometype Mono";
  background: #fff;
  padding: 22px 14px 16px;
  max-width: 320px;
  box-shadow: 0 22px 45px rgba(0,0,0,.28);
  position: relative;
  border: 4px solid #111;
  text-align: center;
}

/* botón cerrar */
.origin-popup__close {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  background: #111;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,.22);
}

.origin-popup__title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}

.origin-popup__addr {
  font-size: 13px;
  line-height: 1.35;
  color: #333;
}

@media (max-width: 520px) {
  .place-popup {
    max-height: 70vh;
    padding: 20px 10px 12px;
  }

  .place-popup__title {
    /* font-size: 16px; */
    margin: 0 0 12px;
  }

  .place-popup__addr {
    /* font-size: 14px; */
    margin-bottom: 12px;
  }

  .place-popup__meta {
    margin-bottom: 10px;
  }

  .place-popup__body {
    max-height: 290px; /* ✅ espacio para title + close */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;           /* para que el scroll no tape texto */
  }
  .gm-style .gm-style-iw-c {
      max-width: 290px!important;
      max-height: 430px !important;
  }
  .pac-container {
    width: 89%!important;
    left: 21px!important;
  }
}
/* ===================== Google Places Autocomplete dropdown ===================== */
.pac-container {
  z-index: 999999 !important; /* arriba del mapa */
  font-family: "Sometype Mono", monospace;
  box-shadow: 0 18px 30px rgba(0,0,0,.18);
  border-radius: 0px;
  border: 1px solid rgba(0,0,0,0.12);
}

.pac-item {
  padding: 10px 12px;
  font-size: 14px;
}

.pac-item-query {
  font-size: 14px;
}
.place-popup__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.place-popup__btn {
  padding: 10px 12px;
  border-radius: 0px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-family: "Sometype Mono", monospace;
  font-size: 13px;
}

.place-popup__btn:hover {
  background: #000;
}

.place-popup__hint {
  font-size: 12px;
  color: #333;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 8px 10px;
  background: rgba(255,255,255,0.9);
}
.place-popup__body {
  max-height: 290px; /* ✅ espacio para title + close */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;           /* para que el scroll no tape texto */
}
.place-popup__desc2{
  overflow-y: auto;
  margin-top: 12px;

  /* colapsado por defecto */
  max-height: 48px;
  transition: max-height .18s ease;
}

/* estado expandido */
.place-popup__desc2.is-expanded{
  max-height: 110px;
}

/* botón ver más/menos */
.place-popup__more{
  margin-top: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  color: #111;
  margin-left: auto;
  margin-right: auto;
  display: block;
}