:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --brand: #2f80ed;
  --brand-2: #eb5757;
  --accent: #f2994a;
  --line: #e5e9f0;
  --shadow: 0 6px 24px rgba(31, 41, 51, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #2f80ed 0%, #56ccf2 55%, #eb5757 140%);
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.brand { font-weight: 800; letter-spacing: 1px; opacity: 0.95; margin-bottom: 12px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 14px; }
.tagline { font-size: 16px; opacity: 0.95; margin: 0 auto 26px; max-width: 680px; }

.search-box {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.search-box input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  outline: none;
  box-shadow: var(--shadow);
}
.search-box button {
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: #1f2933;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.search-box button:hover { transform: translateY(-1px); }

.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.32); }

/* ---------- Guide layout ---------- */
main#guide { max-width: 980px; margin: 0 auto; padding: 32px 20px 60px; }
.empty { text-align: center; color: var(--muted); padding: 80px 20px; }

.guide-hero {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}
.guide-hero h2 { margin: 0 0 6px; font-size: 30px; }
.guide-hero .en { color: var(--muted); font-weight: 500; margin-left: 8px; font-size: 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.meta {
  background: #eef4ff;
  color: #1c4fa0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
}
.summary { color: #374151; font-size: 15px; }

.section { margin: 34px 0; }
.section h3 {
  font-size: 22px;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 5px solid var(--brand);
}

/* ---------- Map ---------- */
.route-map {
  width: 100%;
  height: auto;
  background: #eaf2fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
}
.map-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Attraction cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 170px; object-fit: cover; background: #eef2f7; }
.card .body { padding: 14px 16px 18px; flex: 1; }
.card .city { font-size: 12px; color: var(--brand); font-weight: 700; }
.card h4 { margin: 4px 0 8px; font-size: 17px; }
.card .desc { font-size: 14px; color: #4b5563; margin: 0 0 8px; }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 6px;
}
.tag.must { background: #fde8e8; color: #c0392b; }
.tag.opt { background: #e8f5e9; color: #2e7d32; }
.card .tip { font-size: 13px; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #f1f5fb; color: #334155; font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* ---------- Itinerary ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 3px; background: linear-gradient(var(--brand), var(--accent)); border-radius: 3px; }
.day { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 14px; }
.day .dh { font-weight: 800; color: var(--brand); }
.day .dc { color: var(--accent); font-weight: 700; margin-left: 8px; }
.day .meta { margin-top: 6px; }
.day .b { color: var(--muted); font-size: 13px; }

/* ---------- Lists ---------- */
ul.tips { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 18px 38px; margin: 0; }
ul.tips li { margin: 6px 0; }

.site-footer { text-align: center; color: var(--muted); padding: 30px 20px 50px; font-size: 13px; }
.site-footer .muted { opacity: 0.8; max-width: 680px; margin: 8px auto 0; }

@media (max-width: 600px) {
  .search-box { flex-direction: column; }
  .search-box button { width: 100%; }
}
