
    /* =========================
       Paleta y tokens visuales
       ========================= */
    :root{
      --bg:#fbf9f6;
      --card:#ffffff;
      --muted:#6b7280;
      --teal:#0e7f7a;               /* color de texto/acciones principal (teal) */
      --accent-grad1: #4c76ff;     /* naranja */
      --accent-grad2: #7852ac;     /* magenta */
      --accent-grad3: #3252cb;     /* violeta */
      --shadow: 0 6px 18px rgba(8,15,26,0.08);
      --radius: 12px;
      --glass: rgba(255,255,255,0.7);
    }

    h1{
        color: var(--accent-grad3);
    }

    /* =========================
       Reset y layout base
       ========================= */
    html,body,#map{ height:100%; margin:0; }
    body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg,var(--bg),#f7f7f5);
  color: #0f172a;
  -webkit-font-smoothing:antialiased;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* ✅ evita que el body scrollee, pero mantiene el mapa visible */
  display: block; /* ✅ no usar flex aquí */

    }

    /* =========================
   Modal de bienvenida
   ========================= */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.welcome-card {
  background: var(--card);
  color: #0f172a;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 480px;
  width: 90%;
  text-align: left;
  position: relative;
  animation: fadeInUp 0.4s ease;
}

.welcome-card h2 {
  color: var(--teal);
  margin-top: 0;
  font-size: 22px;
}

.welcome-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.welcome-buttons button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-eco {
  background: var(--teal);
  color: #fff;
}

.btn-cafecito {
  background: linear-gradient(90deg, var(--accent-grad2), var(--accent-grad3));
  color: white;
}

.welcome-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Cartelito flotante
   ========================= */
.credit-badge {
  position: fixed;
  bottom: 8px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  z-index: 9000;
  backdrop-filter: blur(4px);
}

@media (max-width: 600px) {
  .welcome-card {
    padding: 20px;
    font-size: 18px;
  }
  .welcome-card p {
    font-size: 13px;
  }


  .welcome-buttons {
    flex-direction: column;
        gap: 8px;
  }
  .credit-badge {
    bottom: 8px;
    right: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
    border-radius: 999px;
  }

    body {
    overflow: hidden;
  }

    .btn-eco,
  .btn-cafecito {
    font-size: 14px;
    padding: 10px;
  }


}

    /* =========================
       Contenedor principal
       ========================= */
.app {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), #f7f7f5);
}

    /* =========================
       Sidebar (panel)
       ========================= */
.sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.98));
  border-radius: 0;
  padding: 18px;
  box-shadow: var(--shadow);
overflow-y: auto; /* ✅ ahora la sidebar entera puede scrollear */
overflow-x: hidden;
}
    .brand {
      display:flex;
      gap:12px;
      align-items:center;
    }
    .logo-mark{
      width:44px;height:44px;border-radius:10px;
      background:linear-gradient(135deg,var(--accent-grad1),var(--accent-grad2),var(--accent-grad3));
      box-shadow: 0 6px 18px rgba(107,61,242,0.18);
      display:flex;align-items:center;justify-content:center;color:white;font-weight:700;
      font-size:18px;
    }
    .brand h1{font-size:16px;margin:0}
    .brand p{margin:0;font-size:12px;color:var(--muted)}

    /* controls */
    .controls{
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
      margin-top:6px;
    }
    .search {
      flex:1;
      display:flex;
      gap:8px;
      align-items:center;
      background:var(--card);
      border-radius:10px;
      padding:8px 10px;
      box-shadow: 0 2px 8px rgba(5,10,20,0.04);
      border: 1px solid rgba(10,10,20,0.03);
    }
    .search input{
      border:0;outline:0;width:100%;font-size:14px;background:transparent;
    }
    .select, .btn {
      border:0;
      padding:10px 12px;
      border-radius:10px;
      cursor:pointer;
      font-weight:600;
      font-size:13px;
    }
    .select {
      background: linear-gradient(180deg, #fff, #fbfbfd);
      border:1px solid rgba(10,10,20,0.04);
    }
    .btn-primary {
      background: linear-gradient(90deg,var(--accent-grad2),var(--accent-grad3));
      color:white;
      box-shadow: 0 6px 18px rgba(107,61,242,0.14);
      transition: transform .12s ease, box-shadow .12s ease;
    }
    .btn-outline {
      background: transparent;
      border: 1px solid rgba(14,127,122,0.12);
      color: var(--teal);
    }
    
    .btn:active{ transform: translateY(1px) }

    /* lista de lugares */

    #showAllBtn{
      color: var(--teal);
        background-color: #00897b !important;
  color: white !important;
  border: none !important;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
    }

    #showAllBtn:hover {
  background-color: #00796b !important;
}

