
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-2: #0ea5e9;
  --good: #15803d;
  --warn: #b45309;
  --shadow: 0 12px 32px rgba(15, 23, 42, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(79,70,229,.12), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 18px 14px;
  background: rgba(248,250,252,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.eyebrow { margin: 0 0 2px; font-size: .68rem; letter-spacing: .16em; color: var(--accent); font-weight: 800; }
h1 { margin: 0; font-size: 1.25rem; }
.status-wrap { display: flex; align-items: center; gap: 8px; }
.badge {
  padding: 7px 10px; border-radius: 999px; background: #e2e8f0; color: #334155;
  font-size: .74rem; font-weight: 700;
}
.badge.online { background: #dcfce7; color: #166534; }
.badge.offline { background: #ffedd5; color: #9a3412; }
.icon-btn, .text-btn {
  border: 0; background: transparent; color: var(--accent); font-weight: 800;
}
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); box-shadow: 0 4px 16px rgba(15,23,42,.08); }
.app { max-width: 920px; margin: auto; padding: 18px 16px 110px; }
.hero {
  background: linear-gradient(135deg, #0f172a, #312e81 72%, #0369a1);
  color: white; padding: 24px; border-radius: 28px; box-shadow: var(--shadow);
  display: grid; gap: 20px;
}
.hero-kicker { margin: 0 0 8px; color: #c7d2fe; font-weight: 700; font-size: .82rem; }
.hero h2 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.55rem); line-height: 1.05; max-width: 16ch; }
.hero p:not(.hero-kicker) { color: #dbeafe; line-height: 1.55; }
.countdown-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: center;
}
.countdown-card span { color: #cbd5e1; font-size: .78rem; }
.countdown-card strong { margin-top: 4px; font-size: 1.1rem; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin: 28px 2px 12px; }
.section-title h3 { margin: 0; font-size: 1.06rem; }
.section-title span { color: var(--muted); font-size: .78rem; }
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.city-card {
  border: 0; text-align: left; min-height: 170px; padding: 16px; border-radius: var(--radius);
  color: white; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; position: relative;
}
.city-card::after {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  right: -38px; top: -48px; background: rgba(255,255,255,.16);
}
.city-card .city-icon { font-size: 2rem; }
.city-card h4 { margin: 12px 0 3px; font-size: 1.2rem; }
.city-card p { margin: 0; color: rgba(255,255,255,.82); font-size: .78rem; }
.city-card.malaga { background: linear-gradient(145deg, #ea580c, #f59e0b); }
.city-card.tenerife { background: linear-gradient(145deg, #0284c7, #06b6d4); }
.city-card.madrid { background: linear-gradient(145deg, #7c3aed, #db2777); }
.timeline-card, .checklist-card, .panel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(15,23,42,.06); overflow: hidden;
}
.timeline-empty { padding: 22px; color: var(--muted); }
.timeline-item {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 16px;
  border-bottom: 1px solid var(--line); align-items: center;
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-time { font-weight: 800; color: var(--accent); font-size: .86rem; }
.timeline-copy strong { display: block; }
.timeline-copy small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.map-link {
  text-decoration: none; background: var(--surface-2); color: var(--accent);
  border-radius: 12px; padding: 9px 11px; font-weight: 800; font-size: .76rem;
}
.check-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row input { width: 21px; height: 21px; accent-color: var(--accent); }
.check-row.done span { text-decoration: line-through; color: #94a3b8; }
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 30; width: min(94%, 620px); display: grid; grid-template-columns: repeat(5,1fr);
  padding: 8px; border-radius: 24px; background: rgba(15,23,42,.94); box-shadow: 0 18px 40px rgba(15,23,42,.28);
  backdrop-filter: blur(16px);
}
.nav-item { border: 0; color: #94a3b8; background: transparent; border-radius: 17px; padding: 8px 4px; font-size: 1.05rem; }
.nav-item span { display: block; font-size: .64rem; margin-top: 2px; }
.nav-item.active { background: white; color: var(--ink); }
.view-title { margin: 4px 0 18px; }
.day-card { margin-bottom: 14px; }
.day-head { padding: 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.day-head strong { display:block; }
.day-head span { color:var(--muted); font-size:.8rem; }
.restaurant-card { padding: 17px; border-bottom: 1px solid var(--line); }
.restaurant-card:last-child { border-bottom: 0; }
.restaurant-card h4 { margin: 0 0 5px; }
.restaurant-meta { color: var(--muted); font-size: .78rem; margin-bottom: 10px; }
.pills { display:flex; gap:6px; flex-wrap:wrap; }
.pill { font-size:.7rem; padding:6px 8px; border-radius:999px; background:#f1f5f9; color:#334155; font-weight:700; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.action-btn { display:inline-block; text-decoration:none; padding:9px 11px; border-radius:11px; background:var(--accent); color:white; font-weight:800; font-size:.76rem; border:0; }
.action-btn.secondary { background:#eef2ff; color:var(--accent); }
dialog { width: min(92vw, 680px); border: 0; border-radius: 26px; padding: 0; box-shadow: 0 30px 80px rgba(15,23,42,.35); }
dialog::backdrop { background: rgba(15,23,42,.65); backdrop-filter: blur(5px); }
.dialog-shell { padding: 22px; max-height: 82vh; overflow:auto; }
.dialog-close { float:right; border:0; background:#f1f5f9; width:36px; height:36px; border-radius:12px; font-size:1.35rem; }
.toast { position:fixed; left:50%; bottom:100px; transform:translate(-50%, 20px); opacity:0; pointer-events:none; background:#0f172a; color:white; padding:12px 16px; border-radius:14px; transition:.25s; z-index:40; box-shadow:var(--shadow); }
.toast.show { opacity:1; transform:translate(-50%,0); }
.info-list { padding: 0; margin:0; list-style:none; }
.info-list li { padding:14px 16px; border-bottom:1px solid var(--line); }
.info-list li:last-child{border-bottom:0}
@media (max-width: 690px) {
  .city-grid { grid-template-columns: 1fr; }
  .city-card { min-height: 132px; }
  .hero { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 52px 1fr; }
  .timeline-item .map-link { grid-column: 2; width:max-content; }
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.6fr .8fr; }
}

.food-select{width:100%;margin-top:9px;border:1px solid var(--line);border-radius:12px;padding:11px;background:var(--surface);color:var(--ink);}
