/* style.css - Cina Trip */
:root {
  --red: #c8102e;
  --red-dark: #8c0a20;
  --gold: #ffc847;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #767676;
  --bg: #faf7f2;
  --card: #ffffff;
  --border: #eee3d2;
  --green: #2d8659;
  --amber: #e89222;
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* LOGIN */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  background: var(--bg);
}

/* ── LEFT VISUAL PANEL ── */
.login-visual {
  flex: 1;
  background: #b8000e;
  background: linear-gradient(160deg, #c8102e 0%, #8c0a20 60%, #6a0618 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2.5rem;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,71,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.flag-stars {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  width: 90px;
  opacity: 0.95;
}

.decor-char {
  position: absolute;
  bottom: -1rem; right: 1rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 9rem;
  color: rgba(255,200,71,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── LANDING COUNTDOWN ── */
.login-countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.lcd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,200,71,0.25);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  min-width: 68px;
}

.lcd-num {
  font-size: 2.6rem;
  font-weight: 700;
  color: #FFD700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lcd-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}

.lcd-sep {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,200,71,0.4);
  padding-bottom: 1.2rem;
  line-height: 1;
}

.group-photo-wrap {
  width: min(340px, 90%);
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255,200,71,0.5);
  box-shadow: 0 16px 60px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,200,71,0.1);
  position: relative;
  z-index: 1;
}

.group-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.visual-info {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.visual-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.6rem;
  color: #FFD700;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.visual-info h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.visual-dates {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.visual-cities {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.visual-cities span {
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255,200,71,0.35);
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  letter-spacing: 0.02em;
}

/* ── RIGHT FORM PANEL ── */
.login-form-panel {
  width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.login-card {
  width: 100%;
  background: var(--card);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .login-wrap { flex-direction: column; }
  .login-visual { min-height: 55vh; padding: 2rem 1.5rem; }
  .login-form-panel { width: 100%; padding: 1.5rem 1rem 2rem; }
  .group-photo-wrap { width: min(280px, 85%); }
  .visual-cn { font-size: 2rem; }
  .visual-info h1 { font-size: 1.4rem; }
  .lcd-num { font-size: 1.9rem; }
  .lcd-block { min-width: 52px; padding: 0.45rem 0.6rem; }
  .lcd-sep { font-size: 1.5rem; padding-bottom: 0.9rem; }
}

.login-hero {
  text-align: center;
  margin-bottom: 1.8rem;
}

.login-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.3rem;
}

.cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.login-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}

.subtitle {
  color: var(--ink-3);
  margin-top: 0.25rem;
}

#login-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}

#login-form input {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  margin-top: 0.4rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

#login-form input:focus {
  outline: none;
  border-color: var(--red);
}

#login-form button {
  width: 100%;
  padding: 0.9rem;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

#login-form button:hover { background: var(--red-dark); }

.login-err {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  text-align: center;
  min-height: 1.2em;
}

/* TOPBAR */
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.brand-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  color: var(--red);
}

.brand-text {
  font-size: 1.1rem;
}

.tabs {
  display: flex;
  gap: 0.3rem;
}

.tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-2);
  transition: all 0.2s;
}

.tab:hover { background: var(--bg); }

.tab.active {
  background: var(--red);
  color: white;
}

.user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: all 0.2s;
}

.btn-ghost:hover { background: var(--bg); border-color: var(--ink-3); }

/* TAB CONTENT */
.tab-content {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tab-content.active { display: block; }

#tab-itinerary {
  max-width: none;
  padding: 0;
}

/* ── MAP PHOTOS PANEL ── */
.map-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  min-height: 0;
}

.map-photos.has-photos {
  animation: mapPhotosIn 0.28s ease-out;
}

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

.map-photo {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  width: 100%;
  background: var(--border);
}

