/* ── EU Travel City Guide — Shared Stylesheet ────────────────────────────────
   Shared across all {city}-segment-plan.html pages.
   Update here; all pages pick up the change automatically.
   ─────────────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;600;800&display=swap");

:root {
  --bg-a: #0d1a26;
  --bg-b: #172536;
  --ink: #eef2f8;
  --muted: #8fa4bd;
  --accent: #c9a55a;
  --card: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.13);
  --active: #52b08a;
  --done: #6a82a0;
  --warn: #cc8f54;
  --critical: #c45f5f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(201, 165, 90, 0.08), transparent 45%),
    linear-gradient(150deg, var(--bg-a) 0%, var(--bg-b) 60%, #101c2a 100%);
  min-height: 100vh;
}

.wrap {
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* ── back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.back-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── hero ── */
.hero {
  border: 1px solid var(--card-border);
  border-radius: 1.1rem;
  background: linear-gradient(140deg, rgba(6, 20, 44, 0.72), rgba(12, 67, 73, 0.55));
  padding: 1.6rem;
  backdrop-filter: blur(5px);
  animation: rise-in 0.7s ease both;
}

.eyebrow {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0.15rem 0 0.3rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-weight: 400;
}

.subtitle {
  margin: 0;
  color: #deebfb;
}

.meta-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.meta {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
}
.meta .k { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.15rem; }
.meta .v { font-weight: 800; font-size: 1rem; }

/* ── countdown banner ── */
.countdown-banner {
  margin-top: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  background: rgba(4, 26, 54, 0.55);
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  animation: rise-in 0.9s ease both;
}

.countdown-banner.active-trip { color: var(--active); border-color: rgba(82, 176, 138, 0.35); }
.countdown-banner.trip-done   { color: var(--done);   border-color: rgba(141, 161, 187, 0.35); }

/* ── today mission ── */
.today-mission {
  display: none;
  margin-top: 0.85rem;
  border: 2px solid rgba(82, 176, 138, 0.45);
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
  background: rgba(18, 50, 38, 0.4);
  animation: rise-in 0.8s ease both;
}
.today-mission.visible { display: block; }
.today-mission .mission-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--active);
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.today-mission .mission-text {
  font-size: 1.08rem;
  font-weight: 700;
  color: #d8f0e8;
  line-height: 1.4;
}

/* ── section headers ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.3rem 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0 0.85rem;
}

.section-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #e7f2ff;
}

.section-subtitle {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── pre-trip checklist ── */
.checklist { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--card-border);
  border-radius: 0.8rem;
  padding: 0.8rem 0.95rem;
  background: rgba(5, 24, 52, 0.45);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check-item:hover { background: rgba(10, 36, 72, 0.6); }
.check-item.done { opacity: 0.55; }
.check-item.done .check-main { text-decoration: line-through; color: var(--done); }

.check-item input[type="checkbox"] {
  margin-top: 0.18rem;
  accent-color: var(--active);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.check-body { flex: 1; }
.check-urgency {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}
.urgency-critical { background: rgba(255, 100, 100, 0.2); border: 1px solid rgba(255, 100, 100, 0.4); color: var(--critical); }
.urgency-soon     { background: rgba(255, 187, 100, 0.18); border: 1px solid rgba(255, 187, 100, 0.4); color: var(--warn); }
.urgency-may      { background: rgba(255, 187, 100, 0.10); border: 1px solid rgba(255, 187, 100, 0.25); color: #ffe0a8; }
.urgency-day-of   { background: rgba(82, 176, 138, 0.12); border: 1px solid rgba(82, 176, 138, 0.3); color: var(--active); }

.check-main { font-weight: 800; font-size: 0.97rem; }
.check-reason { margin-top: 0.2rem; font-size: 0.86rem; color: var(--muted); }
.check-fallback { margin-top: 0.3rem; font-size: 0.82rem; color: #c8d4e9; font-style: italic; }
.check-link { display: inline-block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--accent); text-decoration: none; border-bottom: 1px dotted rgba(255, 209, 102, 0.5); }
.check-link:hover { border-bottom-color: var(--accent); }

/* ── auth-locked checklist ── */
.check-item.auth-locked { cursor: default; }
.check-item.auth-locked input[type="checkbox"] { cursor: not-allowed; opacity: 0.6; }
.login-nudge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 187, 100, 0.35);
  border-radius: 0.7rem;
  background: rgba(88, 58, 20, 0.25);
  font-size: 0.88rem;
  color: #ffe2be;
  margin-bottom: 0.6rem;
}
.login-nudge a { color: var(--accent); font-weight: 700; }
.login-nudge a:hover { text-decoration: underline; }

/* Login-status banner — mirrors the overview page's .private-status. Shows
   whether the visitor is anonymous (public view) or logged in (full detail). */
.login-status {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.86rem;
}
.login-status.info {
  display: flex;
  border-color: rgba(144, 202, 255, 0.38);
  background: rgba(14, 42, 76, 0.38);
  color: #d7e6fb;
}
.login-status.ok {
  display: flex;
  border-color: rgba(82, 176, 138, 0.4);
  background: rgba(18, 50, 38, 0.35);
  color: #8dd4b8;
}
.login-status .status-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff6e8;
  font-weight: 800;
  text-decoration: none;
}
.login-status .status-link:hover { text-decoration: underline; }

