:root {
  --travel-ink: var(--ink);
  --travel-green: var(--moss);
  --travel-green-dark: var(--evergreen);
  --travel-teal: var(--water);
  --travel-gold: var(--gold);
  --travel-border: var(--line);
  --travel-soft: #eef4eb;
  --travel-blue: var(--water);
}

.travel-planner {
  display: grid;
  gap: 20px;
  width: min(1480px, calc(100% - 28px));
  margin: 22px auto 48px;
  color: var(--travel-ink);
}

.travel-planner-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(18, 49, 47, 0.97), rgba(94, 124, 72, 0.88)),
    url("../img/olympic-roads-hero.png") center/cover;
  color: #fff;
  box-shadow: 0 18px 42px rgba(14, 44, 35, 0.18);
}

.travel-planner-hero > div:first-child {
  max-width: 860px;
}

.travel-preview-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #ffe382;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.travel-planner-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.travel-planner-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.45;
}

.travel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.travel-hero-actions .btn.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.travel-privacy-note {
  padding: 12px 15px;
  border: 1px solid #e5c453;
  border-radius: 10px;
  background: #fff9dc;
  color: #55410c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.travel-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.travel-controls,
.travel-map-panel,
.travel-results {
  border: 1px solid var(--travel-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(18, 47, 37, 0.09);
}

.travel-results[hidden] {
  display: none;
}

.travel-controls {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.travel-step {
  display: grid;
  gap: 13px;
  padding: 19px;
  border-bottom: 1px solid var(--travel-border);
}

.travel-step-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.travel-step-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--travel-green);
  color: #fff;
  font-weight: 950;
}

.travel-step-heading h2 {
  margin: 0;
  color: var(--travel-green-dark);
  font-size: 1.12rem;
}

.travel-step-heading p {
  margin: 3px 0 0;
  color: #607169;
  font-size: 0.83rem;
  line-height: 1.35;
}

.travel-locate-button,
.travel-build-button {
  width: 100%;
  justify-content: center;
}

.travel-locate-button svg {
  width: 21px;
  height: 21px;
}

.travel-locate-button path,
.travel-locate-button circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.travel-origin-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #697a72;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.travel-origin-divider::before,
.travel-origin-divider::after {
  flex: 1 1 auto;
  border-top: 1px solid var(--travel-border);
  content: '';
}

.travel-origin-divider span {
  flex: 0 0 auto;
}

.travel-origin-search > div,
.travel-destination-search > div {
  grid-template-columns: minmax(0, 1fr);
}

.travel-origin-search button,
.travel-destination-search button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.travel-place-summary {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid #a9d5be;
  border-radius: 9px;
  background: #edf9f1;
  font: inherit;
  text-align: left;
}

button.travel-place-summary:not(:disabled) {
  border-color: #4e9b7c;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 77, 56, 0.12);
}

button.travel-place-summary:not(:disabled):hover,
button.travel-place-summary:not(:disabled):focus-visible {
  border-color: var(--travel-teal);
  background: #e2f6ea;
}

button.travel-place-summary:focus-visible {
  outline: 3px solid rgba(214, 162, 61, 0.62);
  outline-offset: 2px;
}

button.travel-place-summary:disabled {
  cursor: default;
  opacity: 1;
}

.travel-place-summary strong {
  color: var(--travel-green-dark);
}

.travel-place-summary span {
  color: #40594e;
  font-size: 0.86rem;
}

.travel-place-summary small {
  margin-top: 3px;
  color: var(--travel-teal);
  font-size: 0.74rem;
  font-weight: 950;
}

.travel-place-summary:disabled small {
  color: #63766c;
}

.travel-map-picker-button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  gap: 9px;
  font-weight: 950;
}

.travel-map-picker-button svg {
  width: 23px;
  height: 23px;
}

.travel-map-picker-button path,
.travel-map-picker-button circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.travel-map-picker-button[aria-pressed="true"] {
  background: #0c5f63;
  box-shadow: 0 0 0 3px rgba(12, 95, 99, 0.2);
}

.travel-entry-or {
  margin: -2px 0 0;
  color: #52665d;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.travel-entry-or strong {
  color: var(--travel-green-dark);
}

.travel-address-search {
  display: grid;
  gap: 6px;
}

.travel-address-search label span {
  color: var(--travel-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-address-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.travel-address-search .input {
  min-width: 0;
}

.travel-map-instruction {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 13px 17px;
  border-bottom: 1px solid #74a996;
  background: #eff8f5;
  color: #31584b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.travel-map-instruction[hidden] {
  display: none;
}

.travel-map-instruction > div:first-child {
  display: grid;
  gap: 2px;
}

.travel-map-instruction > div:first-child strong {
  color: var(--travel-green-dark);
  font-size: 0.92rem;
}

.travel-map-instruction > div:first-child span {
  color: #48675b;
  font-size: 0.78rem;
}

.travel-map-instruction > p {
  display: none;
}

.travel-map-done {
  justify-content: center;
  white-space: nowrap;
}

.travel-search-results {
  display: grid;
  gap: 7px;
}

.travel-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--travel-border);
  border-radius: 8px;
  background: #fff;
  color: var(--travel-ink);
  cursor: pointer;
  text-align: left;
}

