:root {
  --sage-deep: #819A91;
  --sage: #A7C1A8;
  --sage-soft: #D1D8BE;
  --cream: #EEEFE0;
  --orange: #FFA02E;
  --yellow: #FFEF91;
  --ink: #17352F;
  --ink-soft: #4F655F;
  --white: #FFFFFF;
  --line: rgba(23, 53, 47, 0.14);
  --shadow-sm: 0 8px 28px rgba(23, 53, 47, 0.08);
  --shadow-md: 0 20px 60px rgba(23, 53, 47, 0.13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --header-height: 76px;
  --progress-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--progress-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: #F8F9F2;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: var(--cream);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader img {
  width: 74px;
  animation: loaderPulse 1.1s ease-in-out infinite;
}

.page-loader span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

@keyframes loaderPulse {
  50% { transform: scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(248, 249, 242, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 53, 47, 0.06);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  width: 176px;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.nav-cta,
.button,
.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-cta:hover,
.button:hover,
.generate-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.section-shell {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 82px 0 100px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 239, 145, 0.52), transparent 24%),
    linear-gradient(180deg, #F8F9F2 0%, var(--cream) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}

.hero h1,
.section-heading h2,
.results-topbar h2 {
  margin: 16px 0 18px;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(2.7rem, 5.5vw, 5.2rem);
}

.hero h1 em {
  color: var(--sage-deep);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.button-primary {
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(129, 154, 145, 0.28);
}

.button-ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-accent {
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid rgba(255, 160, 46, 0.36);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.hero-proof div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-proof strong {
  color: var(--sage-deep);
  font-size: 1.3rem;
}

.hero-proof span {
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 38px;
  background: linear-gradient(155deg, var(--sage) 0%, var(--sage-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mist {
  position: absolute;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(18px);
}

.mist-one { width: 360px; top: 44px; left: 40px; }
.mist-two { width: 300px; right: -60px; bottom: 90px; }

.mountain {
  position: absolute;
  bottom: -90px;
  width: 80%;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border-radius: 42px;
}

.mountain-back { left: -20%; background: rgba(209, 216, 190, 0.34); }
.mountain-front { right: -28%; background: rgba(238, 239, 224, 0.34); }

.route-card {
  position: absolute;
  inset: 62px 54px 68px;
  z-index: 2;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 70px rgba(23, 53, 47, 0.18);
}

.route-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 160, 46, 0.15);
}

.route-card-head small,
.mini-stop small,
.floating-note small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.route-card-head strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.weather-chip,
.estimate-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
}

.mini-route {
  padding-top: 20px;
}

.mini-stop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-stop > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--sage-deep);
  font-weight: 800;
}

.mini-stop.active > span {
  background: var(--sage-deep);
  color: var(--white);
}

.mini-stop strong {
  font-size: 0.85rem;
}

.mini-line {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  min-height: 48px;
}

.mini-line i {
  justify-self: center;
  border-left: 2px dotted rgba(129, 154, 145, 0.45);
}

.mini-line small {
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.floating-note > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--yellow);
}

.floating-note strong {
  display: block;
  font-size: 0.76rem;
}

.note-one { left: 18px; bottom: 28px; }
.note-two { right: 18px; top: 25px; }

.planner-section {
  padding: 96px 0 110px;
  background: #F8F9F2;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 36px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2,
.results-topbar h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p,
.results-topbar p {
  margin: 0;
  color: var(--ink-soft);
}

.planner-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.progress-sticky-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  padding: 12px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.planner-progress {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(129, 154, 145, 0.26);
  border-radius: 24px;
  background: #F7F9F3;
  overflow: hidden;
}

.progress-track {
  position: absolute;
  left: 16.5%;
  right: 16.5%;
  top: 50%;
  height: 2px;
  background: rgba(129, 154, 145, 0.22);
  transform: translateY(-50%);
}

.progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage-deep), var(--orange));
  transition: width 0.45s cubic-bezier(.2,.8,.2,1);
}

.progress-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 18px;
  background: #F7F9F3;
  text-align: left;
  cursor: pointer;
}

.progress-item:nth-of-type(2) { justify-self: center; }
.progress-item:nth-of-type(3) { justify-self: end; }

.progress-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--cream);
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.progress-copy {
  display: grid;
}

.progress-copy strong {
  font-size: 0.76rem;
}

.progress-copy small {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.progress-item.active .progress-number {
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(167, 193, 168, 0.25);
  animation: activeStepPulse 1.8s ease-in-out infinite;
}

.progress-item.active .progress-copy strong {
  color: var(--sage-deep);
}

.progress-item.complete .progress-number {
  background: var(--sage);
  color: var(--ink);
}

.progress-item.complete .progress-number::after {
  content: "✓";
  position: absolute;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  margin: 30px 0 0 31px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.58rem;
}

@keyframes activeStepPulse {
  50% { box-shadow: 0 0 0 9px rgba(167, 193, 168, 0.11); }
}

.form-section {
  padding: 44px 46px;
}

.form-section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 28px;
}

