.aitour-page {
  margin: 0 auto;
  max-width: 1920px;
  padding: 18px 24px 36px;
}

.aitour-page-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 14px;
  max-width: 1540px;
}

.aitour-page-heading h1 {
  color: #204337;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 750;
  margin: 0;
}

.aitour-tour-context {
  align-items: baseline;
  color: #68796f;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
}

.aitour-tour-context-label {
  color: #68796f;
  font-weight: 500;
}

.aitour-tour-context strong {
  background: #edf6ef;
  border: 1px solid #d5e8d9;
  border-radius: 7px;
  color: #185b45;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
  padding: 0.2rem 0.55rem;
}

.aitour-back-link {
  align-items: center;
  background: #fff;
  border: 1px solid #e6ebe4;
  border-radius: 999px;
  box-shadow: 0 3px 14px rgb(34 66 48 / 9%);
  color: #275b4b;
  display: inline-flex;
  font-weight: 650;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.aitour-back-link:hover {
  background: #f0f8f2;
  color: #134a3c;
}

.aitour-intro {
  color: #263b51;
}

.aitour-intro h1 {
  font-weight: 700;
}

.aitour-eyebrow {
  align-items: center;
  background: #f3f8f3;
  border: 1px solid #e3eee3;
  border-radius: 999px;
  color: #527563;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 650;
  gap: 0.4rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
  padding: 0.22rem 0.65rem 0.22rem 0.3rem;
  text-transform: none;
}

.aitour-eyebrow-icon {
  align-items: center;
  background: #e2efe5;
  border-radius: 50%;
  color: #287252;
  display: inline-flex;
  font-size: 0.78rem;
  height: 21px;
  justify-content: center;
  width: 21px;
}

.aitour-attraction-links {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.aitour-attraction-link {
  align-items: center;
  border: 1px solid #dce4ec;
  border-radius: 0.75rem;
  color: #263b51;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.aitour-attraction-link:hover {
  background: #eef5fa;
  border-color: #9eb8ce;
  color: #183c5b;
}

.aitour-attraction-link span:last-child {
  color: #1769aa;
  flex: 0 0 auto;
  font-size: 0.875rem;
}

.aitour-selector-status {
  color: #728078;
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 7px 2px 0;
  overflow-wrap: anywhere;
}

.aitour-selector-status.is-error {
  color: #9c3425;
}

#aitour-tag-status.is-error {
  color: #9c2525 !important;
}

.aitour-map {
  background: #e8f1e9;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.aitour-map-workspace {
  background: #e9eee5;
  border: 1px solid #e2e8de;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgb(34 66 48 / 12%);
  height: clamp(600px, calc(100vh - 190px), 900px);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.aitour-map .maplibregl-ctrl-bottom-left {
  left: 225px;
}

.aitour-map .maplibregl-ctrl-attrib {
  background: rgb(255 255 255 / 84%);
  border-radius: 5px;
  font-size: 0.65rem;
}

.aitour-map-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: 16px;
  position: absolute;
  top: 16px;
  width: 196px;
  z-index: 3;
}

.aitour-map-picker,
.aitour-map-legend {
  background: rgb(255 255 255 / 95%);
  border: 1px solid rgb(222 231 221 / 90%);
  border-radius: 17px;
  box-shadow: 0 5px 20px rgb(33 55 42 / 14%);
  padding: 12px;
}

.aitour-map-picker .form-select {
  border-color: #e4e9e1;
  border-radius: 11px;
  color: #23483c;
  font-size: 0.88rem;
  font-weight: 650;
}

.aitour-map-legend-heading {
  align-items: center;
  color: #315746;
  display: flex;
  font-size: 0.87rem;
  justify-content: space-between;
  margin-bottom: 8px;
}

.aitour-map-legend-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  font: inherit;
  justify-content: space-between;
  padding: 0;
  text-align: left;
  width: 100%;
}

.aitour-map-legend-content {
  display: block;
}

.aitour-map-legend-heading span {
  color: #829087;
  font-size: 0.7rem;
  font-weight: 500;
}

.aitour-map-categories {
  display: grid;
  gap: 5px;
  max-height: min(45vh, 390px);
  overflow-y: auto;
}

