:root {
  --ink: #15201d;
  --muted: #60706b;
  --paper: #fbfaf7;
  --line: rgba(21, 32, 29, 0.14);
  --jade: #0f766e;
  --jade-dark: #0b4e49;
  --red: #c84630;
  --gold: #d9a441;
  --sky: #dfeaf0;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--white);
  background: #17211f;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 23, 21, 0.86), rgba(10, 23, 21, 0.54) 42%, rgba(10, 23, 21, 0.12)),
    linear-gradient(0deg, rgba(12, 16, 15, 0.5), rgba(12, 16, 15, 0.02) 40%);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: #fff4df;
  font-weight: 900;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.free-nav-badge {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: #fff3cf;
  font-size: 0.82rem;
  font-weight: 950;
}

.icon-button,
.ghost-button,
.primary-button,
.composer button {
  border: 0;
  min-height: 42px;
  border-radius: 8px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.icon-button {
  width: 42px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.ghost-button {
  padding: 0 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.trip-hub-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.trip-hub-button span,
.trip-hub-fab strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
}

#signOutTop {
  display: none;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover,
.composer button:hover {
  transform: translateY(-1px);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 66px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 460px);
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow,
.panel-kicker,
.section-heading p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 1.45vw, 1.14rem);
  line-height: 1.6;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff8e7;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 850;
}

.chat-panel,
.summary,
.itinerary,
.destination-card,
.route-planner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.chat-panel {
  min-height: 560px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.section-heading h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--jade-dark);
  background: #dff2ee;
  font-size: 0.78rem;
  font-weight: 800;
}

.messages {
  min-height: 270px;
  max-height: 350px;
  overflow: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.88rem;
}

.message.agent {
  align-self: flex-start;
  background: #eef5f3;
}

.message.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--jade-dark);
  font-weight: 850;
}

.message.is-loading span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--jade);
  animation: loadingPulse 900ms infinite ease-in-out;
}

.message.is-loading span:nth-child(2) {
  animation-delay: 120ms;
}

.message.is-loading span:nth-child(3) {
  animation-delay: 240ms;
}

.message.is-loading strong {
  font-size: 0.95rem;
}

@keyframes loadingPulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.message.user {
  align-self: flex-end;
  color: var(--white);
  background: var(--jade);
}

.place-detection {
  width: min(100%, 420px);
  align-self: flex-start;
  border: 1px solid rgba(217, 164, 65, 0.36);
  border-radius: 8px;
  padding: 10px;
  background: #fff8e7;
}

.place-detection strong {
  color: var(--ink);
}

.place-detection p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.place-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.place-chip-row button {
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a4d00;
  background: #fff3cf;
  font-size: 0.78rem;
  font-weight: 850;
}

.place-chip-row small {
  color: var(--muted);
  font-size: 0.7rem;
}

.composer {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 8px;
}

.composer input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.92rem;
  outline: none;
}

.composer input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.composer button,
.primary-button {
  color: var(--white);
  background: var(--jade);
  font-weight: 800;
}

.composer button {
  font-size: 1.35rem;
}

.quick-replies {
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-replies button {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--jade-dark);
  background: #eef8f5;
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-context-button {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--white);
  background: var(--jade);
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.16);
}

.ai-context-button:hover {
  background: var(--jade-dark);
}

.ai-context-button.is-wide {
  width: 100%;
  border-radius: 8px;
  justify-content: center;
}

.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 54px;
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.seo-intro,
.seo-faq,
.destinations,
.route-planner,
.prep-center,
.account-section,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.seo-intro {
  padding: 34px 0 18px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.seo-intro-copy {
  position: sticky;
  top: 18px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-intro h2,
.seo-faq h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.08;
}

.seo-intro-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.seo-keyword-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seo-keyword-grid article,
.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.seo-keyword-grid h3,
.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.seo-keyword-grid p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.seo-faq {
  padding: 24px 0 56px;
}

.prep-center {
  padding: 38px 0 8px;
}

.toolkit-section {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 34px 0 10px;
}

.guide-entry-section {
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 34px 0 6px;
}

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

.guide-entry-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 9px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.guide-entry-card:hover {
  border-color: rgba(15, 118, 110, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.guide-entry-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--red);
  background: #fff2df;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-entry-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.guide-entry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.toolkit-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.toolkit-card-head {
  display: grid;
  gap: 5px;
}

.toolkit-card-head span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--red);
  background: #fff2df;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toolkit-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.toolkit-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.toolkit-card dl div {
  display: grid;
  gap: 2px;
}

