:root {
  --ink: #18363c;
  --muted: #738389;
  --green: #153e44;
  --mint: #e1eeea;
  --paper: #f6f7f5;
  --white: #fff;
  --stroke: #e5eae7;
  --peach: #f7cfaa;
  --shadow: 0 12px 32px rgba(27, 55, 58, 0.045);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
  background: var(--paper);
  color: #23393d;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #e3aa71;
  outline-offset: 3px;
}
a {
  color: #1d6b73;
}
.sidebar {
  background: var(--green);
  color: #f0f8f3;
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  padding: 29px 17px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 40px;
}
.brandmark {
  font-family: Georgia, serif;
  font-size: 30px;
  background: #f3c394;
  color: #234145;
  border-radius: 12px;
  width: 41px;
  height: 41px;
  text-align: center;
  line-height: 41px;
}
.brand strong {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.brand strong span {
  color: #ffcf96;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #b8ceca;
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.sidebar-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #a6bcb8;
}
.sidebar-label {
  margin: 0 15px 16px;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: #cadbd7;
  border-radius: 12px;
  padding: 13px 12px;
  font-size: 13px;
  font-weight: 650;
}
.nav-item:hover,
.nav-item.active {
  background: #325860;
  color: white;
}
.nav-item.active {
  box-shadow: inset 3px 0 #f0b87d;
}
.nav-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
}
.sidebar-bottom {
  margin-top: auto;
  background: #28535a;
  border: 1px solid #467078;
  border-radius: 16px;
  padding: 19px;
}
.tiny-sun {
  font-size: 30px;
  color: #f8c48b;
  margin-bottom: 12px;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.6;
  color: #c4d9d4;
}
.side-version {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #b3d0c9;
}
.main-shell {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  padding: 29px clamp(18px, 3.2vw, 50px) 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-bottom: 1px solid #edf0ed;
}
.topbar h1 {
  font-size: 24px;
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin: 9px 0 0;
  color: #19383f;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.save-indicator {
  color: #46816b;
  font-size: 11px;
  white-space: nowrap;
}
.content {
  max-width: 1390px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3.2vw, 50px) 45px;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.hero {
  height: 290px;
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  color: white;
  box-shadow: var(--shadow);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 61%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 42, 48, 0.9) 0%,
    rgba(16, 42, 48, 0.68) 36%,
    rgba(13, 37, 43, 0.05) 100%
  );
}
.hero-copy {
  position: absolute;
  top: 30px;
  left: 39px;
  max-width: 475px;
}
.hero-pill {
  font-size: 10px;
  color: #ffe2c5;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.hero h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 500;
  line-height: 1.12;
  margin: 12px 0;
}
.hero p {
  max-width: 420px;
  font-size: 12px;
  color: #dbe5e4;
  line-height: 1.7;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 17px;
  font-weight: 750;
  font-size: 12px;
  text-decoration: none;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.btn-light {
  background: #fff3e5;
  color: #284950;
}
.btn-primary {
  background: #184a50;
  color: white;
}
.btn-ghost {
  background: #f0f4f1;
  color: #345c61;
}
.btn-outline {
  background: #fff;
  color: #24545b;
  border-color: #cbdedb;
}
.btn-danger-ghost {
  color: #9a4248;
  background: #fff2f2;
  border-color: #f7dfdf;
}
.compact {
  min-height: 36px;
  padding: 8px 12px;
}
.full {
  width: 100%;
  margin-top: 15px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0 18px;
}
.section-heading h2,
.section-heading h3 {
  font-family: Georgia, serif;
  font-weight: 600;
  color: #1e3d43;
  font-size: 26px;
  letter-spacing: -0.55px;
  margin: 5px 0;
}
.section-heading h3 {
  font-size: 24px;
}
.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 9px 0 0;
  line-height: 1.6;
}
.pill {
  padding: 8px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.neutral {
  color: #617a7d;
  background: #e9efeb;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card {
  border: 1px solid var(--stroke);
  background: white;
  border-radius: 15px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-icon {
  border-radius: 9px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.rose {
  background: #faebe0;
  color: #c88a64;
}
.teal {
  background: #e5f0ed;
  color: #398272;
}
.blue {
  background: #e8eff7;
  color: #557da7;
}
.gold {
  background: #f6f0dd;
  color: #a99349;
}
.stat-label {
  font-size: 11px;
  color: #748488;
}
.stat-card strong {
  font-size: 25px;
  letter-spacing: -0.8px;
  color: #213b41;
  margin: 7px 0;
}
.stat-card small {
  font-size: 10px;
  color: #90a1a2;
}
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
  margin-top: 18px;
}
.surface {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.two-columns > .surface {
  padding: 23px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 17px;
}
.card-header h3,
.surface h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: #203d43;
  margin: 6px 0 10px;
}
.card-header p,
.surface p {
  font-size: 12px;
  color: #7c8d91;
  line-height: 1.7;
  margin: 0 0 15px;
}
.text-button {
  background: none;
  border: 0;
  color: #287a77;
  font-weight: 750;
  font-size: 11px;
  white-space: nowrap;
}
.bar-row {
  margin: 15px 0;
}
.bar-name {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 7px;
}
.bar-name b {
  font-weight: 700;
  color: #426065;
}
.bar-track {
  height: 9px;
  background: #eef2ef;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 10px;
  min-width: 1px;
}
.quick-links {
  display: flex;
  flex-direction: column;
}
.quick-links button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1ef;
  background: white;
  text-align: left;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.quick-links button:last-child {
  border-bottom: 0;
}
.quick-links button > span:nth-child(2) {
  flex: 1;
}
.quick-links strong,
.quick-links small {
  display: block;
}
.quick-links strong {
  font-size: 12px;
  color: #24494d;
}
.quick-links small {
  font-size: 10px;
  margin-top: 4px;
  color: #95a4a6;
}
.quick-links b {
  font-weight: 400;
  font-size: 17px;
  color: #6b9291;
}
.quick-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: #eef4f2;
  border-radius: 10px;
  color: #43877d;
}
.notice {
  font-size: 11px;
  color: #688086;
  background: #eef4f1;
  border: 1px solid #dfeae6;
  padding: 14px 18px;
  border-radius: 11px;
  line-height: 1.6;
  margin-top: 19px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(16px, 3.2vw, 50px) 25px;
  font-size: 10px;
  color: #8ea09f;
}
.form-card {
  padding: 25px;
  margin-bottom: 20px;
}
.form-card > h3:first-child {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
label {
  display: block;
  font-size: 12px;
  color: #436169;
  font-weight: 700;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  background: #fcfdfc;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  min-height: 43px;
  outline: none;
  padding: 11px 12px;
  color: #21464c;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  min-height: 98px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #4e9790;
  box-shadow: 0 0 0 3px #e6f2ec;
}
input[type='checkbox'] {
  accent-color: #20766c;
  width: 17px;
  height: 17px;
}
.field-help {
  font-size: 11px;
  color: #7c8d8d;
  line-height: 1.5;
  margin-top: 12px;
}
.subtle {
  color: #789092 !important;
}
.vehicle-card {
  background: #f8faf8;
  border: 1px solid #e7ede8;
  padding: 17px;
  border-radius: 13px;
  margin: 15px 0;
}
.vehicle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.vehicle-heading h4 {
  font-size: 14px;
  margin: 0;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}
.vehicle-grid .span2 {
  grid-column: span 2;
}
.vehicle-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  font-size: 12px;
  color: #5c7779;
}
.vehicle-cost b {
  font-size: 17px;
  color: #214f4f;
}
.small-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}
.callout {
  border-radius: 12px;
  background: #e9f2ed;
  padding: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #396b64;
  line-height: 1.7;
}
.remove-btn {
  border: 0;
  background: #fceced;
  color: #ad5a58;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
}
.traveler-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--stroke);
}
.traveler-row:last-child {
  border-bottom: 0;
}
.traveler-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7efea;
  color: #41766c;
  font-weight: 800;
}
.traveler-row label {
  flex: 1;
}
.traveler-row input {
  margin: 0;
}
.table-scroller {
  overflow: auto;
  margin: 12px 0;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 12px;
}
.data-table th {
  text-align: right;
  color: #849596;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 9px;
  background: #f7faf8;
}
.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}
.data-table td {
  text-align: right;
  border-bottom: 1px solid #edf0ee;
  padding: 13px 9px;
}
.negative {
  color: #c45b55;
}
.positive {
  color: #368574;
}
.expense-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
.mini-total {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-total span {
  font-size: 11px;
  color: #7b9190;
}
.mini-total strong {
  font-size: 20px;
  color: #27464c;
}
.expense-card {
  margin-bottom: 13px;
  padding: 18px;
}
.expense-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.expense-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.expense-icon {
  width: 40px;
  height: 40px;
  flex: none;
  background: #e9f2ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34786b;
  font-size: 19px;
}
.expense-meta h4 {
  font-size: 14px;
  margin: 0 0 4px;
}
.expense-meta small {
  color: #839795;
  font-size: 11px;
}
.expense-price {
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}
.expense-form {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 17px;
}
.expense-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.category-tag {
  background: #f0f4f1;
  color: #53736e;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 10px;
}
.participation {
  margin-top: 10px;
  padding: 12px;
  background: #f9fbf9;
  border-radius: 10px;
  border: 1px solid #edf1ed;
}
.participation > small {
  display: block;
  color: #698883;
  margin-bottom: 9px;
}
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.check-list label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
}
.discover-search {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  align-items: end;
  gap: 13px;
}
.discover-search .btn {
  height: 43px;
}
.discover-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.places-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.place {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 13px;
  border-bottom: 1px solid #eaf0eb;
  padding-bottom: 13px;
}
.place:last-child {
  border-bottom: 0;
}
.place strong {
  display: block;
  font-size: 13px;
  color: #2a5053;
}
.place small {
  display: block;
  font-size: 10px;
  color: #849b98;
  margin: 5px 0;
}
.place a {
  font-size: 10px;
}
.place .btn {
  white-space: nowrap;
}
.empty-state {
  padding: 22px;
  text-align: center;
  color: #839995;
  background: #f7faf8;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
}
.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.choice-list button {
  text-align: left;
  background: #eff6f1;
  border: 1px solid #dcebe4;
  border-radius: 10px;
  padding: 12px;
  color: #24595d;
  font-size: 12px;
  font-weight: 700;
}
.choice-list small {
  display: block;
  font-weight: 400;
  color: #7e9890;
  margin-top: 5px;
}
.saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1ed;
}
.saved-item span {
  font-size: 12px;
}
.saved-item input {
  width: 87px !important;
  min-height: 35px !important;
  margin: 0 !important;
}
.divider-line {
  height: 1px;
  background: #e9eeeb;
  margin: 23px 0;
}
.attribution {
  font-size: 10px !important;
  margin-top: 17px !important;
}
.report-preview {
  background: #f7faf8;
  border: 1px dashed #cadbd2;
  padding: 18px;
  border-radius: 11px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
}
.stack-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack-actions .btn {
  justify-content: flex-start;
}
.file-label {
  cursor: pointer;
}
.settle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 12px;
}
.settle-row strong {
  color: #3c776e;
}
.mobile-bottom-nav {
  display: none;
}
#toast {
  position: fixed;
  z-index: 50;
  right: 25px;
  bottom: 23px;
  background: #19484d;
  color: white;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px #173b3b2a;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