/* ── quick ref bar ── */
.quick-ref {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.qr-item {
  border: 1px solid var(--card-border);
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  background: rgba(5, 24, 52, 0.45);
  font-size: 0.86rem;
  color: #d0e5ff;
}
.qr-key { font-weight: 800; color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.15rem; }

/* ── getting around / local transit ── */
.transit-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(5, 24, 52, 0.45);
}
.transit-summary {
  margin: 0;
  padding: 0.75rem 0.95rem 0.6rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: #d8ecff;
  border-bottom: 1px solid var(--card-border);
}
.transit-item {
  display: grid;
  grid-template-columns: minmax(140px, 22%) 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  line-height: 1.5;
}
.transit-item:last-child { border-bottom: none; }
.transit-label {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
}
.transit-detail { color: #d0e5ff; }

@media (max-width: 540px) {
  .transit-item { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ── must-do ranked ── */
.must-do-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.must-do-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #d4e7ff;
  line-height: 1.4;
}
.must-do-list .rank-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

/* ── day cards ── */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
}

.day-card {
  border: 1px solid var(--card-border);
  border-radius: 0.95rem;
  padding: 1rem 1.05rem;
  background: rgba(0, 18, 43, 0.38);
  backdrop-filter: blur(4px);
  transform: translateY(10px);
  opacity: 0;
  animation: card-in 0.55s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.day-card.today-card {
  border-color: rgba(82, 176, 138, 0.45);
  background: rgba(14, 40, 32, 0.5);
}

.day-card.past-card { opacity: 0.5; }

.day-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }

.day-label-group {}
.day-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.day-name {
  margin: 0.1rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  font-weight: 400;
}
.day-date { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }

.day-status-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
}
.pill-today   { background: rgba(82, 176, 138, 0.18); border: 1px solid rgba(82, 176, 138, 0.45); color: var(--active); }
.pill-upcoming{ background: rgba(255, 255, 255, 0.1);  border: 1px solid var(--card-border);       color: var(--muted); }
.pill-past    { background: rgba(141, 161, 187, 0.12); border: 1px solid rgba(141, 161, 187, 0.3); color: var(--done); }

.day-mission {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d0e8ff;
  line-height: 1.4;
  border-left: 3px solid rgba(255, 209, 102, 0.6);
  padding-left: 0.65rem;
}

.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.sched-time {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.02rem;
}

.sched-what { color: #ddeeff; }
.sched-link { color: #7ec8e3; font-size: 0.82em; white-space: nowrap; }
.sched-link:hover { color: #b8e8f8; }

.day-watch {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.83rem;
  color: #ffe2be;
  background: rgba(88, 58, 20, 0.3);
  border: 1px solid rgba(255, 187, 100, 0.3);
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  line-height: 1.4;
}
.day-watch .watch-icon { font-size: 0.9rem; flex-shrink: 0; }

.day-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.zone-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
}

/* ── expand / collapse schedule ── */
.schedule-toggle {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  align-self: flex-start;
  font-family: "Manrope", sans-serif;
  transition: background 0.15s;
}
.schedule-toggle:hover { background: rgba(255,255,255,0.08); color: #fff; }

.schedule-wrap { display: none; }
.schedule-wrap.open { display: block; }

/* ── restaurant table ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 0.8rem;
  background: rgba(5, 28, 58, 0.45);
}

.resto-table {
  width: max(100%, 680px);
  border-collapse: collapse;
}

.resto-table th,
.resto-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  font-size: 0.88rem;
}

.resto-table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d7e6fb;
  background: rgba(2, 19, 44, 0.55);
}

.resto-table tr:last-child td { border-bottom: none; }
.resto-table td { color: #e4f0ff; }
.resto-table td a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted rgba(255, 209, 102, 0.45); font-weight: 600; }
.resto-table td a:hover { color: #fff; border-bottom-color: var(--accent); }

.highlight-row td:first-child { font-weight: 800; }
.highlight-row td:first-child::after {
  content: " ★";
  color: var(--accent);
  font-size: 0.8rem;
}

.resto-zone {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}

.booking-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-walkin  { background: rgba(82, 176, 138, 0.12); border: 1px solid rgba(82, 176, 138, 0.3); color: var(--active); }
.badge-reserve { background: rgba(255, 187, 100, 0.15); border: 1px solid rgba(255, 187, 100, 0.35); color: var(--warn); }

/* ── gems + skip ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.list-card {
  border: 1px solid var(--card-border);
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(0, 18, 43, 0.36);
}

.list-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #e7f2ff;
}

.list-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.list-card li { font-size: 0.88rem; line-height: 1.45; color: #d4e7ff; }
.list-card li strong { color: #fff; }

.skip-card li strong { color: var(--warn); }

/* ── animations ── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .wrap { width: 94vw; }
  .hero { padding: 1.1rem; }
  .days-grid { grid-template-columns: 1fr; }
}