.map-photo:first-child { border-radius: 10px 4px 4px 10px; }
.map-photo:last-child  { border-radius: 4px 10px 10px 4px; }
.map-photo:only-child  { border-radius: 10px; grid-column: 1 / -1; }

.hero-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* ITINERARY SPLIT LAYOUT */
.itinerary-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  align-items: start;
}

.map-panel {
  position: sticky;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.map-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
}

.china-map {
  width: 100%;
  border-radius: 20px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.10));
}

/* SVG internal background: sea gradient defined inline via <defs> */
.china-land {
  fill: url(#land-grad);
  stroke: #5a8820;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.china-island {
  fill: #b8d484;
  stroke: #5a8820;
  stroke-width: 1;
}

/* Route segments */
.route-seg {
  fill: none;
  stroke: #ccc;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.4s ease, stroke-width 0.4s ease, stroke-opacity 0.4s ease;
}

.route-seg.dashed { stroke-dasharray: 8 5; }

.route-seg.traveled {
  stroke: var(--red);
  stroke-opacity: 0.45;
  stroke-dasharray: none;
}

.route-seg.dashed.traveled {
  stroke-dasharray: 8 5;
  stroke-opacity: 0.45;
}

.route-seg.active-seg {
  stroke: var(--red);
  stroke-width: 3;
  stroke-opacity: 1;
}

/* City markers */
.city-circle {
  fill: white;
  stroke: #aaa;
  stroke-width: 2;
  transition: fill 0.3s, stroke 0.3s, filter 0.3s;
}

.city-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  fill: #777;
  font-weight: 500;
  pointer-events: none;
}

.city.visited .city-circle {
  fill: var(--red);
  stroke: var(--red-dark);
}

.city.visited .city-label { fill: var(--ink); font-weight: 600; }

.city.active .city-circle {
  fill: var(--gold);
  stroke: var(--red);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(255,200,71,0.9));
}

.city.active .city-label {
  fill: var(--ink);
  font-weight: 700;
  font-size: 11px;
}

/* Pulse ring on active city */
.city-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.city-pulse.active {
  opacity: 0.6;
  animation: pulse-ring 1.6s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { r: 10; opacity: 0.7; }
  100% { r: 22; opacity: 0; }
}

.map-current {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
  transition: color 0.3s;
}

.map-legend {
  display: flex;
  gap: 1.2rem;
  font-size: 0.72rem;
  color: var(--ink-3);
  justify-content: center;
}

.hero-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-header p {
  color: var(--ink-3);
  font-size: 1.1rem;
}

/* DAYS GRID */
.days-grid { display: grid; gap: 0.8rem; }

/* City group header */
.city-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 0 0.5rem;
}
.city-group-header:first-child { padding-top: 0; }
.cgdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cgname { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.cgline { flex: 1; height: 1px; background: var(--border); }
.cgrange { font-size: 0.72rem; color: var(--ink-3); white-space: nowrap; }

/* Day card */
.day-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--city-color, var(--red));
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.day-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}

.day-head {
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 52px 1fr auto 24px;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  user-select: none;
  border-radius: 14px;
  transition: background 0.15s;
}
.day-head:hover { background: rgba(0,0,0,0.02); }
.day-card.open .day-head { border-radius: 14px 14px 0 0; }