#print-area {
  display: none;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 216px;
  }
  .main-shell {
    margin-left: 216px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expense-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-actions .save-indicator {
    display: none;
  }
  .discover-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .sidebar {
    display: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    padding: 20px 18px;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .top-actions .btn {
    font-size: 0;
    min-width: 40px;
    padding: 7px;
  }
  .top-actions .btn::first-letter {
    font-size: 18px;
  }
  .content {
    padding: 18px 16px 85px;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: #fff;
    box-shadow: 0 -5px 24px #0c323218;
    border-top: 1px solid #e2eae5;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    padding: 5px 5px max(5px, env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav button {
    border: 0;
    background: transparent;
    color: #7b8c89;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    padding: 6px 1px;
  }
  .mobile-bottom-nav button span {
    font-size: 18px;
  }
  .mobile-bottom-nav button.active {
    color: #205a5e;
  }
  .footer {
    padding-bottom: 75px;
  }
  .hero {
    height: 278px;
  }
  .hero-copy {
    top: 23px;
    left: 23px;
    right: 15px;
  }
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(14, 42, 48, 0.93),
      rgba(14, 42, 48, 0.55) 79%,
      rgba(14, 42, 48, 0.12)
    );
  }
  .hero h2 {
    font-size: 30px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discover-search {
    grid-template-columns: 1fr 1fr;
  }
  .discover-search .btn {
    grid-column: 1/-1;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading .btn {
    white-space: nowrap;
  }
  .footer {
    display: none;
  }
}
@media (max-width: 480px) {
  .topbar h1 {
    font-size: 18px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero {
    height: 285px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero p {
    font-size: 11px;
    max-width: 265px;
  }
  .hero-copy {
    left: 20px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card strong {
    font-size: 21px;
  }
  .stat-icon {
    margin-bottom: 10px;
  }
  .form-card {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading .btn {
    font-size: 11px;
    padding: 9px;
  }
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .vehicle-grid .span2 {
    grid-column: 1/-1;
  }
  .vehicle-card {
    padding: 12px;
  }
  .expense-form {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .expense-totals {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .expense-totals .mini-total:last-child {
    grid-column: 1/-1;
  }
  .mini-total {
    padding: 14px;
  }
  .expense-top {
    align-items: flex-start;
  }
  .expense-price {
    font-size: 15px;
  }
  .discover-search {
    grid-template-columns: 1fr;
  }
  .discover-search .btn {
    grid-column: auto;
  }
  .choice-list {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav button {
    font-size: 8px;
  }
  .mobile-bottom-nav button span {
    font-size: 18px;
  }
}
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .sidebar,
  .topbar,
  .content,
  .footer,
  .mobile-bottom-nav,
  #toast {
    display: none !important;
  }
  .main-shell {
    margin: 0 !important;
  }
  #print-area {
    display: block !important;
    color: #182e33;
    font-family: Arial, sans-serif;
    font-size: 11pt;
  }
  #print-area h1 {
    font-family: Georgia, serif;
    font-size: 24pt;
    margin: 0 0 4mm;
  }
  #print-area h2 {
    font-family: Georgia, serif;
    font-size: 15pt;
    margin: 12mm 0 5mm;
  }
  #print-area p {
    line-height: 1.5;
  }
  #print-area table {
    border-collapse: collapse;
    width: 100%;
    margin: 5mm 0;
  }
  #print-area td,
  #print-area th {
    border-bottom: 1px solid #cfd8d3;
    padding: 3mm 2mm;
    text-align: left;
  }
  #print-area td:last-child,
  #print-area th:last-child {
    text-align: right;
  }
  #print-area .print-head {
    border-bottom: 3px solid #27535a;
    padding-bottom: 9mm;
  }
  #print-area .print-kicker {
    color: #638a81;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9pt;
  }
  #print-area .print-meta {
    display: flex;
    gap: 8mm;
    flex-wrap: wrap;
  }
  #print-area .print-stat {
    background: #f0f4f1;
    padding: 5mm;
    margin: 6mm 0;
    font-size: 16pt;
    font-weight: bold;
  }
  #print-area .print-foot {
    border-top: 1px solid #ccd8d2;
    color: #718482;
    font-size: 8pt;
    margin-top: 15mm;
    padding-top: 3mm;
  }
  #print-area .print-page {
    break-after: page;
    page-break-after: always;
  }
  #print-area .print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}

@media (max-width: 820px) {
  .top-actions .btn {
    font-size: 0;
  }
  .top-actions .btn::after {
    content: '↓';
    font-size: 18px;
  }
}

/* Genuine PDF download, accessible from mobile Safari */
.pdf-result {
  margin: 13px 0;
  padding: 16px;
  border: 1px solid #b8dad0;
  background: #f1f8f4;
  border-radius: 13px;
  color: #245e52;
}
.pdf-result[hidden] {
  display: none !important;
}
.pdf-result strong {
  display: block;
  font-size: 14px;
  margin: 0 0 6px;
}
.pdf-result p {
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 12px;
}
.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.pdf-actions a {
  text-decoration: none;
  min-height: 40px;
  flex: 1;
  white-space: nowrap;
}
#print-report-legacy {
  margin-top: 12px;
}

#pdf-share[hidden] {
  display: none !important;
}

/* v1.2 Boarding pass designer, mobile-first */
.ticket-designer {
  margin: 14px 0 17px;
  padding: 18px;
  background: #f8fbfa;
  border: 1px solid #d9e9e3;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticket-designer .eyebrow {
  color: #557c76;
}
.ticket-designer label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #38585a;
}
.ticket-designer label select,
.ticket-designer label textarea {
  width: 100%;
  margin-top: 7px;
}
.ticket-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.ticket-swatch {
  padding: 15px 5px;
  border-radius: 7px;
  color: #fff;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ticket-swatch.modern {
  background: linear-gradient(110deg, #183a5a 65%, #1da87d 65%);
}
.ticket-swatch.elegant {
  background: linear-gradient(110deg, #1a2025 66%, #ad8552 66%);
}
.ticket-swatch.adventure {
  background: linear-gradient(110deg, #1d4445 66%, #c86b47 66%);
}
.ticket-designer .pdf-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  line-height: 1.4;
}
.ticket-designer .pdf-check input {
  width: 19px;
  min-width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #276c62;
}
.ticket-designer .field-help {
  margin: 0;
}

/* v1.3 · Presupuesto inteligente — tarjetas móviles, hipótesis transparentes */
.smart-home-promo {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #eaf4ec;
  border: 1px solid #d6e6db;
  padding: 17px 20px;
  margin: 17px 0 25px;
  border-radius: 14px;
}
.smart-home-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #d3e9da;
  color: #276951;
  font-size: 25px;
  flex: none;
}
.smart-home-promo > div {
  flex: 1;
}
.smart-home-promo strong {
  display: block;
  font-size: 14px;
  color: #234f46;
}
.smart-home-promo p {
  font-size: 11px;
  line-height: 1.55;
  color: #55756f;
  margin: 5px 0 0;
}
.smart-budget-card {
  border: 1px solid #cee3d7 !important;
  box-shadow: 0 14px 42px #204c4420;
}
.smart-budget-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.smart-budget-heading > div {
  flex: 1;
}
.smart-budget-heading h3 {
  margin: 7px 0 8px !important;
  font-size: 22px;
}
.smart-budget-heading p {
  max-width: 570px;
  color: #728984;
  font-size: 12px;
  line-height: 1.6;
}
.smart-budget-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  background: #dff2e8;
  color: #285c51;
  border-radius: 13px;
  font-size: 24px;
  font-weight: 700;
}
.smart-trip-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.smart-trip-facts > div {
  background: #f1f7f3;
  border-radius: 10px;
  padding: 13px;
  min-width: 0;
}
.smart-trip-facts span {
  display: block;
  font-size: 9px;
  color: #708980;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.smart-trip-facts strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #264b48;
  overflow-wrap: anywhere;
}
.smart-level-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 22px;
}
.smart-level-choices label {
  cursor: pointer;
}
.smart-level-choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.smart-level-choices label > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  border: 1.5px solid #dae7e1;
  background: #f9fbfa;
  border-radius: 12px;
  padding: 15px;
  transition:
    background 0.12s,
    border 0.12s;
  font-size: 17px;
}
.smart-level-choices strong {
  font-size: 13px;
  color: #355954;
}
.smart-level-choices small {
  font-size: 10px;
  color: #77928b;
}
.smart-level-choices input:checked + span {
  border-color: #347f70;
  background: #eaf5ef;
  box-shadow: 0 0 0 2px #347f7020;
}
.smart-level-choices input:focus-visible + span {
  outline: 3px solid #80bdad;
  outline-offset: 2px;
}
.smart-budget-control {
  margin-bottom: 13px;
}
.smart-budget-control label,
.smart-rates-grid label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #38595a;
}
.smart-budget-control select,
.smart-rates-grid input,
.smart-rates-grid select {
  width: 100%;
  margin-top: 7px;
}
.smart-budget-control .field-help {
  margin-top: 7px !important;
}
.smart-rates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 19px 0 12px;
}
.smart-rates-head strong {
  font-size: 13px;
}
.smart-rates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.smart-rates-grid label span {
  font-weight: 400;
}
.smart-inclusions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 15px 0 7px;
}
.smart-inclusions label,
.smart-replace-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #3d6260;
  line-height: 1.5;
  cursor: pointer;
}
.smart-inclusions input,
.smart-replace-option input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 0;
  accent-color: #286f60;
}
.smart-buffer-settings {
  display: flex;
  align-items: end;
  gap: 13px;
  margin: 9px 0 14px;
  background: #f4f8f6;
  padding: 12px;
  border-radius: 10px;
}
.smart-buffer-settings[hidden] {
  display: none;
}
.smart-buffer-settings label {
  width: 145px;
  font-size: 11px;
  font-weight: 700;
}
.smart-buffer-settings input {
  margin-top: 7px;
}
.smart-buffer-settings span {
  font-size: 10px;
  line-height: 1.4;
  color: #718981;
}
.smart-preview {
  border: 1px solid #d5e6dc;
  border-radius: 13px;
  background: #f7faf7;
  padding: 18px;
  margin: 18px 0 13px;
}
.smart-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
}
.smart-preview-head h4 {
  font-size: 15px;
  margin: 4px 0;
}
.smart-preview-head > strong {
  font-size: 25px;
  color: #24685d;
  white-space: nowrap;
}
.smart-preview-row {
  padding: 9px 0;
  border-top: 1px solid #e3ede8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.smart-preview-row small {
  font-size: 10px;
  color: #849991;
  display: block;
  margin-top: 3px;
}
.smart-preview-row b {
  white-space: nowrap;
  color: #31534c;
}
.smart-preview-footer {
  border-top: 1px solid #b4d6c5;
  margin-top: 7px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  color: #2c5750;
  font-size: 12px;
}
.smart-preview-footer strong {
  font-size: 17px;
}
.smart-replace-option {
  border: 1px solid #e6eae1;
  background: #fffdf5;
  border-radius: 10px;
  padding: 11px;
  margin-top: 10px;
}
.smart-warning {
  font-size: 11px !important;
  line-height: 1.6;
  color: #9a6341;
  background: #fff5e8;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0 !important;
}
.smart-disclaimer {
  font-size: 10px !important;
  line-height: 1.55 !important;
  color: #6c847e;
  margin: 13px 0 0 !important;
}
.smart-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 820px) {
  .smart-home-promo {
    flex-wrap: wrap;
  }
  .smart-home-promo .btn {
    width: 100%;
  }
  .smart-trip-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .smart-home-promo {
    padding: 13px;
    gap: 10px;
  }
  .smart-trip-facts {
    grid-template-columns: 1fr 1fr;
  }
  .smart-trip-facts > div:first-child {
    grid-column: 1/-1;
  }
  .smart-level-choices {
    gap: 6px;
  }
  .smart-level-choices label > span {
    padding: 10px 7px;
  }
  .smart-level-choices strong {
    font-size: 11px;
  }
  .smart-level-choices small {
    font-size: 9px;
  }
  .smart-rates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .smart-budget-heading h3 {
    font-size: 20px;
  }
  .smart-preview-head > strong {
    font-size: 20px;
  }
}

.smart-preview-hint {
  font-size: 10px !important;
  color: #748980;
  line-height: 1.45 !important;
  margin: 9px 0 0 !important;
}