.toolkit-card dt {
  color: var(--jade-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toolkit-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.toolkit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.toolkit-links a {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--jade-dark);
  background: #f3fbf9;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.prep-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.prep-panel,
.prep-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

.prep-panel {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.prep-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.prep-scenarios,
.prep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prep-scenarios button,
.prep-tabs button {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--jade-dark);
  background: #eef8f5;
  font-weight: 800;
  font-size: 0.8rem;
}

.prep-scenarios button.is-active,
.prep-tabs button.is-active {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.prep-tabs button.is-recommended:not(.is-active) {
  border-color: rgba(217, 164, 65, 0.55);
  background: #fff7df;
}

.prep-progress {
  display: grid;
  gap: 8px;
  color: var(--jade-dark);
  font-weight: 900;
}

.prep-progress div {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5efec;
}

.prep-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
  transition: width 180ms ease;
}

.prep-risk-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.prep-risk-summary p {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-weight: 850;
}

.prep-risk-summary strong {
  font-size: 1.1rem;
}

.prep-content {
  display: grid;
  gap: 12px;
}

.prep-tabs {
  padding: 0;
}

.prep-module {
  padding: 18px;
}

.prep-module-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.prep-module-head h3 {
  margin: 0;
  font-size: 1.22rem;
}

.prep-module-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.prep-module-badges span,
.prep-module-head > span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-weight: 900;
}

.prep-status.is-high {
  color: #7f1d1d;
  background: #fee2e2;
}

.prep-status.is-medium {
  color: #7c2d12;
  background: #ffedd5;
}

.prep-status.is-low {
  color: #1f4f46;
  background: #e7f4f1;
}

.prep-status.is-ready {
  color: #14532d;
  background: #dcfce7;
}

.prep-intro {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.prep-diagnostics {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: #f3faf8;
}

.prep-diagnostics h4,
.prep-checklist h4,
.prep-guide-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.prep-question {
  display: grid;
  gap: 8px;
}

.prep-question p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.prep-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prep-answer-row button {
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--jade-dark);
  background: var(--white);
  font-weight: 850;
  font-size: 0.82rem;
}

.prep-answer-row button.is-active {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.prep-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.prep-guide-grid.is-compact {
  margin-top: 10px;
}

.prep-guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.prep-guide-card summary,
.prep-deep-dive summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.prep-guide-card ul,
.prep-guide-card ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.prep-guide-card li + li {
  margin-top: 6px;
}

.prep-deep-dive {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.prep-deep-dive details,
.prep-nested-card {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: #f7fcfa;
}

.prep-nested-card {
  display: grid;
  gap: 10px;
}

.prep-nested-card h4,
.prep-detail-grid h4 {
  margin: 0;
  font-size: 0.92rem;
}

.prep-nested-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.prep-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prep-form-grid label {
  display: grid;
  gap: 5px;
  color: var(--jade-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.prep-form-grid input,
.prep-form-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.prep-result {
  border-radius: 7px;
  padding: 10px;
  color: var(--jade-dark) !important;
  background: #e7f4f1;
  font-weight: 850;
}

.prep-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.prep-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.prep-detail-grid ul,
.prep-detail-grid ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.prep-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.prep-link-row a {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.prep-checklist {
  display: grid;
  gap: 10px;
}

.prep-checklist label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8fbfa;
}

.prep-checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--jade);
}

.prep-warnings {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.prep-warnings p {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.account-section {
  padding: 38px 0 10px;
}

.account-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.sync-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}

.account-overview,
.account-form,
.memory-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

.account-overview {
  display: grid;
  align-content: start;
  gap: 12px;
}

.avatar-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.account-overview h3,
.memory-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.account-overview p,
.memory-panel p,
.muted-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-stats {
  display: grid;
  gap: 8px;
}

.account-stats span {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-weight: 800;
}

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

.account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfaf7;
  outline: none;
}

.account-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

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

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-actions .primary-button,
.secondary-button {
  width: auto;
  min-height: 42px;
  margin-top: 0;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.secondary-button {
  color: var(--jade-dark);
  background: #e7f4f1;
}

.account-actions button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.full-width-action {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.memory-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.saved-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-cities span:not(.muted-note) {
  border-radius: 999px;
  padding: 7px 9px;
  color: #7a4d00;
  background: #ffe9ae;
  font-size: 0.8rem;
  font-weight: 800;
}

.saved-routes {
  display: grid;
  gap: 9px;
}

.saved-route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
  background: #fbfaf7;
}

.saved-route-card strong {
  color: var(--ink);
}

.saved-route-card span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.saved-route-card div {
  display: flex;
  gap: 8px;
}

.saved-route-card button {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.76rem;
  font-weight: 850;
}

.destinations {
  padding: 30px 0 20px;
}

.destinations-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.destination-card {
  min-height: 112px;
  padding: 10px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
  transition:
    border 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.destination-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.destination-card.is-favorite {
  border-color: rgba(217, 164, 65, 0.95);
  background: linear-gradient(180deg, #fffaf0, #ffffff 60%);
}

.destination-card.is-selected {
  border-color: rgba(15, 118, 110, 0.95);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.destination-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.destination-image {
  width: 78px;
  height: 92px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(21, 32, 29, 0.12);
}

.destination-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.destination-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.destination-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.destination-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.72rem;
  font-weight: 800;
}

.favorite-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 1.08rem;
  line-height: 1;
}

.favorite-button[aria-pressed="true"] {
  color: #7a4d00;
  border-color: rgba(217, 164, 65, 0.8);
  background: #ffe9ae;
}

.destination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.detail-button {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--jade-dark);
  background: #eef8f5;
  font-size: 0.72rem;
  font-weight: 850;
}

.route-planner {
  margin-top: 20px;
  padding: 20px;
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.china-map {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(135deg, #dfeaf0, #f6faf8);
  overflow: hidden;
}

#realMap {
  position: relative;
  min-height: 420px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.map-config-state {
  width: 100%;
  height: 100%;
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 28%, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(135deg, #eef7f4, #f8fbfa);
}

.map-config-state div {
  max-width: 420px;
}

.map-config-state h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.map-config-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.map-config-state code {
  color: var(--jade-dark);
  font-weight: 800;
}

.geo-map {
  width: 100%;
  min-height: 420px;
  height: 100%;
  display: block;
}

.local-map {
  position: relative;
  width: min(100%, 920px);
  aspect-ratio: 720 / 470;
  min-height: 0;
  height: auto;
}

.local-map-outline,
.local-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.local-map-outline {
  object-fit: fill;
}

.local-map-overlay {
  z-index: 2;
  pointer-events: none;
}

.leaflet-map-shell {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #1a2332;
}

.leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.city-map-label {
  border: 0;
  background: transparent;
}

.city-map-label span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.88);
  white-space: nowrap;
}

.map-legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.68rem;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-route {
  border: 2px solid #fff176;
  background: #ffb300;
}

.legend-favorite {
  border: 1px solid #ffab91;
  background: #ff7043;
}

.legend-default {
  background: rgba(255, 255, 255, 0.45);
}

.map-approval-note {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  border-radius: 6px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.62rem;
}

.geo-province {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(15, 118, 110, 0.38);
  stroke-width: 0.9;
  transition:
    fill 180ms ease,
    stroke 180ms ease;
}

.geo-province:hover {
  fill: rgba(216, 241, 236, 0.96);
  stroke: rgba(15, 118, 110, 0.7);
}

.geo-route-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 11 8;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    stroke-width 180ms ease;
}

.geo-route-line.is-visible {
  stroke-width: 5;
  opacity: 0.92;
}

.geo-city-marker {
  cursor: pointer;
  outline: none;
  pointer-events: auto;
}

.geo-city-marker circle {
  stroke: var(--white);
  stroke-width: 3;
  background: var(--jade);
  fill: var(--jade);
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.28);
}

.geo-city-marker text {
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
}

.geo-city-marker.is-favorite circle {
  fill: var(--gold);
  r: 8;
}

.geo-city-marker.is-selected circle {
  fill: var(--red);
  r: 10;
}

.geo-city-marker.is-selected text {
  fill: var(--red);
}

.route-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  display: grid;
  align-content: start;
  gap: 14px;
}

.route-info h3 {
  margin: 0;
  font-size: 1.15rem;
}

.route-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.city-feature-list li {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--muted);
  line-height: 1.42;
}

.transport-segment {
  border-left-color: var(--red);
}

.transport-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.transport-options span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
}

