:root{
  --bg:#0a0f1e; --card:#101735; --ink:#e8ecf8; --muted:#9fb0d0; --border:#1c2347; --accent:#6aa5ff; --r:18px;
}
html{ font-size:18px; }
body{ margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial; background:linear-gradient(180deg,#070b17 0%,#0c1330 100%); color:var(--ink); }
header{ padding:22px 26px; border-bottom:1px solid var(--border); background:rgba(13,20,48,.7); backdrop-filter: blur(8px); position:sticky; top:0; z-index:10; }
header h1{ margin:0 0 6px; font-size:1.9rem; letter-spacing:.3px; }
header p{ margin:0; color:var(--muted); }

.layout{ display:grid; grid-template-columns:520px 1fr; gap:18px; padding:18px; }
.panel{ background:linear-gradient(180deg,rgba(17,26,64,.7),rgba(17,26,64,.5)); border:1px solid var(--border); border-radius:var(--r); padding:18px; box-shadow:0 10px 28px rgba(0,0,0,.25); }
.panel h2{ margin:14px 0 8px; font-size:1.2rem; }
.row{ display:flex; gap:10px; }
.toggle{ display:flex; gap:8px; align-items:center; color:var(--muted); cursor:pointer; }

input,select,textarea,button{
  width:100%; padding:12px 14px; border-radius:14px; border:1px solid #263160;
  background:rgba(12,19,48,.65); color:var(--ink); font-size:1rem; outline:none;
}
input::placeholder, textarea::placeholder{ color:#9fb0d0aa; }
button{ background:linear-gradient(180deg,#6aa5ff,#3576ff); border:0; font-weight:700; cursor:pointer; box-shadow:0 8px 18px rgba(53,118,255,.3); }
button:hover{ filter:brightness(1.06); transform:translateY(-1px); transition:.15s; }

.card{ background:rgba(15,23,56,.6); border:1px solid var(--border); border-radius:14px; padding:12px; }
.badge{ display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid #345; color:#cfe; font-size:.9rem; background:rgba(52,83,170,.25); }

#msg{ margin-top:10px; font-size:1rem; }
#places-list{ margin-top:12px; display:grid; gap:10px; }

.map-wrap{ position:relative; }
#map{
  width:100%;
  height: calc(100vh - 180px);
  min-height: 420px;
  border-radius: var(--r);
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  display:block;
}

/* Panel lateral de reseñas flotante */
#reviews-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 360px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(13,20,48,.85);
  color: #eef2ff;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 1000;
  display: none; /* Oculto por defecto */
}

.review-item{
  border-bottom:1px solid #203;
  padding:8px 0;
}
.review-item:last-child{ border-bottom:none; }
.review-item .stars{ color:#ffd34d; font-weight:700; }
.review-item .note{ margin:4px 0; line-height:1.28; }
.muted{ color:var(--muted); }

/* Top list */
.top-wrap{
  margin: 14px 18px 24px;
  background:linear-gradient(180deg,rgba(17,26,64,.7),rgba(17,26,64,.5));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
}
.top-wrap h2{ margin: 6px 0 10px; font-size: 1.2rem; }
#top-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.top-card{
  background:rgba(15,23,56,.6);
  border:1px solid #223;
  border-radius:12px;
  padding:12px;
}
.top-card .muted{ color:#9fb0d0; font-size:.95rem; }

/* Leaflet UI */
.leaflet-container { background: #0b122a; }
.leaflet-control-zoom a{ width:40px; height:40px; line-height:40px; font-size:20px; }
.leaflet-popup-content{ font-size:1rem; }
.leaflet-control-layers{ font-size:1rem; padding:.5rem .6rem; }

/* Responsive */
@media (max-width: 1080px){
  .layout{ grid-template-columns: 1fr; }
  #map { height: 60vh; min-height: 360px; }
}
#all-reviews-btn-container {
  margin-top: 12px;        /* pequeño espacio arriba del botón */
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#btn-open-reviews {
  width: 100%;             /* ocupa todo el ancho del contenedor */
  padding: 10px 0;         /* alto del botón */
  border: none;
  border-radius: 6px;
  background-color: #4caf50;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