.form-section-title > span {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--sage-deep);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(129, 154, 145, 0.26);
}

.form-section-title h3 {
  margin: 2px 0 3px;
  font-size: 1.35rem;
}

.form-section-title p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.destination-title-row {
  grid-template-columns: auto 1fr auto;
}

.selection-count {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 160, 46, 0.25);
  border-radius: 16px;
  background: var(--yellow);
}

.selection-count strong {
  font-size: 1.15rem;
}

.selection-count span {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.selection-count.bump {
  animation: countBump 0.35s ease;
}

@keyframes countBump {
  50% { transform: scale(1.08); }
}

.form-divider {
  height: 1px;
  background: var(--line);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid-six {
  grid-template-columns: 1.5fr repeat(5, minmax(110px, 1fr));
}

.field-wide {
  grid-column: span 2;
}

.field,
.compact-field {
  display: grid;
  gap: 8px;
}

.field > span,
.compact-field > span,
.fare-grid span {
  font-size: 0.72rem;
  font-weight: 700;
}

.field small {
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.field input,
.field select,
.compact-field select,
.search-field input,
.fare-grid input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #FBFCF7;
  color: var(--ink);
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.compact-field select:focus,
.search-field input:focus,
.fare-grid input:focus {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(167, 193, 168, 0.22);
  background: var(--white);
}

.input-with-action {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
}

.location-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--cream);
  color: var(--sage-deep);
  font-size: 1.25rem;
  cursor: pointer;
}

.arrival-tip {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 160, 46, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 239, 145, 0.55), rgba(238, 239, 224, 0.75));
}

.arrival-tip-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}

.arrival-tip-head span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--orange);
  color: var(--white);
}

.arrival-tip h4 {
  margin: 0;
  font-size: 0.92rem;
}

.arrival-tip p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.baggage-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.baggage-option {
  padding: 12px;
  border: 1px solid rgba(23, 53, 47, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.baggage-option strong {
  display: block;
  font-size: 0.74rem;
}

.baggage-option p {
  margin: 4px 0 8px;
  font-size: 0.65rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sage-deep);
  font-size: 0.66rem;
  font-weight: 800;
}

.selected-drawer {
  position: sticky;
  top: calc(var(--header-height) + var(--progress-height) + 8px);
  z-index: 25;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(129, 154, 145, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(23, 53, 47, 0.06);
}

.selected-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.selected-drawer-head > div {
  display: grid;
}

.selected-drawer-head strong {
  font-size: 0.78rem;
}

.selected-drawer-head small {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.text-button {
  border: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.text-button.danger {
  color: #8A4B30;
}

.selected-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
}

.empty-selection {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(129, 154, 145, 0.32);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.67rem;
  font-weight: 700;
  animation: chipEnter 0.3s ease both;
}

.selected-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(129, 154, 145, 0.24);
  cursor: pointer;
}

@keyframes chipEnter {
  from { opacity: 0; transform: translateY(5px) scale(0.96); }
}

.destination-actions {
  display: grid;
  grid-template-columns: 1.4fr minmax(210px, 0.8fr) auto;
  align-items: end;
  gap: 12px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field > span {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  color: var(--ink-soft);
  transform: translateY(-50%);
}

.search-field input {
  padding-left: 40px;
}

.area-filters {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.area-filters::-webkit-scrollbar {
  display: none;
}

.area-filter {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FBFCF7;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.area-filter.active {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--white);
}

.destination-rail-wrap {
  position: relative;
}

.destination-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 184px;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
}

.destination-option {
  position: relative;
  min-height: 224px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--cream);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.destination-option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.destination-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.destination-image-wrap {
  position: relative;
  height: 118px;
  background: linear-gradient(135deg, var(--sage-soft), var(--sage));
  overflow: hidden;
}

.destination-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.destination-option:hover .destination-image {
  transform: scale(1.04);
}

.destination-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sage-soft), var(--sage));
  font-size: 2rem;
}

.popular-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(93, 55, 12, 0.18);
}

.destination-selected-mark {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(23, 53, 47, 0.76);
  color: var(--white);
  font-size: 0.8rem;
  transform: scale(0.78);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.destination-card-copy {
  padding: 12px;
}

.destination-card-copy strong {
  display: -webkit-box;
  min-height: 39px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.destination-card-copy small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.61rem;
  line-height: 1.4;
}

.destination-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 53, 47, 0.09);
}

.destination-card-meta span {
  color: var(--sage-deep);
  font-size: 0.58rem;
  font-weight: 800;
}

.destination-option.selected {
  border-color: var(--sage-deep);
  background: #F3F7EE;
  box-shadow: 0 0 0 4px rgba(167, 193, 168, 0.28), var(--shadow-sm);
}

.destination-option.selected .destination-image {
  filter: saturate(0.9) brightness(0.78);
}

.destination-option.selected .destination-selected-mark {
  background: var(--sage-deep);
  transform: scale(1);
  opacity: 1;
}