.transport-options b {
  color: var(--ink);
}

.transport-options em,
.transport-options small,
.transport-options i {
  font-style: normal;
  color: var(--muted);
  font-size: 0.86rem;
}

.transport-options small {
  color: var(--jade-dark);
  font-weight: 800;
}

.route-stats {
  display: grid;
  gap: 9px;
}

.route-stats span {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-weight: 800;
}

.summary,
.itinerary {
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

.summary {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.itinerary {
  min-height: 520px;
  padding: 20px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--red);
}

.preference-list {
  margin: 0;
  display: grid;
  gap: 11px;
}

.preference-list div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.preference-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.preference-list dd {
  margin: 0;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  margin-top: 18px;
  padding: 0 18px;
}

.itinerary-content {
  display: grid;
  gap: 16px;
}

.empty-state {
  min-height: 330px;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #f5faf8;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.16rem;
}

.trip-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.trip-card {
  display: grid;
  gap: 10px;
}

.trip-card h3,
.guide-card h3 {
  margin: 0;
  font-size: 1rem;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trip-meta span {
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.8rem;
  font-weight: 800;
}

.trip-card p,
.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.agent-result-card {
  align-self: stretch;
  display: grid;
  gap: 12px;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #f4fbf9, #ffffff);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.agent-result-head {
  display: grid;
  gap: 4px;
}

.agent-result-head span,
.agent-card-section h4 {
  margin: 0;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-result-head strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.agent-card-section {
  display: grid;
  gap: 8px;
}

.agent-card-section ul,
.agent-route-mini {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-card-section li,
.agent-route-mini li {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.agent-card-section li span,
.agent-route-mini li span,
.guide-city-grid span,
.guide-place-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.agent-chip-grid,
.guide-city-grid,
.guide-place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.agent-chip-grid span,
.guide-city-grid div,
.guide-place-list div {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 7px;
  background: #fff;
}

.agent-chip-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.agent-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-action-row button {
  min-height: 34px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--jade-dark);
  background: #f3fbf9;
  font-weight: 850;
  cursor: pointer;
}

.agent-action-row button.is-primary {
  color: #fff;
  background: var(--jade);
  border-color: var(--jade);
}

.followup-card-grid {
  display: grid;
  gap: 9px;
  width: 100%;
}

.followup-card {
  display: grid;
  gap: 8px;
  max-width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: #f4fbf9;
}

.followup-card strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.followup-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.followup-card button {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--jade-dark);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 850;
}

.followup-card button.is-soft {
  color: var(--muted);
  background: transparent;
}

.generated-guide {
  background: linear-gradient(180deg, #ffffff, #f6fbfa);
}

.visual-guide-hero {
  gap: 14px;
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 42%),
    #ffffff;
}

.visual-guide-hero h3 {
  font-size: 1.24rem;
  line-height: 1.22;
}

.guide-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guide-metric-row span {
  min-height: 64px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.guide-metric-row strong {
  display: block;
  color: var(--jade-dark);
  font-size: 1.2rem;
  line-height: 1.1;
}

.guide-action-row {
  padding-top: 2px;
}

.visual-guide-section {
  gap: 14px;
}

.guide-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guide-section-head span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--white);
  background: var(--jade);
  font-size: 0.76rem;
  font-weight: 900;
}

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

.visual-city-card {
  overflow: hidden;
  display: grid;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.visual-city-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.visual-city-card div {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.visual-city-card h4,
.guide-place-tile h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.visual-city-card p,
.guide-place-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.46;
}

.guide-step {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--red);
  background: #fff2df;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.city-score-line {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 !important;
}

.city-score-line span {
  border-radius: 999px;
  padding: 5px 7px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.72rem;
  font-weight: 900;
}

.route-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-timeline li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.route-timeline i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--jade);
  font-style: normal;
  font-weight: 900;
}