.travel-search-result:hover,
.travel-search-result:focus-visible {
  border-color: var(--travel-teal);
  background: #eef8f7;
}

.travel-search-result strong {
  color: var(--travel-green-dark);
  font-size: 0.9rem;
}

.travel-search-result span {
  color: #5e6f67;
  font-size: 0.78rem;
}

.travel-stop-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.travel-stop-empty {
  padding: 12px;
  border: 1px dashed #b7c9bf;
  border-radius: 8px;
  color: #687870;
  font-size: 0.88rem;
  text-align: center;
}

.travel-stop-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--travel-border);
  border-radius: 8px;
  background: var(--travel-soft);
}

.travel-stop-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--travel-teal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.travel-stop-copy {
  min-width: 0;
}

.travel-stop-copy strong,
.travel-stop-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-stop-copy strong {
  color: var(--travel-green-dark);
  font-size: 0.87rem;
}

.travel-stop-copy span {
  margin-top: 2px;
  color: #66776f;
  font-size: 0.75rem;
}

.travel-stop-actions {
  display: flex;
  gap: 3px;
}

.travel-stop-actions button,
.travel-map-reset {
  border: 1px solid #bed0c6;
  border-radius: 6px;
  background: #fff;
  color: #315348;
  cursor: pointer;
  font-weight: 900;
}

.travel-stop-actions button {
  width: 29px;
  height: 29px;
  padding: 0;
}

.travel-stop-actions button:disabled {
  cursor: default;
  opacity: 0.35;
}

.travel-stop-actions button[data-stop-action="remove"] {
  color: #a52222;
}

.travel-stop-item.is-return-stop {
  border-color: #6ba58b;
  background: #e4f4ec;
}

.travel-stop-item.is-return-stop .travel-stop-number {
  background: var(--travel-green-dark);
}

.travel-stop-return-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid #87b9a1;
  border-radius: 999px;
  background: #fff;
  color: var(--travel-green-dark);
  font-size: 0.67rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
}

.travel-trip-type-picker {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #abcdbd;
  border-radius: 9px;
  background: #f1f8f4;
}

.travel-trip-type-heading {
  display: grid;
  gap: 2px;
}

.travel-trip-type-heading strong {
  color: var(--travel-green-dark);
  font-size: 0.9rem;
}

.travel-trip-type-heading span {
  color: #5b7066;
  font-size: 0.75rem;
  line-height: 1.35;
}

.travel-trip-type-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.travel-trip-type-buttons button {
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #abc6b9;
  border-radius: 8px;
  background: #fff;
  color: #3f5d50;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.15;
}

.travel-trip-type-buttons button.is-active {
  border-color: var(--travel-teal);
  background: var(--travel-teal);
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 95, 99, 0.2);
}

.travel-trip-type-buttons button:disabled {
  cursor: default;
  opacity: 0.48;
}

.travel-trip-type-picker > p {
  margin: 0;
  color: #4d675b;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.travel-status {
  min-height: 20px;
  margin: 0;
  padding: 12px 19px;
  background: #e7f0eb;
  color: #3a5b4f;
  font-size: 0.82rem;
  font-weight: 800;
}

.travel-status.is-error {
  background: #fdeaea;
  color: #8d1c1c;
}

.travel-map-panel {
  overflow: hidden;
}

.travel-map-heading,
.travel-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.travel-map-heading {
  padding: 17px 19px;
  border-bottom: 1px solid var(--travel-border);
}

.travel-map-heading span,
.travel-results-header span {
  color: var(--travel-teal);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.travel-map-heading h2,
.travel-results-header h2 {
  margin: 2px 0 0;
  color: var(--travel-green-dark);
}

.travel-map-reset {
  padding: 8px 10px;
}

.travel-map {
  z-index: 1;
  width: 100%;
  min-height: 650px;
  background: #d9e8e3;
}

.travel-map.is-picking {
  cursor: crosshair;
}

.travel-map-attribution-note {
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid var(--travel-border);
  background: #f7faf8;
  color: #6b7b73;
  font-size: 0.72rem;
  line-height: 1.35;
}

.travel-numbered-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--travel-teal);
  color: #fff;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  font-weight: 950;
}

.travel-numbered-marker.is-origin {
  background: #1f6f9c;
}

.travel-results {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3vw, 30px);
}

.travel-results-header {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--travel-border);
}

.travel-results-header time {
  color: #66766e;
  font-size: 0.82rem;
  font-weight: 800;
}

.travel-results-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
  max-width: min(100%, 390px);
}

.travel-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(10, 74, 47, 0.18);
  font-size: 0.79rem;
  line-height: 1.25;
  text-align: center;
}

.travel-pdf-button svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.travel-pdf-button span {
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.travel-pdf-dialog {
  width: min(92vw, 560px);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--travel-green-dark);
}

.travel-pdf-dialog::backdrop {
  background: rgba(7, 31, 25, 0.74);
  backdrop-filter: blur(3px);
}