/* RoadTrip Genius v1.4 · comparador de rutas */
.route-compare-card {
  margin-top: 22px;
}
.compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.compare-head h3 {
  margin: 6px 0 7px;
  font-size: 1.42rem;
}
.compare-head p {
  color: var(--muted, #65737a);
  margin: 0 0 18px;
  line-height: 1.55;
}
.compare-head-icon {
  background: #e1f0eb;
  color: #216958;
  font-size: 1.65rem;
  border-radius: 15px;
  padding: 13px 17px;
}
.compare-vehicle-label {
  display: block;
  max-width: 480px;
  margin-bottom: 18px;
  font-weight: 650;
}
.compare-vehicle-label select {
  margin-top: 7px;
  display: block;
  width: 100%;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.compare-scenario {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #f8faf9;
  border: 1px solid #dfe8e5;
  border-radius: 16px;
  padding: 18px;
}
.compare-scenario label {
  font-size: 0.82rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #445760;
  font-weight: 600;
  min-width: 0;
}
.compare-scenario input {
  box-sizing: border-box;
  width: 100%;
  font-size: 1rem;
  min-width: 0;
}
.compare-route-heading {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #193e42;
  font-size: 1.03rem;
  margin-bottom: 2px;
}
.compare-route-icon {
  font-size: 1.2rem;
}
.compare-cost {
  grid-column: 1/-1;
  border-top: 1px solid #dbe6e0;
  padding-top: 12px;
  margin-top: 2px;
  min-height: 64px;
}
.compare-cost strong {
  display: block;
  color: #173f3c;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.compare-cost small {
  color: #62747a;
  line-height: 1.5;
}
.compare-outcome {
  margin-top: 15px;
  background: #e8f2ee;
  border: 1px solid #cee3d9;
  border-radius: 14px;
  padding: 17px;
  color: #204b44;
  line-height: 1.5;
}
.compare-outcome strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 5px;
}
.compare-outcome p {
  margin: 4px 0;
}
.compare-outcome .compare-time {
  margin-top: 7px;
  font-size: 0.88rem;
}
.compare-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.compare-actions button {
  flex: 1 1 210px;
}
.compare-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .compare-scenario {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 9px;
  }
  .compare-scenario label {
    font-size: 0.75rem;
  }
  .compare-outcome {
    padding: 13px;
  }
}

/* Spain Explorer v1.4: bilingual curated places offline */
.spain-catalog-card {
  margin-bottom: 22px;
}
.spain-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.spain-head h3 {
  font-size: 1.35rem;
  margin: 7px 0;
}
.spain-head p {
  margin: 2px 0 17px;
  color: #60737a;
  line-height: 1.55;
}
.spain-head > strong {
  white-space: nowrap;
  background: #f0f6f2;
  border-radius: 999px;
  padding: 8px 12px;
  color: #346452;
  font-size: 0.76rem;
}
.spain-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 10px;
  margin-bottom: 10px;
}
.spain-filters label {
  font-size: 0.82rem;
  font-weight: 650;
  color: #415a5f;
  display: block;
}
.spain-filters input,
.spain-filters select {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin-top: 6px;
}
.spain-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.spain-item {
  border: 1px solid #dbe7e2;
  background: #fafcfb;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.spain-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.spain-item-top small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #6e8781;
}
.spain-item-top h4 {
  margin: 4px 0 0;
  color: #1d4845;
  font-size: 1.09rem;
}
.spain-item-top > span {
  color: #7aa493;
  font-size: 1.8rem;
}
.spain-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spain-highlights span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #e9f3ef;
  color: #275c54;
  font-size: 0.73rem;
  line-height: 1.4;
}
.spain-item p {
  font-size: 0.81rem;
  color: #536970;
  margin: 0;
  flex: 1;
}
.spain-item .btn {
  align-self: flex-start;
}
@media (max-width: 1100px) {
  .spain-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 670px) {
  .spain-head {
    flex-direction: column;
  }
  .spain-filters,
  .spain-results {
    grid-template-columns: 1fr;
  }
  .spain-item {
    padding: 13px;
  }
}

/* v1.5 real route prototype */
.route-setup {
  padding: 16px;
  background: #f3f8f7;
  border: 1px solid #d4e5df;
  border-radius: 14px;
  margin: 18px 0;
}
.route-setup summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
}
.route-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.route-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.route-options input {
  width: auto;
  min-height: 20px;
  margin: 0;
}
.auto-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.auto-route-card {
  border: 1px solid #cbded7;
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
  background: #fcfefd;
}
.auto-route-card h4 {
  font-size: 1.1rem;
  margin: 10px 0;
}
.auto-route-card .compare-actions {
  flex-wrap: wrap;
}
.route-sketch {
  width: 100%;
  height: 150px;
  color: #177b67;
  background: #eef7f3;
  border-radius: 10px;
}
#auto-routing select {
  max-width: 100%;
}
#auto-routing button {
  white-space: normal;
}
#auto-route-status {
  overflow-wrap: anywhere;
}
.rtg-map-wrap {
  margin: 18px 0 22px;
  padding: 14px;
  background: #f3f8f4;
  border: 1px solid #d6e5dc;
  border-radius: 16px;
}
.rtg-map {
  height: 390px;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e9f0eb;
  outline: none;
}
.rtg-map[hidden] {
  display: none;
}
.rtg-map:focus-visible,
.rtg-map .leaflet-interactive:focus-visible {
  outline: 3px solid #d88b34;
  outline-offset: 2px;
}
.rtg-map-status {
  margin: 8px 3px 0;
  color: #506c65;
  font-size: 14px;
  line-height: 1.5;
}
.rtg-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 10px 3px 0;
  color: #334e4d;
  font-size: 14px;
}
.rtg-map-legend:empty,
.rtg-map-legend[hidden] {
  display: none;
}
.rtg-map-legend [role='listitem'] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rtg-map-swatch,
.route-card-swatch {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: var(--route-color);
  vertical-align: middle;
  margin-right: 6px;
}
.route-card-swatch {
  width: 16px;
}
.rtg-map-swatch.origin,
.rtg-map-swatch.destination {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--route-color);
}
.rtg-map .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 24px;
}
.rtg-map .leaflet-control-attribution {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.92);
}
.auto-route-card.map-selected {
  border-color: #176f68;
  box-shadow: 0 0 0 2px rgba(23, 111, 104, 0.16);
}
[data-auto-select] {
  min-height: 44px;
}

.journey-chooser {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 19px;
  box-shadow: var(--shadow);
}
.journey-chooser h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #203d43;
  margin: 6px 0;
}
.journey-chooser p {
  font-size: 12px;
  color: #7c8d91;
  line-height: 1.6;
  margin: 0;
}
.journey-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.journey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #dce8e3;
  border-radius: 12px;
  background: #f8fbf9;
  padding: 13px;
  color: #234c51;
  min-height: 73px;
}
.journey-option:hover {
  border-color: #83b6a8;
  background: #f1f8f4;
}
.journey-option.complete {
  background: #fff7ee;
  border-color: #f0d7ba;
}
.journey-option span:nth-child(2) {
  flex: 1;
}
.journey-option strong,
.journey-option small {
  display: block;
}
.journey-option strong {
  font-size: 12px;
}
.journey-option small {
  font-size: 10px;
  color: #789092;
  margin-top: 5px;
}
.journey-option b {
  font-size: 18px;
  font-weight: 400;
  color: #478278;
}
.journey-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e5f0ed;
  color: #31786c;
  font-size: 10px;
  font-weight: 800;
}
.complete .journey-number {
  background: #f8dfc3;
  color: #9a6945;
}
.trip-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 23px 0 3px;
  padding: 0 2px;
}
.trip-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #8a9b9c;
  font-size: 10px;
  position: relative;
}
.trip-step:not(:last-child):after {
  content: '';
  height: 1px;
  background: #dce7e2;
  flex: 1;
  margin: 0 10px;
}
.trip-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef3f0;
  color: #6f8987;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.trip-step.active {
  color: #276e67;
}
.trip-step.active span {
  background: #276e67;
  color: #fff;
}
.assistant-placeholder {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #263348;
  color: #f6f1e8;
  border-radius: 16px;
  padding: 20px 23px;
  margin-top: 19px;
}
.assistant-placeholder .eyebrow {
  color: #b7c6d1;
}
.assistant-placeholder h3 {
  font-family: Georgia, serif;
  margin: 5px 0 6px;
  font-size: 20px;
}
.assistant-placeholder p {
  margin: 0;
  color: #c8d3d7;
  font-size: 11px;
  line-height: 1.6;
}
.assistant-orb {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 14px;
  background: #e09b67;
  color: #263348;
  font-size: 24px;
}
@media (max-width: 860px) {
  .journey-chooser {
    grid-template-columns: 1fr;
  }
  .journey-actions {
    grid-template-columns: 1fr;
  }
  .trip-step {
    font-size: 0;
  }
  .trip-step strong {
    display: none;
  }
  .trip-step:not(:last-child):after {
    margin: 0 6px;
  }
  .assistant-placeholder {
    align-items: flex-start;
  }
}

/* v2.0.1 functional assistant */
.assistant-panel {
  max-width: 1000px;
  margin: 0 auto;
}
.assistant-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.assistant-heading h2 {
  font-family: Georgia, serif;
  color: #203d43;
  font-size: clamp(25px, 4vw, 34px);
  margin: 6px 0;
}
.assistant-progress {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  text-align: left;
  border: 1px solid #dce7e2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  color: #586f72;
}
.progress-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #eef3f0;
  font-weight: 800;
}
.progress-step strong {
  font-size: 12px;
  line-height: 1.25;
}
.progress-step.active {
  border-color: #4b9c83;
  background: #eff8f3;
  color: #153f45;
}
.progress-step.active span,
.progress-step.done span {
  background: #4b9c83;
  color: #fff;
}
.assistant-stage {
  padding: clamp(18px, 3vw, 28px);
  min-height: 260px;
}
.assistant-step-content > h3 {
  font-family: Georgia, serif;
  color: #153f45;
  font-size: 23px;
  margin: 0 0 18px;
}
.assistant-step-content[hidden] {
  display: none !important;
}
.assistant-step-content .form-card,
.assistant-step-content > .surface {
  margin: 0 0 16px;
}
.assistant-step-content label {
  font-size: 16px;
  line-height: 1.45;
}
.assistant-step-content input:not([type='checkbox']),
.assistant-step-content select,
.assistant-step-content textarea {
  font-size: 16px;
  min-height: 48px;
}
.assistant-step-content button:not(.text-button) {
  font-size: 15px;
  min-height: 46px;
}
.assistant-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 24px;
}
.assistant-controls button {
  min-height: 48px;
  font-size: 15px;
}
.assistant-controls .text-button {
  font-size: 15px;
  white-space: normal;
}
.advanced-tools {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 17px 19px;
  margin: 15px 0 25px;
}
.advanced-tools summary {
  font-size: 16px;
  font-weight: 800;
  color: #153f45;
  cursor: pointer;
}
.advanced-tools p {
  font-size: 14px;
  color: #718588;
}
.advanced-tools > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
}
.advanced-tools button {
  background: #f6f1e8;
  border: 1px solid #e7ddd0;
  border-radius: 10px;
  padding: 13px;
  text-align: left;
  color: #263348;
  min-height: 48px;
  font-size: 15px;
}
.weather-placeholder {
  border-left: 4px solid #e09b67;
  background: #fbf6ef;
  border-radius: 10px;
  padding: 20px;
  margin: 12px 0;
}
.weather-placeholder strong {
  font-size: 17px;
  color: #263348;
}
.weather-placeholder p {
  font-size: 16px;
  line-height: 1.55;
  color: #586b70;
  margin: 9px 0 0;
}
.quick-route-fields {
  margin-top: 15px;
}
.assistant-panel .compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.assistant-panel .route-setup {
  margin-top: 15px;
}
@media (max-width: 670px) {
  .assistant-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .assistant-heading > .btn {
    width: 100%;
  }
  .progress-step {
    flex: 0 0 52px;
    padding: 7px;
    justify-content: center;
  }
  .progress-step strong {
    display: none;
  }
  .assistant-stage {
    padding: 17px;
  }
  .assistant-controls {
    flex-wrap: wrap;
  }
  .assistant-controls #assistant-prev,
  .assistant-controls #assistant-next {
    flex: 1 1 40%;
  }
  .assistant-controls #assistant-skip {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .assistant-step-content label {
    font-size: 16px;
  }
  .assistant-step-content .form-grid,
  .assistant-step-content .vehicle-grid,
  .assistant-step-content .expense-form,
  .assistant-step-content .discover-search {
    grid-template-columns: minmax(0, 1fr);
  }
  .assistant-step-content .vehicle-grid .span2 {
    grid-column: auto;
  }
  .assistant-step-content .journey-actions {
    grid-template-columns: 1fr;
  }
}
.assistant-heading > .btn {
  font-size: 15px;
  min-height: 48px;
}