.aitour-map-category {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #52635a;
  display: flex;
  font-size: 0.82rem;
  gap: 9px;
  min-height: 38px;
  padding: 6px 8px;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.aitour-map-category:hover {
  background: #f1f7f1;
  color: #1d5e4d;
}

.aitour-map-category[aria-pressed="true"] {
  background: #e5f3ed;
  color: #087c68;
  font-weight: 700;
}

.aitour-map-category-icon {
  align-items: center;
  background: #eff5ef;
  border-radius: 50%;
  color: #16846d;
  display: inline-flex;
  flex: 0 0 25px;
  font-size: 0.75rem;
  height: 25px;
  justify-content: center;
}

.aitour-map-category-icon-image {
  background: #eff5ef;
  border-radius: 50%;
  flex: 0 0 25px;
  height: 25px;
  object-fit: contain;
  padding: 3px;
  width: 25px;
}

.aitour-map-category[aria-pressed="true"] .aitour-map-category-icon {
  background: #16846d;
  color: #fff;
}

.aitour-map-status {
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(222 231 221 / 90%);
  border-radius: 999px;
  box-shadow: 0 3px 14px rgb(33 55 42 / 12%);
  color: #596c60;
  font-size: 0.77rem;
  left: 50%;
  max-width: min(44vw, 620px);
  padding: 8px 14px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 16px;
  transform: translateX(-50%);
  z-index: 2;
}

.aitour-map-status.is-error {
  background: #fff4f1;
  border-color: #f1c7bd;
  color: #9c3425;
}

.aitour-map-controls {
  display: grid;
  grid-template-columns: 54px;
  gap: 9px;
  position: absolute;
  right: 16px;
  top: 18px;
  z-index: 3;
}

.aitour-map-control {
  align-items: center;
  background: rgb(255 255 255 / 96%);
  border: 1px solid #e8ece6;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgb(33 55 42 / 13%);
  color: #24614f;
  display: flex;
  flex-direction: column;
  height: 52px;
  justify-content: center;
  min-width: 54px;
  padding: 4px;
  transition: background 140ms ease, transform 140ms ease;
}

.aitour-map-control:hover {
  background: #f0faf4;
  transform: translateY(-1px);
}

.aitour-map-control span {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.aitour-map-control small {
  font-size: 0.65rem;
  font-weight: 700;
}

.aitour-map-marker {
  align-items: center;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 12%;
  box-shadow: 0 3px 10px rgb(22 43 31 / 36%);
  color: #17684f;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 36px;
}

.aitour-map-marker-spot::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #16846d;
  content: "";
  left: 10px;
  position: absolute;
  top: 31px;
}

.aitour-map-marker > i,
.aitour-map-marker > img {
  border-radius: 50%;
  font-size: 17px;
  height: 25px;
  object-fit: cover;
  width: 25px;
}

.aitour-map-marker > i {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.aitour-map-marker > .aitour-bed-fallback {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.aitour-map-marker-spot {
  background: #16846d;
  color: #fff;
}

.aitour-map-marker-spot > img {
  height: 32px;
  width: 32px;
}

.aitour-map-marker-spot.is-chat-highlighted {
  animation: aitour-chat-marker-pulse 1.4s ease-in-out infinite;
  background: #d97706;
  box-shadow: 0 0 0 7px rgb(245 158 11 / 35%), 0 4px 18px rgb(22 43 31 / 55%);
  color: #fff;
  transform: scale(1.2);
  z-index: 2;
}

.aitour-map-marker-spot.is-chat-highlighted::after {
  border-top-color: #d97706;
}

@keyframes aitour-chat-marker-pulse {
  50% {
    box-shadow: 0 0 0 12px rgb(245 158 11 / 15%), 0 4px 18px rgb(22 43 31 / 55%);
  }
}

.aitour-user-location-marker {
  background: #1677d2;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgb(22 119 210 / 25%), 0 2px 8px rgb(22 43 31 / 40%);
  height: 18px;
  width: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .aitour-map-marker-spot.is-chat-highlighted {
    animation: none;
  }
}

.aitour-zoomable-image {
  cursor: zoom-in;
}

.aitour-image-zoom-dialog {
  background: #111a16;
  border: 0;
  border-radius: 12px;
  color: #fff;
  height: min(94vh, 1000px);
  max-height: 94vh;
  max-width: min(96vw, 1400px);
  overflow: hidden;
  padding: 12px;
  width: 96vw;
}

.aitour-image-zoom-dialog::backdrop {
  background: rgb(0 0 0 / 84%);
}

.aitour-image-zoom-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-height: 40px;
}

.aitour-image-zoom-toolbar span {
  color: #d7e0da;
  font-size: 0.85rem;
  margin-right: auto;
}

.aitour-image-zoom-toolbar button {
  background: #263a30;
  border: 1px solid #536a5d;
  border-radius: 8px;
  color: #fff;
  padding: 6px 12px;
}

.aitour-image-zoom-viewport {
  height: calc(100% - 44px);
  overflow: auto;
  text-align: center;
}

.aitour-image-zoom-viewport img {
  cursor: zoom-in;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.aitour-image-zoom-viewport img.is-zoomed {
  cursor: zoom-out;
  max-height: none;
  max-width: none;
  width: 175%;
}

.aitour-scenic-summary {
  background: rgb(255 255 255 / 95%);
  border: 1px solid rgb(227 234 224 / 95%);
  border-radius: 24px;
  bottom: 18px;
  box-shadow: 0 10px 34px rgb(24 51 35 / 21%);
  cursor: grab;
  box-sizing: border-box;
  max-height: calc(100% - 20px);
  max-width: calc(100% - 20px);
  min-height: 96px;
  min-width: 220px;
  overflow: auto;
  padding: 18px 20px;
  position: absolute;
  right: 18px;
  width: min(420px, calc(100% - 36px));
  z-index: 3;
}

.aitour-scenic-summary::after,
.aitour-chat-panel::after {
  background:
    repeating-linear-gradient(135deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) left 8px top 8px / 15px 15px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) right 8px top 8px / 15px 15px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) left 8px bottom 8px / 15px 15px no-repeat,
    repeating-linear-gradient(135deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) right 8px bottom 8px / 15px 15px no-repeat;
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.aitour-chat-panel::after {
  background:
    repeating-linear-gradient(135deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) left 7px top 7px / 15px 15px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) right 7px top 7px / 15px 15px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) left 7px bottom 7px / 15px 15px no-repeat,
    repeating-linear-gradient(135deg, transparent 0 3px, rgb(22 131 95 / 70%) 3px 4px, transparent 4px 7px) right 7px bottom 7px / 15px 15px no-repeat;
}