.day-num {
  background: var(--city-color, var(--red));
  color: white;
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.day-n-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.day-n-num { font-size: 1.3rem; font-weight: 700; line-height: 1.1; }

.day-head-info { flex: 1; min-width: 0; }

.day-date-row {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.day-date { font-size: 0.8rem; color: var(--ink-3); font-weight: 500; }

.day-city-pill {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 20px;
}
.day-travel-pill {
  font-size: 0.72rem; font-weight: 500;
  color: var(--ink-3);
  background: var(--bg);
  padding: 0.15rem 0.5rem; border-radius: 20px;
}

.day-title { font-size: 1rem; font-weight: 600; color: var(--ink); }

.day-expand-icon {
  color: var(--ink-3); font-size: 1.3rem; line-height: 1;
  transition: transform 0.25s; display: flex; align-items: center; justify-content: center;
}
.day-card.open .day-expand-icon { transform: rotate(90deg); }

/* Day body */
.day-body {
  display: none;
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--border);
}
.day-card.open .day-body {
  display: block;
  animation: bodyOpen 0.22s ease-out;
}
@keyframes bodyOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Images */
.day-images {
  display: flex; gap: 0.4rem;
  margin: 1rem 0 0.8rem;
  border-radius: 10px; overflow: hidden;
  height: 148px;
}
.day-images img {
  flex: 1; min-width: 0;
  object-fit: cover; display: block;
}
.day-images img:first-child { border-radius: 8px 0 0 8px; }
.day-images img:last-child  { border-radius: 0 8px 8px 0; }
.day-images img:only-child  { border-radius: 8px; }

/* Highlight badge */
.day-highlight {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff8e6 0%, #fff2cc 100%);
  border-radius: 10px; border-left: 3px solid var(--gold);
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}

/* Schedule 3-column grid */
.day-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.schedule-item {
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  border-radius: 10px;
}
.schedule-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--city-color, var(--red));
  margin-bottom: 0.35rem;
}
.schedule-item p { font-size: 0.84rem; color: var(--ink-2); line-height: 1.5; }

/* Hotel + Tips footer */
.day-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.day-footer:has(.footer-block:only-child) { grid-template-columns: 1fr; }
.footer-block {
  display: flex; gap: 0.5rem; align-items: flex-start;
  padding: 0.65rem 0.8rem;
  background: var(--bg); border-radius: 10px;
}
.footer-block.hotel { border-left: 3px solid var(--gold); }
.footer-block.tips  { border-left: 3px solid var(--amber); }
.footer-icon { font-size: 1rem; flex-shrink: 0; padding-top: 1px; }
.footer-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 0.15rem; }
.footer-val { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }

/* ATTENDANCE PILLS */
.attendance-bar {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  align-items: center;
  flex-wrap: wrap;
}

.attendance-label {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-right: 0.5rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.15s;
}

.pill:hover { border-color: var(--ink-3); }

.pill.active.yes { background: var(--green); border-color: var(--green); color: white; }
.pill.active.maybe { background: var(--amber); border-color: var(--amber); color: white; }
.pill.active.no { background: var(--ink-3); border-color: var(--ink-3); color: white; }

.attendance-summary {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.avatars {
  display: inline-flex;
  gap: -4px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  margin-left: -6px;
}

.avatar:first-child { margin-left: 0; }

/* COMMENTS */
.comments-section {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border);
}

.comments-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.8rem;
}