.travel-pdf-dialog-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(165, 198, 181, 0.82);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f3f8f5);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.travel-pdf-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #c9dbd1;
  border-radius: 999px;
  background: #fff;
  color: var(--travel-green-dark);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.travel-pdf-ready-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 5px solid #d7eadf;
  border-radius: 999px;
  background: var(--travel-green-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 74, 47, 0.2);
}

.travel-pdf-ready-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.travel-pdf-dialog h2 {
  margin: 0;
  color: var(--travel-green-dark);
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.travel-pdf-dialog p {
  max-width: 46ch;
  margin: 0;
  color: #52665c;
  line-height: 1.55;
}

.travel-pdf-dialog-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.travel-pdf-dialog-actions .btn {
  justify-content: center;
  min-height: 48px;
}

.travel-pdf-dialog .travel-pdf-dialog-note {
  color: #718078;
  font-size: 0.75rem;
}

.travel-email-dialog {
  width: min(94vw, 620px);
}

.travel-destination-dialog {
  width: min(92vw, 520px);
}

.travel-destination-added-icon {
  background: var(--travel-green);
}

.travel-destination-dialog-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-email-dialog-card {
  max-height: min(92vh, 760px);
  overflow-y: auto;
}

.travel-email-ready-icon {
  background: var(--travel-teal);
}

.travel-email-fields {
  display: grid;
  gap: 11px;
  width: 100%;
  margin-top: 2px;
  text-align: left;
}

.travel-email-fields label {
  display: grid;
  gap: 6px;
  color: var(--travel-green-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.travel-email-fields label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.travel-email-fields strong,
.travel-email-fields small {
  color: #63776c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.travel-email-fields .input {
  width: 100%;
  min-height: 46px;
}

.travel-email-dialog .travel-email-status {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 10px 12px;
  border: 1px solid #b6d7c6;
  border-radius: 8px;
  background: #edf8f2;
  color: #25533c;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.travel-email-dialog .travel-email-status.is-error {
  border-color: #e2adad;
  background: #fff1f1;
  color: #9e1d25;
}

.travel-email-dialog-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.travel-total-grid article {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--travel-green), var(--travel-green-dark));
  color: #fff;
}

.travel-total-grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-total-grid strong {
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1;
}

.travel-leg-section {
  display: grid;
  gap: 12px;
}

.travel-leg-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.travel-leg-section-header span {
  color: var(--travel-teal);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.travel-leg-section-header h3 {
  margin: 0;
  color: var(--travel-green-dark);
}

.travel-leg-section-header p {
  max-width: 560px;
  margin: 0;
  color: #63736c;
  font-size: 0.82rem;
  line-height: 1.45;
}

.travel-leg-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.travel-leg-list > li {
  overflow: hidden;
  border: 1px solid var(--travel-border);
  border-radius: 11px;
  background: #fff;
}

.travel-leg-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--travel-border);
  background: #fafcfb;
}

.travel-leg-summary > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #dceee6;
  color: var(--travel-green-dark);
  font-weight: 950;
}

.travel-leg-copy strong,
.travel-leg-copy span {
  display: block;
}

.travel-leg-copy strong {
  color: var(--travel-ink);
}

.travel-leg-copy span {
  margin-top: 3px;
  color: #66766e;
  font-size: 0.8rem;
}

.travel-leg-time {
  color: var(--travel-teal);
  font-weight: 950;
  text-align: right;
}

.travel-leg-details {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f4f8f6;
}

.travel-leg-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.travel-leg-map-panel {
  position: sticky;
  top: 12px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--travel-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(21, 55, 45, 0.08);
}

.travel-leg-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--travel-border);
  background: #eaf4ee;
}