.destination-option.just-selected {
  animation: selectedPop 0.42s ease;
}

@keyframes selectedPop {
  50% { transform: translateY(-4px) scale(1.035); }
}

.rail-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  font-size: 1.5rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.rail-prev { left: -18px; }
.rail-next { right: -18px; }

.swipe-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.64rem;
  text-align: center;
}

.field-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #9E4D35;
  font-size: 0.7rem;
  font-weight: 700;
}

.empty-rail {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.78rem;
}

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

.preference-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FBFCF7;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.preference-card:hover {
  transform: translateY(-3px);
}

.preference-card input {
  position: absolute;
  opacity: 0;
}

.preference-card .preference-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--cream);
}

.preference-card strong {
  font-size: 0.82rem;
}

.preference-card small {
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.preference-card i {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.65rem;
  font-style: normal;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.preference-card.active {
  border-color: var(--sage-deep);
  background: rgba(209, 216, 190, 0.33);
  box-shadow: 0 0 0 4px rgba(167, 193, 168, 0.18);
}

.preference-card.active i {
  opacity: 1;
  transform: scale(1);
}

.preference-lower-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  margin-top: 18px;
}

.mode-fieldset,
.fare-settings {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FBFCF7;
}

.mode-fieldset legend,
.fare-settings summary {
  font-size: 0.75rem;
  font-weight: 800;
}

.mode-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-fieldset legend {
  width: 100%;
}

.mode-fieldset label {
  position: relative;
  cursor: pointer;
}

.mode-fieldset input {
  position: absolute;
  opacity: 0;
}

.mode-fieldset label span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
}

.mode-fieldset input:checked + span {
  border-color: var(--sage-deep);
  background: var(--sage-soft);
}

.fare-settings summary {
  cursor: pointer;
}

.fare-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.fare-grid label {
  display: grid;
  gap: 5px;
}

.fare-settings p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.generate-button {
  width: 100%;
  min-height: 74px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 20px;
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(129, 154, 145, 0.28);
}

.generate-button span {
  display: grid;
  margin-right: auto;
  text-align: left;
}

.generate-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
}

.generate-button strong {
  font-size: 0.94rem;
}

.generate-button i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-style: normal;
}

.results-section {
  padding: 100px 0;
  background: var(--cream);
}

.results-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.results-topbar > div:first-child {
  max-width: 700px;
}

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

.trip-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
}

.summary-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.summary-card strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.day-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.day-tab.active {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--white);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.route-panel,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
}