.route-timeline div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.route-timeline strong {
  color: var(--ink);
}

.route-timeline span {
  color: var(--jade-dark);
  font-size: 0.84rem;
  font-weight: 850;
}

.route-timeline p {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.guide-place-tile {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.guide-place-tile span,
.guide-place-tile small {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-place-tile small {
  color: var(--muted);
  text-transform: none;
}

.prep-task-cards,
.risk-card-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prep-task-cards li,
.risk-card-list li {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--slate-300);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.prep-task-cards li.is-high,
.risk-card-list li.is-high {
  border-left-color: var(--red);
}

.prep-task-cards li.is-medium,
.risk-card-list li.is-medium {
  border-left-color: var(--imperial-gold);
}

.prep-task-cards li.is-low,
.risk-card-list li.is-low {
  border-left-color: var(--jade);
}

.prep-task-cards span,
.risk-card-list span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prep-task-cards strong {
  color: var(--ink);
}

.prep-task-cards p,
.risk-card-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.module-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--red);
  background: #fff2df;
  font-size: 0.74rem;
  font-weight: 800;
}

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

.checklist,
.phrase-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.phrase-list span {
  border: 1px solid rgba(21, 32, 29, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fbfaf7;
  line-height: 1.45;
}

.register-toast {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--jade-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.register-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trip-hub-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 32;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  background: var(--jade);
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.24);
}

.trip-hub-fab strong {
  background: var(--gold);
}

.register-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(10, 23, 21, 0.5);
}