.travel-leg-map-heading strong {
  color: var(--travel-green-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.travel-leg-map-help {
  color: #5c7166;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
}

.travel-map-expand,
.travel-mobile-leg-toggle,
.travel-mobile-collapse-all,
.travel-county-step,
.travel-mobile-category-chips {
  display: none;
}

.travel-county-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 34px;
  margin-left: auto;
  padding: 6px 11px;
  border: 1px solid #a8c7b8;
  border-radius: 999px;
  background: #fff;
  color: var(--travel-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.travel-county-toggle:hover,
.travel-county-toggle:focus-visible {
  outline: none;
  border-color: var(--travel-green-dark);
  background: #edf7f3;
  box-shadow: 0 0 0 3px rgba(11, 74, 47, 0.16);
  transform: translateY(-1px);
}

.travel-county-toggle[aria-expanded="true"] {
  border-color: var(--travel-green-dark);
  background: var(--travel-green-dark);
  color: #fff;
}

.travel-leg-map {
  width: 100%;
  height: clamp(360px, 40vw, 520px);
  min-height: 360px;
  background: #dce9e2;
}

.travel-leg-map.is-unavailable {
  display: grid;
  place-items: center;
  padding: 24px;
  color: #5c7166;
  font-weight: 850;
  text-align: center;
}

.travel-leg-county-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.travel-leg-county-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.travel-leg-county-heading span {
  color: var(--travel-green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.travel-leg-county-heading strong {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dceee6;
  color: var(--travel-green-dark);
  font-size: 0.74rem;
  font-weight: 950;
}

.travel-trip-category-picker {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #c9ddd3;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f1f8f4 100%);
  box-shadow: 0 7px 18px rgba(21, 55, 45, 0.07);
}

.travel-trip-category-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.travel-trip-category-picker-heading > div:first-child {
  display: grid;
  gap: 3px;
}

.travel-trip-category-picker-heading strong {
  color: var(--travel-green-dark);
  font-size: 0.95rem;
  font-weight: 950;
}

.travel-trip-category-picker-heading span {
  color: #5d7067;
  font-size: 0.76rem;
  line-height: 1.35;
}

.travel-trip-category-picker-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.travel-trip-category-picker-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #a9c8b8;
  border-radius: 999px;
  background: #fff;
  color: var(--travel-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 950;
}

.travel-trip-category-picker-actions button:hover,
.travel-trip-category-picker-actions button:focus-visible {
  border-color: var(--travel-teal);
  background: #e9f6f0;
  outline: none;
}

.travel-trip-category-picker-actions button:disabled {
  cursor: default;
  opacity: 0.42;
}

.travel-trip-category-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.travel-trip-category-choice {
  --travel-choice-color: var(--travel-green-dark);
  --travel-choice-soft: #edf7f2;
  --travel-choice-border: #a8cbb9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--travel-choice-border);
  border-radius: 10px;
  background: var(--travel-choice-soft);
  color: var(--travel-choice-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.travel-trip-category-choice strong {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font-size: 0.68rem;
}

.travel-trip-category-choice:hover,
.travel-trip-category-choice:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--travel-choice-color), 0 5px 12px rgba(21, 55, 45, 0.12);
  transform: translateY(-1px);
}

.travel-trip-category-choice.is-selected {
  border-color: var(--travel-choice-color);
  background: var(--travel-choice-color);
  color: #fff;
  box-shadow: 0 4px 11px rgba(21, 55, 45, 0.17);
}

.travel-trip-category-choice.is-selected strong {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.travel-trip-category-choice.travel-category-chip-road { --travel-choice-color: #a4070d; --travel-choice-soft: #fff0f1; --travel-choice-border: #ed9da0; }
.travel-trip-category-choice.travel-category-chip-fire { --travel-choice-color: #ad3c00; --travel-choice-soft: #fff3e9; --travel-choice-border: #f2b07b; }
.travel-trip-category-choice.travel-category-chip-air-quality { --travel-choice-color: #50377c; --travel-choice-soft: #f4effa; --travel-choice-border: #b8a6d4; }
.travel-trip-category-choice.travel-category-chip-weather { --travel-choice-color: #0a507f; --travel-choice-soft: #edf7fc; --travel-choice-border: #91bedb; }
.travel-trip-category-choice.travel-category-chip-health { --travel-choice-color: #885d00; --travel-choice-soft: #fff9e7; --travel-choice-border: #e3c878; }
.travel-trip-category-choice.travel-category-chip-wildlife { --travel-choice-color: #225f25; --travel-choice-soft: #f0f8f0; --travel-choice-border: #9ac49a; }

.travel-trip-category-picker-status,
.travel-category-selection-empty,
.travel-county-selected-empty {
  margin: 0;
  color: #52675d;
  font-size: 0.76rem;
  line-height: 1.42;
}

.travel-trip-category-picker-status {
  padding-top: 2px;
  font-weight: 800;
}

.travel-category-selection-empty {
  padding: 11px 13px;
  border: 1px dashed #a9c8b8;
  border-radius: 10px;
  background: #f7fbf9;
  text-align: center;
}

.travel-county-selected-empty {
  padding: 12px 14px;
  background: #f8fbf9;
}

.travel-condition-list {
  display: grid;
  gap: 14px;
}

.travel-leg-condition-list {
  min-width: 0;
}

.travel-leg-condition-list .travel-category-grid {
  grid-template-columns: 1fr;
}

.travel-leg-condition-list .travel-category {
  border-right: 0;
}

.travel-county-condition {
  overflow: hidden;
  border: 1px solid var(--travel-border);
  border-radius: 11px;
}

.travel-county-condition > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  background: #eaf4ee;
}

.travel-county-condition > header a,
.travel-county-condition > header strong {
  color: var(--travel-green-dark);
  font-size: 1.08rem;
  font-weight: 950;
}

.travel-county-condition > header a {
  text-underline-offset: 3px;
}

.travel-county-condition > header .travel-county-order {
  color: #5c7166;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-county-details {
  min-width: 0;
}

.travel-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0;
}

.travel-category {
  --travel-category-start: var(--travel-green-dark);
  --travel-category-end: var(--travel-teal);
  min-width: 0;
  padding: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, var(--travel-category-start), var(--travel-category-end));
}

.travel-category-road {
  --travel-category-start: #d80710;
  --travel-category-end: #9d090f;
}

.travel-category-fire {
  --travel-category-start: #ef6f09;
  --travel-category-end: #c94600;
}

.travel-category-air-quality {
  --travel-category-start: #7352a3;
  --travel-category-end: #44336f;
}

.travel-category-weather {
  --travel-category-start: #0b69a8;
  --travel-category-end: #10466f;
}

.travel-category-health {
  --travel-category-start: var(--gold, #d6a23d);
  --travel-category-end: #b77a00;
}

.travel-category-wildlife {
  --travel-category-start: #2f7c2f;
  --travel-category-end: #1d561f;
}

.travel-category:last-child {
  border-right: 0;
}

.travel-category-heading {
  display: grid;
  gap: 9px;
}

.travel-category h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.travel-category h4 span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
}

.travel-list-toggle {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--travel-category-end);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
}

.travel-list-toggle:hover,
.travel-list-toggle:focus-visible {
  border-color: #fff;
  background: #fff;
}

.travel-list-toggle:focus-visible {
  outline: 3px solid rgba(214, 162, 61, 0.62);
  outline-offset: 2px;
}

.travel-list-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
}

.travel-category-content {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.travel-category-content[hidden] {
  display: none;
}

.travel-alert-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.travel-alert {
  padding: 8px;
  border-left: 4px solid #c9a62b;
  border-radius: 5px;
  background: #fff8da;
}

.travel-alert.is-severity-3 {
  border-left-color: #c62d2d;
  background: #fff0f0;
}

.travel-alert.is-severity-1 {
  border-left-color: #4d9470;
  background: #f0f8f3;
}

.travel-alert strong,
.travel-alert span,
.travel-alert a {
  display: block;
}

.travel-alert strong {
  color: var(--travel-ink);
  font-size: 0.77rem;
  line-height: 1.25;
}

.travel-alert span {
  margin-top: 3px;
  color: #5c6c65;
  font-size: 0.7rem;
  line-height: 1.35;
}

.travel-alert a {
  margin-top: 5px;
  color: var(--travel-teal);
  font-size: 0.7rem;
  font-weight: 900;
}

.travel-alert .travel-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.travel-alert .travel-alert-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(20, 103, 107, 0.28);
  border-radius: 999px;
  background: #fff;
  line-height: 1.15;
  text-decoration: none;
}

.travel-alert .travel-alert-actions a:hover,
.travel-alert .travel-alert-actions a:focus-visible {
  border-color: var(--travel-teal);
  background: #e9f6f3;
}

.travel-category-empty {
  margin: 0;
  color: #78867f;
  font-size: 0.75rem;
  line-height: 1.35;
}

.travel-category .travel-category-empty {
  color: rgba(255, 255, 255, 0.9);
}

.travel-aqi {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 7px;
  background: #edf6f1;
}

.travel-aqi strong {
  color: var(--travel-green-dark);
  font-size: 1.1rem;
}

.travel-aqi span,
.travel-aqi a {
  color: #586d62;
  font-size: 0.72rem;
  line-height: 1.3;
}

.travel-aqi a {
  color: var(--travel-teal);
  font-weight: 900;
}

.travel-county-unavailable {
  margin: 0;
  padding: 13px 15px;
  border-top: 1px solid var(--travel-border);
  color: #6b7771;
  font-size: 0.84rem;
}

@media (max-width: 1200px) {
  .travel-map-instruction {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .travel-map-done {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .travel-planner-hero {
    align-items: start;
    flex-direction: column;
  }

  .travel-hero-actions {
    justify-content: flex-start;
  }

  .travel-workspace {
    grid-template-columns: 1fr;
  }

  .travel-map {
    min-height: 520px;
  }

  .travel-leg-detail-grid {
    grid-template-columns: 1fr;
  }

  .travel-leg-map-panel {
    position: static;
  }

  .travel-leg-map {
    height: 420px;
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .travel-planner {
    width: min(100% - 16px, 1480px);
    margin-top: 8px;
    gap: 12px;
  }

  .travel-planner-hero {
    padding: 20px 17px;
    border-radius: 10px;
  }

  .travel-hero-actions,
  .travel-hero-actions .btn {
    width: 100%;
  }

  .travel-hero-actions .btn {
    justify-content: center;
  }

  .travel-privacy-note,
  .travel-controls,
  .travel-map-panel,
  .travel-results {
    border-radius: 10px;
  }

  .travel-address-search > div {
    grid-template-columns: 1fr;
  }

  .travel-map-picker-button {
    min-height: 54px;
  }

  .travel-map-instruction {
    padding: 12px;
  }

  .travel-map {
    min-height: 430px;
  }

  .travel-total-grid,
  .travel-category-grid {
    grid-template-columns: 1fr;
  }

  .travel-category:last-child {
    grid-column: auto;
  }

  .travel-category {
    border-right: 0;
  }

  .travel-results-header,
  .travel-leg-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .travel-results-actions,
  .travel-pdf-button {
    width: 100%;
    max-width: none;
  }

  .travel-results-actions {
    justify-items: stretch;
  }

  .travel-pdf-button {
    padding: 11px 12px;
    font-size: 0.76rem;
  }

  .travel-pdf-dialog-actions {
    grid-template-columns: 1fr;
  }

  .travel-pdf-dialog-card {
    gap: 10px;
    padding: 26px 18px 22px;
  }

  .travel-leg-list {
    gap: 10px;
  }

  .travel-leg-summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px;
  }

  .travel-leg-summary > span:first-child {
    width: 32px;
    height: 32px;
  }

  .travel-leg-time {
    grid-column: 2;
    text-align: left;
  }

  .travel-mobile-leg-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1 / span 2;
    align-items: center;
    align-self: center;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #b9d1c5;
    border-radius: 999px;
    background: #fff;
    color: var(--travel-green-dark);
    font-size: 0.69rem;
    font-weight: 950;
  }

  .travel-leg.is-mobile-collapsed .travel-leg-summary {
    border-bottom: 0;
  }

  .travel-leg.is-mobile-collapsed .travel-leg-details {
    display: none;
  }

  .travel-leg-details {
    padding: 8px;
  }

  .travel-leg-map-heading {
    align-items: center;
    flex-direction: row;
    padding: 9px 10px;
  }

  .travel-leg-map-help {
    display: none;
  }

  .travel-map-expand {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid #a8c7b8;
    border-radius: 999px;
    background: #fff;
    color: var(--travel-green-dark);
    font-size: 0.7rem;
    font-weight: 950;
  }

  .travel-leg-map {
    height: 230px;
    min-height: 230px;
  }

  body.travel-map-expanded {
    overflow: hidden;
  }

  .travel-leg-map-panel.is-mobile-expanded {
    position: fixed;
    z-index: 10000;
    inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 14px;
    box-shadow: 0 0 0 100vmax rgba(8, 26, 22, 0.76), 0 20px 60px rgba(0, 0, 0, 0.42);
  }

  .travel-leg-map-panel.is-mobile-expanded .travel-leg-map {
    height: 100%;
    min-height: 0;
  }

  .travel-leg-county-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
  }

  .travel-mobile-collapse-all {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid #b9d1c5;
    border-radius: 999px;
    background: #fff;
    color: var(--travel-green-dark);
    font-size: 0.66rem;
    font-weight: 950;
  }

  .travel-trip-category-picker {
    gap: 10px;
    padding: 11px;
  }

  .travel-trip-category-picker-heading {
    display: grid;
    gap: 9px;
  }

  .travel-trip-category-picker-heading strong {
    font-size: 0.9rem;
  }

  .travel-trip-category-picker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .travel-trip-category-picker-actions button {
    min-height: 36px;
  }

  .travel-trip-category-choices {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .travel-trip-category-choice {
    min-height: 46px;
    padding: 8px 9px;
    font-size: 0.73rem;
  }

  .travel-trip-category-picker-status {
    font-size: 0.72rem;
  }

  .travel-leg-condition-list {
    position: relative;
    gap: 9px;
    padding-left: 32px;
  }

  .travel-leg-condition-list::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 14px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(#74a88f, #d0e1d7);
    content: '';
  }

  .travel-county-condition {
    position: relative;
    overflow: visible;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(21, 55, 45, 0.07);
  }

  .travel-county-condition > header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 10px;
    border-radius: 9px 9px 0 0;
  }

  .travel-county-condition > header a,
  .travel-county-condition > header strong {
    grid-column: 1;
    font-size: 0.96rem;
  }

  .travel-county-condition > header .travel-county-order {
    grid-column: 1;
    font-size: 0.64rem;
  }

  .travel-county-step {
    position: absolute;
    top: 10px;
    left: -32px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 3px solid #f4f8f6;
    border-radius: 999px;
    background: var(--travel-green-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 950;
    box-shadow: 0 2px 8px rgba(21, 55, 45, 0.22);
  }

  .travel-county-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: center;
    align-self: center;
    min-height: 36px;
    min-width: 82px;
    margin-left: 0;
    padding: 6px 9px;
    border: 1px solid #a8c7b8;
    border-radius: 999px;
    background: #fff;
    color: var(--travel-green-dark);
    font-size: 0.68rem;
    font-weight: 950;
  }

  .travel-mobile-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px 10px;
    border-top: 1px solid #dce9e2;
    background: #f8fbf9;
  }

  .travel-category-chip {
    min-height: 28px;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    appearance: none;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: box-shadow 140ms ease, transform 140ms ease;
  }

  .travel-category-chip:focus-visible {
    outline: 3px solid rgba(11, 74, 47, 0.34);
    outline-offset: 2px;
    box-shadow: 0 2px 7px rgba(8, 59, 36, 0.2);
    transform: translateY(-1px);
  }

  .travel-category-chip:active {
    transform: translateY(1px);
  }

  .travel-category-chip-road { border-color: #ed9da0; background: #fff0f1; color: #a4070d; }
  .travel-category-chip-fire { border-color: #f2b07b; background: #fff3e9; color: #ad3c00; }
  .travel-category-chip-air-quality { border-color: #b8a6d4; background: #f4effa; color: #50377c; }
  .travel-category-chip-weather { border-color: #91bedb; background: #edf7fc; color: #0a507f; }
  .travel-category-chip-health { border-color: #e3c878; background: #fff9e7; color: #885d00; }
  .travel-category-chip-wildlife { border-color: #9ac49a; background: #f0f8f0; color: #225f25; }

  .travel-county-condition.is-mobile-collapsed .travel-county-details {
    display: none;
  }

  .travel-county-condition.is-mobile-collapsed > header {
    border-radius: 9px 9px 0 0;
  }

  .travel-county-details {
    display: grid;
    background: #edf4f0;
  }

  .travel-leg-condition-list .travel-category-grid {
    gap: 7px;
    padding: 8px;
  }

  .travel-leg-condition-list .travel-category {
    overflow: hidden;
    padding: 0;
    border: 1px solid #d5e3dc;
    border-left: 5px solid var(--travel-category-start);
    border-radius: 8px;
    background: #fff;
  }

  .travel-category-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
  }

  .travel-category h4 {
    color: var(--travel-category-end);
    font-size: 0.78rem;
    text-shadow: none;
  }

  .travel-category h4 span {
    min-width: 22px;
    height: 22px;
    border-color: #c9d8d0;
    background: #edf4f0;
    color: var(--travel-category-end);
  }

  .travel-list-toggle {
    width: auto;
    min-width: 70px;
    min-height: 34px;
    padding: 6px 8px;
    border-color: #b9cdc3;
    background: #fff;
    color: var(--travel-category-end);
    font-size: 0.69rem;
  }

  .travel-list-toggle[aria-expanded="true"] {
    border-color: var(--travel-category-end);
    background: var(--travel-category-end);
    color: #fff;
  }

  .travel-category-content {
    margin-top: 0;
    padding: 0 10px 10px;
    background: #fff;
  }

  .travel-category .travel-category-empty {
    color: #66766e;
  }

  .travel-county-unavailable {
    padding: 10px;
    background: #fff;
  }
}

/* Compact route briefing for tablets and desktop: county pills stay visible and
   only the selected category opens in the right-side details area. */
@media (min-width: 621px) {
  .travel-leg-summary {
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
  }

  .travel-mobile-leg-toggle,
  .travel-mobile-collapse-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #b9d1c5;
    border-radius: 999px;
    background: #fff;
    color: var(--travel-green-dark);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 950;
  }

  .travel-mobile-leg-toggle:hover,
  .travel-mobile-leg-toggle:focus-visible,
  .travel-mobile-collapse-all:hover,
  .travel-mobile-collapse-all:focus-visible {
    border-color: var(--travel-teal);
    background: #edf7f3;
  }

  .travel-leg.is-mobile-collapsed .travel-leg-summary {
    border-bottom: 0;
  }

  .travel-leg.is-mobile-collapsed .travel-leg-details {
    display: none;
  }

  .travel-leg-county-panel,
  .travel-condition-list {
    gap: 8px;
  }

  .travel-leg-county-heading {
    min-height: 34px;
  }

  .travel-mobile-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 10px;
    border-top: 1px solid #dce9e2;
    background: #f8fbf9;
  }

  .travel-category-chip {
    min-height: 30px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    appearance: none;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: box-shadow 140ms ease, transform 140ms ease;
  }

  .travel-category-chip:hover,
  .travel-category-chip:focus-visible,
  .travel-category-chip.is-active {
    outline: none;
    box-shadow: 0 0 0 2px currentColor, 0 3px 9px rgba(8, 59, 36, 0.14);
    transform: translateY(-1px);
  }

  .travel-category-chip-road { border-color: #ed9da0; background: #fff0f1; color: #a4070d; }
  .travel-category-chip-fire { border-color: #f2b07b; background: #fff3e9; color: #ad3c00; }
  .travel-category-chip-air-quality { border-color: #b8a6d4; background: #f4effa; color: #50377c; }
  .travel-category-chip-weather { border-color: #91bedb; background: #edf7fc; color: #0a507f; }
  .travel-category-chip-health { border-color: #e3c878; background: #fff9e7; color: #885d00; }
  .travel-category-chip-wildlife { border-color: #9ac49a; background: #f0f8f0; color: #225f25; }

  .travel-county-condition {
    background: #fff;
    box-shadow: 0 3px 10px rgba(21, 55, 45, 0.07);
  }

  .travel-county-condition > header {
    gap: 8px;
    padding: 9px 11px;
  }

  .travel-county-condition > header a,
  .travel-county-condition > header strong {
    font-size: 0.96rem;
  }

  .travel-county-condition > header .travel-county-order {
    font-size: 0.66rem;
  }

  .travel-county-details {
    display: none;
    background: #edf4f0;
  }

  .travel-county-condition.has-open-category .travel-county-details {
    display: grid;
  }

  .travel-leg-condition-list .travel-category-grid {
    gap: 7px;
    padding: 8px;
  }

  .travel-leg-condition-list .travel-category {
    display: none;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d5e3dc;
    border-left: 5px solid var(--travel-category-start);
    border-radius: 8px;
    background: #fff;
  }

  .travel-leg-condition-list .travel-category.is-expanded {
    display: block;
  }

  .travel-category-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .travel-category h4 {
    color: var(--travel-category-end);
    font-size: 0.78rem;
    text-shadow: none;
  }

  .travel-category h4 span {
    min-width: 22px;
    height: 22px;
    border-color: #c9d8d0;
    background: #edf4f0;
    color: var(--travel-category-end);
  }

  .travel-list-toggle {
    width: auto;
    min-width: 76px;
    min-height: 32px;
    padding: 5px 9px;
    border-color: #b9cdc3;
    background: #fff;
    color: var(--travel-category-end);
    font-size: 0.69rem;
  }

  .travel-list-toggle[aria-expanded="true"] {
    border-color: var(--travel-category-end);
    background: var(--travel-category-end);
    color: #fff;
  }

  .travel-category-content {
    margin-top: 0;
    padding: 0 10px 10px;
    background: #fff;
  }

  .travel-category .travel-category-empty {
    color: #66766e;
  }
}

@media (min-width: 901px) {
  .travel-leg-detail-grid {
    grid-template-columns: minmax(420px, 1.08fr) minmax(350px, 0.92fr);
    gap: 12px;
  }

  .travel-leg-map {
    height: clamp(380px, 32vw, 470px);
    min-height: 380px;
  }
}

/* Traveler accounts and saved trips */
.travel-account-welcome {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.17);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.travel-account-welcome strong {
  color: #ffe382;
}

.travel-account-logout-form {
  margin: 0;
}

.travel-account-logout-form .btn {
  width: 100%;
}

.travel-saved-trips {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid #cbded3;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #eef6f1);
  box-shadow: 0 12px 30px rgba(18, 47, 37, 0.08);
  scroll-margin-top: 14px;
}

.travel-saved-trips > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.travel-saved-trips > header span,
.travel-save-trip-panel > div:first-child > span {
  color: #527a5d;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.travel-saved-trips h2,
.travel-save-trip-panel h3 {
  margin: 2px 0 0;
  color: var(--travel-green-dark);
}

.travel-saved-trips > header p,
.travel-save-trip-panel p {
  max-width: 600px;
  margin: 0;
  color: #5c7166;
  font-size: 0.84rem;
  line-height: 1.45;
}

.travel-saved-trip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.travel-saved-trip-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #cbded3;
  border-left: 5px solid #71905a;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 47, 37, 0.07);
}

.travel-saved-trip-card strong {
  color: var(--travel-green-dark);
  font-size: 0.98rem;
}

.travel-saved-trip-card span,
.travel-saved-trip-card time,
.travel-saved-trip-empty,
.travel-saved-trip-status {
  color: #61736a;
  font-size: 0.75rem;
  line-height: 1.4;
}

.travel-saved-trip-card-actions {
  display: flex;
  gap: 7px;
}

.travel-saved-trip-card-actions button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #b9d1c5;
  border-radius: 8px;
  background: #edf6f1;
  color: var(--travel-green-dark);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
}

.travel-saved-trip-card-actions button[data-saved-trip-action="delete"] {
  border-color: #e3b0b1;
  background: #fff4f4;
  color: #971d23;
}

.travel-saved-trip-empty,
.travel-saved-trip-status {
  grid-column: 1 / -1;
  margin: 0;
}

.travel-saved-trip-status.is-error {
  color: #a0161c;
  font-weight: 850;
}

.travel-save-trip-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: end;
  margin: 0 18px 18px;
  padding: 15px;
  border: 1px solid #d8c270;
  border-radius: 11px;
  background: #fff9e3;
}

.travel-save-trip-panel.is-guest {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.travel-save-trip-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.travel-save-trip-controls label {
  grid-column: 1 / -1;
  color: #5b4a12;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* County issue color coding on each route-leg map */
.travel-leg-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #cddfd5;
  background: #f8fbf9;
}

.travel-leg-map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #476157;
  font-size: 0.65rem;
  font-weight: 900;
}

.travel-leg-map-legend > span:first-child {
  flex-basis: 100%;
  color: #24483b;
}

.travel-leg-map-swatch,
.travel-county-map-popup-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: var(--travel-marker-color, #6b7b73);
}

.travel-county-map-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--travel-marker-ring, #6d7f76);
  box-shadow: 0 2px 8px rgba(8, 40, 29, 0.42);
}

.travel-county-map-marker > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #12312f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.travel-county-map-marker.is-no-current-issue {
  background: #87978f;
}

.travel-county-map-popup {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.travel-county-map-popup strong {
  color: #12312f;
  font-size: 0.9rem;
}

.travel-county-map-popup small {
  color: #5f7168;
  line-height: 1.35;
}

.travel-county-map-popup-category {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #304b40;
  font-size: 0.72rem;
  font-weight: 850;
}

@media (max-width: 620px) {
  .travel-account-welcome,
  .travel-account-logout-form,
  .travel-account-logout-form .btn {
    width: 100%;
  }

  .travel-account-welcome {
    justify-content: center;
  }

  .travel-saved-trips {
    padding: 14px;
    border-radius: 10px;
  }

  .travel-saved-trips > header,
  .travel-save-trip-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .travel-saved-trips > header {
    flex-direction: column;
  }

  .travel-saved-trip-list {
    grid-template-columns: 1fr;
  }

  .travel-save-trip-panel {
    margin: 0 10px 12px;
  }

  .travel-save-trip-panel.is-guest,
  .travel-save-trip-controls {
    grid-template-columns: 1fr;
  }

  .travel-save-trip-panel.is-guest .btn,
  .travel-save-trip-controls .btn {
    width: 100%;
  }

  .travel-leg-map-legend {
    gap: 5px 8px;
    padding: 7px 9px;
  }
}