/* v2.0.2 Mediterranean Escape: warm, quiet surfaces and one navigation system */
:root {
  --ink: #263348;
  --muted: #6c7b79;
  --green: #153f45;
  --mint: #e8efe8;
  --paper: #f6f1e8;
  --white: #fffdfa;
  --stroke: #e7ded1;
  --peach: #e09b67;
  --shadow: 0 8px 24px rgba(38, 51, 72, 0.055);
}
body {
  background: var(--paper);
  color: #263348;
}
.main-shell {
  margin-left: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 5px 18px;
  align-items: center;
  padding: 11px clamp(16px, 3vw, 44px);
  background: rgba(255, 253, 250, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7ded1;
}
.brand-home {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #153f45;
  text-align: left;
  cursor: pointer;
}
.brand-home strong {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.brand-home strong span {
  color: #4b9c83;
}
.brand-home small {
  display: block;
  color: #74827b;
  font-size: 11px;
  letter-spacing: 0.03em;
  margin-top: 3px;
}
.brandmark {
  background: #e09b67;
  color: #263348;
}
.primary-nav {
  grid-column: 2/4;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar {
  display: none;
}
.primary-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3f5c5a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-nav button:hover,
.primary-nav button:focus-visible {
  background: #edf2eb;
  color: #153f45;
}
.primary-nav button span {
  font-size: 18px;
  color: #4b9c83;
}
.progress-track {
  grid-column: 1/-1;
}
.topbar-copy {
  grid-column: 1/3;
  grid-row: 2;
}
.topbar-copy .eyebrow {
  color: #78867c;
  font-size: 10px;
}
.topbar-copy h1 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #263348;
  margin: 3px 0 2px;
  letter-spacing: -0.3px;
}
.top-actions {
  grid-column: 3;
  grid-row: 2;
  gap: 8px;
}
.top-actions .save-indicator {
  font-size: 12px;
}
.content {
  max-width: 1440px;
  padding-top: 26px;
}
.hero {
  height: clamp(300px, 36vw, 470px);
  border-radius: 24px;
  background: #d5e2d8;
}
.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #d7e5df 0%,
    #e8e8d6 45%,
    #a9c6b2 46%,
    #779c89 70%,
    #e6d7bd 71%,
    #d3b996 100%
  );
}
.hero-scene:before {
  content: '';
  position: absolute;
  inset: 24% -4% 9%;
  background:
    linear-gradient(150deg, transparent 0 19%, #91b19f 19.2% 42%, transparent 42.3%),
    linear-gradient(28deg, transparent 0 30%, #789a87 30.3% 57%, transparent 57.2%),
    linear-gradient(170deg, transparent 0 50%, #557c6d 50.2% 74%, transparent 74.2%);
  opacity: 0.92;
}
.hero-scene:after {
  content: '';
  position: absolute;
  width: 28%;
  height: 180%;
  left: 42%;
  top: 52%;
  transform: rotate(24deg);
  border-left: clamp(28px, 5vw, 72px) solid #d9c5a6;
  border-right: clamp(28px, 5vw, 72px) solid #d9c5a6;
  background: repeating-linear-gradient(180deg, transparent 0 35px, #f5ecda 36px 41px, transparent 42px 75px);
  border-radius: 50% 45% 0 0;
  opacity: 0.88;
}
.hero-scene > span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.9);
  padding: 7px 11px;
  color: #405b56;
  font-size: 12px;
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(21, 63, 69, 0.78) 0%,
    rgba(21, 63, 69, 0.42) 43%,
    rgba(21, 63, 69, 0) 83%
  );
}
.hero-copy {
  top: clamp(28px, 5vw, 58px);
  left: clamp(22px, 5vw, 62px);
  max-width: min(540px, 62%);
}
.hero-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.18);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero h2 {
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.06;
  margin: 18px 0 13px;
}
.hero p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 470px;
  color: #f4f1e9;
}
.hero .btn {
  font-size: 15px;
  min-height: 50px;
}
.journey-chooser {
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.65fr);
  gap: 24px;
  padding: 24px 27px;
  background: #fffdfa;
  border-radius: 20px;
}
.journey-chooser h3 {
  font-size: 26px;
  line-height: 1.14;
}
.journey-chooser p {
  font-size: 15px;
  line-height: 1.5;
}
.journey-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.journey-option {
  min-height: 90px;
  padding: 15px;
  background: #fbfaf5;
  border-color: #e7ded1;
  border-radius: 14px;
}
.journey-option strong {
  font-size: 15px;
  line-height: 1.3;
}
.journey-option small {
  font-size: 13px;
  line-height: 1.4;
  color: #657572;
}
.journey-number {
  width: 34px;
  height: 34px;
  font-size: 12px;
  flex: none;
}
.journey-option.discover {
  background: #f1f5ec;
  border-color: #dbe5d5;
}
.assistant-placeholder {
  background: #e9eee5;
  color: #263348;
}
.assistant-placeholder .eyebrow {
  color: #4d7869;
}
.assistant-placeholder p {
  color: #576b67;
  font-size: 14px;
}
.assistant-placeholder h3 {
  font-size: 23px;
}
.assistant-orb {
  background: #e09b67;
}
.assistant-progress {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr);
  gap: 9px 16px;
  align-items: center;
  margin: 6px 0 12px;
  padding: 14px 18px;
  background: #fffdfa;
  border: 1px solid var(--stroke);
  border-radius: 16px;
}
.progress-current {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.progress-current > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #153f45;
  color: white;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}