.map-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-heading small {
  color: var(--sage-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.panel-heading h3 {
  margin: 3px 0 0;
  font-size: 1.12rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
}

.route-timeline {
  padding: 24px 22px 30px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 58px 34px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.timeline-time {
  padding-top: 5px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::after {
  content: "";
  position: absolute;
  top: 31px;
  bottom: -14px;
  border-left: 2px dotted rgba(129, 154, 145, 0.44);
}

.timeline-entry:last-child .timeline-marker::after {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(129, 154, 145, 0.25);
  font-size: 0.62rem;
  font-weight: 800;
}

.timeline-content {
  padding-bottom: 18px;
}

.stop-card {
  padding: 0 0 18px;
}

.stop-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.stop-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stop-card-title h4 {
  margin: 0;
  font-size: 1rem;
}

.stop-card-title > span {
  font-size: 1rem;
}

.stop-meta {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.visit-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
}

.stop-description {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.stop-activities {
  margin-top: 12px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}

.stop-activities strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  position: relative;
  padding-left: 12px;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.activity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.travel-leg {
  margin-top: 12px;
  padding: 13px;
  border-radius: 15px;
  background: #F4F6EC;
}

.travel-leg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.transport-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--yellow);
  font-size: 0.9rem;
}

.travel-leg-head strong {
  margin-right: auto;
  font-size: 0.72rem;
}

.leg-metric {
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.55rem;
}

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

.direction-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.direction-list b {
  color: var(--sage-deep);
  font-size: 0.6rem;
}

.leg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.mini-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 0.56rem;
  font-weight: 800;
}

.timeline-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.67rem;
}

.google-map-shell {
  position: relative;
  min-height: 420px;
  background: var(--sage-soft);
}

.google-map-shell iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.map-overlay-note {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font-size: 0.62rem;
  box-shadow: var(--shadow-sm);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 0;
}

.map-note {
  margin: 0;
  padding: 12px 16px 18px;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.results-note {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 160, 46, 0.25);
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.how-section,
.travel-notes {
  padding: 100px 0;
}

.how-section {
  background: #F8F9F2;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.how-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.how-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.how-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.how-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.travel-notes {
  background: var(--sage-deep);
  color: var(--white);
}

.travel-notes .eyebrow {
  color: var(--yellow);
}

.travel-notes .section-heading h2 {
  margin-bottom: 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.note-list {
  display: grid;
}

.note-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.note-list span {
  color: var(--yellow);
  font-weight: 800;
}

.note-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.note-list strong {
  color: var(--white);
}

.site-footer {
  padding: 28px 0;
  background: #102925;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-inner img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.footer-inner p {
  margin: 0 auto 0 0;
  font-size: 0.68rem;
}

.footer-inner a {
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9990;
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 0.72rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

@media (max-width: 1080px) {
  .hero-grid {
    gap: 38px;
  }

  .form-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: span 2;
  }

  .fare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
    --progress-height: 84px;
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav.open {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open a {
    padding: 14px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .preference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .destination-actions {
    grid-template-columns: 1fr 1fr;
  }

  .destination-actions .search-field {
    grid-column: 1 / -1;
  }

  .preference-lower-grid {
    grid-template-columns: 1fr;
  }

  .results-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-actions {
    justify-content: flex-start;
  }

  .how-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
    --progress-height: 76px;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    width: 145px;
  }

  .hero {
    padding: 42px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.65rem);
  }

  .hero-lead {
    font-size: 0.9rem;
  }

  .hero-visual {
    min-height: 410px;
    border-radius: 26px;
  }

  .route-card {
    inset: 46px 18px 58px;
    padding: 18px;
  }

  .floating-note {
    display: none;
  }

  .planner-section,
  .results-section,
  .how-section,
  .travel-notes {
    padding: 68px 0;
  }

  .planner-card {
    border-radius: 24px;
  }

  .progress-sticky-wrap {
    margin: 0;
    padding: 7px;
    border-radius: 24px 24px 0 0;
  }

  .planner-progress {
    min-height: 62px;
    gap: 4px;
    padding: 8px;
    border-radius: 18px;
  }

  .progress-track {
    left: 17%;
    right: 17%;
  }

  .progress-item {
    width: 100%;
    justify-content: center !important;
    gap: 0;
    padding: 4px;
    background: #F7F9F3;
  }

  .progress-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .progress-copy {
    display: none;
  }

  .progress-item.active {
    gap: 7px;
  }

  .progress-item.active .progress-copy {
    display: grid;
  }

  .progress-copy strong {
    font-size: 0.64rem;
  }

  .progress-copy small {
    font-size: 0.52rem;
  }

  .form-section {
    padding: 32px 18px;
  }

  .form-section-title,
  .destination-title-row {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .form-section-title > span {
    min-width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 0.82rem;
  }

  .form-section-title h3 {
    font-size: 1.08rem;
  }

  .form-section-title p {
    font-size: 0.72rem;
  }

  .selection-count {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 60px;
    margin-top: -6px;
  }

  .form-grid-six {
    grid-template-columns: 1fr 1fr;
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .baggage-options {
    grid-template-columns: 1fr;
  }

  .selected-drawer {
    top: calc(var(--header-height) + var(--progress-height) + 2px);
    margin-inline: -4px;
    padding: 12px;
  }

  .destination-actions {
    grid-template-columns: 1fr;
  }

  .destination-actions .search-field {
    grid-column: auto;
  }

  .destination-rail {
    grid-auto-columns: 160px;
    gap: 10px;
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .destination-option {
    min-height: 210px;
  }

  .destination-image-wrap {
    height: 104px;
  }

  .rail-control {
    display: none;
  }

  .swipe-hint {
    display: block;
  }

  .preference-grid {
    grid-template-columns: 1fr;
  }

  .preference-card {
    min-height: 116px;
    grid-template-columns: 46px 1fr;
    align-items: center;
  }

  .preference-card .preference-icon {
    grid-row: span 2;
  }

  .preference-card strong,
  .preference-card small {
    grid-column: 2;
  }

  .fare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trip-summary {
    grid-template-columns: 1fr 1fr;
  }

  .results-actions {
    width: 100%;
  }

  .results-actions .button {
    flex: 1 1 120px;
  }

  .route-timeline {
    padding: 20px 14px 24px;
  }

  .timeline-entry {
    grid-template-columns: 50px 28px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-time {
    font-size: 0.58rem;
  }

  .timeline-dot {
    width: 25px;
    height: 25px;
    border-width: 3px;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .travel-leg-head {
    align-items: flex-start;
  }

  .leg-metric {
    font-size: 0.5rem;
  }

  .google-map-shell,
  .google-map-shell iframe {
    min-height: 330px;
    height: 330px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    margin: 0;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
  }

  .form-grid-six,
  .fare-grid,
  .trip-summary {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .selected-drawer-head {
    align-items: flex-start;
  }

  .destination-rail {
    grid-auto-columns: 152px;
  }

  .timeline-entry {
    grid-template-columns: 44px 26px minmax(0, 1fr);
    gap: 6px;
  }

  .stop-card-head {
    flex-direction: column;
  }
}

@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;
  }
}

@media print {
  .site-header,
  .hero,
  .planner-section,
  .results-actions,
  .day-tabs,
  .map-actions,
  .how-section,
  .travel-notes,
  .site-footer,
  .toast {
    display: none !important;
  }

  .results-section {
    padding: 0;
    background: var(--white);
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    display: none;
  }

  .route-panel {
    border: 0;
  }
}

/* =========================================================
   Latest usability revision
   ========================================================= */

/* Hero metrics */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.hero-proof div {
  position: relative;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(129, 154, 145, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(23, 53, 47, 0.06);
  overflow: hidden;
}

.hero-proof div::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 74px;
  height: 74px;
  border: 16px solid rgba(167, 193, 168, 0.16);
  border-radius: 50%;
}

.hero-proof strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.hero-proof span {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Prevent the small hero route text from colliding on narrow screens */
.mini-stop,
.mini-line {
  grid-template-columns: 34px minmax(0, 1fr);
}

.mini-stop > div,
.mini-line > small {
  min-width: 0;
}

.mini-stop strong,
.mini-stop small,
.mini-line small {
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Form control consistency */
.field input,
.field select,
.compact-field select,
.search-field input,
.fare-grid input {
  display: block;
  height: 48px;
  min-height: 48px;
  line-height: normal;
}

.field input[type="date"],
.field input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
}

.field input[type="date"]::-webkit-date-and-time-value,
.field input[type="time"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

/* Selected places: show everything without sideways scrolling */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: 126px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
}

.selected-chip {
  flex: 0 1 auto;
  max-width: 100%;
}

.selected-chip button {
  flex: 0 0 auto;
}

/* Destination cards: image labels, clearer popular and selected states */
.destination-option {
  min-height: 196px;
  background: var(--white);
}

.destination-image-wrap {
  height: 154px;
}

.destination-image-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 34, 29, 0.05) 25%, rgba(13, 34, 29, 0.82) 100%);
  pointer-events: none;
}

.destination-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  z-index: 2;
  display: grid;
  gap: 1px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.destination-overlay strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.destination-overlay small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.56rem;
}

.popular-badge {
  top: 10px;
  left: 10px;
  z-index: 4;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
}

.destination-selected-mark {
  top: 9px;
  right: 9px;
  z-index: 5;
  width: auto;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
}

.destination-selected-mark b {
  font-size: 0.76rem;
}

.destination-selected-mark small {
  display: none;
  font-size: 0.55rem;
  font-weight: 800;
}

.destination-card-copy {
  padding: 10px 11px;
}

.destination-card-meta {
  margin: 0;
  padding: 0;
  border: 0;
}

.destination-option.selected {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(129, 154, 145, 0.26), 0 16px 32px rgba(23, 53, 47, 0.14);
}

.destination-option.selected .destination-image {
  filter: saturate(0.92) brightness(0.7);
}

.destination-option.selected .destination-image-shade {
  background: linear-gradient(180deg, rgba(13, 34, 29, 0.12), rgba(13, 34, 29, 0.9));
}

.destination-option.selected .destination-selected-mark {
  background: var(--sage-deep);
}

.destination-option.selected .destination-selected-mark small {
  display: inline;
}

/* Carousel controls */
.rail-control {
  top: 44%;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(129, 154, 145, 0.24);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rail-control:hover:not(:disabled) {
  background: var(--cream);
  transform: translateY(-50%) scale(1.05);
}

.rail-control:disabled {
  opacity: 0.32;
  cursor: default;
}

/* Restored explanatory section */
.how-section {
  background: #203b34;
  color: var(--white);
}

.how-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 72px;
}

.how-copy .eyebrow.light {
  color: var(--yellow);
}

.how-copy h2 {
  max-width: 590px;
  margin: 18px 0;
  color: var(--white);
  font-size: clamp(2.4rem, 4.2vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.how-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.button-muted {
  margin-top: 26px;
  background: var(--sage);
  color: var(--ink);
}

.how-steps {
  display: grid;
  gap: 14px;
}

.how-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.how-step:hover {
  transform: translateX(4px);
  border-color: rgba(255, 239, 145, 0.4);
  background: rgba(255, 255, 255, 0.11);
}

.how-step-number {
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 800;
}

.how-step > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.how-step strong {
  color: var(--white);
  font-size: 0.88rem;
}

.how-step small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.66rem;
  line-height: 1.5;
}

.how-step i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--cream);
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

/* Restored reminder cards */
.travel-notes {
  background: #fbfcf8;
  color: var(--ink);
}

.travel-notes .eyebrow {
  color: var(--sage-deep);
}

.travel-notes .section-heading h2 {
  color: var(--ink);
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reminder-card {
  position: relative;
  min-height: 250px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.reminder-number {
  position: absolute;
  top: 15px;
  right: 16px;
  color: var(--sage-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.reminder-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--cream);
  font-size: 1.05rem;
}

.reminder-card h3 {
  margin: 34px 0 8px;
  font-size: 0.88rem;
}

.reminder-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

/* Restored CTA */
.cta-section {
  padding: 0 0 100px;
  background: #fbfcf8;
}

.cta-card {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 42px;
  border-radius: 28px;
  background: var(--sage-deep);
  color: var(--white);
  overflow: hidden;
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -68px;
  top: -120px;
  width: 280px;
  height: 280px;
  border: 38px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.cta-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 17px;
  font-size: 1.25rem;
}

.cta-copy small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.54rem;
  font-weight: 700;
}

.cta-copy h2 {
  margin: 7px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.button-light {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: var(--cream);
  color: var(--ink);
}

/* Restored footer */
.site-footer {
  padding: 64px 0 20px;
  background: #152f29;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.85fr 1fr;
  gap: 42px;
}

.footer-brand img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.footer-brand p,
.footer-grid > div > p {
  max-width: 330px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
}

.footer-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
}

.footer-grid a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.56rem;
}

/* Mobile fixes */
@media (max-width: 860px) {
  .how-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .reminder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-proof div {
    min-height: 82px;
    padding: 13px 10px;
    text-align: center;
  }

  .hero-proof strong {
    font-size: 1.28rem;
  }

  .hero-proof span {
    font-size: 0.56rem;
    line-height: 1.3;
  }

  .route-card {
    inset: 38px 14px 48px;
    padding: 16px;
  }

  .mini-stop,
  .mini-line {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 9px;
  }

  .mini-stop > span {
    width: 29px;
    height: 29px;
  }

  .mini-stop strong {
    font-size: 0.7rem;
  }

  .mini-stop small,
  .mini-line small {
    font-size: 0.54rem;
    line-height: 1.35;
  }

  .progress-sticky-wrap {
    top: var(--header-height);
    padding: 6px;
  }

  .planner-progress {
    min-height: 68px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
  }

  .progress-track {
    left: 16%;
    right: 16%;
  }

  .progress-item,
  .progress-item.active {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch !important;
    gap: 5px;
    padding: 4px 5px;
  }

  .progress-number {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 0.64rem;
  }

  .progress-copy,
  .progress-item.active .progress-copy {
    display: grid;
    min-width: 0;
  }

  .progress-copy strong {
    overflow: hidden;
    font-size: 0.53rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .progress-copy small {
    display: none;
  }

  .progress-item.complete .progress-number::after {
    width: 14px;
    height: 14px;
    margin: 22px 0 0 24px;
    font-size: 0.48rem;
  }

  .form-grid-six {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .field,
  .compact-field {
    width: 100%;
    min-width: 0;
  }

  .field input,
  .field select,
  .compact-field select,
  .search-field input,
  .fare-grid input {
    width: 100%;
    height: 50px;
    min-height: 50px;
  }

  .input-with-action {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .selected-drawer {
    position: static;
    margin-inline: 0;
  }

  .selected-chips {
    max-height: 158px;
  }

  .destination-rail-wrap {
    padding-inline: 22px;
  }

  .destination-rail {
    grid-auto-columns: minmax(150px, 74vw);
    margin-inline: 0;
    padding-inline: 0;
  }

  .destination-option {
    min-height: 198px;
  }

  .destination-image-wrap {
    height: 156px;
  }

  .rail-control {
    display: grid;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .rail-prev {
    left: 0;
  }

  .rail-next {
    right: 0;
  }

  .timeline-content,
  .stop-card,
  .stop-card-head > div,
  .stop-card-title {
    min-width: 0;
  }

  .stop-card-title h4,
  .stop-meta,
  .stop-description,
  .direction-list span {
    overflow-wrap: anywhere;
  }

  .stop-card-title h4 {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .stop-meta {
    line-height: 1.4;
  }

  #printPlan {
    display: none;
  }

  .how-copy h2 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .how-step {
    grid-template-columns: 30px minmax(0, 1fr) 38px;
    min-height: 88px;
    padding: 15px;
  }

  .how-step i {
    width: 38px;
    height: 38px;
  }

  .reminder-grid {
    grid-template-columns: 1fr;
  }

  .reminder-card {
    min-height: 210px;
  }

  .cta-section {
    padding-bottom: 68px;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }

  .cta-copy {
    align-items: flex-start;
  }

  .cta-card .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    min-height: 70px;
    text-align: left;
  }

  .destination-title-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .selection-count {
    margin-left: 0;
  }

  .selected-drawer-head {
    gap: 8px;
  }

  .selected-chip {
    max-width: 100%;
    white-space: normal;
  }

  .destination-rail {
    grid-auto-columns: minmax(148px, 80vw);
  }

  .timeline-entry {
    grid-template-columns: 42px 24px minmax(0, 1fr);
  }

  .timeline-time {
    white-space: normal;
    line-height: 1.25;
  }
}

@media print {
  .cta-section,
  .reminder-grid,
  .how-section,
  .travel-notes,
  .site-footer {
    display: none !important;
  }
}

/* Ensure destination media and overlays keep a stable card structure */
.destination-option {
  display: flex;
  flex-direction: column;
}

.destination-image-wrap {
  display: block;
  flex: 0 0 154px;
}

.destination-card-copy {
  display: block;
  margin-top: auto;
}

@media (max-width: 680px) {
  .destination-image-wrap {
    flex-basis: 156px;
  }
}

/* Kabsat - supportive Baguio travel companion */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kabsat-bot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4200;
  width: 66px;
  height: 66px;
  font-family: "Poppins", sans-serif;
  overflow: visible;
}

.kabsat-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 22px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(23, 53, 47, .28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.kabsat-launcher::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 160, 46, .32);
  border-radius: 26px;
  opacity: 0;
  transform: scale(.92);
  animation: kabsatLauncherHalo 3.2s ease-in-out infinite;
  pointer-events: none;
}
.kabsat-launcher:hover,
.kabsat-launcher:focus-visible {
  transform: translateY(-3px);
  background: #102d27;
  box-shadow: 0 23px 52px rgba(23, 53, 47, .34);
}
.kabsat-launcher-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}
.kabsat-launcher-avatar img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 17px;
}
.kabsat-launcher-avatar i {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
}

.kabsat-teaser {
  position: absolute;
  right: 76px;
  bottom: 7px;
  width: max-content;
  max-width: min(300px, calc(100vw - 116px));
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px 11px 16px;
  border: 1px solid rgba(255, 160, 46, .88);
  border-radius: 17px 17px 5px 17px;
  outline: 0;
  background: rgba(22, 38, 34, .97);
  color: #fff;
  box-shadow: 0 18px 45px rgba(23, 53, 47, .24);
  cursor: pointer;
  opacity: 0;
  transform: translateX(14px) scale(.96);
  transform-origin: right center;
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1), border-color .2s ease;
  text-align: left;
}
.kabsat-teaser::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(255, 160, 46, .88);
  border-bottom: 1px solid rgba(255, 160, 46, .88);
  background: rgba(22, 38, 34, .97);
  transform: rotate(-45deg);
  border-radius: 0 0 3px 0;
}
.kabsat-teaser[hidden] { display: none !important; }
.kabsat-teaser.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: kabsatTeaserPop .42s cubic-bezier(.2,.9,.25,1.15) both;
}
.kabsat-teaser:hover,
.kabsat-teaser:focus-visible {
  border-color: var(--yellow);
  transform: translateX(-3px) scale(1.01);
}
.kabsat-teaser > span:last-child {
  position: relative;
  z-index: 1;
  font-size: .73rem;
  line-height: 1.45;
  font-weight: 500;
}
.kabsat-teaser-sparkle {
  position: relative;
  z-index: 1;
  color: var(--yellow);
  font-size: .88rem;
  line-height: 1;
  animation: kabsatSparkle 1.8s ease-in-out infinite;
}
@keyframes kabsatTeaserPop {
  0% { opacity: 0; transform: translateX(16px) scale(.92); }
  65% { opacity: 1; transform: translateX(-3px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes kabsatSparkle {
  50% { transform: rotate(14deg) scale(1.22); opacity: .72; }
}
@keyframes kabsatLauncherHalo {
  45% { opacity: .58; transform: scale(1.04); }
  75%, 100% { opacity: 0; transform: scale(1.12); }
}

.kabsat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 116px));
  display: grid;
  grid-template-rows: auto auto minmax(175px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(129, 154, 145, .26);
  border-radius: 26px;
  background: rgba(251, 252, 248, .985);
  box-shadow: 0 28px 80px rgba(23, 53, 47, .28);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease;
}
.kabsat-panel.show { opacity: 1; transform: translateY(0) scale(1); }

.kabsat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 15px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(209, 216, 190, .58), rgba(238, 239, 224, .9));
}
.kabsat-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.kabsat-avatar-wrap {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 15px;
  background: rgba(255,255,255,.72);
}
.kabsat-avatar-wrap img { width: 100%; height: 100%; border-radius: 12px; }
.kabsat-identity strong,
.kabsat-identity span { display: block; }
.kabsat-identity strong { font-size: .9rem; line-height: 1.2; }
.kabsat-identity span { margin-top: 3px; color: var(--ink-soft); font-size: .57rem; white-space: nowrap; }
.kabsat-identity span i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #6e9c72;
  box-shadow: 0 0 0 3px rgba(110,156,114,.14);
}
.kabsat-header-actions { display: flex; gap: 6px; }
.kabsat-icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 53, 47, .1);
  border-radius: 11px;
  background: rgba(255,255,255,.68);
  cursor: pointer;
  font-size: .82rem;
}
.kabsat-icon-button:hover { background: var(--white); }

