:root {
  color-scheme: light;
  --ink: #132b35;
  --ink-soft: #526872;
  --line: #d7e2e4;
  --line-strong: #b9cdd0;
  --surface: #ffffff;
  --surface-soft: #f4f8f8;
  --surface-warm: #fff9ed;
  --teal: #087f83;
  --teal-dark: #05656a;
  --teal-soft: #dff1f1;
  --coral: #c95b45;
  --green: #467847;
  --gold: #ad7515;
  --danger: #b33d35;
  --shadow: 0 16px 42px rgba(19, 43, 53, 0.14);
  --header-height: 82px;
  --footer-height: 42px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  min-width: 320px;
}

body.is-dialog-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

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

:focus-visible {
  outline: 3px solid #efb835;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  background: #dceff5;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero__brand,
.hero__nav,
.hero__account,
.hero__menu-button {
  pointer-events: auto;
}

.hero__brand {
  position: absolute;
  top: 1.2%;
  left: 1.4%;
  width: clamp(210px, 18.3vw, 352px);
}

.hero__brand img {
  width: 100%;
  height: auto;
}

.hero__nav {
  position: absolute;
  top: 4.2%;
  left: 26.2%;
  display: grid;
  grid-template-columns: repeat(7, max-content);
  align-items: center;
  justify-content: space-between;
  width: min(48.5vw, 930px);
  gap: clamp(16px, 1.8vw, 36px);
}

.hero__nav a {
  position: relative;
  display: block;
  padding: 10px 1px 12px;
  color: #082f40;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.72);
}

.hero__nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hero__nav a:hover::after,
.hero__nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero__account {
  position: absolute;
  top: 4.1%;
  right: 3.3%;
  min-width: 72px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(17, 56, 70, 0.11);
  color: #073648;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.hero__account:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.hero__menu-button {
  display: none;
}

.hero__title {
  position: absolute;
  z-index: 2;
  top: 12.4%;
  left: 50%;
  width: min(43vw, 825px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__title img {
  width: 100%;
  height: auto;
}

.hero-search {
  position: absolute;
  z-index: 5;
  top: 56.7%;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(290px, 1.45fr) minmax(190px, 0.75fr) 108px;
  align-items: stretch;
  width: min(760px, 48vw);
  min-height: 68px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 52px rgba(11, 63, 76, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.hero-search__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  padding: 0 16px;
  gap: 12px;
}

.hero-search__field + .hero-search__field {
  border-left: 1px solid #d7e2e4;
}

.hero-search__field span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-search input,
.hero-search select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 700;
}

.hero-search input::placeholder {
  color: #63767e;
  opacity: 1;
}

.hero-search__submit {
  min-width: 96px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.hero-search__submit:hover {
  background: var(--teal-dark);
}

.hero__continue {
  position: absolute;
  z-index: 4;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.52);
  transform: translateX(-50%);
}

.hero__continue span:last-child {
  font-size: 23px;
  line-height: 1;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--surface-soft);
  scroll-margin-top: 0;
}

.workspace__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.workspace__identity,
.workspace__actions {
  display: flex;
  align-items: center;
}

.workspace__identity {
  min-width: 0;
  gap: 15px;
}

.workspace__identity p,
.workspace__identity h2 {
  margin: 0;
}

.workspace__identity p {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.workspace__identity h2 {
  overflow: hidden;
  font-size: clamp(19px, 1.45vw, 27px);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace__back {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 800;
}

.workspace__back:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.workspace__actions {
  gap: 10px;
}

.service-state {
  display: flex;
  align-items: center;
  margin-right: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.service-state > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.service-state.is-online > span:first-child {
  background: var(--green);
}

.service-state.is-error > span:first-child {
  background: var(--danger);
}

.workspace__body {
  min-height: 0;
  overflow: hidden;
}

.workspace__content {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.workspace__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
}

.workspace__footer nav {
  display: flex;
  gap: 20px;
}

.workspace__footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.button--primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.button--quiet {
  border-color: var(--line);
  color: var(--ink);
}

.button--quiet:hover,
.button--outline:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.button--outline {
  border-color: var(--line-strong);
  background: var(--surface);
}

.button--danger {
  border-color: #f0cbc8;
  background: #fff4f3;
  color: var(--danger);
}

.button--wide {
  width: 100%;
}

.view {
  width: min(1320px, calc(100% - 48px));
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 50px) 0 54px;
}

.view--narrow {
  width: min(980px, calc(100% - 48px));
}

.view__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 28px;
  gap: 28px;
}

.view__intro > div:first-child {
  max-width: 780px;
}

.view__eyebrow {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.view__intro h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.16;
}

.view__intro p:not(.view__eyebrow) {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.view__summary {
  display: flex;
  align-items: baseline;
  padding: 9px 0;
  color: var(--ink-soft);
  gap: 7px;
  white-space: nowrap;
}

.view__summary strong {
  color: var(--ink);
  font-size: 26px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(170px, 0.65fr)) auto;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  gap: 12px;
}

.filter-bar--compact {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.45fr) auto;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-actions .button {
  white-space: nowrap;
}

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

.field > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 127, 131, 0.15);
}

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

.chip-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  gap: 8px;
}