.progress-current strong {
  font-size: 16px;
  color: #263348;
  line-height: 1.35;
}
.progress-count {
  font-size: 13px;
  color: #687a74;
  white-space: nowrap;
}
.progress-track {
  height: 7px;
  background: #e9eee7;
  border-radius: 999px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4b9c83;
  transition: width 0.25s ease;
}
.progress-next {
  grid-column: 1/-1;
  color: #687a74;
  font-size: 13px;
  padding-left: 54px;
}
.steps-menu {
  grid-column: 1/-1;
}
.steps-menu summary {
  font-size: 14px;
  font-weight: 750;
  color: #286c61;
  cursor: pointer;
  padding: 5px 0;
}
.steps-menu ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.steps-menu button {
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  color: #465c59;
  font-size: 14px;
}
.steps-menu button[aria-current='step'] {
  border-color: #4b9c83;
  background: #edf5ef;
  color: #153f45;
  font-weight: 800;
}
.assistant-heading {
  align-items: center;
}
.assistant-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
}
/* Step controls sit at the end of each step: a floating bar covered form fields. */
.assistant-controls {
  position: static;
  padding: 10px 12px;
  margin: 12px -6px 24px;
  border: 1px solid rgba(231, 222, 209, 0.9);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 5px 20px rgba(38, 51, 72, 0.08);
  backdrop-filter: blur(8px);
}
.assistant-controls .btn {
  font-size: 15px;
  min-height: 48px;
}
.assistant-controls .btn-primary {
  background: #153f45;
}
.assistant-step-content > h3 {
  font-size: 26px;
  margin-bottom: 20px;
}
.assistant-stage {
  background: #fffdfa;
  border-color: #e7ded1;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(38, 51, 72, 0.04);
}
.assistant-step-content .form-card,
.assistant-step-content > .surface {
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
}
.assistant-step-content .form-card h3 {
  font-size: 22px;
}
.assistant-step-content p,
.assistant-limit-note {
  font-size: 15px;
  line-height: 1.55;
  color: #5d706b;
}
.assistant-step-content label {
  color: #334e4d;
  font-size: 16px;
  line-height: 1.5;
}
.assistant-step-content input:not([type='checkbox']),
.assistant-step-content select,
.assistant-step-content textarea {
  background: #fff;
  border-color: #d8e0d8;
  color: #263348;
  font-size: 16px;
  min-height: 50px;
}
.vehicle-card {
  background: #faf9f4;
  border-color: #e6dfd3;
  border-radius: 16px;
}
.vehicle-heading h4 {
  font-size: 18px;
  color: #263348;
}
.vehicle-cost {
  font-size: 14px;
  color: #526964;
}
.vehicle-cost b {
  color: #153f45;
}
.vehicle-grid label {
  font-size: 15px;
}
.vehicle-advanced {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #e4ded3;
  border-radius: 12px;
  background: #fffdfa;
}
.vehicle-advanced summary {
  cursor: pointer;
  color: #286c61;
  font-weight: 750;
  font-size: 15px;
}
.vehicle-advanced .vehicle-grid {
  margin-top: 13px;
}
.spain-item {
  position: relative;
  background: #fffdfa;
  border-color: #e4ded3;
  border-radius: 16px;
  padding: 0 0 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(38, 51, 72, 0.035);
}
.destination-art {
  height: 142px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, #d9e5dc, #f1e7d6);
  color: #45685d;
}
.destination-art:before,
.destination-art:after {
  content: '';
  position: absolute;
  bottom: 28px;
  width: 78%;
  height: 90px;
  left: -8%;
  background: #aac3ac;
  clip-path: polygon(0 100%, 0 64%, 18% 42%, 35% 62%, 53% 28%, 74% 63%, 100% 42%, 100% 100%);
}
.destination-art:after {
  left: 38%;
  bottom: 22px;
  background: #769a87;
  opacity: 0.82;
  transform: scale(0.86);
}
.destination-art span {
  z-index: 1;
  background: rgba(255, 253, 250, 0.9);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
}
.spain-item-top,
.spain-highlights,
.spain-item > p,
.spain-item > .btn {
  margin-left: 15px;
  margin-right: 15px;
}
.spain-item-top {
  margin-top: 2px;
}
.spain-item-top small {
  font-size: 13px;
}
.spain-highlights span {
  font-size: 13px;
  background: #edf3eb;
  color: #365f56;
}
.spain-item p {
  font-size: 14px;
  line-height: 1.5;
}
.spain-item .btn {
  align-self: flex-start;
  font-size: 14px;
  min-height: 44px;
}
.spain-filters label {
  font-size: 15px;
}
.spain-results-count {
  font-size: 14px;
}
.spain-current-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e2d7;
  border-radius: 999px;
  background: #f1f5ec;
  padding: 8px 12px;
  color: #315d53;
  font-size: 14px;
  font-weight: 700;
}
.advanced-panel .advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.advanced-grid button {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  text-align: left;
  padding: 20px;
  border: 1px solid #e5ded1;
  border-radius: 16px;
  background: #fffdfa;
  color: #263348;
  box-shadow: var(--shadow);
}
.advanced-grid button > span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  background: #eaf1e8;
  color: #387d6d;
  font-size: 20px;
}
.advanced-grid strong {
  font-size: 16px;
}
.advanced-grid small {
  font-size: 14px;
  color: #687a74;
  line-height: 1.45;
}
.trip-summary-card {
  margin-bottom: 18px;
  padding: 20px;
  background: #f2f5ed;
  border: 1px solid #dae4d7;
  border-radius: 18px;
}
.trip-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.trip-summary-head h3 {
  font-size: 24px;
  margin: 0;
  color: #153f45;
}
.trip-summary-head p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #64766e;
}
.trip-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.trip-summary-grid > div {
  padding: 12px;
  background: #fffdfa;
  border-radius: 12px;
  min-width: 0;
}
.trip-summary-grid span {
  display: block;
  font-size: 12px;
  color: #6f8078;
  margin-bottom: 5px;
}
.trip-summary-grid strong {
  font-size: 16px;
  color: #263348;
  overflow-wrap: anywhere;
}
.summary-total {
  background: #153f45 !important;
}
.summary-total span,
.summary-total strong {
  color: #fff !important;
}
.budget-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.budget-categories span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf3eb;
  color: #365f56;
  font-size: 13px;
}
.budget-category-legend {
  color: #7a6d5e;
  font-size: 12px;
}
.advanced-tools {
  margin-top: 20px;
}
.topbar-copy .eyebrow,
.assistant-heading .eyebrow {
  color: #74847c;
}
.section-heading h2,
.section-heading h3,
.surface h3 {
  color: #263348;
}
.btn-primary {
  background: #153f45;
}
@media (max-width: 1050px) {
  .journey-chooser {
    grid-template-columns: 1fr;
  }
  .journey-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .primary-nav button {
    padding: 8px 9px;
    font-size: 13px;
  }
  .trip-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 5px 10px;
    padding: 9px 14px;
  }
  .brand-home {
    grid-column: 1;
    grid-row: 1;
  }
  .primary-nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .primary-nav button {
    min-height: 44px;
  }
  .topbar-copy {
    grid-column: 1;
    grid-row: 3;
  }
  .topbar-copy h1 {
    font-size: 20px;
  }
  .top-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .top-actions .save-indicator {
    display: none;
  }
  .top-actions .btn {
    font-size: 13px;
    min-width: 0;
  }
  .top-actions .btn::after {
    content: none;
  }
  .content {
    padding: 18px 16px 35px;
  }
  .journey-actions {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 350px;
  }
  .hero-copy {
    max-width: 78%;
    left: 24px;
  }
  .hero p {
    font-size: 16px;
  }
  .assistant-controls {
    margin-bottom: 8px;
  }
  .progress-next {
    padding-left: 0;
  }
  .trip-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-panel .advanced-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding-inline: 12px;
  }
  .brandmark {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 25px;
  }
  .brand-home strong {
    font-size: 15px;
  }
  .brand-home small {
    font-size: 10px;
  }
  .primary-nav {
    gap: 2px;
  }
  .primary-nav button {
    font-size: 13px;
    padding: 7px 9px;
  }
  .top-actions .btn {
    min-height: 42px;
  }
  .topbar-copy h1 {
    font-size: 19px;
  }
  .content {
    padding: 14px 12px 24px;
  }
  .hero {
    height: 360px;
    border-radius: 18px;
  }
  .hero-copy {
    left: 19px;
    right: 15px;
    max-width: none;
    top: 25px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .hero p {
    font-size: 16px;
    max-width: 330px;
  }
  .hero-scene > span {
    font-size: 10px;
    right: 8px;
    bottom: 8px;
  }
  .journey-chooser {
    padding: 18px;
  }
  .journey-chooser h3 {
    font-size: 23px;
  }
  .assistant-heading h2 {
    font-size: 26px;
  }
  .assistant-progress {
    padding: 12px;
    gap: 8px;
  }
  .progress-current strong {
    font-size: 15px;
  }
  .progress-count {
    font-size: 12px;
  }
  .assistant-stage {
    padding: 15px;
  }
  .assistant-step-content > h3 {
    font-size: 22px;
  }
  .assistant-controls {
    gap: 8px;
  }
  .assistant-controls .text-button {
    width: 100%;
    order: 3;
    text-align: center;
  }
  .assistant-controls #assistant-prev,
  .assistant-controls #assistant-next {
    flex: 1;
  }
  .trip-summary-card {
    padding: 14px;
  }
  .trip-summary-grid > div {
    padding: 10px;
  }
  .trip-summary-grid strong {
    font-size: 14px;
  }
  .destination-art {
    height: 130px;
  }
  .spain-item-top,
  .spain-highlights,
  .spain-item > p,
  .spain-item > .btn {
    margin-left: 13px;
    margin-right: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.journey-option.discover .journey-number {
  background: #dfeadd;
  color: #397d6a;
}
.spain-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spain-load-more {
  display: flex;
  margin: 10px auto 18px;
  min-height: 46px;
  font-size: 15px;
}
.spain-current-link[hidden],
.spain-load-more[hidden] {
  display: none;
}
.traveler-row {
  background: #fffdfa;
  border: 1px solid #e8e1d6;
  border-radius: 13px;
  margin: 9px 0;
  padding: 12px;
  flex-wrap: wrap;
}
.traveler-row label {
  min-width: 150px;
}
.traveler-budget {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #153f45;
  font-size: 15px;
  white-space: nowrap;
}
.traveler-budget small {
  font-size: 11px;
  font-weight: 500;
  color: #708079;
}
.people-ledger summary {
  cursor: pointer;
  color: #286c61;
  font-weight: 750;
  font-size: 15px;
  padding: 10px 0;
}
.vehicle-advanced > p {
  font-size: 14px !important;
}
.smart-budget-card .smart-disclaimer {
  font-size: 14px;
  line-height: 1.55;
}
.smart-level-choices label > span {
  min-height: 82px;
}
.smart-level-choices strong {
  font-size: 15px;
}
.smart-level-choices small {
  font-size: 13px;
}
.smart-rates-grid label,
.smart-budget-control label {
  font-size: 15px;
}
@media (max-width: 820px) {
  .spain-head-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* v2.0.3: local, licensed Pexels photographs; layout and controls stay intact. */
.hero-scene {
  display: block;
  background: #5a776f;
  z-index: 0;
}
.hero-scene:before,
.hero-scene:after {
  content: none;
}
.hero-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-overlay {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(12, 36, 40, 0.84) 0%,
    rgba(12, 36, 40, 0.56) 42%,
    rgba(12, 36, 40, 0.08) 100%
  );
}
.hero-copy {
  z-index: 2;
}
.hero-photo-credit {
  position: absolute;
  right: 15px;
  bottom: 13px;
  z-index: 2;
  background: rgba(255, 253, 250, 0.91);
  color: #365551;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
}
.destination-photo {
  display: block;
  background: #d5e1dc;
}
.destination-photo:before,
.destination-photo:after {
  content: none;
}
.destination-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.destination-photo > span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  line-height: 1.2;
  background: rgba(255, 253, 250, 0.9);
  color: #365551;
}
@media (max-width: 600px) {
  .hero-scene img {
    object-position: 44% 58%;
  }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 36, 40, 0.79), rgba(12, 36, 40, 0.31));
  }
  .hero-photo-credit {
    display: inline-block;
    right: 9px;
    bottom: 9px;
    font-size: 10px;
    max-width: 150px;
    text-align: right;
  }
}

/* v2.1 · independent daily commute planner */
.commute-home-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 17px 0;
  padding: 20px 22px;
  background: #f1f5ec;
  border: 1px solid #dbe5d5;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.commute-home-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #dfeadd;
  color: #397d6a;
  font-size: 25px;
}
.commute-home-card > div {
  flex: 1;
  min-width: 0;
}
.commute-home-card h3 {
  margin: 5px 0;
  color: #263348;
  font:
    600 22px Georgia,
    serif;
}
.commute-home-card p {
  margin: 0;
  color: #647570;
  font-size: 15px;
  line-height: 1.5;
}
.commute-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 20px;
}
.commute-heading h2 {
  margin: 6px 0;
  font:
    600 clamp(28px, 3vw, 38px) Georgia,
    serif;
  color: #263348;
}
.commute-heading p {
  margin: 0;
  color: #667773;
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px;
}
.commute-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.commute-steps button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #e3ded4;
  border-radius: 13px;
  background: #fffdfa;
  color: #506661;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}
.commute-steps button span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: #edf1e8;
  color: #527b6d;
  font-size: 13px;
}
.commute-steps button[aria-current='step'] {
  border-color: #4b9c83;
  background: #edf5ef;
  color: #153f45;
  box-shadow: 0 3px 12px rgba(38, 51, 72, 0.05);
}
.commute-steps button[aria-current='step'] span {
  background: #153f45;
  color: #fff;
}
.commute-status {
  min-height: 24px;
  margin: 2px 2px 9px;
  color: #5e7770;
  font-size: 14px;
}
.commute-step {
  padding: clamp(18px, 3vw, 30px);
  border-radius: 18px;
}
.commute-step[hidden] {
  display: none;
}
.commute-step > h3,
.commute-report-head h3 {
  margin: 0 0 20px;
  color: #263348;
  font:
    600 28px Georgia,
    serif;
}
.commute-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}
.commute-step label {
  display: block;
  min-width: 0;
  color: #334e4d;
  font-size: 16px;
  line-height: 1.5;
}
.commute-step input:not([type='checkbox']),
.commute-step select {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #d8e0d8;
  border-radius: 10px;
  background: #fff;
  color: #263348;
  font-size: 16px;
}
.commute-step input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #286c61;
}
.commute-step .commute-check {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  min-height: 50px;
  padding: 8px 0;
  font-weight: 700;
}
.commute-absence,
.commute-route-tools,
.commute-expanded {
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid #e6e0d5;
  border-radius: 13px;
  background: #fffdfa;
}
.commute-absence summary,
.commute-route-tools summary,
.commute-expanded summary {
  cursor: pointer;
  color: #286c61;
  font-size: 16px;
  font-weight: 750;
}
.commute-absence > p,
.commute-route-tools > p,
.commute-expanded > p {
  margin: 10px 0 14px;
  color: #5d706b;
  font-size: 15px;
  line-height: 1.55;
}
.commute-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.commute-route-tools #commute-route-status {
  margin: 10px 0 0;
  color: #59736b;
  font-size: 14px;
}
.commute-controls {
  position: static;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 24px;
  padding: 10px 12px;
  border: 1px solid rgba(231, 222, 209, 0.9);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 5px 20px rgba(38, 51, 72, 0.08);
  backdrop-filter: blur(8px);
}
.commute-controls .btn {
  min-width: 130px;
  min-height: 48px;
  font-size: 16px;
}
.commute-controls #commute-next {
  margin-left: auto;
}
.commute-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.commute-report-head h3 {
  margin-bottom: 6px;
}
.commute-report-head p {
  margin: 0;
  color: #60736d;
  font-size: 14px;
  line-height: 1.5;
}
.commute-report-summary {
  margin: 4px 0 16px;
  padding: 19px;
  background: #edf3eb;
  border: 1px solid #dae4d7;
  border-radius: 16px;
}
.commute-report-summary > strong {
  display: block;
  margin: 3px 0;
  color: #153f45;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.commute-report-summary > span:not(.eyebrow) {
  color: #586c66;
  font-size: 15px;
}
.commute-report-summary p {
  margin: 8px 0 0;
  color: #60736d;
  font-size: 15px;
}
.commute-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.commute-period-card {
  min-width: 0;
  padding: 17px;
  background: #fff;
  border: 1px solid #e3ded4;
  border-radius: 15px;
}
.commute-period-label {
  display: block;
  color: #687974;
  font-size: 14px;
  font-weight: 700;
}
.commute-period-cost {
  display: block;
  margin: 6px 0 10px;
  color: #153f45;
  font-size: 24px;
}
.commute-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #edf1e8;
}
.commute-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4b9c83;
}
.commute-period-details {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: #60736d;
  font-size: 14px;
}
.commute-period-details span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.commute-period-details b {
  color: #263348;
  text-align: right;
}
.commute-report-note,
.commute-empty {
  margin: 15px 0 0;
  padding: 14px 15px;
  border-radius: 11px;
  background: #f8f5ee;
  color: #5f716b;
  font-size: 15px;
  line-height: 1.55;
}
.commute-empty[role='alert'] {
  background: #fff2ee;
  color: #8b4333;
}
#commute-print-area {
  display: none;
}
@media (max-width: 760px) {
  .commute-home-card {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 17px;
  }
  .commute-home-card > div {
    flex: 1 1 calc(100% - 70px);
  }
  .commute-home-card > .btn {
    width: 100%;
  }
  .commute-heading {
    flex-direction: column;
  }
  .commute-heading > #commute-clear {
    width: 100%;
  }
  .commute-steps {
    grid-template-columns: 1fr;
  }
  .commute-steps button {
    min-height: 48px;
  }
  .commute-period-grid {
    grid-template-columns: 1fr;
  }
  .commute-report-head {
    flex-direction: column;
  }
  .commute-report-head > .btn {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .commute-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .commute-step {
    padding: 17px;
  }
  .commute-step > h3,
  .commute-report-head h3 {
    font-size: 24px;
  }
  .commute-controls .btn {
    min-width: 0;
    flex: 1;
  }
  .commute-absence,
  .commute-route-tools,
  .commute-expanded {
    padding: 13px;
  }
}
@media (max-width: 760px) {
  .rtg-map-wrap {
    padding: 9px;
    margin: 14px 0;
  }
  .rtg-map {
    height: 330px;
  }
  .rtg-map-commute {
    height: 290px;
  }
}
@media print {
  body.print-commute #commute-print-area {
    display: block !important;
    position: static !important;
    color: #263348 !important;
    font-family: Arial, sans-serif;
    font-size: 11pt;
  }
  #commute-print-area .commute-print header {
    border-bottom: 3px solid #27535a;
    padding-bottom: 8mm;
  }
  #commute-print-area .commute-print header > span {
    color: #638a81;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9pt;
  }
  #commute-print-area h1 {
    font:
      600 24pt Georgia,
      serif;
    margin: 4mm 0;
  }
  #commute-print-area .commute-print p {
    line-height: 1.45;
  }
  #commute-print-area .commute-print-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5mm;
    margin-top: 8mm;
  }
  #commute-print-area .commute-print-grid > div {
    padding: 5mm;
    border: 1px solid #cfd8d3;
    border-radius: 4mm;
    break-inside: avoid;
  }
  #commute-print-area .commute-print-grid small {
    display: block;
    color: #638a81;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  #commute-print-area .commute-print-grid strong {
    display: block;
    margin: 2mm 0;
    font-size: 18pt;
    color: #153f45;
  }
  #commute-print-area .commute-print-grid p {
    margin: 2mm 0;
    font-size: 10pt;
  }
  #commute-print-area .commute-print-note {
    margin-top: 10mm;
    border-top: 1px solid #ccd8d2;
    padding-top: 4mm;
    color: #718482;
    font-size: 9pt;
  }
}

