/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0F1B2D;
  --navy2:  #162440;
  --navy3:  #1E3057;
  --cream:  #F5EDD6;
  --coral:  #E8533A;
  --gold:   #C9A84C;
  --white:  #FFFFFF;
  --muted:  #8FA3C0;
  --card:   #1A2B44;
  --border: rgba(255,255,255,0.07);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius: 16px;
  --rail-h: 120px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.passport-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.app-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.app-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── City Rail ── */
.city-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.city-rail::-webkit-scrollbar { display: none; }

.city-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  position: relative;
  min-width: 80px;
}

.city-tab:hover { color: var(--white); background: rgba(255,255,255,0.04); }

.city-tab.active {
  color: var(--white);
  border-bottom-color: var(--coral);
}

.city-tab .tab-flag {
  font-size: 22px;
  line-height: 1;
}

.city-tab .tab-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-tab .tab-dates {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.city-tab.active .tab-dates { color: var(--gold); }

/* ── Content ── */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

/* ── City View ── */
.city-view { animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Passport Stamp Hero ── */
.stamp-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stamp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-color, var(--coral)) 0%, transparent 65%);
  opacity: 0.12;
  pointer-events: none;
}

.stamp-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-color, var(--coral));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: rgba(255,255,255,0.03);
}

.stamp-flag { font-size: 32px; line-height: 1; }

.stamp-info {}

.stamp-city {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -1px;
}

.stamp-country {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.stamp-tagline {
  font-size: 13px;
  color: var(--accent-color, var(--coral));
  font-style: italic;
  margin-top: 6px;
  font-weight: 400;
}

.stamp-dates-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color, var(--coral)), transparent);
  opacity: 0.3;
}

.event-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.event-card + .event-card {
  border-top: 1px solid var(--border);
}

.event-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
  padding-top: 2px;
}

.event-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.event-body { flex: 1; min-width: 0; }

.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.event-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-color, var(--coral));
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.event-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.event-category {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-left: auto;
}

.cat-lodging   { background: rgba(201,168,76,0.15);  color: var(--gold); }
.cat-tour      { background: rgba(232,83,58,0.15);   color: #FF8A72; }
.cat-transit   { background: rgba(143,163,192,0.12); color: var(--muted); }
.cat-free      { background: rgba(72,187,120,0.15);  color: #6EE7A0; }

.event-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 4px;
}

.event-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.event-confirm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
}

.event-highlight {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #9BC4E8;
  font-style: italic;
}

/* ── Section Divider ── */
.day-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
  padding-left: 56px;
}

.day-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

.day-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Responsive ── */
@media (max-width: 420px) {
  .stamp-city { font-size: 28px; }
  .stamp-circle { width: 64px; height: 64px; }
  .stamp-flag { font-size: 24px; }
  .city-tab { padding: 10px 14px; min-width: 68px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .city-view { animation: none; }
}
