:root {
  --ink: #18312c;
  --muted: #667670;
  --green: #176b5b;
  --green-dark: #0f4e43;
  --lake: #2d7f8a;
  --coral: #b75b42;
  --line: rgba(24, 49, 44, .13);
  --paper: #fbfcf9;
  --mist: #eef4f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f3f6f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.destination-shell { min-height: 100dvh; }
.destination-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px max(18px, calc((100vw - 1320px) / 2));
  color: #fff;
  background: rgba(15, 78, 67, .96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.destination-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.destination-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-weight: 900;
}
.destination-brand strong { display: block; font-size: 17px; }
.destination-brand span { display: block; color: rgba(255,255,255,.7); font-size: 12px; margin-top: 2px; }
.destination-back {
  min-height: 38px;
  margin-left: auto;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 6px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 800;
}

.destination-home {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .72fr);
  gap: 22px;
  align-items: stretch;
}
.destination-main { min-width: 0; display: grid; grid-template-rows: minmax(360px, 1fr) 96px; gap: 14px; }
.destination-main.single-hero { grid-template-rows: minmax(460px, 1fr); }
.destination-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: #174f47;
}
.destination-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.destination-hero-slider,
.destination-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.destination-hero-slide {
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.destination-hero-slide.active { opacity: 1; }
.destination-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,28,25,.08), rgba(9,28,25,.75));
}
.destination-hero-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}
.destination-kicker { color: #ffe1a1; font-size: 13px; font-weight: 800; }
.destination-hero h1 { margin: 8px 0 10px; max-width: 720px; font-size: 42px; line-height: 1.1; letter-spacing: 0; }
.destination-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.82); line-height: 1.7; }
.destination-carousel-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(9,28,25,.42);
  backdrop-filter: blur(10px);
}
.destination-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  cursor: pointer;
}
.destination-carousel-dot.active { width: 18px; border-radius: 999px; background: #ffe1a1; }

.destination-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.destination-module {
  min-height: 96px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  transition: background .18s ease, color .18s ease;
}
.destination-module:last-child { border-right: 0; }
.destination-module:hover { color: #fff; background: var(--green); }
.destination-module strong { font-size: 16px; }
.destination-module span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.destination-module:hover span { color: rgba(255,255,255,.72); }
.destination-module b { font-size: 18px; font-weight: 500; }

.destination-chat {
  min-width: 0;
  height: calc(100dvh - 116px);
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.destination-chat-head { padding: 18px; border-bottom: 1px solid var(--line); }
.destination-chat-head strong { display: block; font-size: 18px; }
.destination-chat-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.destination-chat-head button {
  float: right;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(23, 107, 91, .28);
  border-radius: 6px;
  color: var(--green);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.destination-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 16px; }
.destination-message { max-width: 88%; margin: 0 0 14px; }
.destination-message.user { margin-left: auto; }
.destination-bubble { padding: 12px 14px; border-radius: 8px; color: var(--ink); background: var(--mist); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.destination-message.user .destination-bubble { color: #fff; background: var(--green); }
.destination-time { margin-top: 4px; color: #8a9792; font-size: 11px; }
.destination-message.user .destination-time { text-align: right; }
.destination-quick { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.destination-quick::-webkit-scrollbar { display: none; }
.destination-quick button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: #fff; cursor: pointer; }
.destination-composer { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(251,252,249,.98); }
.destination-composer input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; }
.destination-send { width: 48px; height: 48px; border: 0; border-radius: 8px; color: #fff; background: var(--coral); font-weight: 900; cursor: pointer; }
.destination-send:disabled { opacity: .55; cursor: wait; }

.guide-page { width: min(1120px, 100%); margin: 0 auto; padding: 28px 24px 64px; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 26px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.guide-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.guide-hero h1 { margin: 8px 0 12px; font-size: 40px; line-height: 1.12; letter-spacing: 0; }
.guide-hero p { margin: 0; color: var(--muted); line-height: 1.8; }
.guide-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.guide-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.guide-section h2 { margin: 0 0 10px; font-size: 21px; }
.guide-section p { margin: 0; color: var(--muted); line-height: 1.85; }
.guide-tip { margin-top: 26px; padding: 18px; border-left: 4px solid var(--coral); background: #fff; line-height: 1.75; }

@media (min-width: 921px) {
  .destination-quick { flex-wrap: wrap; overflow-x: visible; }
}

@media (max-width: 920px) {
  .destination-topbar { padding-inline: 14px; }
  .destination-shell { height: 100dvh; overflow: hidden; }
  .destination-home {
    height: calc(100dvh - 68px);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .destination-main { display: block; }
  .destination-hero { height: clamp(228px, 34dvh, 310px); min-height: 0; border-radius: 0; }
  .destination-hero-copy { left: 20px; right: 20px; bottom: 22px; }
  .destination-hero h1 { font-size: 32px; }
  .destination-modules {
    height: 146px;
    margin: 10px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 73px);
    overflow: hidden;
  }
  .destination-module { min-height: 0; height: 100%; padding: 12px 13px; border-bottom: 1px solid var(--line); }
  .destination-module strong { font-size: 15px; }
  .destination-module span { font-size: 11px; line-height: 1.35; }
  .destination-module b { font-size: 15px; line-height: 1; }
  .destination-module:nth-child(2) { border-right: 0; }
  .destination-module:nth-child(n+3) { border-bottom: 0; }
  .destination-chat {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }
  .destination-home.single-flow {
    display: block;
    height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 0 0 max(92px, calc(86px + env(safe-area-inset-bottom)));
    background: linear-gradient(180deg, #f6faf7 0%, #fbfcf9 44%);
  }
  .destination-home.single-flow .destination-main {
    display: block;
  }
  .destination-home.single-flow .destination-hero {
    height: clamp(292px, 42dvh, 372px);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 38px rgba(14, 43, 37, .14);
  }
  .destination-home.single-flow .destination-hero-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  .destination-home.single-flow .destination-hero h1 {
    max-width: 342px;
    font-size: 34px;
    line-height: 1.08;
  }
  .destination-home.single-flow .destination-hero p {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.68;
  }
  .destination-home.single-flow .destination-carousel-dots {
    right: 16px;
    bottom: 16px;
    gap: 5px;
    padding: 5px 7px;
  }
  .destination-home.single-flow .destination-chat {
    display: block;
    height: auto;
    min-height: 0;
    margin: 14px 14px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .destination-home.single-flow .destination-chat-head {
    min-height: 82px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 28px rgba(24, 49, 44, .08);
  }
  .destination-home.single-flow .destination-chat-head button {
    border-radius: 999px;
    background: rgba(255,255,255,.94);
  }
  .destination-home.single-flow .destination-messages {
    min-height: 220px;
    overflow: visible;
    padding: 2px 2px 12px;
  }
  .destination-home.single-flow .destination-message {
    max-width: 86%;
    margin-bottom: 14px;
  }
  .destination-home.single-flow .destination-bubble {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(24, 49, 44, .07);
  }
  .destination-home.single-flow .destination-quick {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0 0 12px;
  }
  .destination-home.single-flow .destination-quick button {
    border-radius: 999px;
    background: rgba(255,255,255,.92);
  }
  .destination-home.single-flow .destination-composer {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) 52px;
    padding: 8px;
    border: 1px solid rgba(24,49,44,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 46px rgba(16, 46, 40, .18);
  }
  .destination-home.single-flow .destination-composer input {
    height: 50px;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
  }
  .destination-home.single-flow .destination-send {
    width: 52px;
    height: 50px;
    border-radius: 999px;
  }
  .guide-page { padding: 18px 16px 48px; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-hero h1 { font-size: 31px; }
  .guide-sections { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .destination-brand strong { font-size: 15px; }
  .destination-hero { height: clamp(210px, 31dvh, 260px); min-height: 0; }
  .destination-home.single-flow .destination-hero { height: clamp(286px, 40dvh, 340px); }
  .destination-home.single-flow .destination-hero h1 { max-width: 326px; font-size: 31px; }
  .destination-home.single-flow .destination-hero p { max-width: 312px; }
  .destination-module { min-height: 0; padding: 11px 12px; }
  .destination-modules { height: 138px; grid-template-rows: repeat(2, 69px); }
  .destination-chat { height: 100%; min-height: 0; }
}