.commute-comparison-editor {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe5d5;
  border-radius: 16px;
  background: #f8faf5;
}
.commute-comparison-editor h4,
.commute-comparison-report h3 {
  margin: 0 0 8px;
  color: #263348;
  font:
    600 21px Georgia,
    serif;
}
.commute-comparison-editor > p,
.commute-compare-source {
  color: #60736d;
  font-size: 16px;
  line-height: 1.5;
}
.commute-comparison-editor label {
  font-size: 16px;
}
.commute-compare-route-card,
.commute-compare-period {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3ded4;
  border-radius: 14px;
  background: #fff;
}
.commute-compare-routes,
.commute-compare-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.commute-compare-route-card h4,
.commute-compare-period h5 {
  margin: 0 0 8px;
  color: #263348;
  font-size: 18px;
}
.commute-compare-route-card p,
.commute-compare-period p {
  font-size: 16px;
  line-height: 1.5;
}
.commute-compare-details {
  display: grid;
  gap: 8px;
}
.commute-compare-details span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  color: #60736d;
}
.commute-compare-details b {
  text-align: right;
  color: #263348;
}
.commute-compare-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.commute-compare-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e6f0e7;
  color: #24584f;
  font-size: 16px;
  font-weight: 700;
}
.commute-compare-period strong {
  font-size: 19px;
  color: #153f45;
}
@media (max-width: 760px) {
  .commute-compare-routes,
  .commute-compare-periods {
    grid-template-columns: minmax(0, 1fr);
  }
  .commute-comparison-editor {
    padding: 14px;
  }
  .commute-compare-details span {
    align-items: flex-start;
  }
}

.vehicle-comparison {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #dbe5d5;
  border-radius: 16px;
  background: #f8faf5;
}
.vehicle-comparison h3,
.vehicle-comparison h4 {
  color: #263348;
  font-family: Georgia, serif;
}
.vehicle-comparison h3 {
  font-size: 24px;
  margin: 0 0 8px;
}
.vehicle-comparison > p,
.vehicle-assumptions,
.vehicle-energy-only {
  color: #60736d;
  font-size: 16px;
  line-height: 1.5;
}
.vehicle-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.vehicle-scenario {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3ded4;
  border-radius: 13px;
  background: #fff;
}
.vehicle-scenario summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}
.vehicle-enable {
  display: flex;
  align-items: center;
  gap: 9px;
}
.vehicle-enable input {
  width: 22px;
  height: 22px;
  accent-color: #286c61;
}
.vehicle-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 12px;
}
.vehicle-fields label,
.vehicle-baseline {
  font-size: 16px;
  line-height: 1.45;
  color: #334e4d;
}
.vehicle-fields input,
.vehicle-baseline select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #d8e0d8;
  border-radius: 9px;
  background: white;
  font-size: 16px;
}
.vehicle-baseline {
  display: block;
  max-width: 480px;
}
.vehicle-energy-chart {
  display: block;
  width: 100%;
  max-height: 380px;
  margin: 12px 0 22px;
  background: #fff;
  border: 1px solid #e3ded4;
  border-radius: 12px;
}
.vehicle-energy-chart text {
  font:
    14px Arial,
    sans-serif;
  fill: #263348;
}
.vehicle-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.vehicle-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.vehicle-table-wrap th,
.vehicle-table-wrap td {
  padding: 9px;
  text-align: left;
  border-bottom: 1px solid #e3ded4;
  font-size: 15px;
}
.vehicle-table-wrap small {
  color: #60736d;
}
.vehicle-comparison-results {
  padding: 16px;
  background: #fff;
  border: 1px solid #e3ded4;
  border-radius: 14px;
}
.vehicle-comparison-results ul {
  padding-left: 23px;
}
.vehicle-comparison-results li {
  margin: 6px 0;
  font-size: 16px;
}
.vehicle-energy-only {
  padding: 12px;
  border-radius: 10px;
  background: #f8f5ee;
}
.commute-print-vehicles:empty {
  display: none;
}
@media (max-width: 680px) {
  .vehicle-scenario-grid,
  .vehicle-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .vehicle-comparison {
    padding: 14px;
  }
  .vehicle-energy-chart text {
    font-size: 12px;
  }
}
@media print {
  body.print-commute #print-area {
    display: none !important;
  }
  body.print-commute #commute-print-area {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.print-commute .main-shell {
    min-height: 0 !important;
  }
  body.print-commute #commute-print-area .commute-print {
    display: block !important;
    break-before: avoid-page;
    page-break-before: avoid;
    orphans: 3;
    widows: 3;
  }
  body.print-commute #commute-print-area .commute-print header {
    break-inside: avoid;
    page-break-inside: avoid;
    padding-bottom: 6mm;
  }
  body.print-commute #commute-print-area .commute-print-grid {
    margin-top: 6mm;
  }
  body.print-commute #commute-print-area .commute-print-note {
    margin-top: 6mm;
  }
  body.print-commute #commute-print-area .vehicle-energy-chart {
    max-height: 220mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.print-commute #commute-print-area .vehicle-table-wrap {
    overflow: visible;
  }
  body.print-commute #commute-print-area .vehicle-table-wrap th,
  body.print-commute #commute-print-area .vehicle-table-wrap td {
    font-size: 9pt;
    padding: 2mm;
  }
  body.print-commute #commute-print-area .commute-print-grid > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-commute #commute-print-area .commute-comparison-report,
  body.print-commute #commute-print-area .vehicle-comparison-results {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

.vehicle-config-cta {
  margin-left: auto;
  color: #286c61;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.vehicle-enable {
  width: 100%;
  cursor: pointer;
}
.vehicle-copy {
  grid-column: 1/-1;
  min-height: 44px;
  font-size: 15px;
}
.vehicle-field-error {
  display: block;
  margin-top: 4px;
  color: #a23f36;
  font-size: 14px;
  line-height: 1.35;
}
.vehicle-fields input[aria-invalid='true'] {
  border-color: #b34a40;
  background: #fff8f6;
}
.vehicle-tco {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d9e3d9;
  border-radius: 14px;
  background: #fff;
}
.vehicle-tco > summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 17px;
  color: #286c61;
}
.vehicle-tco > p {
  font-size: 16px;
  line-height: 1.5;
  color: #60736d;
}
.vehicle-tco-result {
  margin-top: 12px;
  padding: 15px;
  background: #f1f5ec;
  border-radius: 12px;
}
.vehicle-tco-result p {
  font-size: 16px;
  line-height: 1.5;
}
.commute-study-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  color: #60736d;
  font-size: 14px;
}
.commute-study-choice select {
  min-height: 44px;
  padding: 8px;
  border: 1px solid #d8e0d8;
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
}
.commute-print-vehicles .vehicle-comparison-results {
  break-inside: auto;
  page-break-inside: auto;
}
.commute-print-vehicles .vehicle-energy-chart {
  break-inside: avoid;
  page-break-inside: avoid;
}
@media (max-width: 760px) {
  .vehicle-config-cta {
    font-size: 13px;
  }
  .commute-study-choice {
    width: 100%;
  }
  .vehicle-copy {
    width: 100%;
  }
}
@media print {
  body.print-commute #commute-print-area .commute-print-vehicles {
    break-inside: auto;
    page-break-inside: auto;
  }
  body.print-commute #commute-print-area .commute-print-vehicles table {
    font-size: 9pt;
  }
}

.personal-mobility {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dbe5d5;
  border-radius: 16px;
  background: #f8faf5;
}
.personal-mobility h3 {
  font:
    600 24px Georgia,
    serif;
  color: #263348;
}
.personal-mobility > p {
  font-size: 16px;
  line-height: 1.5;
  color: #60736d;
}
.mobility-grid,
.mobility-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 14px 0;
}
.mobility-card,
.mobility-result-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #e3ded4;
  border-radius: 13px;
  min-width: 0;
}
.mobility-card summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.mobility-card summary label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobility-card input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #286c61;
}
.mobility-fields {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.mobility-fields label {
  font-size: 15px;
  line-height: 1.4;
}
.mobility-fields input {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  padding: 9px;
  border: 1px solid #d8e0d8;
  border-radius: 8px;
  font-size: 16px;
}
.mobility-result-card h4 {
  font:
    600 18px Georgia,
    serif;
  color: #263348;
}
.mobility-result-card p {
  font-size: 15px;
  line-height: 1.45;
}
.mobility-result-card strong {
  display: block;
  margin-top: 9px;
  color: #9a6040;
  font-size: 14px;
}
.mobility-periods {
  display: grid;
  gap: 5px;
}
.mobility-periods span,
.mobility-car-energy span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #60736d;
}
.mobility-car-energy {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid #e3ded4;
  border-radius: 12px;
  background: #fff;
}
.mobility-car-energy > strong {
  color: #263348;
}
@media (max-width: 760px) {
  .mobility-grid,
  .mobility-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .personal-mobility {
    padding: 14px;
  }
}
@media print {
  body.print-commute #commute-print-area .mobility-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    break-inside: auto;
  }
  body.print-commute #commute-print-area .commute-print-mobility {
    break-inside: auto;
    page-break-inside: auto;
  }
}

