/* [hidden] must beat any class display rule (acc-nav flex etc.) */
[hidden] { display: none !important; }
:root {
  --primary: #0e7c6b;
  --primary-dark: #0a5c50;
  --primary-deep: #073d35;
  --primary-light: #e3f2ee;
  --accent: #ff7a59;
  --gold: #f5b50a;
  --ink: #17332e;
  --muted: #5f7a74;
  --bg: #f4f8f7;
  --card: #ffffff;
  --line: #d9e6e2;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(13, 62, 54, 0.10);
  --shadow-sm: 0 3px 14px rgba(13, 62, 54, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Long unbreakable strings (official-website URLs, long words) must wrap
     instead of overflowing their column and breaking mobile layouts.
     overflow-wrap is inherited, so this covers every element on every page. */
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ---------- top header (sticky so the comment button stays visible) ---------- */
.topbar { background: var(--primary-deep); color: #eaf5f2; font-size: 14px; position: sticky; top: 0; z-index: 1200; box-shadow: 0 2px 10px rgba(7, 35, 30, 0.28); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 46px; gap: 14px; }
.topbar nav { display: flex; align-items: center; gap: 14px; }
.topbar a { color: #bfe3da; }
.brand-mini { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.brand-mini img { height: 26px; width: auto; }
.brand-mini:hover { text-decoration: none; }

/* ---------- hero (homepage) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 88% -12%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, #073d35 0%, #0a5c50 45%, #12907c 100%);
  color: #fff;
  padding: 16px 0 24px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; text-align: center; }
.logo-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 10px; border-radius: 999px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.logo-badge img { height: 13px; width: auto; }
.hero h1 { font-size: clamp(19px, 2.4vw, 24px); margin: 7px 0 5px; line-height: 1.25; letter-spacing: -0.01em; }
.hero p.sub { margin: 0 auto; max-width: 860px; color: #cfe9e2; font-size: 11.5px; }
.hero .stats { display: flex; gap: 22px; justify-content: center; margin-top: 9px; flex-wrap: wrap; }
.hero .stats div { text-align: center; }
.hero .stats b { display: block; font-size: 15px; line-height: 1.1; color: #ffd970; font-weight: 800; }
.hero .stats span { display: block; line-height: 1.25; font-size: 9px; color: #bfe3da; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- search & filters ---------- */
.filterbar { position: relative; z-index: 5; margin-top: 0; }
.filterbar .inner {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  border: 1px solid var(--line);
}
.searchbox {
  flex: 1 1 320px; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px;
}
.searchbox svg { flex: none; opacity: 0.55; }
.searchbox input { flex: 1; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; }
.searchbox input::placeholder { color: #9db5b0; }
select.control {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 15px; color: var(--ink); outline: none; cursor: pointer;
}
.result-meta { margin: 24px 4px 4px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.result-meta b { color: var(--primary-dark); }

/* ---------- region chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 4px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- sections & cards ---------- */
.region-sec { margin: 40px 0 12px; }
.region-sec > h2 { font-size: 24px; margin: 0 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.region-sec > h2 .cnt { font-size: 14px; color: var(--muted); font-weight: 500; }
.view-all {
  margin-left: auto; border: 1px solid var(--line); background: #fff; color: var(--primary-dark);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.view-all:hover { border-color: var(--primary); color: var(--primary); }
.region-sec > p.reg-desc { color: var(--muted); margin: 0 0 18px; font-size: 15px; max-width: 860px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column; color: var(--ink);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); text-decoration: none; }
.card .thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0e7c6b, #12907c); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.9); font-size: 34px; font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(135deg, #0a5c50 0%, #12907c 60%, #16a08a 100%);
}
.card .thumb .ph small { position: absolute; bottom: 10px; right: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; opacity: 0.75; }
.card .thumb .star {
  position: absolute; top: 10px; left: 10px; background: var(--gold); color: #3a2c00;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 17.5px; line-height: 1.35; color: var(--ink); }
.card .cn { color: var(--muted); font-size: 13.5px; }
.card .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.tag { background: var(--primary-light); color: var(--primary-dark); font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.card:hover h3 { color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 70px 0; font-size: 16px; }

/* ---------- spot page ---------- */
.spot-hero { position: relative; min-height: 400px; display: flex; align-items: flex-end; background: linear-gradient(135deg, #073d35, #12907c); color: #fff; }
.spot-hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 35, 30, 0.06) 30%, rgba(7, 35, 30, 0.85) 100%); }
.spot-hero .wrap { position: relative; z-index: 2; padding-bottom: 34px; padding-top: 110px; width: 100%; }
.spot-hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.spot-hero .sub { color: #d9efe9; font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.spot-hero .sub .sep { opacity: 0.5; }
.crumb { padding: 16px 0 0; color: var(--muted); font-size: 13.5px; }
.crumb a { color: var(--muted); }
.spot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; margin: 24px 0 44px; }
.spot-main { min-width: 0; }
/* The aside must never force the single-column grid track wider than the
   viewport (a long URL inside a panel once expanded it to 523px on a 485px
   screen, truncating the whole page). */
.spot-aside { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 24px; }
.panel h2 { margin: 0 0 12px; font-size: 19px; }
.panel h2 .cn-sub { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
/* Ask-the-Way Card (问路卡) */
.ask-card .ask-cn { font-size: 30px; font-weight: 800; margin: 8px 0 2px; text-align: center; line-height: 1.25; }
.ask-card .ask-addr { color: var(--muted); font-size: 14px; text-align: center; margin: 0 0 12px; }
.ask-card .ask-phrase { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: 15.5px; text-align: center; border-radius: 8px; padding: 10px 12px; margin: 0 0 6px; }
.ask-card .ask-en { font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 14px; }
.ask-card .ask-mail { width: 100%; padding: 10px; border: 1px solid var(--primary); border-radius: 999px; background: #fff; color: var(--primary); font: 700 13px/1 inherit; cursor: pointer; }
.ask-card .ask-mail:hover { background: var(--primary); color: #fff; }
.ask-card .ask-mail:disabled { opacity: .6; cursor: default; }
.ask-card .ask-note { font-size: 12px; text-align: center; margin: 10px 0 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; }
.prose p { margin: 0 0 16px; font-size: 16.5px; }
.prose h2 { font-size: 26px; margin: 38px 0 14px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.latest-box { border-left: 4px solid var(--gold); }
.latest-box .upd { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* subpage tabs */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.subnav a {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.subnav a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.subnav a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 20px 0 8px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.gallery figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.gal-link { display: block; position: relative; cursor: zoom-in; }
.gal-link::after {
  content: "View full size"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); background: rgba(7, 35, 30, 0.78); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  opacity: 0; transition: opacity 0.15s; pointer-events: none; white-space: nowrap;
}
.gal-link:hover::after, .gal-link:focus-visible::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(7, 25, 22, 0.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); }
.lightbox .lb-cap { color: #cfe9e2; font-size: 14px; margin-top: 14px; text-align: center; max-width: 80vw; }
.lightbox .lb-hint { position: absolute; bottom: 14px; color: #86bab0; font-size: 12px; }
.lightbox .lb-cnt { position: absolute; bottom: 14px; right: 18px; color: #86bab0; font-size: 12.5px;
  font-weight: 700; letter-spacing: .04em; }
.lightbox .lb-close { position: absolute; top: 14px; right: 18px; background: rgba(255, 255, 255, 0.12);
  color: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 20px;
  line-height: 1; cursor: pointer; }
.lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.22); }
/* prev/next arrows: hidden by default, revealed on hover (or after a keyboard
   step via .lb-flash); always visible on touch devices that cannot hover */
.lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; height: 88px; border: 0; border-radius: 12px; z-index: 2001;
  background: rgba(10, 30, 26, 0.55); color: #fff; font-size: 46px; line-height: 1;
  font-family: Georgia, serif; cursor: pointer; opacity: 0; transition: opacity .22s ease;
  display: flex; align-items: center; justify-content: center; padding: 0 0 4px 0; }
.lightbox .lb-prev { left: max(10px, calc(50% - 52vw)); }
.lightbox .lb-next { right: max(10px, calc(50% - 52vw)); }
.lightbox:hover .lb-prev, .lightbox:hover .lb-next,
.lightbox.lb-flash .lb-prev, .lightbox.lb-flash .lb-next { opacity: 1; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(10, 30, 26, 0.85); }
.lightbox .lb-prev:focus-visible, .lightbox .lb-next:focus-visible { opacity: 1; outline: 2px solid #9fe3d2; }
@media (hover: none) {
  .lightbox .lb-prev, .lightbox .lb-next { opacity: 0.9; background: rgba(10, 30, 26, 0.7); }
}

/* highlights */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 18px 0; }
.hl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.hl .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.hl h3 { margin: 0 0 6px; font-size: 16.5px; }
.hl p { margin: 0; font-size: 14.5px; color: #45605b; }

/* map figure */
.mapfig { margin: 22px 0; }
.mapfig img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mapfig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* guide blocks */
.itin { margin: 18px 0; padding-left: 26px; border-left: 3px solid var(--primary-light); }
.itin li { margin: 0 0 16px; }
.itin b { color: var(--primary-dark); }
.tipbox { background: var(--primary-light); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.tipbox ul { margin: 8px 0 0; padding-left: 20px; }
.tipbox li { margin: 4px 0; }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 18px 0; }

/* transport / stay */
.tsec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 26px; margin: 0 0 18px; }
.tsec h3 { margin: 0 0 8px; font-size: 18px; }
.tsec p { margin: 0 0 8px; font-size: 15.5px; }
.booking-btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: #fff;
  border-radius: 12px; padding: 12px 22px; font-weight: 700; font-size: 15px; margin: 8px 14px 8px 0;
}
.booking-btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.booking-btn.alt { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }

/* ---------- comments ---------- */
.comments-root { margin-top: 34px; }
.comments-root .c-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.comments-root .c-head h2 { margin: 0; font-size: 22px; }
.comments-root .c-head .c-count { color: var(--muted); font-size: 14px; }
.write-btn {
  border: 1.5px solid var(--primary); color: var(--primary-dark); background: #fff;
  border-radius: 999px; padding: 8px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.write-btn:hover { background: var(--primary-light); }
.topbar .write-btn { padding: 5px 14px; font-size: 12.5px; border-color: #ffd970; background: transparent; color: #ffd970; }
.topbar .write-btn:hover { background: rgba(255, 217, 112, 0.14); color: #ffe49a; }
.c-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 12px 0 18px; box-shadow: var(--shadow-sm); }
.c-form[hidden] { display: none; }
.c-form .row { display: flex; gap: 12px; margin-bottom: 10px; }
.c-form input.name {
  flex: 1; max-width: 320px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-size: 14.5px; outline: none; background: var(--bg);
}
.c-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 15px; min-height: 96px; resize: vertical; outline: none; background: var(--bg);
}
.c-form textarea:focus, .c-form input.name:focus { border-color: var(--primary); background: #fff; }
.c-form .actions { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.c-form .actions .hint { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.btn {
  border: 0; background: var(--primary); color: #fff; border-radius: 10px; padding: 10px 22px;
  font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.c-form .err { color: #c0392b; font-size: 13.5px; margin: 6px 0 0; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.c-item .c-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-item .c-author { font-weight: 700; font-size: 15px; }
.c-item .c-author.anon { color: var(--muted); font-weight: 600; }
.c-item .c-date { color: var(--muted); font-size: 12.5px; }
.c-item .c-body { margin: 8px 0 0; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.c-item .c-actions { margin-top: 10px; }
.reply-btn { border: 0; background: transparent; color: var(--primary); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 2px 0; }
.reply-btn:hover { text-decoration: underline; }
.c-children { list-style: none; margin: 14px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--primary-light); }
.c-children .c-item { background: var(--bg); box-shadow: none; }
.c-none { color: var(--muted); font-size: 15px; padding: 26px 0; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.c-status { color: var(--muted); font-size: 13.5px; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-deep); color: #bfe3da; margin-top: 30px; }
.site-footer .wrap { padding: 40px 22px 30px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 18px; }
.site-footer .f-brand img { height: 32px; }
.site-footer p { margin: 10px 0 0; max-width: 460px; font-size: 13.5px; color: #9ccfc4; }
.site-footer a { color: #d9efe9; }
.site-footer .f-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: #86bab0; }
.site-footer .f-bottom .wrap { padding: 16px 22px; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .spot-layout { grid-template-columns: 1fr; }
  .spot-aside { position: static; }
  .hero { padding: 8px 0 16px; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { font-size: 15px; }
  .filterbar .inner { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 8px; }
  .searchbox { padding: 7px 12px; border-radius: 10px; flex: 1 1 auto; min-width: 0; }
  .searchbox input { font-size: 15px; min-width: 0; }
  select.control { width: 100%; padding: 8px 12px; font-size: 14px; }
  .filterbar { margin-top: -34px; }
  .hero .stats { gap: 16px; }
  .c-form .row { flex-direction: column; }
  .c-form input.name { max-width: none; }
  .topbar nav a:not(.nav-auth):not(.nav-contact):not(.nav-guide) { display: none; }
  .topbar .wrap { padding: 6px 12px; flex-wrap: wrap; height: auto; min-height: 44px; row-gap: 4px; }
  .topbar nav { gap: 8px; flex-wrap: wrap; }
  .nav-auth { padding: 5px 10px; font-size: 12.5px; }
  .topbar .write-btn { padding: 4px 10px; font-size: 11.5px; }
  html, body { overflow-x: clip; max-width: 100vw; }
  * { box-sizing: border-box; }
  .wrap { padding: 0 12px; max-width: 100%; }
  .hero .wrap, .spot-hero .wrap { padding: 0 12px; }
  .hero h1 { font-size: 15px; }
  .hero p.sub { font-size: 10px; padding: 0 6px; }
  .spot-hero h1 { font-size: 22px; }
  .auth-wrap, .acct-wrap { padding: 0 10px; max-width: 100%; }
  .auth-card, .acct-card { padding: 20px 14px; max-width: 100%; }
  .auth-card h1 { font-size: 22px; }
  .field input { font-size: 14px; padding: 10px 10px; }
  .oauth-row { flex-direction: column; gap: 8px; }
  .map-live { grid-template-columns: 1fr; }
  .subnav { flex-wrap: wrap; gap: 6px; }
  .subnav a { padding: 6px 10px; font-size: 12px; }
  .crumb { font-size: 12px; flex-wrap: wrap; }
  .hl-grid, .food-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tsec { padding: 0 2px; }
  .prose p, .prose li { font-size: 14px; }
}

.skip-link{position:absolute;left:-9999px;top:0;background:#0A5C50;color:#fff;padding:10px 16px;z-index:999;border-radius:0 0 6px 0;font-weight:600}
.skip-link:focus{left:0}
.sr-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---- Interactive live map block (Amap) ---- */
.map-live-sub{font-size:13.5px;color:#5a6b5d;margin:-6px 0 10px}
.map-live{display:grid;grid-template-columns:1.55fr 1fr;gap:14px;margin:0 0 24px}
.map-live-canvas{position:relative;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(20,40,25,.10);background:#eef2ee;min-height:420px}
#amapBox{height:440px}
.map-hint{position:absolute;right:10px;bottom:10px;background:rgba(255,255,255,.92);padding:3px 10px;border-radius:12px;font-size:11.5px;color:#5a6b5d;pointer-events:none;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.map-live-panel{background:#f6f9f6;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px;border:1px solid #e2e9e2}
.map-panel-inner img{width:100%;border-radius:8px;display:block;margin:0 0 10px;aspect-ratio:16/10;object-fit:cover}
.map-panel-inner h3{margin:0 0 6px;font-size:16.5px}
.map-panel-inner p{margin:0;font-size:13.5px;line-height:1.55;color:#415044}
.map-points{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.map-points li{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;font-size:13.5px;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s}
.map-points li:hover{background:#eaf1ea}
.map-points li.on{background:#e2efe4;border-color:#c6dcc9;font-weight:600}
.map-points .mp-n{flex:0 0 22px;height:22px;border-radius:50%;background:#0A5C50;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.ampin{width:28px;height:28px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#0A5C50;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;z-index:120}
.ampin span{transform:rotate(45deg);color:#fff;font:700 13px/1 sans-serif}
.ampin.on{background:#c2571b;z-index:130;transform:rotate(-45deg) scale(1.12)}
.map-fallback{padding:40px 20px;text-align:center;color:#5a6b5d;font-size:14px}
@media (max-width:880px){.map-live{grid-template-columns:1fr}#amapBox{height:320px}}

/* ---- Auth (sign in / account) ---- */
.nav-auth {
  color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.nav-auth:hover { border-color: #fff; text-decoration: none; }
.c-form .as-nick {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--primary); background: rgba(10,92,80,.08);
  border-radius: 999px; padding: 6px 13px;
}
.c-form .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .topbar nav { gap: 8px; flex-wrap: wrap; }
  .nav-auth { padding: 6px 10px; font-size: 13px; }
}

/* ---- Favorite button (spot pages) ---- */
.fav-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: 600 13.5px/1 inherit; cursor: pointer; }
.fav-btn svg { width: 16px; height: 16px; fill: none; stroke: #555; transition: fill .15s, stroke .15s; }
.fav-btn:hover { border-color: var(--primary); color: var(--primary); }
.fav-btn:hover svg { stroke: var(--primary); }
.fav-btn.faved svg { fill: #e85555 !important; stroke: #e85555 !important; }
.fav-btn.faved { color: #e85555; border-color: #e85555; }

/* ---- Card heart (homepage) ---- */
.card-heart { position: absolute; bottom: 8px; right: 8px; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); backdrop-filter: blur(4px);
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.card-heart svg { width: 16px; height: 16px; fill: none; stroke: #666; transition: fill .15s, stroke .15s; }
.card-heart:hover svg { stroke: #e85555; }
.card-heart.faved svg { fill: #e85555 !important; stroke: #e85555 !important; }
.card-heart.faved { background: rgba(255,255,255,.95); }
.thumb { position: relative; }


/* ===================== Classic tours ===================== */
.tours-home { background: linear-gradient(180deg, #f4f8f7 0%, #fff 100%); padding: 26px 0 46px; }
.tours-home h2 { text-align: center; font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.tours-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.tours-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Big animated card: 3 crossfading Ken Burns slides */
.tour-card { position: relative; display: block; border-radius: 16px; overflow: hidden;
  background: #073d35; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(7,61,53,.18);
  transition: transform .25s ease, box-shadow .25s ease; }
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7,61,53,.28); text-decoration: none; }
.t-media { position: relative; height: 220px; background: #0a2b25; }
.t-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  animation: tFade 15s infinite; }
.t-slide.s0 { animation-delay: 0s; } .t-slide.s1 { animation-delay: 5s; } .t-slide.s2 { animation-delay: 10s; }
@keyframes tFade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
.t-slide { will-change: opacity; transform: scale(1.12); transition: opacity 1.2s ease; }
.t-slide.s0 { animation: tFade0 15s infinite; } .t-slide.s1 { animation: tFade1 15s infinite; }
.t-slide.s2 { animation: tFade2 15s infinite; }
@keyframes tFade0 { 0%,100% { opacity: 0; } 2%,32% { opacity: 1; } 36%,98% { opacity: 0; } }
@keyframes tFade1 { 0%,34% { opacity: 0; } 36%,65% { opacity: 1; } 69%,100% { opacity: 0; } }
@keyframes tFade2 { 0%,67% { opacity: 0; } 69%,97% { opacity: 1; } 100% { opacity: 0; } }
.t-media .t-veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,61,53,.08) 30%, rgba(7,61,53,.78) 100%); }
.t-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 18px; }
.t-days { position: absolute; top: 14px; left: 14px; background: #ffd970; color: #17332e;
  font: 800 12px/1 inherit; padding: 7px 12px; border-radius: 999px; letter-spacing: .04em; }
.t-body h3 { margin: 0 0 4px; font-size: 19px; color: #fff; }
.t-body p { margin: 0 0 8px; font-size: 12.5px; color: #d9efe9; line-height: 1.45; }
.t-count { font-size: 12px; font-weight: 700; color: #ffd970; }
.tour-card:hover .t-count { text-decoration: underline; }

/* Category listing page */
.tour-hero { position: relative; min-height: 260px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #073d35, #12907c); color: #fff; overflow: hidden; }
.tour-hero .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-hero .veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,35,30,.06) 30%, rgba(7,35,30,.85) 100%); }
.tour-hero .wrap { position: relative; z-index: 2; padding-bottom: 26px; width: 100%; }
.tour-hero .crumb a { color: #cfe9e2; }
.tour-hero .crumb span { color: #fff; }
.tour-hero h1 { color: #fff; margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 34px); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.tour-hero .sub { color: #d9efe9; font-size: 14px; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 26px 0 10px; }
.cat-tour { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease; }
.cat-tour:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18,38,30,.14); text-decoration: none; }
.ct-media { position: relative; height: 200px; overflow: hidden; }
.ct-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tour:hover .ct-media img { transform: scale(1.05); }
.ct-days { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff;
  font: 700 12px/1 inherit; padding: 6px 11px; border-radius: 999px; }
.ct-body { padding: 16px 18px 18px; }
.ct-body h3 { margin: 0 0 4px; font-size: 19px; color: var(--ink); }
.ct-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; line-height: 1.5; }
.ct-hl { margin: 0 0 12px; padding-left: 18px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.ct-hl li { margin-bottom: 3px; }
.ct-more { color: var(--primary); font-size: 13px; font-weight: 700; }
.other-cat { display: inline-block; margin-right: 10px; padding: 8px 16px; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--primary); text-decoration: none; }
.other-cat:hover { background: var(--primary-light); }

/* tour category: pacing-style sections and card chips */
.style-sec { margin-top: 26px; }
.style-head { border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 16px; }
.style-head h2 { font-size: 21px; margin: 0; color: var(--ink); }
.style-head .style-cn { font-size: 13px; color: var(--primary-dark); margin-left: 10px; letter-spacing: .2em; }
.style-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ct-style { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px;
  font: 700 11.5px/1 inherit; letter-spacing: .03em; color: #fff; }
.ct-style-compact { background: #c0392b; }
.ct-style-comfort { background: #0e7c6b; }
.ct-style-relaxed { background: #6c5ce7; }
/* tour detail hero style badge */
.tour-style-badge { display: inline-block; margin-left: 10px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); color: #fff;
  font: 700 12px/1 inherit; letter-spacing: .05em; vertical-align: middle; }

/* Tour detail page */
.tour-wrap { max-width: 1080px; }
.tour-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; }
.tour-strip a { display: block; border-radius: 12px; overflow: hidden; }
.tour-strip img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .3s ease; }
.tour-strip a:hover img { transform: scale(1.04); }
.tour-facts { display: flex; gap: 14px; margin: 18px 0 6px; flex-wrap: wrap; }
.tour-facts div { flex: 1; min-width: 180px; background: var(--primary-light);
  border: 1px solid #cfe5de; border-radius: 10px; padding: 10px 14px; }
.tour-facts b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 3px; }
.tour-facts span { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: block; }
.tour-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; margin-top: 16px; }
.tour-main h2 { font-size: 22px; margin: 26px 0 12px; color: var(--ink); }
.tour-summary { font-size: 15px; line-height: 1.7; color: var(--ink); }
.tour-hl { margin: 0; padding-left: 20px; line-height: 1.7; font-size: 14.5px; }
.tour-hl li { margin-bottom: 5px; }
.tour-day { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.td-thumb { flex: none; width: 120px; height: 84px; border-radius: 9px; overflow: hidden; align-self: flex-start; }
.td-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-body { flex: 1; min-width: 0; }
.td-body h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--primary-dark); }
.td-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.td-chip { display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  border: 1px solid #cfe5de; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  text-decoration: none; }
.td-chip:hover { background: #d5ebe5; text-decoration: none; }
.tour-side h2 { font-size: 17px; margin: 22px 0 10px; color: var(--ink); border-bottom: 2px solid var(--primary);
  padding-bottom: 6px; }
.tour-attrs { display: grid; gap: 10px; }
.ta-card { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 0 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  text-decoration: none; color: inherit; }
.ta-card:hover { border-color: var(--primary); text-decoration: none; }
.ta-card img { grid-row: 1 / span 3; width: 64px; height: 92px; object-fit: cover; border-radius: 8px; }
.ta-card b { font-size: 13.5px; line-height: 1.3; align-self: center; }
.ta-card .ta-time { grid-column: 2; font-size: 11.5px; color: var(--primary-dark); font-weight: 700; }
.ta-card .ta-ticket { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.45; }
.ta-card.external b::after { content: " \2197"; color: var(--primary); font-size: 11px; }
.ta-blank { grid-row: 1 / span 3; width: 64px; height: 92px; border-radius: 8px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--primary-dark); }
.ta-blank svg { width: 26px; height: 26px; }
.tour-text { font-size: 13.5px; line-height: 1.65; color: var(--ink); margin: 0; }
.tl-hotels, .tl-dining, .tl-shopping { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.tl-hotels li, .tl-dining li, .tl-shopping li { margin-bottom: 7px; }
.tour-tips { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.tour-tips li { margin-bottom: 6px; }
.tour-back { margin: 30px 0 40px; font-size: 13.5px; }
.tour-back a { color: var(--primary); font-weight: 700; }

@media (max-width: 1000px) {
  .tours-grid { grid-template-columns: repeat(2, 1fr); }
  .t-media { height: 200px; }
}
@media (max-width: 720px) {
  .tours-grid { grid-template-columns: 1fr; gap: 16px; }
  .t-media { height: 220px; }
  .cat-grid { grid-template-columns: 1fr; }
  .tour-cols { grid-template-columns: 1fr; }
  /* grid items default to min-width:auto; long nowrap content (booking
     labels) used to inflate the 1fr track to ~490px and cut content off */
  .tour-cols > * { min-width: 0; max-width: 100%; }
  .tour-strip { grid-template-columns: repeat(3, 1fr); }
  .tour-strip img { height: 90px; }
  .tour-hero { min-height: 200px; }
  /* stack day cards vertically: 96px thumb + ~190px text was too cramped */
  .tour-day { flex-direction: column; }
  .td-thumb { width: 100%; height: 130px; }
}


/* ---- Trip.com booking search box ---- */
.trip-search { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px 16px; margin: 18px 0 26px; box-shadow: 0 6px 22px rgba(18,38,30,.06); }
.trip-search-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.trip-search-head h3 { margin: 0; font-size: 18px; color: var(--ink); }
.trip-search-sub { font-size: 12.5px; color: var(--muted); }
.trip-search-sub a { color: var(--primary); font-weight: 600; }
.trip-search-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.ts-tab { padding: 9px 18px; border: 0; background: none; font: 700 13px/1 inherit; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.ts-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.ts-tab:hover { color: var(--ink); }
.ts-panel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ts-input { flex: 1; min-width: 160px; max-width: 380px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; }
.ts-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.ts-half { max-width: 200px; }
.ts-go { padding: 11px 22px; border: 0; border-radius: 10px; background: var(--primary); color: #fff;
  font: 700 13.5px/1 inherit; cursor: pointer; white-space: nowrap; }
.ts-go:hover { background: var(--primary-dark); }
.ts-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.ts-select { max-width: 260px; background: #fff; cursor: pointer; }
.ts-hint { flex-basis: 100%; margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.ts-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ts-chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--ink); text-decoration: none; background: #fff; }
.ts-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ---- tour booking block ---- */
.tour-book { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px 18px; margin: 26px 0 10px; box-shadow: 0 6px 22px rgba(18,38,30,.06); }
.tour-book h2 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.tour-book h3 { margin: 18px 0 8px; font-size: 14.5px; color: var(--ink); }
.tb-intro { margin: 0 0 4px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.tb-arrival { margin: 12px 0 0; font-size: 13.5px; color: var(--ink); }
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tb-list li:last-child { border-bottom: 0; }
.tb-list b { font-size: 13.5px; color: var(--ink); }
.tb-area { flex: 1; min-width: 180px; font-size: 12.5px; color: var(--muted); }
.tb-btn { padding: 7px 14px; border-radius: 8px; background: var(--primary); color: #fff;
  font: 700 12px/1 inherit; text-decoration: none; white-space: nowrap; }
.tb-btn:hover { background: var(--primary-dark); color: #fff; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tb-chip { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink); text-decoration: none; background: #fff; }
.tb-chip:hover { border-color: var(--primary); color: var(--primary); }
.tb-note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---- per-day booking items inside Day by Day ---- */
.td-book { margin-top: 10px; display: flex; flex-direction: column; gap: 6px;
  border-top: 1px dashed var(--line); padding-top: 8px; }
.td-bitem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.td-blabel { font: 700 12px/1.3 inherit; color: var(--primary); white-space: nowrap; }
.td-bnote { flex: 1; min-width: 150px; font-size: 12px; color: var(--muted); }
.td-btn { padding: 6px 13px; border-radius: 8px; background: var(--primary); color: #fff;
  font: 700 11.5px/1 inherit; text-decoration: none; white-space: nowrap; }
.td-btn:hover { background: var(--primary-dark); color: #fff; }
.td-binfo { font-size: 12px; color: var(--muted); font-style: italic; }
@media (max-width: 620px) {
  .trip-search { padding: 14px 14px 12px; }
  .ts-input { min-width: 120px; }
  .ts-half { max-width: 150px; }
  .ts-go { width: 100%; margin-top: 4px; }
}

/* Mobile overrides for the per-day booking items. Kept AFTER the .td-*
   base rules above: these selectors have equal specificity, so cascade
   order decides — the 720px block earlier in the file was being
   overridden by nowrap/min-width declared later. */
@media (max-width: 720px) {
  .td-blabel { white-space: normal; }
  .td-bnote { min-width: 120px; }
}