.aitour-scenic-summary.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.aitour-scenic-summary.is-dragging * {
  cursor: grabbing;
}

.aitour-scenic-summary[hidden] {
  display: none;
}

.aitour-scenic-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.aitour-scenic-summary-minimize,
.aitour-scenic-summary-restore {
  align-items: center;
  background: #e9f5ee;
  border: 0;
  border-radius: 50%;
  color: #0b7352;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  margin-left: auto;
  width: 34px;
}

.aitour-scenic-summary-minimize:hover,
.aitour-scenic-summary-minimize:focus-visible,
.aitour-scenic-summary-restore:hover,
.aitour-scenic-summary-restore:focus-visible {
  background: #0b7352;
  color: #fff;
}

.aitour-scenic-summary-minimize[hidden],
.aitour-scenic-summary-restore[hidden] {
  display: none;
}

.aitour-scenic-summary.is-minimized {
  height: auto !important;
  max-height: 82px;
  min-height: 0;
  overflow: hidden;
  resize: none;
}

.aitour-scenic-summary.is-minimized > .aitour-scenic-status,
.aitour-scenic-summary.is-minimized > .aitour-scenic-detail {
  display: none;
}

.aitour-scenic-summary.is-minimized .aitour-scenic-card-top {
  margin-bottom: 0;
}