/* v3.2 travel experience: calm home, guided catalog and manual transport report */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.welcome-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(67, 104, 95, 0.15);
  min-height: 220px;
  padding: 25px;
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid rgba(67, 104, 95, 0.15);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 12px 34px rgba(54, 79, 73, 0.07);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.welcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(54, 79, 73, 0.12);
}
.welcome-card h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 14px 0 7px;
}
.welcome-card p {
  font-size: 16px;
  line-height: 1.55;
  color: #54635e;
  margin: 0 0 18px;
}
.welcome-primary {
  background: #edf5f0;
}
.welcome-icon {
  font-size: 28px;
  color: #4b887d;
}
.welcome-link {
  margin-top: auto;
  color: #376d63;
  font-weight: 700;
}
.continue-trip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 18px 0;
  padding: 24px 28px;
}
.continue-trip h3 {
  margin: 4px 0;
  font-family: Georgia, serif;
  font-size: 22px;
}
.continue-trip p {
  margin: 0;
  color: #586963;
}
.home-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 24px 0;
}
.guided-destination {
  padding: clamp(20px, 4vw, 38px);
  margin-bottom: 24px;
}
.guided-destination h2 {
  font-family: Georgia, serif;
}
.guided-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.guided-fields input,
.guided-fields select,
.transport-panel input {
  min-height: 48px;
  font-size: 16px;
}
.guide-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.guide-result {
  padding: 20px;
  border-radius: 18px;
  background: #f7f5ef;
  border: 1px solid #e4e6dd;
}
.guide-result h3 {
  font-family: Georgia, serif;
  margin: 8px 0;
}
.guide-result p {
  line-height: 1.5;
}
.guide-result button {
  margin-top: 12px;
}
.transport-panel {
  padding: clamp(18px, 4vw, 34px);
}
.transport-panel > label {
  display: block;
  max-width: 260px;
  margin: 20px 0;
}
.transport-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.transport-option {
  padding: 20px;
  border: 1px solid #e2e5de;
  border-radius: 18px;
  background: #fffdf8;
}
.transport-enable {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.transport-enable input {
  width: 22px;
  height: 22px;
}
.transport-option-fields {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.transport-option-fields label {
  display: grid;
  gap: 5px;
  font-size: 16px;
}
.transport-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.transport-result {
  padding: 20px;
  border-radius: 17px;
  background: #edf5f0;
}
.transport-result > strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}
.transport-result > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}
.transport-result.invalid {
  background: #fff2e8;
  color: #793f29;
}
.transport-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.transport-trip-context {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: #50615b;
}
.transport-print {
  display: none;
}
.transport-print h1 {
  font-family: Georgia, serif;
}
.transport-print table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.transport-print th,
.transport-print td {
  border-bottom: 1px solid #cbd4ce;
  padding: 10px;
  text-align: left;
}
.transport-print th {
  background: #eef3ee;
}
@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-card {
    min-height: 195px;
  }
}
@media (max-width: 560px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }
  .welcome-card {
    min-height: auto;
    padding: 20px;
  }
  .continue-trip {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
  .home-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .transport-option-fields {
    grid-template-columns: 1fr;
  }
  .transport-trip-context {
    display: block;
  }
  .transport-result > div {
    font-size: 15px;
  }
}
@media print {
  body.print-transport * {
    visibility: hidden !important;
  }
  body.print-transport #transport-print-area,
  body.print-transport #transport-print-area * {
    visibility: visible !important;
  }
  body.print-transport #transport-print-area {
    display: block !important;
    position: absolute;
    inset: 0;
    padding: 14mm;
    background: white;
    color: #23332e;
  }
  body.print-transport .transport-print {
    display: block !important;
  }
  body.print-transport #print-area,
  body.print-transport #commute-print-area {
    display: none !important;
  }
}

/* v3.2 preparation tools and standalone destination guide */
.prep-weather {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: #f1f5ef;
}
.weather-mark {
  font-size: 30px;
  color: #c79a58;
}
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.prep-card,
.guide-builder {
  padding: clamp(18px, 3vw, 28px);
}
.prep-card label,
.guide-builder > label {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.prep-card input:not([type='checkbox']),
.guide-builder select {
  min-height: 48px;
  font-size: 16px;
}
.prep-card form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.prep-card form label {
  flex: 1;
}
.prep-card ul,
.guide-builder ul {
  padding-left: 22px;
}
.prep-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.prep-card li label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prep-card li input {
  width: 20px;
  height: 20px;
}
.prep-card li button {
  border: 0;
  background: transparent;
  color: #8a5550;
  font-size: 22px;
}
.guide-builder {
  margin: 20px 0;
}
.guide-builder h4 {
  font:
    26px Georgia,
    serif;
  margin-bottom: 6px;
}
.guide-builder small {
  color: #6b756f;
}
.destination-guide-print {
  display: none;
}
.guided-destination .field-help,
#panel-transport .field-help {
  font-size: 16px;
}
.destination-guide-print h1 {
  font:
    44px Georgia,
    serif;
  color: #345e54;
}
.destination-guide-print h2 {
  font:
    24px Georgia,
    serif;
}
.guide-kicker,
.guide-region {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f8279;
}
.guide-caveat {
  border-top: 1px solid #d7ddd7;
  padding-top: 15px;
  margin-top: 36px;
  font-size: 16px;
}
@media (max-width: 650px) {
  .prep-grid {
    grid-template-columns: 1fr;
  }
  .prep-weather {
    gap: 12px;
  }
  .prep-card form {
    display: block;
  }
  .prep-card form button {
    width: 100%;
    min-height: 48px;
  }
}
@media print {
  body.print-destination-guide * {
    visibility: hidden !important;
  }
  body.print-destination-guide #guide-print-area,
  body.print-destination-guide #guide-print-area * {
    visibility: visible !important;
  }
  body.print-destination-guide #guide-print-area {
    display: block !important;
    position: absolute;
    inset: 0;
    padding: 18mm;
    background: white;
    color: #273a33;
  }
  body.print-destination-guide .destination-guide-print {
    display: block !important;
  }
  body.print-destination-guide #print-area,
  body.print-destination-guide #commute-print-area,
  body.print-destination-guide #transport-print-area {
    display: none !important;
  }
}
/* v3.2 Signature Experience: navigation, editorial imagery and readable controls */
.primary-nav {
  overflow: visible;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.primary-nav button {
  padding-inline: 8px;
  font-size: 13px;
}
.nav-more {
  position: relative;
}
.nav-more summary,
.nav-mobile > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #3f5c5a;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.nav-more summary::-webkit-details-marker,
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-more[open] > div {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 5px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  background: #fffdfa;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.nav-more > div button {
  justify-content: flex-start;
  width: 100%;
  white-space: normal;
}
.nav-mobile {
  display: none;
}
.welcome-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.welcome-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 245px;
  padding: 0 17px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  color: #fff;
  border: 0;
  background: #1c4a4b;
}
.welcome-card picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.welcome-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.welcome-card:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(16, 44, 47, 0.04) 5%,
    rgba(16, 44, 47, 0.38) 46%,
    rgba(16, 44, 47, 0.9) 100%
  );
}
.welcome-card:hover .welcome-photo {
  transform: scale(1.035);
}
.welcome-card h3,
.welcome-card p,
.welcome-card .welcome-link {
  color: #fff;
  position: relative;
}
.welcome-card h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 7px 0;
}
.welcome-card p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 10px;
}
.welcome-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 253, 250, 0.2);
  color: #fff;
  font-size: 18px;
}
.welcome-link {
  font-size: 14px;
  font-weight: 750;
}
.smart-level-choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.smart-level-choices label > span {
  height: 100%;
  padding: 9px;
  overflow: hidden;
}
.smart-level-choices picture,
.smart-level-choices img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 9px;
}
.smart-level-choices strong {
  font-size: 15px;
}
.smart-level-choices small {
  font-size: 13px;
  line-height: 1.4;
}
.smart-level-choices input:focus-visible + span {
  outline-offset: 2px;
}
.smart-level-choices input:checked + span {
  background: #eaf5ef;
}
.budget-profile-description {
  font-size: 15px;
  line-height: 1.55;
}
.transport-option {
  overflow: hidden;
  position: relative;
}
.transport-option-photo {
  display: block;
  width: calc(100% + 40px);
  height: 155px;
  object-fit: cover;
  margin: -20px -20px 16px;
}
.commute-heading {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(21, 63, 69, 0.94), rgba(21, 63, 69, 0.68)),
    url('assets/generated/commute-960.webp') center 44% / cover;
  color: white;
}
.commute-heading .eyebrow,
.commute-heading h2,
.commute-heading p {
  color: white;
}
.commute-heading h2 {
  font-family: Georgia, serif;
  font-size: clamp(25px, 3vw, 36px);
}
@media (max-width: 1200px) {
  .welcome-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .primary-nav {
    grid-column: 2/4;
  }
}
@media (max-width: 820px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
  }
  .primary-nav {
    display: none;
  }
  .nav-mobile {
    display: block;
    position: relative;
    grid-column: 2;
    grid-row: 1;
  }
  .nav-mobile > summary {
    background: #edf2eb;
    color: #153f45;
    min-height: 46px;
  }
  .nav-mobile nav {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    width: min(310px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    display: grid;
    padding: 8px;
    background: #fffdfa;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .nav-mobile nav button {
    min-height: 48px;
    padding: 10px;
    text-align: left;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #334e4d;
    font-size: 16px;
  }
  .nav-mobile nav button:hover,
  .nav-mobile nav button:focus-visible {
    background: #edf2eb;
  }
  .top-actions {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: end;
  }
  .topbar-copy {
    grid-row: 3;
  }
  .welcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-card {
    min-height: 220px;
  }
  .smart-level-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .welcome-card {
    min-height: 205px;
    padding: 16px;
  }
  .welcome-card h3 {
    font-size: 21px;
  }
  .welcome-card p {
    font-size: 16px;
  }
  .smart-level-choices {
    gap: 8px;
  }
  .smart-level-choices picture,
  .smart-level-choices img {
    height: 92px;
  }
  .smart-level-choices small {
    font-size: 13px;
  }
  .smart-level-choices strong {
    font-size: 16px;
  }
  .commute-heading {
    padding: 16px;
  }
  .nav-more[open] > div {
    position: static;
  }
  .transport-option-photo {
    height: 140px;
  }
}
/* Budget card breathing room and high-zoom legibility */
.smart-budget-card {
  padding: clamp(20px, 3.5vw, 38px) !important;
  overflow: visible;
}
.smart-budget-heading {
  gap: 20px;
  margin-bottom: 20px;
}
.smart-trip-facts {
  gap: 12px;
  margin: 16px 0 24px;
}
.smart-trip-facts > div {
  padding: 14px;
  border-radius: 12px;
}
.smart-level-choices {
  margin: 15px 0 10px;
}
.smart-budget-control,
.smart-rates-grid,
.smart-inclusions,
.smart-buffer-settings,
.smart-preview,
.smart-replace-option {
  margin-block: 15px;
}
.smart-rates-grid input,
.smart-budget-control select {
  min-height: 48px;
  font-size: 16px;
}
.smart-inclusions label,
.smart-replace-option {
  font-size: 15px;
}
.smart-preview-hint {
  font-size: 14px;
  line-height: 1.5;
}
.continue-trip[hidden] {
  display: none !important;
}
.hero-scene:before,
.hero-scene:after {
  content: none !important;
  display: none !important;
}
.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* v3.2 print pagination: keep report appendices and their cards readable. */
@media print {
  body.print-commute #commute-print-area .commute-print-comparison,
  body.print-commute #commute-print-area .commute-print-vehicles,
  body.print-commute #commute-print-area .commute-print-mobility {
    break-before: page;
    page-break-before: always;
  }
  body.print-commute #commute-print-area .commute-comparison-report h3,
  body.print-commute #commute-print-area .vehicle-comparison h3,
  body.print-commute #commute-print-area .personal-mobility h3 {
    break-after: avoid-page;
    page-break-after: avoid;
  }
  body.print-commute #commute-print-area .commute-compare-route-card,
  body.print-commute #commute-print-area .commute-compare-period,
  body.print-commute #commute-print-area .vehicle-scenario,
  body.print-commute #commute-print-area .vehicle-tco-result,
  body.print-commute #commute-print-area .mobility-result-card,
  body.print-commute #commute-print-area .mobility-car-energy {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-commute #commute-print-area .commute-compare-routes,
  body.print-commute #commute-print-area .commute-compare-periods,
  body.print-commute #commute-print-area .mobility-results-grid {
    break-inside: auto;
    page-break-inside: auto;
  }
  body.print-commute #commute-print-area .vehicle-table-wrap tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-commute #commute-print-area .vehicle-table-wrap thead {
    display: table-header-group;
  }
  body.print-commute #commute-print-area .commute-print-note {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