.kabsat-mood-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 31px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--sage-deep);
  background: #fff;
  font-size: .53rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.kabsat-mood-strip i { width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }

.kabsat-messages {
  min-height: 175px;
  overflow-y: auto;
  padding: 16px 14px 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
  background: radial-gradient(circle at 100% 0, rgba(167,193,168,.16), transparent 33%), #fbfcf8;
}
.kabsat-message {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 11px;
  animation: kabsatMessageIn .26s ease both;
}
.kabsat-message > img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 9px;
}
.kabsat-message.user { justify-content: flex-end; }
.kabsat-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px 16px 16px 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(23,53,47,.05);
  font-size: .69rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.kabsat-message.user .kabsat-bubble {
  border-color: transparent;
  border-radius: 16px 7px 16px 16px;
  background: var(--sage-deep);
  color: var(--white);
}
.kabsat-message.context .kabsat-bubble {
  border-color: rgba(255,160,46,.28);
  background: #fffaf0;
}
@keyframes kabsatMessageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.kabsat-typing {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 8px;
  background: #fbfcf8;
}
.kabsat-typing[hidden] { display: none; }
.kabsat-typing img { width: 26px; height: 26px; border-radius: 9px; }
.kabsat-typing > span {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px 15px 15px 15px;
  background: white;
}
.kabsat-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--sage-deep); animation: kabsatTyping 1s ease-in-out infinite; }
.kabsat-typing i:nth-child(2) { animation-delay: .15s; }
.kabsat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kabsatTyping { 50% { transform: translateY(-3px); opacity: .45; } }

