* { margin: 0; padding: 0; box-sizing: border-box; }

#mapa {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

gmpx-place-picker {
  width: 100%;
  display: block;
  margin-bottom: 11px;
  --gmpx-color-surface: #fafafa;
  --gmpx-color-on-surface: #333;
  --gmpx-color-outline: #e0e0e0;
  --gmpx-font-size-base: 15px;
  --gmpx-color-primary: #6200ea;
  --gmpx-border-radius: 10px;
}

.lugares-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10;
  white-space: nowrap;
  max-width: calc(100% - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.filtros-wrap {
  position: fixed;
  bottom: 90px;
  left: 0; right: 0;
  display: flex;
  gap: 8px;
  padding: 6px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  z-index: 10;
}
.filtros-wrap::-webkit-scrollbar { display: none; }

.filtro-btn {
  padding: 10px 16px;
  min-height: 44px;
  border: none;
  border-radius: 22px;
  background: white;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.filtro-btn.activo {
  background: #6200ea;
  color: white;
}

.btn-agregar-lugar {
  position: fixed;
  bottom: 150px;
  right: 18px;
  background: #6200ea;
  color: white;
  border: none;
  border-radius: 28px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(98,0,234,0.4);
  z-index: 10;
}

/* Modal */
.modal-lugar {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-lugar.visible { display: flex; }

.modal-lugar-body {
  background: white;
  width: 100%;
  max-width: 520px;
  border-radius: 22px 22px 0 0;
  padding: 24px 20px 32px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-lugar-body h3 {
  font-size: 17px;
  color: #222;
  margin-bottom: 16px;
}

.subcats-section {
  margin-bottom: 12px;
}
.subcats-titulo {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.subcats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.subcat-chip {
  padding: 7px 13px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  color: #555;
  font-size: 13px;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.subcat-chip.activo {
  background: #ede7f6;
  color: #6200ea;
  border-color: #6200ea;
  font-weight: 600;
}
.horarios-section {
  margin-bottom: 11px;
}
.horarios-titulo {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.horario-fila {
  display: grid;
  grid-template-columns: 1fr 80px 80px 32px;
  gap: 6px;
  margin-bottom: 7px;
  align-items: center;
}
.horario-fila input[type="text"],
.horario-fila input[type="time"] {
  padding: 8px 10px;
  margin-bottom: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  background: #fafafa;
  color: #333;
  width: 100%;
}
.btn-quitar-horario {
  background: #fdecea;
  color: #c62828;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  padding: 6px;
  line-height: 1;
}
.btn-agregar-horario {
  width: 100%;
  padding: 9px;
  background: #f3e5f5;
  color: #6200ea;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.input-foto-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  margin-bottom: 11px;
  border: 1.5px dashed #c0c0c0;
  border-radius: 10px;
  font-size: 14px;
  color: #666;
  background: #fafafa;
}
.input-foto-label input[type="file"] { display: none; }

.foto-preview {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 11px;
  max-height: 160px;
  object-fit: cover;
}

.modal-lugar-body input,
.modal-lugar-body select,
.modal-lugar-body textarea {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 11px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  color: #333;
  background: #fafafa;
}
.modal-lugar-body textarea { resize: none; }

.coords-label {
  font-size: 12px;
  color: #888;
  margin: -6px 0 12px;
}

.modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.btn-cancelar-lugar {
  flex: 1;
  padding: 13px;
  background: #f0f0f0;
  color: #555;
  border: none;
  border-radius: 12px;
  font-size: 15px;
}
.btn-guardar-lugar {
  flex: 1;
  padding: 13px;
  background: #6200ea;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.toast-places {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: white;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 2000;
  display: none;
  white-space: nowrap;
}
 .frontmenu {
    width: 100%;
    position: fixed;
    background-color: black;
    left: 0%;
    bottom: 0%;
    z-index: 4;
  }