/* Keep related report summaries on one page when printing. */
@media print {
  body.print-commute #commute-print-area .commute-compare-periods {
    break-before: page;
    page-break-before: always;
  }
  body.print-commute #commute-print-area .vehicle-tco-result {
    break-before: page;
    page-break-before: always;
  }
  body.print-commute #commute-print-area .mobility-results-grid {
    grid-template-columns: minmax(0, 1fr);
    break-inside: auto;
  }
  body.print-commute #commute-print-area .mobility-result-card {
    margin-bottom: 3mm;
  }
}
@media print {
  body.print-commute #commute-print-area .mobility-car-energy {
    break-before: page;
    page-break-before: always;
  }
}

/* v3.2: first-use clarity, quick estimates, and readable feedback */
:root {
  --muted: #5d6d70;
}
.subtle,
.field-help,
.notice,
small {
  color: #56696d;
}
.first-run-choice {
  margin: 0 0 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #d8e5dc;
  background: linear-gradient(135deg, #fff 0%, #eef5ee 100%);
}
.first-run-choice h2 {
  margin: 8px 0;
  color: #18363c;
  font:
    600 clamp(25px, 4vw, 34px) Georgia,
    serif;
}
.first-run-choice p {
  max-width: 65ch;
  font-size: 17px;
  line-height: 1.55;
  color: #41595b;
}
.first-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #d6a15c;
  border-radius: 13px;
  background: #fff2d9;
  color: #493717;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 4px 14px #18363c18;
}
.demo-banner[hidden] {
  display: none;
}
.demo-banner button {
  margin-left: auto;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #224f52;
  text-decoration: underline;
  font-weight: 700;
}
.quick-commute {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #d6e2d5;
  background: #f7faf4;
}
.quick-commute h4 {
  font:
    600 21px Georgia,
    serif;
  margin: 0 0 6px;
}
.quick-commute > p {
  font-size: 16px;
  line-height: 1.5;
  color: #526568;
}
.quick-commute > .text-button {
  margin-left: 12px;
  min-height: 44px;
  font-size: 16px;
}
.quick-result {
  margin-top: 15px;
  padding: 16px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #e0e7dc;
}
.quick-result h5 {
  margin: 7px 0;
  font-size: 18px;
}
.quick-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.quick-result-grid p {
  padding: 10px;
  margin: 0;
  border-radius: 9px;
  background: #f3f6ef;
  font-size: 15px;
}
.quick-result-grid strong {
  display: block;
  color: #153f45;
  font-size: 19px;
  margin-top: 4px;
}
.field-error {
  padding: 12px;
  border-left: 4px solid #a33d32;
  background: #fff2ef;
  color: #72281f;
  font-size: 16px;
  line-height: 1.5;
}
#toast[role='alert'] {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  max-width: min(540px, calc(100vw - 32px));
  background: #7f2f27;
  color: #fff;
}
@media (max-width: 600px) {
  .first-run-actions {
    display: grid;
  }
  .first-run-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .demo-banner {
    position: relative;
    top: auto;
    align-items: flex-start;
  }
  .demo-banner button {
    width: 100%;
    margin: 0;
    text-align: left;
  }
  .quick-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.payment-editor,
.settlement-editor {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dfe7df;
  border-radius: 12px;
  background: #fbfcf9;
}
.payment-editor summary,
.settlement-editor h4 {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #244e4d;
}
.transaction-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.transaction-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5eae7;
  border-radius: 10px;
}
.transaction-row label,
.settlement-editor label {
  font-size: 15px;
}
.transaction-row input,
.transaction-row select,
.settlement-editor input,
.settlement-editor select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
}
.settlement-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.settlement-editor h4,
.settlement-editor button {
  grid-column: 1/-1;
}
.saved-place-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.saved-place-costs label {
  font-size: 15px;
}
.saved-place-costs input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  font-size: 16px;
}
.saved-place-add {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.saved-place-add input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  font-size: 16px;
}
.toast-close {
  margin: 10px 0 0 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 6px 10px;
  font: inherit;
}
@media (max-width: 650px) {
  .transaction-row,
  .settlement-editor,
  .saved-place-costs {
    grid-template-columns: minmax(0, 1fr);
  }
  .transaction-row .remove-btn {
    min-height: 44px;
  }
  .settlement-editor h4,
  .settlement-editor button {
    grid-column: auto;
  }
}

/* Print a visible screen on native Ctrl+P when no report is prepared. */
@media print {
  body:not(.print-trip):not(.print-commute):not(.print-transport):not(.print-destination-guide) .content {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
  }
  body:not(.print-trip):not(.print-commute):not(.print-transport):not(.print-destination-guide)
    .tab-panel:not(.active) {
    display: none !important;
  }
  body:not(.print-trip):not(.print-commute):not(.print-transport):not(.print-destination-guide)
    .tab-panel.active {
    display: block !important;
  }
  body:not(.print-trip):not(.print-commute):not(.print-transport):not(.print-destination-guide) #print-area {
    display: none !important;
  }
  body.print-trip #commute-print-area,
  body.print-trip #transport-print-area,
  body.print-trip #guide-print-area {
    display: none !important;
  }
  body.print-commute #print-area {
    display: none !important;
  }
  .sidebar,
  .topbar,
  .footer,
  .mobile-bottom-nav,
  #toast {
    display: none !important;
  }
}

/* Exclusive print ownership: stale reports must never leak into another mode. */
@media print {
  body:not(.print-trip) #print-area,
  body:not(.print-commute) #commute-print-area,
  body:not(.print-transport) #transport-print-area,
  body:not(.print-destination-guide) #guide-print-area {
    display: none !important;
    visibility: hidden !important;
  }
}

/* UX Recovery Sprint 1: task hierarchy and progressive transport inputs. */
@media screen {
  .experience-heading {
    font:
      600 clamp(22px, 2.3vw, 30px) Georgia,
      serif;
    margin: 32px 0 16px;
    color: var(--green);
  }
  .welcome-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
  .welcome-grid .welcome-card {
    grid-column: span 2;
    min-height: 120px;
    padding: 20px;
    background: #fff;
    color: var(--ink);
  }
  .welcome-grid .welcome-card:nth-child(1),
  .welcome-grid .welcome-card:nth-child(2) {
    grid-column: span 3;
    min-height: 300px;
  }
  .welcome-grid .welcome-card:nth-child(3) picture,
  .welcome-grid .welcome-card:nth-child(4) picture,
  .welcome-grid .welcome-card:nth-child(5) picture {
    display: none;
  }
  .welcome-card h3 {
    font-size: 23px;
  }
  .welcome-card p {
    color: #425d60;
    line-height: 1.55;
  }
  .welcome-link {
    margin-top: auto;
    padding-top: 14px;
  }
  .transport-option-fields {
    display: none;
  }
  .transport-option:has([data-tx-enabled]:checked) .transport-option-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .transport-option {
    background: #fff;
    border: 1px solid #c8d7d3;
    padding: 20px;
    min-width: 0;
  }
  .transport-option:has([data-tx-enabled]:checked) {
    border: 2px solid #286c61;
    background: #f4f9f6;
  }
  .transport-enable {
    min-height: 48px;
    font-size: 18px;
    cursor: pointer;
    gap: 12px;
  }
  .transport-enable input {
    width: 22px;
    height: 22px;
  }
  .transport-details {
    border-top: 1px solid #cadbd3;
    padding-top: 12px;
  }
  .transport-details summary {
    min-height: 44px;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 0;
  }
  .transport-details label {
    margin-top: 14px;
  }
  .guide-result {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border-top: 4px solid #b9875c;
  }
  .guide-result h3 {
    font-size: 25px;
  }
  .guide-result p {
    line-height: 1.6;
  }
  .guide-result button {
    margin-top: auto;
    align-self: stretch;
  }
  .guide-result small {
    margin-bottom: 20px;
    color: #425d60;
  }
  .primary-nav {
    min-width: 0;
    flex-wrap: wrap;
  }
  .primary-nav button {
    white-space: normal;
    min-height: 44px;
    flex-shrink: 0;
  }
  input,
  select,
  button,
  summary {
    scroll-margin-block: 90px;
  }
  summary:focus-visible {
    outline: 3px solid #b26b32;
    outline-offset: 4px;
  }
  @media (max-width: 1000px) {
    .welcome-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .welcome-grid .welcome-card,
    .welcome-grid .welcome-card:nth-child(1),
    .welcome-grid .welcome-card:nth-child(2) {
      grid-column: span 1;
    }
  }
  @media (max-width: 600px) {
    .welcome-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .welcome-grid .welcome-card:nth-child(1),
    .welcome-grid .welcome-card:nth-child(2) {
      min-height: 260px;
    }
    .transport-options {
      grid-template-columns: minmax(0, 1fr);
    }
    .transport-option input {
      font-size: 16px;
    }
    .home-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }
    .home-tools button {
      white-space: normal;
      text-align: left;
    }
  }
}
@media print {
  .transport-print table {
    width: 100%;
    border-collapse: collapse;
    margin: 7mm 0;
  }
  .transport-print th,
  .transport-print td {
    padding: 3mm;
    border-bottom: 1px solid #9baba6;
    text-align: left;
  }
  .transport-print th {
    background: #edf3ef;
  }
  .transport-print tr {
    break-inside: avoid;
  }
  .transport-print h1 {
    font:
      24pt Georgia,
      serif;
    color: #153f45;
  }
  .transport-print p {
    font-size: 11pt;
    line-height: 1.5;
  }
  .commute-print header p {
    color: #243c3c !important;
  }
  .hero-copy,
  .hero-copy p {
    color: #172f32 !important;
    background: #fff !important;
  }
  .hero-overlay {
    display: none !important;
  }
}

@media screen {
  .welcome-grid .welcome-card:nth-child(-n + 2) {
    color: #fff;
    background: #153f45;
  }
  .welcome-grid .welcome-card:nth-child(-n + 2) h3,
  .welcome-grid .welcome-card:nth-child(-n + 2) p,
  .welcome-grid .welcome-card:nth-child(-n + 2) .welcome-link {
    color: #fff;
    background: #153f45;
    padding: 6px 10px;
    border-radius: 4px;
  }
  .welcome-grid .welcome-card:nth-child(n + 3):before {
    content: none;
  }
  .welcome-grid .welcome-card:nth-child(n + 3) h3,
  .welcome-grid .welcome-card:nth-child(n + 3) p,
  .welcome-grid .welcome-card:nth-child(n + 3) .welcome-link {
    color: #18363c;
  }
}

/* UX Recovery Sprint 1 — contraste explícito por tipo de tarjeta.
   La especificidad evita que la regla general .welcome-card p vuelva a oscurecer
   texto sobre el fondo marino de las tarjetas protagonistas. */
@media screen {
  .welcome-grid > .welcome-card:nth-child(-n + 2),
  .welcome-grid > .welcome-card:nth-child(-n + 2) h3,
  .welcome-grid > .welcome-card:nth-child(-n + 2) p,
  .welcome-grid > .welcome-card:nth-child(-n + 2) .welcome-link {
    color: #fff;
  }
  .welcome-grid > .welcome-card:nth-child(n + 3),
  .welcome-grid > .welcome-card:nth-child(n + 3) h3,
  .welcome-grid > .welcome-card:nth-child(n + 3) p,
  .welcome-grid > .welcome-card:nth-child(n + 3) .welcome-link {
    color: #18363c;
  }
}
