/* Travel Information Station — mobile-first */
:root {
  --bg: var(--bg-color);
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --line: #f0f0f0;
  --red: var(--primary-color);
  --red-soft: #fff1ef;
  --radius: 10px;
  --pad: 15px;
  --header-h: 104px;
  --bottom-h: 58px;
  --max: 720px;
  --shadow: 0 1px 0 rgba(0,0,0,.04);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px var(--pad) 0;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  flex: 1 1 auto;
  min-width: 0;
}
.search-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.search-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.search-left svg, .search-right svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.search-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #666;
}

.tabs-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  white-space: nowrap;
  padding: 6px 0 10px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
  flex: 0 0 auto;
}
.tabs a.is-active {
  color: var(--ink);
  font-weight: 700;
}
.tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.tab-menu {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #333;
  flex: 0 0 auto;
}
.tab-menu svg { width: 22px; height: 22px; }

/* Main */
.m-main {
  padding: 12px var(--pad) 20px;
}

/* Feature cards */
.feature-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9.2;
  background: #e8e8e8;
  margin-bottom: 14px;
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, transparent 70%);
  pointer-events: none;
}
.feature-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.feature-copy strong,
.feature-copy h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.feature-copy i {
  font-style: normal;
  font-size: 11px;
  opacity: .9;
  background: rgba(0,0,0,.35);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Section head */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.section-head a {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

/* Two-column grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.grid-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.grid-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
.grid-card strong {
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.who img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: auto;
}
.who em {
  font-style: normal;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}
.likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}
.likes svg {
  width: 13px;
  height: 13px;
  fill: #bbb;
}

/* Carousel strip */
.carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -2px 8px;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .feature-card {
  flex: 0 0 92%;
  scroll-snap-align: start;
  margin-bottom: 0;
}
/* List feed */
.list-feed { display: grid; gap: 0; }
.list-item {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.list-text .tag {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.list-text strong {
  font-size: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.list-item img {
  width: 108px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

/* Page title */
.page-title {
  margin: 4px 0 14px;
}
.page-title .kicker {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.page-title h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Article */
.article-wrap { max-width: 680px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a { color: #555; }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.article-wrap h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}
.article-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.article-summary {
  margin: 0 0 14px;
  color: #444;
  font-size: 15px;
  line-height: 1.55;
}
.article-cover {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.article-body p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}
.related-title {
  margin: 24px 0 8px;
  font-size: 18px;
}

/* Search */
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 10px 14px;
}
.search-field svg {
  width: 18px;
  height: 18px;
  fill: #888;
  flex: 0 0 auto;
}
.search-field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
}
.search-form button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.search-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.search-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #555;
  font-size: 13px;
}
.search-hint code {
  background: #eee;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.search-hint a {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
  font-size: 12px;
}

/* Privacy */
.prose h2 {
  margin: 1.4em 0 .5em;
  font-size: 18px;
}
.prose p, .prose li {
  color: #333;
  font-size: 15px;
  line-height: 1.65;
}
.prose ul { padding-left: 1.2em; }

/* Footer */
.site-footer {
  margin: 24px var(--pad) 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 10px;
}
.footer-links a { color: #555; }
.footer-copy { margin: 0; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  max-width: var(--max);
  margin: 0 auto;
}
.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #999;
  font-size: 11px;
  font-weight: 500;
}
.bottom-nav a.is-active { color: var(--red); }
.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Desktop widen */
@media (min-width: 768px) {
  :root { --max: 980px; --pad: 24px; }
  body { padding-bottom: 24px; }
  .bottom-nav { display: none; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .carousel .feature-card { flex-basis: 48%; }
  .article-wrap h1 { font-size: 32px; }
  .list-item { grid-template-columns: 1fr 160px; }
  .list-item img { width: 160px; height: 110px; }
  .m-main { padding-bottom: 40px; }
}

@media (min-width: 1100px) {
  :root { --max: 1080px; }
}
