:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f3efe8;
  --ink: #132535;
  --ink-muted: #526373;
  --border: #e5dfd5;
  --primary: #0f4c5c;
  --primary-dark: #093541;
  --accent: #c85a32;
  --accent-soft: #fdf0eb;
  --teal: #0f766e;
  --teal-soft: #e6f4f2;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(19, 37, 53, 0.06);
  --shadow-lg: 0 12px 34px rgba(19, 37, 53, 0.11);
  --container: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(19, 37, 53, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.72rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 76, 92, 0.22);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.89rem;
  font-weight: 600;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.44rem 0.88rem;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.16s ease;
}

.nav-link:hover {
  background: var(--teal-soft);
  border-color: rgba(15, 76, 92, 0.28);
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 76, 92, 0.08);
}

.nav-link:hover svg {
  color: var(--primary);
}

.nav-link.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 92, 0.22);
}

.nav-link.is-active svg {
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.28rem 0.22rem 0.9rem;
  min-width: 245px;
  box-shadow: 0 2px 8px rgba(19, 37, 53, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 0.87rem;
  width: 100%;
}

.header-search button {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.header-search button:hover {
  background: var(--primary-dark);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin: 1rem 0;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Hero Banner */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-dark);
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 25, 36, 0.25) 0%, rgba(9, 25, 36, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

.hero h1 {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0;
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

/* Stats / Info Grid */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.65rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.65rem;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow);
}

.info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.info-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

/* Grids & Cards */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.85rem 0 0.95rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(19, 37, 53, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}

.card-body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.32;
}

.card-title a {
  color: var(--ink);
}

.card-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.card-desc {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* Chips / Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.pill:hover {
  border-color: var(--primary);
  background: var(--teal-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.pill small {
  color: var(--ink-muted);
  font-weight: 500;
}

/* Route Timeline */
.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* Two-col detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .header-search {
    width: 100%;
  }
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.62rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  width: 38%;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.pagination a,
.pagination span {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
}

.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  margin-top: 3.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.84);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