.chip-list button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.chip-list button:hover,
.chip-list button.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.section-title {
  margin: 4px 0 15px;
  font-size: 21px;
}

.section-title--spaced {
  margin-top: 36px;
}

.theme-selection-grid {
  margin-top: 20px;
}

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

.destination-card,
.story-card,
.theme-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.destination-card:hover,
.story-card:hover,
.theme-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(22, 57, 67, 0.1);
  transform: translateY(-2px);
}

.destination-card__image,
.story-card__image,
.theme-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dce9ea;
}

.destination-card__image img,
.story-card__image img,
.theme-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.destination-card__bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.destination-card__bookmark:hover,
.destination-card__bookmark.is-saved {
  border-color: var(--coral);
  color: var(--coral);
}

.destination-card__body,
.story-card__body,
.theme-card__body {
  padding: 16px;
}

.destination-card__meta,
.story-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
}

.destination-card h4,
.story-card h4,
.theme-card h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.destination-card h4 a::after,
.story-card h4 a::after,
.theme-card h4 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.destination-card p,
.story-card p,
.theme-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.destination-card__bookmark,
.destination-card__image,
.destination-card a:not(h4 a) {
  z-index: 2;
}

.region-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.region-strip button {
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.region-strip button:hover,
.region-strip button.is-active {
  background: var(--teal-soft);
}

.region-strip strong,
.region-strip span {
  display: block;
}

.region-strip span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.notice-list,
.guide-list,
.itinerary-list,
.member-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.notice-item,
.guide-item,
.itinerary-item,
.member-list__item {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr) auto;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.notice-item time,
.guide-item__meta {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.notice-item h4,
.guide-item h4,
.itinerary-item h4 {
  margin: 0;
  font-size: 18px;
}

.notice-item p,
.guide-item p,
.itinerary-item p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill--warning {
  border-color: #ead59f;
  background: var(--surface-warm);
  color: #7d570d;
}

.status-pill--verified {
  border-color: #bfdbcc;
  background: #f0f8f3;
  color: #32683d;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.detail-hero__image {
  min-height: 360px;
  background: #dce9ea;
}

.detail-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px);
}

.detail-hero__body h3 {
  margin: 7px 0 12px;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.15;
}

.detail-hero__body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  gap: 9px;
}

.detail-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  margin-top: 24px;
  gap: 24px;
}