.list {
  flex: 1;
  overflow-y: auto; /* 🔹 solo la lista scrollea */
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.list::-webkit-scrollbar {
  width: 6px;
}
.list::-webkit-scrollbar-thumb {
  background-color: rgba(14, 127, 122, 0.4);
  border-radius: 6px;
}
    .place{
      display:flex;
      gap:12px;
      align-items:center;
      padding:10px;
      border-radius:10px;
      transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
      cursor:pointer;
      background: linear-gradient(180deg,#fff, #fbfbfb);
      border:1px solid rgba(10,10,20,0.03);
    }
    .place:hover{ transform: translateY(-4px); box-shadow: 0 10px 24px rgba(8,15,26,0.06); }
    .place img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex-shrink:0}
    .meta h3{margin:0;font-size:15px}
    .meta p{margin:0;color:var(--muted);font-size:13px}

    /* acciones rápidas */
    .actions {
      display:flex;
      gap:8px;
      margin-top:6px;
      align-items:center;
    }
    .small {
      font-size:12px;color:var(--muted);
    }

    footer.app-footer{
      margin-top:auto;
      font-size:12px;color:var(--muted);
      display:flex;align-items:center;justify-content:space-between;gap:10px;
    }

    /* =========================
       MAP
       ========================= */
.map-wrap {
  position: relative;
  width: 100%;
  height: 100vh; /* ✅ fuerza altura visible del mapa en escritorio */
  overflow: hidden;}

#map {
  height: 100vh;        /* ocupa toda la altura disponible */
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 0;
}



    /* floating controls over map */
    .map-controls {
      position:absolute;
      left:18px; top:18px;
      display:flex; gap:8px;
      z-index:420;
    }
    .chip{
      padding:8px 12px;border-radius:999px;background:var(--card);box-shadow:0 8px 20px rgba(8,15,26,0.06);
      display:flex;gap:8px;align-items:center;font-size:13px;border:1px solid rgba(10,10,20,0.03);
    }

    

    /* responsive */
@media (max-width: 900px) {
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
      overflow: hidden;
  }

  .sidebar {
    position: relative;
    width: 100%;
    max-height: 42vh;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    padding: 14px 16px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    z-index: 20;
  }
  


  .sidebar .list {
    flex: 1;
    display: flex;
    flex-direction: row; /* horizontal scroll */
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 10px 0;
  }

  .sidebar .list .card {
    min-width: 230px;
    flex-shrink: 0;
  }

  .sidebar .list::-webkit-scrollbar {
    height: 6px;
  }

    .list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
        margin-top: 8px !important;
  }
    .meta p{margin:0;color:var(--muted);font-size:10px}
  .place {
    min-width: 240px;
    flex-shrink: 0;
    border-radius: 14px;
    scroll-snap-align: start;
    padding: 10px;
  }

  .place img {
    width: 80px;
    height: 80px;
  }

  
  .meta h3 {
    font-size: 14px;
  }

  .meta p {
    font-size: 11px;
  }



  .map-wrap {
  flex: 1;
    flex: 1;
    height: 58vh;
    position: relative;
    z-index: 1;
  }

  #map {
    height: 58vh;
    width: 100%;
  }

  body {
    overflow: hidden;
  }

  .brand {
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .brand img {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto !important;
  }

   /* Controles del mapa */
  .map-controls {
    top: 12px;
    left: 12px;
    gap: 6px;
  }

  .chip {
    padding: 8px 10px;
    font-size: 12px;
  }

  .brand h1 {
    font-size: 16px;
    color: var(--accent-grad3);
        display: none !important;
  }

  .brand p {
    font-size: 12px;
    color: var(--muted);
        display: none !important;
  }

  .search input {
    font-size: 13px;
  }

    /* Controles de búsqueda */
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
        margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

    .search {
    margin-bottom: 4px !important;
  }

  .search input {
    font-size: 14px;
  }

  select#radius {
    width: 90% !important;
    margin-top: 6px !important;
    align-content: center;
  }

    /* Botones */
  .actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    margin-top: 8px;
  }

  .btn, .btn-primary, .btn-outline {
    flex: 1;
    font-size: 13px;
    padding: 10px;
    border-radius: 12px;
  }

  @media (max-width: 400px) {
  .sidebar {
    max-height: 46vh;
    padding: 10px;
  }

  .place {
    min-width: 200px;
  }

  .place img {
    width: 70px;
    height: 70px;
  }

  .btn, .btn-primary, .btn-outline {
    font-size: 12px;
    padding: 8px;
  }

  .credit-badge {
    font-size: 11px;
  }
}

}

    @media(max-width:520px){
      .sidebar{ max-height:44vh; padding:12px; }
      .brand h1{ font-size:15px }
      .search input{ font-size:13px }
    }

    select#radius {
  background-color: #ffffff !important;  /* fondo blanco para visibilidad */
  color: #222 !important;                /* texto oscuro */
  border: 1px solid #ccc !important;     /* borde gris suave */
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 15px !important;
  appearance: auto !important;           /* muestra correctamente el ícono del desplegable */
}

/* Hover / focus más visible */
select#radius:hover,
select#radius:focus {
  border-color: #0e7f7a !important;
  outline: none !important;
  box-shadow: 0 0 4px rgba(14,127,122,0.3);
}

    /* subtle focus styles */
    button:focus, select:focus, input:focus{ outline: 3px solid rgba(14,127,122,0.12); outline-offset:3px; border-radius:10px; }

    /* tiny helper to hide/show */
    .hidden{ display:none !important; }
 