.kabsat-replies {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(23,53,47,.06);
  background: #fbfcf8;
  scrollbar-width: none;
}
.kabsat-replies::-webkit-scrollbar { display: none; }
.kabsat-replies:empty { display: none; }
.kabsat-replies button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(129,154,145,.28);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: .6rem;
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.kabsat-replies button:hover,
.kabsat-replies button:focus-visible {
  border-color: var(--sage-deep);
  background: var(--cream);
  transform: translateY(-1px);
}

.kabsat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--line);
  background: white;
}
.kabsat-input-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(23,53,47,.14);
  border-radius: 13px;
  outline: none;
  background: #fbfcf8;
  color: var(--ink);
  font-size: .66rem;
}
.kabsat-input-row input:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(129,154,145,.14); }
.kabsat-input-row button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: var(--sage-deep);
  color: white;
  cursor: pointer;
  font-size: 1rem;
}
.kabsat-input-row button:hover { background: #6f8980; }
.kabsat-note {
  margin: 0;
  padding: 0 14px 11px;
  background: white;
  color: var(--ink-soft);
  font-size: .48rem;
  line-height: 1.45;
  text-align: center;
}

.kabsat-breathe-card {
  margin: 4px 0 13px 33px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(129,154,145,.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(238,239,224,.9), rgba(209,216,190,.56));
  text-align: center;
  animation: kabsatMessageIn .28s ease both;
}
.kabsat-breathe-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23,53,47,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  transition: transform 4s ease, background 1s ease;
}
.kabsat-breathe-circle.inhale { transform: scale(1.18); background: rgba(167,193,168,.75); }
.kabsat-breathe-circle.hold { transform: scale(1.18); }
.kabsat-breathe-circle.exhale { transform: scale(.86); transition-duration: 6s; background: rgba(255,255,255,.78); }
.kabsat-breathe-circle span { font-size: .58rem; font-weight: 700; }
.kabsat-breathe-card strong { font-size: .72rem; }
.kabsat-breathe-card small { color: var(--ink-soft); font-size: .52rem; }
.kabsat-breathe-card button {
  margin-top: 3px;
  padding: 6px 10px;
  border: 1px solid rgba(23,53,47,.12);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: .55rem;
}