.register-modal.is-open {
  display: grid;
}

.register-modal-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.register-modal-card h2 {
  margin: 0 28px 12px 0;
  font-size: 1.35rem;
}

.register-modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  border-radius: 8px;
  padding: 5px;
  background: #edf6f4;
}

.auth-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: var(--jade-dark);
  background: transparent;
  font-weight: 900;
}

.auth-switch button.is-active {
  color: var(--white);
  background: var(--jade);
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.auth-form label[hidden] {
  display: none;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.password-field button {
  min-width: 76px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-weight: 900;
}

.auth-helper {
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.auth-form input:focus {
  outline: 0;
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-status {
  min-height: 20px;
  color: var(--cinnabar) !important;
  font-size: 0.86rem;
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 1.3rem;
}

.register-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.register-benefits span {
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.8rem;
  font-weight: 800;
}

.city-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
}

.trip-hub-drawer {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: none;
}

.city-drawer.is-open {
  display: block;
}

.trip-hub-drawer.is-open {
  display: block;
}

.city-drawer-backdrop,
.trip-hub-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 21, 0.52);
}

.city-drawer-panel,
.trip-hub-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 22px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: -18px 0 42px rgba(17, 24, 39, 0.18);
}

.trip-hub-panel {
  width: min(540px, 100%);
}

.trip-hub-subtitle {
  margin: 0 42px 16px 0;
  color: var(--muted);
  line-height: 1.5;
}

.trip-hub-tabs {
  position: sticky;
  top: -22px;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  background: var(--white);
}

.trip-hub-tabs button {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--jade-dark);
  background: #eef8f5;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 850;
}

.trip-hub-tabs button.is-active {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.trip-hub-content {
  display: grid;
  gap: 14px;
}

.hub-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hub-summary-grid span,
.hub-item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfaf7;
}