.comment-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.comment-form textarea {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 40px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.comment-form button {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  align-self: flex-end;
}

.comment {
  padding: 0.8rem 1rem;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.comment-author {
  font-weight: 600;
  color: var(--red);
  font-size: 0.85rem;
}

.comment-date {
  color: var(--ink-3);
  font-size: 0.75rem;
}

.comment-body { color: var(--ink-2); white-space: pre-wrap; }

.comment-delete {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.comment-delete:hover { color: var(--red); }

/* PANEL */
.panel {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

/* PROPOSALS */
.proposal-form {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.proposal-form input,
.proposal-form select,
.proposal-form textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
}

.proposal-form textarea { min-height: 80px; resize: vertical; }

.proposal-form button {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  justify-self: start;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.proposal {
  padding: 1.2rem;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.proposal-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.vote-btn {
  background: white;
  border: 1.5px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s;
}

.vote-btn:hover { border-color: var(--red); }
.vote-btn.active-up { background: var(--green); border-color: var(--green); color: white; }
.vote-btn.active-down { background: var(--ink-3); border-color: var(--ink-3); color: white; }

.vote-score {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.proposal-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.proposal-meta {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
}

.proposal-day-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--red);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  margin-right: 0.5rem;
}

.proposal-body {
  color: var(--ink-2);
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.proposal-actions {
  margin-top: 0.6rem;
}

/* PEOPLE */
.people-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  min-height: calc(100vh - 60px);
  align-content: center;
}

.person-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: default;
}

.person-bubble .big-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.person-bubble:hover .big-avatar {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.person-bubble .person-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--ink-3);
  font-style: italic;
}

/* ── MINI ATTENDANCE AVATARS (in card header) ── */
.day-mini-att {
  display: flex;
  align-items: center;
  gap: 0;
}
.mini-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
  margin-left: -5px;
  flex-shrink: 0;
}
.mini-av:first-child { margin-left: 0; }
.mini-att-extra {
  font-size: 0.65rem;
  color: var(--ink-3);
  margin-left: 4px;
  white-space: nowrap;
}

/* ── DAYS WIDGETS (countdown + progress) ── */
.days-widgets { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.8rem; }

.countdown-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.countdown-text { font-size: 0.85rem; color: var(--ink-2); flex: 1; line-height: 1.3; }
.countdown-text strong { color: var(--red); }
.countdown-track {
  width: 100px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
}
.countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 3px;
  transition: width 0.6s ease;
}

.progress-strip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.prog-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-right: 4px;
  white-space: nowrap;
}
.prog-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
  outline: none;
  position: relative;
}
.prog-dot:hover { transform: scale(1.35); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.prog-dot:focus-visible { box-shadow: 0 0 0 3px var(--red); }

/* ── SKELETON LOADER ── */
.skeleton-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.skel {
  background: linear-gradient(90deg, #f2f0ed 25%, #e8e4df 50%, #f2f0ed 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-num { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.skel-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel-line { height: 13px; }
.skel-line.short { width: 45%; }
.skel-line.long { width: 75%; }

/* ── TOAST NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  white-space: nowrap;
  max-width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  pointer-events: none;
}
.toast.toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.toast-error   { background: var(--red); }
.toast.toast-success { background: #256f48; }
.toast.toast-info    { background: #1a1a1a; }

/* ── FOCUS RINGS (accessibility) ── */
.tab:focus-visible,
.pill:focus-visible,
.vote-btn:focus-visible,
.btn-ghost:focus-visible,
.day-head:focus-visible,
#login-form button:focus-visible,
.comment-form button:focus-visible,
.proposal-form button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* MOBILE */
@media (max-width: 1000px) {
  .itinerary-layout {
    grid-template-columns: 1fr;
  }
  .map-panel {
    position: relative;
    top: 0;
  }
  .china-map { max-height: 280px; }
}

@media (max-width: 700px) {
  .topbar { padding: 0.6rem 1rem; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tab { padding: 0.4rem 0.6rem; font-size: 0.85rem; flex: 1; text-align: center; }
  .hero-header h1 { font-size: 1.8rem; }
  .day-head { padding: 0.85rem 1rem; gap: 0.6rem; grid-template-columns: 44px 1fr auto 20px; }
  .day-num { width: 44px; height: 44px; border-radius: 10px; }
  .day-n-num { font-size: 1.1rem; }
  .panel { padding: 1.2rem; }
  .proposal { grid-template-columns: 1fr; }
  .proposal-vote { flex-direction: row; justify-self: start; }
  .people-bubbles { gap: 1.5rem; padding: 2rem 1rem; }
  .person-bubble .big-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .day-schedule { grid-template-columns: 1fr; }
  .day-footer { grid-template-columns: 1fr; }
  .day-images { height: 120px; }
  .countdown-bar { flex-wrap: wrap; gap: 0.5rem; }
  .countdown-track { width: 100%; }
  .days-widgets { margin-bottom: 0.5rem; }
}

/* Button loading state */
button[data-loading] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
button[data-loading]::after {
  content: ' ⋯';
}