.aitour-guide-badge {
  align-items: center;
  background: linear-gradient(110deg, #087752, #0b614d);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgb(17 116 81 / 24%);
  color: #fff;
  cursor: grab;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 9px;
  padding: 8px 9px 8px 14px;
}

.aitour-guide-badge:disabled {
  opacity: 1;
}

.aitour-scenic-details-status {
  color: #718078;
  padding: 0 24px 18px;
}

.aitour-scenic-details-status.is-error {
  color: #9c3425;
}


.aitour-guide-avatar {
  border: 2px solid rgb(255 255 255 / 75%);
  box-sizing: border-box;
  border-radius: 50%;
  height: 50px;
  object-fit: cover;
  flex: 0 0 50px;
  width: 50px;
}

.aitour-guide-arrow {
  align-items: center;
  background: #24ad78;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 50%;
  display: none;
  height: 28px;
  justify-content: center;
  margin-left: 2px;
  width: 28px;
}

.aitour-guide-arrow i {
  font-size: 0.75rem;
}

.aitour-scenic-summary h2 {
  color: #244b3a;
  font-size: 1.25rem;
  font-weight: 750;
  margin: 5px 0 8px;
}

.aitour-scenic-cover {
  border-radius: 14px;
  display: block;
  height: 128px;
  margin: 0 0 12px;
  object-fit: cover;
  width: 100%;
}

.aitour-scenic-detail {
  color: #697970;
  font-size: 0.87rem;
  line-height: 1.55;
}

.aitour-scenic-detail p {
  margin-bottom: 0.45rem;
}

.aitour-scenic-status {
  color: #64746a;
  font-size: 0.8rem;
}

.aitour-scenic-status.is-error {
  color: #9c3425;
}

.aitour-attraction-switcher {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 22px;
}

.aitour-attraction-button {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e9e1;
  border-radius: 999px;
  color: #4a6154;
  display: inline-flex;
  font-size: 0.84rem;
  gap: 8px;
  padding: 8px 14px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.aitour-contact-toggler {
 align-items: center;
 background: #204337;
 border: 0;
 border-radius: 50%;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 color: #fff;
 cursor: grab;
 display: inline-flex;
 flex: 0 0 44px;
 height: 44px;
 justify-content: center;
 margin-top: 8px;
 touch-action: none;
 width: 44px;
 z-index: 99998;
}

.aitour-contact-toggler.is-dragging {
 cursor: grabbing;
}

body.aitour-contact-options-hidden #wechat-floating {
 opacity: 0;
 pointer-events: none;
 transform: translateY(12px) scale(0.85);
 visibility: hidden;
}

#wechat-floating {
 transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

body:not(.aitour-contact-options-hidden) #wechat-floating {
 opacity: 1;
 pointer-events: auto;
 transform: none;
 visibility: visible;
}

body:not(.aitour-contact-options-hidden) #wechat-floating {
 bottom: 20px;
 left: auto;
 right: 72px;
}

.aitour-chat {
 align-items: flex-end;
 bottom: 20px;
 display: flex;
 flex-direction: column;
 position: fixed;
 right: 20px;
 z-index: 20;
}

