:root {
  --ink: #18201b;
  --muted: #5d6a63;
  --line: #dce4dc;
  --surface: #ffffff;
  --surface-strong: #f5f7f2;
  --green: #176b48;
  --green-dark: #0d4932;
  --amber: #d9952c;
  --red: #b9473f;
  --blue: #1d5f85;
  --shadow: 0 22px 60px rgba(23, 33, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcf8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid rgba(220, 228, 220, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.top-nav a:hover {
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 69px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111a15;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 24, 17, 0.92), rgba(13, 24, 17, 0.64) 42%, rgba(13, 24, 17, 0.18)),
    linear-gradient(0deg, rgba(13, 24, 17, 0.84), rgba(13, 24, 17, 0.06) 52%),
    url("assets/road-hero.png") center / cover;
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 40px));
  margin: 0 clamp(20px, 6vw, 88px) clamp(42px, 9vh, 92px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.search-panel {
  max-width: 690px;
  margin-top: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label,
.tool-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 107, 72, 0.14);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  display: grid;
  gap: 4px;
  padding: 22px clamp(20px, 6vw, 72px);
  background: #fff;
}

.stats-band strong {
  color: var(--green-dark);
  font-size: 30px;
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.toolbar {
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.destination-layout {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.destination-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.destination-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  min-height: 86px;
  padding: 15px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.destination-card:hover,
.destination-card.active {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: rgba(23, 107, 72, 0.45);
}

.destination-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.destination-card span,
.destination-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.side-badge {
  align-self: start;
  padding: 6px 9px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.detail-panel,
.tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(23, 33, 28, 0.08);
}

.detail-panel {
  overflow: hidden;
}

.detail-hero {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), #1d5f85);
}

.detail-hero h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.detail-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.rule-item {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  background: #fff;
}

.rule-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rule-item strong {
  font-size: 18px;
  line-height: 1.32;
}

.notes-block {
  display: grid;
  gap: 14px;
  padding: 22px 24px 24px;
}

.notes-block h4 {
  margin: 0;
  font-size: 18px;
}

.notes-list,
.checklist-output ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.tool-panel {
  padding: 22px;
}

.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comparison-table {
  display: grid;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > div {
  display: grid;
  align-items: center;
  padding: 12px;
  line-height: 1.5;
}

.comparison-row .label {
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 800;
}

.checklist-form {
  display: grid;
  gap: 16px;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.option-row input {
  width: auto;
  min-height: 0;
}

.checklist-output {
  margin-top: 20px;
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist-output h3 {
  margin: 0 0 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 460px);
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #142019;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.disclaimer {
  font-size: 13px;
}

@media (max-width: 920px) {
  .top-nav {
    display: none;
  }

  .destination-layout,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .rule-grid,
  .option-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: min(358px, calc(100% - 32px));
    margin: 0 16px 34px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 40px);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hero-copy {
    font-size: 17px;
  }

  .search-panel {
    width: 100%;
  }

  .quick-links a {
    flex: 1 1 150px;
    justify-content: center;
    text-align: center;
  }

  .search-row,
  .stats-band,
  .rule-grid,
  .select-grid,
  .option-row {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row > div {
    min-height: 44px;
  }
}