@media (max-width: 680px) {
  .kabsat-bot {
    right: 12px;
    bottom: 12px;
    width: 60px;
    height: 60px;
  }
  .kabsat-launcher {
    width: 60px;
    height: 60px;
    padding: 5px;
    border-radius: 20px;
  }
  .kabsat-launcher-avatar,
  .kabsat-launcher-avatar img { width: 48px; height: 48px; }
  .kabsat-panel {
    right: 0;
    bottom: 70px;
    width: calc(100vw - 24px);
    max-height: min(660px, calc(100dvh - 88px));
    border-radius: 23px;
  }
  .kabsat-bot.is-open .kabsat-launcher { display: none; }
  .kabsat-teaser {
    right: 69px;
    bottom: 5px;
    max-width: calc(100vw - 96px);
    min-height: 48px;
    padding: 10px 13px;
    border-radius: 16px 16px 5px 16px;
  }
  .kabsat-teaser > span:last-child {
    font-size: .66rem;
    line-height: 1.42;
  }
  .kabsat-teaser-sparkle { font-size: .76rem; }
  .kabsat-messages { padding-inline: 12px; }
  .kabsat-bubble { max-width: 86%; font-size: .67rem; }
  .kabsat-replies { padding-inline: 12px; }
  .kabsat-input-row { padding-inline: 10px; }
}

@media (max-height: 650px) and (min-width: 681px) {
  .kabsat-panel { max-height: calc(100vh - 88px); }
}

@media (prefers-reduced-motion: reduce) {
  .kabsat-panel,
  .kabsat-teaser,
  .kabsat-launcher,
  .kabsat-message,
  .kabsat-typing i,
  .kabsat-breathe-circle,
  .kabsat-launcher::before,
  .kabsat-teaser-sparkle { animation: none !important; transition: none !important; }
}

@media print {
  .kabsat-bot { display: none !important; }
}