.aitour-chat-launcher {
  align-items: center;
  background: linear-gradient(110deg, #087752, #0b614d);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 22px rgb(17 70 48 / 28%);
  color: #fff;
  cursor: grab;
  display: inline-flex;
  font-weight: 750;
  gap: 9px;
  padding: 9px 16px 9px 9px;
  touch-action: none;
}

.aitour-chat-launcher.is-dragging {
  cursor: grabbing;
}

.aitour-chat-launcher img,
.aitour-chat-header img {
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.aitour-chat-launcher i {
  font-size: 1.1rem;
  margin-left: 2px;
}

.aitour-chat-panel {
  background: #fff;
  border: 1px solid #dfe8df;
  box-sizing: border-box;
  border-radius: 20px;
  bottom: 66px;
  box-shadow: 0 14px 42px rgb(24 51 35 / 24%);
  display: flex;
  flex-direction: column;
  height: min(520px, calc(100dvh - 120px));
  max-height: calc(100dvh - 16px);
  max-width: calc(100vw - 16px);
  min-height: min(300px, calc(100dvh - 140px));
  min-width: min(280px, calc(100vw - 32px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(380px, calc(100vw - 32px));
}

.aitour-chat-panel[hidden] {
  display: none;
}

.aitour-chat-header {
  align-items: center;
  background: linear-gradient(110deg, #087752, #0b614d);
  color: #fff;
  cursor: grab;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  touch-action: none;
  user-select: none;
}

.aitour-chat-header.is-dragging {
  cursor: grabbing;
}

.aitour-chat-drag-handle {
  color: rgb(255 255 255 / 75%);
  cursor: grab;
  font-size: 1.25rem;
  line-height: 1;
}

.aitour-chat-header > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.35;
}

.aitour-chat-header > div span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.aitour-chat-close,
.aitour-chat-form button {
  align-items: center;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
}

.aitour-chat-close {
  background: rgb(255 255 255 / 15%);
  color: #fff;
  height: 34px;
  width: 34px;
}

.aitour-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 14px;
}

.aitour-chat-message {
  background: #f0f6f1;
  border-radius: 14px 14px 14px 4px;
  color: #29473a;
  line-height: 1.5;
  margin: 0;
  max-width: 90%;
  overflow-wrap: anywhere;
  padding: 9px 12px;
  white-space: pre-wrap;
}

.aitour-chat-message.is-user {
  align-self: flex-end;
  background: #e4f2e9;
  border-radius: 14px 14px 4px 14px;
}

.aitour-chat-message.is-error {
  background: #fff0ed;
  color: #92392d;
}

.aitour-chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 95%;
}

.aitour-chat-choice {
  background: #fff;
  border: 1px solid #b8d5c2;
  border-radius: 999px;
  color: #205842;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 7px 11px;
  text-align: left;
}

.aitour-chat-choice:hover,
.aitour-chat-choice:focus-visible {
  background: #e9f5ee;
  border-color: #3c9872;
  outline: 2px solid rgb(60 152 114 / 18%);
}

.aitour-chat-status {
  color: #63766b;
  font-size: 0.78rem;
  margin: 0;
  min-height: 1.15rem;
  padding: 0 14px;
}

.aitour-chat-status.is-error {
  color: #92392d;
}

.aitour-chat-form {
  align-items: flex-end;
  border-top: 1px solid #e8eee8;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
}

.aitour-chat-form textarea {
  border: 1px solid #dce5dc;
  border-radius: 12px;
  flex: 1;
  max-height: 110px;
  min-height: 42px;
  padding: 9px 10px;
  resize: vertical;
}

.aitour-chat-form textarea:focus {
  border-color: #3c9872;
  outline: 2px solid rgb(60 152 114 / 18%);
}

.aitour-chat-form button {
  background: #0b7352;
  color: #fff;
  flex: 0 0 40px;
  height: 40px;
}

.aitour-chat-form button:disabled {
  background: #a7b6ac;
  cursor: not-allowed;
}

.aitour-chat-form .aitour-chat-voice {
  background: #e9f5ee;
  color: #0b7352;
  flex: 0 0 40px;
  height: 40px;
}

.aitour-chat-form .aitour-chat-voice[hidden] {
  display: none;
}

.aitour-chat-form .aitour-chat-voice.is-listening {
  background: #b83d32;
  color: #fff;
}

.aitour-chat-form .aitour-chat-voice:focus-visible {
  outline: 2px solid #3c9872;
  outline-offset: 2px;
}

.aitour-chat-note {
  color: #718078;
  font-size: 0.68rem;
  margin: 0;
  padding: 0 14px 9px;
}

.aitour-attraction-button:hover,
.aitour-attraction-button[aria-pressed="true"] {
  background: #e9f5ee;
  border-color: #9dd1b5;
  color: #17684f;
}

.aitour-attraction-dot {
  background: #c3cdc3;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.aitour-attraction-button[aria-pressed="true"] .aitour-attraction-dot {
  background: #148568;
  box-shadow: 0 0 0 3px rgb(20 133 104 / 13%);
}

.aitour-info-dialog {
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgb(15 35 25 / 30%);
  color: #30443a;
  max-height: min(86vh, 880px);
  max-width: min(760px, calc(100vw - 28px));
  overflow: auto;
  padding: 0;
  width: 680px;
}

.aitour-info-dialog::backdrop {
  background: rgb(17 33 25 / 55%);
  backdrop-filter: blur(3px);
}

.aitour-info-dialog[open] {
  animation: aitour-dialog-in 160ms ease-out;
}

.aitour-info-dialog[hidden],
.aitour-info-dialog [hidden] {
  display: none !important;
}

.aitour-info-dialog-header {
  align-items: flex-start;
  background: linear-gradient(135deg, #f3f8f2, #fff);
  border-bottom: 1px solid #e8eee8;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

.aitour-info-eyebrow {
  color: #19836a;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.aitour-info-dialog-header h2 {
  color: #23483a;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 750;
  line-height: 1.2;
  margin: 0;
}

.aitour-info-image {
  background: #17231d;
  padding: 14px 24px;
}

.aitour-info-image img {
  border-radius: 12px;
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
  max-height: min(42vh, 420px);
  max-width: 100%;
  object-fit: contain;
}

.aitour-info-image-frame {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: fit-content;
}

.aitour-hotel-image-controls {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: space-between;
  padding: 8px;
  pointer-events: none;
  position: absolute;
}

.aitour-hotel-image-controls button {
  background: rgb(0 0 0 / 65%);
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  color: #fff;
  height: 38px;
  pointer-events: auto;
  width: 38px;
}

.aitour-hotel-image-controls button:disabled {
  opacity: 0.45;
}

.aitour-hotel-image-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.aitour-hotel-image-controls span {
  align-self: flex-end;
  background: rgb(0 0 0 / 65%);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  padding: 3px 9px;
}

.aitour-info-close {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e9e2;
  border-radius: 50%;
  color: #52665a;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.6rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
}

.aitour-info-close:hover {
  background: #e9f5ee;
  color: #17684f;
}

.aitour-info-content {
  color: #5b6d62;
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 20px 24px 8px;
}

.aitour-info-content p {
  margin: 0 0 12px;
}

.aitour-info-content strong {
  color: #304d3f;
}

.aitour-info-description {
  white-space: pre-line;
}

.aitour-hotel-details-link {
  background: #0b7352;
  border: 1px solid #0b7352;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  padding: 8px 16px;
  text-decoration: none;
}

.aitour-hotel-details-link:hover,
.aitour-hotel-details-link:focus-visible {
  background: #075b41;
  color: #fff;
}

.aitour-hotel-details-link:focus-visible {
  outline: 3px solid #80bca2;
  outline-offset: 2px;
}

.aitour-hotel-rating {
  align-items: center;
  color: #b7791f;
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
}

.aitour-hotel-rating span:first-child {
  color: #d2911c;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.aitour-hotel-highlights ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.aitour-hotel-highlights li + li {
  margin-top: 0.25rem;
}

.aitour-info-loading,
.aitour-info-empty {
  color: #718078;
}

.aitour-info-error {
  background: #fff4f1;
  border: 1px solid #f1c7bd;
  border-radius: 12px;
  color: #9c3425;
  padding: 12px 14px;
}

.aitour-info-media {
  background: #17231d;
  margin-top: 8px;
  padding: 16px 24px;
}

.aitour-info-media img,
.aitour-info-media video {
  display: block;
  margin: 0 auto;
  max-height: min(48vh, 480px);
  max-width: 100%;
  object-fit: contain;
}

.aitour-info-media video {
  width: 100%;
}

.aitour-info-media audio {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  width: 560px;
}

.aitour-audio-narration,
.aitour-audio-status {
  color: #eef4ef;
  line-height: 1.6;
  margin: 8px auto 0;
  max-width: 560px;
  white-space: pre-line;
}

.aitour-audio-narration strong,
.aitour-audio-status strong {
  color: #fff;
}

.aitour-info-media-controls {
  align-items: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.aitour-info-media-controls button {
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  height: 36px;
  width: 36px;
}

.aitour-info-media-error {
  color: #ffd8cf;
  margin: 10px 0 0;
  text-align: center;
}

.aitour-info-nearby {
  border-top: 1px solid #e8eee8;
  padding: 16px 24px 20px;
}

.aitour-info-nearby[hidden] {
  display: none;
}

.aitour-info-nearby-button {
  background: #e9f5ee;
  border: 1px solid #c9e5d4;
  border-radius: 999px;
  color: #17684f;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
}

.aitour-info-nearby-button:hover {
  background: #d7eddf;
}

.aitour-info-nearby #aitour-nearby-status {
  color: #718078;
  margin-top: 10px;
}

.aitour-info-nearby #aitour-nearby-status.is-error {
  color: #9c3425;
}

.aitour-nearby-list {
  list-style: none;
  padding-left: 0;
}

.aitour-nearby-list li + li {
  border-top: 1px solid #e6e9ed;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

@keyframes aitour-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aitour-nearby-list {
  list-style: none;
  padding-left: 0;
}

.aitour-nearby-list li + li {
  border-top: 1px solid #e6e9ed;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .aitour-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .aitour-map-workspace {
    height: clamp(520px, calc(100svh - 180px), 820px);
  }

  .aitour-map-left {
    width: 180px;
  }

  .aitour-map .maplibregl-ctrl-bottom-left {
    left: 205px;
  }
}

@media (max-width: 767.98px) {
  .aitour-scenic-summary {
    display: none !important;
  }

  .aitour-chat {
    bottom: 12px;
    right: 12px;
  }

  .aitour-chat-panel {
    bottom: 58px;
    height: min(420px, calc(100dvh - 90px));
    max-height: calc(100dvh - 90px);
    min-height: min(250px, calc(100dvh - 100px));
    min-width: min(280px, calc(100vw - 24px));
    width: min(340px, calc(100vw - 24px));
  }

  .aitour-page {
    padding: 12px 10px 28px;
  }

  .aitour-page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .aitour-header-content {
    flex: 1 1 100%;
    min-width: 0;
  }

  .aitour-eyebrow-wrapper {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .aitour-tour-badge,
  .aitour-tour-badge strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .aitour-back-link {
    max-width: 100%;
    font-size: 0.75rem;
    padding: 0.55rem 0.75rem;
  }

  .aitour-map-workspace {
    border-radius: 18px;
    height: clamp(460px, 78svh, 820px);
  }

  .aitour-map-left {
    gap: 7px;
    left: 9px;
    top: 58px;
    width: min(190px, calc(100% - 70px));
  }

  .aitour-map-picker,
  .aitour-map-legend {
    border-radius: 13px;
    padding: 8px;
  }

  .aitour-map-legend:not(.is-expanded) .aitour-map-legend-content {
    display: none;
  }

  .aitour-map-legend:not(.is-expanded) .aitour-map-legend-heading {
    margin-bottom: 0;
  }

  .aitour-map-legend-toggle {
    cursor: pointer;
    min-height: 28px;
  }

  .aitour-map-categories {
    max-height: min(27svh, 220px);
  }

  .aitour-map-status {
    left: 9px;
    max-width: none;
    right: 62px;
    top: 9px;
    transform: none;
  }

  .aitour-map-controls {
    gap: 6px;
    grid-template-columns: 45px;
    right: 8px;
    top: 58px;
  }

  .aitour-map-control {
    border-radius: 13px;
    height: 45px;
    min-width: 45px;
  }

  .aitour-scenic-summary {
    border-radius: 17px;
    bottom: 10px;
    max-height: calc(100% - 20px);
    padding: 12px 14px;
    right: 9px;
    width: min(370px, calc(100% - 18px));
    overscroll-behavior: contain;
  }

  .aitour-scenic-summary > .aitour-scenic-status,
  .aitour-scenic-summary > .aitour-scenic-detail {
    display: none;
  }

  .aitour-scenic-summary .aitour-scenic-card-top {
    margin-bottom: 0;
  }

  .aitour-map .maplibregl-ctrl-bottom-left {
    left: 8px;
  }

  .aitour-info-dialog {
    border-radius: 18px;
    margin: auto;
    max-height: calc(100svh - 20px);
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
  }

  .aitour-info-image {
    padding: 10px 14px;
  }

  .aitour-info-image img {
    max-height: 32svh;
  }

  .aitour-info-dialog-header {
    padding: 17px 18px 14px;
  }

  .aitour-info-content {
    padding: 16px 18px 6px;
  }

  .aitour-info-media {
    padding: 12px 16px;
  }

  .aitour-info-nearby {
    padding: 14px 18px 17px;
  }

  .aitour-image-zoom-dialog {
    border-radius: 8px;
    height: calc(100svh - 16px);
    max-height: calc(100svh - 16px);
    max-width: calc(100vw - 16px);
    padding: 8px;
    width: calc(100vw - 16px);
  }

  .aitour-image-zoom-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }

  .aitour-image-zoom-toolbar span {
    flex: 1 0 100%;
    font-size: 0.75rem;
  }

  .aitour-image-zoom-toolbar button {
    padding: 6px 9px;
  }

  .aitour-attraction-button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .aitour-chat-panel {
    height: min(390px, calc(100dvh - 90px));
    width: min(320px, calc(100vw - 24px));
  }

  .aitour-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .aitour-map-workspace {
    height: clamp(440px, 76svh, 760px);
  }

  .aitour-map-left {
    width: min(168px, calc(100% - 66px));
  }

  .aitour-map-picker,
  .aitour-map-legend {
    padding: 7px;
  }

  .aitour-map-picker .form-select {
    font-size: 0.78rem;
  }

  .aitour-map-status {
    font-size: 0.7rem;
    padding: 7px 9px;
  }

  .aitour-map-controls {
    gap: 5px;
  }

  .aitour-map-control {
    height: 40px;
    min-width: 40px;
  }

  .aitour-scenic-summary {
    max-height: calc(100% - 20px);
    padding: 10px;
    width: calc(100% - 18px);
  }

  .aitour-guide-badge {
    cursor: grab;
    font-size: 0.78rem;
    gap: 6px;
    padding: 6px 9px;
  }

  .aitour-guide-badge:focus-visible,
  .aitour-map-legend-toggle:focus-visible {
    outline: 3px solid #82c9a8;
    outline-offset: 3px;
  }

  .aitour-guide-arrow {
    display: inline-flex;
  }

  .aitour-guide-arrow i {
    transform: rotate(180deg);
    transition: transform 140ms ease;
  }

  .aitour-guide-badge[aria-expanded="true"] .aitour-guide-arrow i {
    transform: rotate(0);
  }

  .aitour-guide-avatar {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
  }

  .aitour-info-dialog-header {
    gap: 10px;
    padding: 14px;
  }

  .aitour-info-content {
    padding: 14px 14px 6px;
  }

  .aitour-info-media {
    padding: 10px;
  }

  .aitour-info-nearby {
    padding: 12px 14px 15px;
  }

  .aitour-scenic-details-status {
    padding: 0 14px 14px;
  }
}

@media (max-width: 767.98px) and (max-height: 600px) {
  .aitour-map-workspace {
    height: clamp(340px, calc(100svh - 110px), 500px);
  }

  .aitour-map-categories {
    max-height: 20svh;
  }

  .aitour-scenic-summary {
    max-height: calc(100% - 20px);
  }
}

@media (max-width: 767.98px) and (orientation: portrait) {
  .aitour-map-workspace {
    height: clamp(480px, 72svh, 820px);
  }

  .aitour-map-left {
    top: 62px;
  }

  .aitour-scenic-summary:not([hidden]) {
    bottom: 8px;
    left: 8px;
    max-height: calc(100% - 16px);
    right: 8px;
    width: auto;
    z-index: 5;
  }
}

@media (max-width: 767.98px) and (orientation: landscape) {
  .aitour-page {
    padding-bottom: 12px;
    padding-top: 8px;
  }

  .aitour-page-heading {
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 8px;
  }

  .aitour-header-content {
    flex: 1 1 auto;
  }

  .aitour-eyebrow-wrapper {
    align-items: center;
  }

  .aitour-map-workspace {
    height: clamp(300px, calc(100svh - 115px), 620px);
    min-height: 0;
  }

  .aitour-map-left {
    top: 9px;
    width: min(170px, 34%);
  }

  .aitour-map-categories {
    max-height: 30svh;
  }

  .aitour-map-controls {
    top: 9px;
  }

  .aitour-scenic-summary:not([hidden]) {
    bottom: 8px;
    max-height: calc(100% - 16px);
    right: 60px;
    width: min(390px, 52%);
    z-index: 5;
  }

  .aitour-scenic-cover {
    height: 72px;
  }
}

  .aitour-data-source {
    position: absolute;
    bottom: 32px;
    right: 12px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20, 33, 29, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  }

  .aitour-data-source a {
    color: #FBBF24;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .aitour-data-source a:hover {
    color: #FFFFFF;
    text-decoration: underline;
  }

  @media (max-width: 767.98px) {
    .aitour-data-source {
      bottom: auto;
      top: 12px;
      right: 12px;
    }
  }