.detail-section {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-child {
  border-top: 0;
}

.detail-section h4 {
  margin: 0 0 10px;
  font-size: 19px;
}

.detail-section p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.highlight-list li {
  padding: 13px 15px;
  border-left: 3px solid var(--teal);
  background: var(--surface);
  font-weight: 700;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li + li {
  margin-top: 8px;
}

.source-list a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
}

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

.theme-card {
  min-height: 300px;
}

.theme-card__image {
  aspect-ratio: 16 / 8;
}

.theme-card__accent {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 13px;
  background: var(--teal);
}

.theme-card:nth-child(2n) .theme-card__accent {
  background: var(--coral);
}

.theme-card:nth-child(3n) .theme-card__accent {
  background: var(--green);
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.planner-form {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.planner-form h4,
.planner-output h4 {
  margin: 0 0 20px;
  font-size: 20px;
}

.planner-form .field + .field {
  margin-top: 15px;
}

.planner-form .button {
  margin-top: 20px;
}

.planner-output {
  min-width: 0;
  padding: 28px;
  background: var(--surface-soft);
}

.day-plan {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  gap: 15px;
}

.day-plan:first-of-type {
  border-top: 0;
}

.day-plan__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.day-plan h5 {
  margin: 0 0 4px;
  font-size: 17px;
}

.day-plan p {
  margin: 0;
  color: var(--ink-soft);
}

.day-plan__places {
  display: flex;
  flex-wrap: wrap;
  margin-top: 9px;
  gap: 7px;
}

.day-plan__places span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.info-band__item {
  padding: 18px 20px;
}

.info-band__item + .info-band__item {
  border-left: 1px solid var(--line);
}

.info-band__item strong,
.info-band__item span {
  display: block;
}

.info-band__item strong {
  font-size: 17px;
}

.info-band__item span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.view-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(720px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}

.view-state h3 {
  margin: 18px 0 5px;
  font-size: 24px;
}

.view-state p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.view-state .button {
  margin-top: 18px;
}

.view-state__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
  font-size: 25px;
  font-weight: 900;
}

.spinner {
  display: block;
  width: 38px;
  height: 38px;
  border: 4px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: min(740px, calc(100svh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(4, 35, 47, 0.32);
}

.auth-dialog::backdrop {
  background: rgba(5, 27, 36, 0.62);
  backdrop-filter: blur(7px);
}

.auth-dialog__shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  max-height: min(740px, calc(100svh - 32px));
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 25px;
  line-height: 1;
}

.auth-dialog__brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 590px;
  padding: 42px;
  background-color: #d9eef0;
  background-image: url("/assets/images/coast.webp");
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}

.auth-dialog__brand::before {
  position: absolute;
  z-index: -1;
  inset: 0 59% 0 0;
  background: rgba(4, 47, 59, 0.48);
  content: "";
}

.auth-dialog__brand img {
  width: 210px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.auth-dialog__brand p {
  max-width: 290px;
  margin: 17px 0 0;
  font-weight: 800;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.auth-dialog__main {
  min-width: 0;
  padding: 36px 42px;
  overflow-y: auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 42px 28px 0;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  position: relative;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--teal-dark);
}

.auth-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--teal);
  content: "";
}

.auth-heading p,
.auth-heading h2 {
  margin: 0;
}

.auth-heading p {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.auth-heading h2 {
  margin-top: 4px;
  font-size: 29px;
}

.auth-form {
  margin-top: 22px;
}

.auth-form > label:not(.check-field) {
  display: grid;
  gap: 6px;
}

.auth-form > label + label {
  margin-top: 14px;
}

.auth-form label > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
}

.auth-form small {
  color: var(--ink-soft);
  font-size: 11px;
}

.check-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.check-field input {
  min-height: 18px;
  margin: 2px 0 0;
}

.check-field span {
  line-height: 1.6;
}

.check-field a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 4px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-success {
  color: var(--green);
}

.turnstile-slot {
  min-height: 0;
  margin-top: 14px;
}

.auth-separator {
  position: relative;
  margin: 17px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.auth-separator span {
  position: relative;
  top: -12px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
}

.auth-separator + .button + .button {
  margin-top: 9px;
}

.toast-region {
  position: fixed;
  z-index: 1100;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(390px, calc(100% - 36px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border-left: 4px solid var(--teal);
  border-radius: 5px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.toast--error {
  border-left-color: #f08b80;
}

noscript {
  position: fixed;
  z-index: 2000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px;
  background: var(--danger);
  color: #fff;
  text-align: center;
}

@media (max-width: 1260px) {
  .hero__nav {
    left: 25%;
    width: 52vw;
    gap: 14px;
  }

  .hero__nav a {
    font-size: 14px;
  }

  .hero-search {
    width: min(720px, 58vw);
  }

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

@media (max-width: 960px) {
  :root {
    --header-height: 74px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__brand {
    top: 12px;
    left: 18px;
    width: 210px;
  }

  .hero__account {
    top: 18px;
    right: 72px;
  }

  .hero__menu-button {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    gap: 4px;
  }

  .hero__menu-button span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .hero__nav {
    top: 72px;
    right: 18px;
    left: auto;
    display: none;
    grid-template-columns: 1fr;
    width: min(310px, calc(100% - 36px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    gap: 0;
    backdrop-filter: blur(12px);
  }

  .hero__nav.is-open {
    display: grid;
  }

  .hero__nav a {
    padding: 11px 12px;
    text-shadow: none;
  }

  .hero__nav a::after {
    right: auto;
    bottom: 8px;
    left: 12px;
    width: 32px;
  }

  .hero__title {
    top: 18%;
    width: min(72vw, 680px);
  }

  .hero-search {
    top: 58%;
    grid-template-columns: minmax(220px, 1fr) minmax(165px, 0.55fr) 102px;
    width: min(720px, calc(100% - 48px));
  }

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

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

  .filter-bar .button {
    min-height: 44px;
  }

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

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

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

  .detail-hero__image {
    min-height: 260px;
    aspect-ratio: 16 / 7;
  }

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

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

  .planner-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-dialog__shell {
    grid-template-columns: 1fr;
  }

  .auth-dialog__brand {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
    --footer-height: 36px;
  }

  .hero {
    min-height: 650px;
  }

  .hero__background {
    object-position: 53% center;
  }

  .hero__brand {
    top: 9px;
    left: 12px;
    width: 165px;
  }

  .hero__account {
    top: 15px;
    right: 63px;
    min-width: 62px;
    min-height: 40px;
    padding: 7px 12px;
  }

  .hero__menu-button {
    top: 13px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .hero__nav {
    top: 62px;
    right: 12px;
    width: calc(100% - 24px);
  }

  .hero__title {
    top: 21%;
    width: 94vw;
  }

  .hero-search {
    top: auto;
    bottom: 70px;
    grid-template-columns: minmax(0, 1fr) 92px;
    width: calc(100% - 24px);
    min-height: 0;
    padding: 6px;
    border-radius: 8px;
  }

  .hero-search__field {
    padding: 0 10px;
  }

  .hero-search__field--keyword {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }

  .hero-search__field + .hero-search__field {
    border-left: 0;
  }

  .hero-search__submit {
    min-height: 48px;
    border-radius: 6px;
  }

  .hero__continue {
    bottom: 12px;
  }

  .workspace__header {
    padding: 0 12px;
  }

  .workspace__identity {
    gap: 8px;
  }

  .workspace__identity p {
    display: none;
  }

  .workspace__identity h2 {
    max-width: 45vw;
    font-size: 17px;
  }

  .workspace__back {
    width: 38px;
    height: 38px;
  }

  .service-state,
  #installButton {
    display: none;
  }

  .workspace__actions .button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .workspace__footer {
    padding: 0 12px;
  }

  .workspace__footer nav {
    gap: 10px;
  }

  .workspace__footer a:nth-child(-n + 2) {
    display: none;
  }

  .view,
  .view--narrow {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .view__intro {
    margin-bottom: 20px;
    gap: 10px;
  }

  .view__intro h3 {
    font-size: 30px;
  }

  .view__intro p:not(.view__eyebrow) {
    font-size: 14px;
  }

  .filter-bar,
  .filter-bar--compact {
    grid-template-columns: 1fr;
    padding: 13px;
  }

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

  .destination-grid,
  .story-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

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

  .destination-card__image {
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
  }

  .destination-card__body {
    padding: 13px;
  }

  .destination-card h4 {
    font-size: 17px;
  }

  .destination-card p {
    font-size: 13px;
  }

  .notice-item,
  .guide-item,
  .itinerary-item,
  .member-list__item {
    grid-template-columns: 1fr;
    padding: 16px 0;
    gap: 7px;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-hero__image {
    min-height: 210px;
    aspect-ratio: 16 / 9;
  }

  .detail-hero__body {
    padding: 24px 19px;
  }

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

  .planner-form,
  .planner-output {
    padding: 20px 16px;
  }

  .info-band {
    grid-template-columns: 1fr;
  }

  .info-band__item + .info-band__item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .auth-dialog {
    width: calc(100% - 20px);
    max-height: calc(100svh - 20px);
  }

  .auth-dialog__shell {
    max-height: calc(100svh - 20px);
  }

  .auth-dialog__main {
    padding: 24px 18px 30px;
  }

  .auth-tabs {
    margin-right: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #789196;
    --line-strong: #4d686e;
  }
}