.hub-summary-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.hub-section,
.manual-place-form {
  display: grid;
  gap: 10px;
}

.hub-section h3,
.manual-place-form h3 {
  margin: 0;
  font-size: 1rem;
}

.hub-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hub-item-card {
  display: grid;
  gap: 10px;
}

.hub-item-card strong {
  display: block;
  color: var(--ink);
}

.hub-item-card span,
.hub-item-card p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.84rem;
}

.hub-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-item-actions button,
.place-save-list button {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-size: 0.76rem;
  font-weight: 850;
}

.hub-auth-cta {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #eaf6f3;
}

.hub-auth-cta.is-signed-in {
  background: #f6fbfa;
}

.hub-auth-cta strong {
  color: var(--jade-dark);
}

.hub-auth-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.manual-place-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf7;
}

.manual-place-form input,
.manual-place-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
}

.hub-route-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.footer-brand {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-brand p,
.footer-note {
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
  font-size: 0.9rem;
}

.footer-actions,
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-actions button,
.footer-grid button {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--jade-dark);
  background: #e7f4f1;
  font-weight: 850;
}

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

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-grid a,
.footer-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

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

.guide-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.09), transparent 26%),
    linear-gradient(180deg, #fffaf1 0%, #f8fafc 46%, #ffffff 100%);
  color: var(--ink);
}

.guide-page .topbar {
  color: var(--ink);
}

.guide-page .brand {
  color: var(--ink);
}

.guide-page .ghost-button,
.guide-page .icon-button {
  color: var(--jade-dark);
  background: #e7f4f1;
}

.guide-hero,
.guide-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.guide-hero {
  padding: 46px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: end;
}

.guide-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.guide-hero p {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.guide-updated {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.guide-updated strong {
  color: var(--jade-dark);
}

.guide-updated span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.guide-main {
  padding: 10px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-card,
.guide-toc,
.guide-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

.guide-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
}

.guide-card h2 {
  font-size: 1.35rem;
}

.guide-card h3 {
  font-size: 1rem;
}

.guide-card p,
.guide-card li {
  color: var(--muted);
  line-height: 1.62;
}

.guide-card p,
.guide-card ul,
.guide-card ol {
  margin: 0;
}

.guide-card ul,
.guide-card ol {
  padding-left: 20px;
}

.guide-grid-two,
.guide-grid-three {
  display: grid;
  gap: 12px;
}

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

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

.guide-mini-card {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 7px;
  background: #f7fbfa;
}

.guide-mini-card strong {
  color: var(--ink);
}

.guide-mini-card span,
.guide-mini-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.guide-alert {
  border-left: 4px solid var(--red);
  padding: 12px 13px;
  color: #6b2b1e;
  background: #fff2ea;
}

.guide-ok {
  border-left: 4px solid var(--jade);
  padding: 12px 13px;
  color: var(--jade-dark);
  background: #eaf6f3;
}

.guide-toc {
  position: sticky;
  top: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.guide-toc strong {
  color: var(--ink);
}

.guide-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.guide-toc a:hover {
  color: var(--jade-dark);
}

.guide-cta {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #0f766e, #12355b);
  color: var(--white);
}

.guide-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.guide-cta a,
.guide-primary-link {
  border-radius: 999px;
  padding: 10px 13px;
  display: inline-flex;
  justify-content: center;
  color: var(--ink);
  background: #fff3cf;
  text-decoration: none;
  font-weight: 900;
}

.guide-sources a {
  color: var(--jade-dark);
}

.guide-page .site-footer {
  margin-top: 0;
}

.city-drawer-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.city-drawer-panel h2 {
  margin: 0 42px 10px 0;
  font-size: 1.6rem;
}

.city-drawer-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.city-score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.city-score-grid span {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--jade-dark);
  background: #e7f4f1;
  line-height: 1.35;
}

.city-score-grid strong {
  display: block;
  color: var(--ink);
}

.city-detail-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.city-detail-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.city-detail-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.place-save-list {
  display: grid;
  gap: 9px;
}

.place-save-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fbfaf7;
}

.place-save-list strong {
  color: var(--ink);
}

.place-save-list span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.84rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--jade-dark);
  background: #eef8f5;
  font-size: 0.8rem;
  font-weight: 850;
}

.drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.drawer-actions .primary-button,
.drawer-actions .secondary-button {
  width: 100%;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .hero-content,
  .workspace,
  .seo-intro,
  .guide-hero,
  .guide-main,
  .prep-layout,
  .map-layout,
  .account-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .seo-intro-copy {
    position: static;
  }

  .guide-toc {
    position: static;
  }

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

  .hero-content {
    padding-top: 26px;
    gap: 34px;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero-content,
  .workspace,
  .guide-hero,
  .guide-main,
  .seo-intro,
  .seo-faq,
  .destinations,
  .route-planner,
  .prep-center,
  .toolkit-section,
  .guide-entry-section,
  .account-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 64px;
    padding-top: 10px;
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    font-size: 0.95rem;
    flex: 0 0 auto;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }

  .free-nav-badge {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .icon-button,
  .ghost-button,
  .trip-hub-button {
    min-height: 34px;
    border-radius: 7px;
    font-size: 0.76rem;
  }

  .ghost-button {
    padding: 0 9px;
  }

  .trip-hub-button {
    padding: 0 9px;
    gap: 6px;
  }

  .trip-hub-button span,
  .trip-hub-fab strong {
    min-width: 20px;
    height: 20px;
    font-size: 0.66rem;
  }

  .hero-content {
    padding: 18px 0 30px;
    gap: 18px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.9rem);
    line-height: 0.98;
  }

  .hero-copy p:last-child {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .hero-trust-row {
    gap: 7px;
    margin-top: 12px;
  }

  .hero-trust-row span {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .chat-panel {
    min-height: auto;
    max-height: none;
    padding: 12px;
    grid-template-rows: auto minmax(150px, 24vh) auto auto;
    gap: 10px;
  }

  .panel-header {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .panel-header h2,
  .section-heading h2 {
    font-size: 1rem;
  }

  .status-pill {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .messages {
    min-height: 150px;
    max-height: 24vh;
  }

  .message {
    max-width: 94%;
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .composer {
    height: auto;
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .composer input {
    min-height: 44px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .composer button {
    min-height: 44px;
    font-size: 1.15rem;
  }

  .quick-replies {
    min-height: 0;
    gap: 7px;
  }

  .quick-replies button,
  .ai-context-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .guide-grid,
  .seo-keyword-grid,
  .faq-grid,
  .prep-guide-grid,
  .prep-form-grid,
  .prep-detail-grid,
  .agent-chip-grid,
  .guide-city-grid,
  .guide-place-list,
  .guide-metric-row,
  .guide-grid-two,
  .guide-grid-three,
  .visual-city-grid,
  .guide-place-tiles,
  .preference-list div,
  .prep-module-head,
  .account-form,
  .destination-grid {
    grid-template-columns: 1fr;
  }

  .guide-entry-grid {
    grid-template-columns: 1fr;
  }

  .prep-module-head {
    display: grid;
  }

  .destination-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .destination-image {
    width: 72px;
    height: 86px;
  }

  .destinations-heading {
    align-items: start;
  }

  .china-map,
  #realMap {
    min-height: 360px;
  }

  .geo-city-marker text {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar,
  .hero-content,
  .workspace,
  .guide-hero,
  .guide-main,
  .seo-intro,
  .seo-faq,
  .destinations,
  .route-planner,
  .prep-center,
  .toolkit-section,
  .guide-entry-section,
  .account-section,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .free-nav-badge,
  .icon-button {
    display: none;
  }

  .ghost-button,
  .trip-hub-button {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .hero-content {
    padding-top: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 15vw, 3.35rem);
  }

  .chat-panel {
    grid-template-rows: auto minmax(140px, 20vh) auto auto;
  }

  .messages {
    min-height: 140px;
    max-height: 20vh;
  }

  .quick-replies button {
    flex: 1 1 calc(50% - 7px);
  }
}
