/* OutsideThailand — World Rooms (Isometric Game UI) */
:root {
  --brand-navy: #1a476e;
  --brand-yellow: #f9c80e;
  --brand-teal: #2a9d8f;
  --room-shadow: 0 12px 40px rgba(26, 71, 110, 0.25);
}

.world-hq {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f1b2d 0%, #1a2a42 40%, #243b55 100%);
  padding: 0 0 6rem;
  overflow-x: hidden;
}

/* Header logo — 1:1 สี่เหลี่ยมจัตุรัส */
.site-header__brand {
  flex: 0 0 auto;
  line-height: 0;
}

@media (max-width: 380px) {
  .site-header__logo-img {
    width: 32px;
    height: 32px;
  }
}

/* Homepage hero — มืออาชีพ อ่านง่าย */
.home-hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .home-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.home-hero__brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-hero__copy h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.home-hero__desc {
  color: #b8cfe8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.home-hero__perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero__perks li {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94b8dc;
  font-size: 0.8rem;
}

.home-hero__perks strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.home-hero__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .home-hero__nav { grid-template-columns: repeat(3, 1fr); }
}

.home-hero__nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #e2e8f0;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.home-hero__nav-item:hover {
  border-color: var(--brand-yellow);
  background: rgba(249, 200, 14, 0.1);
  transform: translateY(-2px);
  color: #fff;
}

.home-hero__nav-item .ico { font-size: 1.5rem; }
.home-hero__nav-item .name { font-size: 0.82rem; font-weight: 700; }
.home-hero__nav-item .from { font-size: 0.7rem; color: var(--brand-yellow); }

.world-page .btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.world-page .btn-ghost:hover {
  border-color: var(--brand-yellow);
  background: rgba(249, 200, 14, 0.1);
  color: #fff;
}

/* Blog strip — หน้าแรก */
.world-blog-strip {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.world-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.world-strip-head h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
}

.world-strip-link {
  color: var(--brand-yellow);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.world-strip-link:hover { color: #ffe566; }

.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.blog-home-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #e2e8f0;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-home-card:hover {
  border-color: var(--brand-yellow);
  transform: translateY(-2px);
  color: #fff;
}

.blog-home-card h3 {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.blog-home-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.blog-home-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

.world-strip-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.tour-mini-card--static { cursor: default; }
.review-snippet {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
  color: #b8c9e0;
}

/* Building grid */
.world-building {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Room card — isometric feel */
.world-room {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transform: perspective(800px) rotateX(2deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: var(--room-shadow);
  border: 3px solid rgba(255,255,255,0.15);
  animation: roomFloat 4s ease-in-out infinite;
}

.world-room:nth-child(2n) { animation-delay: -1s; }
.world-room:nth-child(3n) { animation-delay: -2s; }
.world-room:nth-child(5n) { animation-delay: -0.5s; }

@keyframes roomFloat {
  0%, 100% { transform: perspective(800px) rotateX(2deg) translateY(0); }
  50% { transform: perspective(800px) rotateX(2deg) translateY(-6px); }
}

.world-room:hover {
  transform: perspective(800px) rotateX(0deg) translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(249, 200, 14, 0.25);
  z-index: 10;
}

.world-room:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

/* Room header bar */
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.room-status {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
}

.room-status.hot { background: #ff6b6b; color: #fff; }
.room-status.ready { background: #06d6a0; color: #0a2e1f; }
.room-status.new { background: var(--brand-yellow); color: var(--brand-navy); }

/* Room interior scene */
.room-scene {
  position: relative;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.room-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--room-bg);
  opacity: 0.95;
}

.room-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

.room-icon {
  position: relative;
  z-index: 2;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: iconBounce 2.5s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Per-country themes */
.room-maldives { --room-bg: linear-gradient(160deg, #0077b6, #00b4d8, #90e0ef); }
.room-japan { --room-bg: linear-gradient(160deg, #ff6b9d, #c9184a, #ff8fab); }
.room-korea { --room-bg: linear-gradient(160deg, #7b2cbf, #9d4edd, #c77dff); }
.room-vietnam { --room-bg: linear-gradient(160deg, #2d6a4f, #40916c, #52b788); }
.room-singapore { --room-bg: linear-gradient(160deg, #e63946, #f4a261, #ffd166); }
.room-hongkong { --room-bg: linear-gradient(160deg, #3a0ca3, #7209b7, #f72585); }
.room-switzerland { --room-bg: linear-gradient(160deg, #4cc9f0, #4895ef, #4361ee); }
.room-italy { --room-bg: linear-gradient(160deg, #e85d04, #f48c06, #ffba08); }
.room-france { --room-bg: linear-gradient(160deg, #264653, #2a9d8f, #e9c46a); }
.room-uk { --room-bg: linear-gradient(160deg, #1d3557, #457b9d, #a8dadc); }
.room-taiwan { --room-bg: linear-gradient(160deg, #06d6a0, #118ab2, #073b4c); }
.room-europe { --room-bg: linear-gradient(160deg, #5c4d7d, #8e7cc3, #c9b1ff); }

/* Animated elements per room */
.room-deco {
  position: absolute;
  z-index: 1;
  font-size: 1.2rem;
  opacity: 0.7;
  animation: decoDrift 6s ease-in-out infinite;
}

@keyframes decoDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5px, -8px) rotate(5deg); }
  66% { transform: translate(-5px, -4px) rotate(-3deg); }
}

.room-maldives .deco1 { top: 15%; left: 10%; animation-delay: 0s; }
.room-maldives .deco2 { top: 25%; right: 15%; animation-delay: -2s; }
.room-japan .deco1 { top: 10%; right: 20%; content: '🌸'; }
.room-japan .deco2 { top: 30%; left: 15%; }
.room-korea .deco1 { top: 20%; left: 20%; }
.room-europe .deco1 { top: 15%; right: 10%; }

/* Room footer info */
.room-footer {
  padding: 0.75rem;
  background: rgba(15, 27, 45, 0.9);
  color: #e2e8f0;
}

.room-footer h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.room-footer p {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}

.room-price {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

/* Lobby / HQ center room spans 2 cols on desktop */
.world-room.lobby {
  grid-column: span 1;
  border-color: var(--brand-yellow);
}

.world-room.lobby .room-scene { height: 180px; }
.world-room.lobby { --room-bg: linear-gradient(160deg, var(--brand-navy), #2a5a8a, var(--brand-teal)); }

@media (min-width: 768px) {
  .world-room.lobby { grid-column: span 2; }
  .world-building { grid-template-columns: repeat(4, 1fr); }
}

/* Welcome sign */
.world-welcome {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 1rem;
}

.welcome-sign {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-navy), #2a5a8a);
  border: 3px solid var(--brand-yellow);
  border-radius: 16px;
  padding: 1rem 2rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(249, 200, 14, 0.2);
}

.welcome-sign span { color: var(--brand-yellow); }

/* Featured tours strip below rooms */
.world-tours-strip {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.world-tours-strip h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tours-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tour-mini-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.25s;
}

.tour-mini-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--brand-yellow);
  transform: translateY(-3px);
}

.tour-mini-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.tour-mini-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tour-mini-card:hover .tour-mini-card__img img {
  transform: scale(1.05);
}

.tour-mini-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(15,22,41,0.85);
  color: var(--brand-yellow);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(249,200,14,0.35);
}

.tour-mini-card__body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-mini-card h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.tour-mini-card .meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

.tour-mini-card .price {
  color: var(--brand-yellow);
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tour-mini-card--static {
  padding: 1rem;
}

/* NPC Guide — น้องแมวเที่ยว มุมขวาล่าง */
.npc-guide {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  width: 96px;
}

.npc-guide.is-open .npc-teaser { display: none; }

.npc-character-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.npc-character-label {
  display: block;
  margin-bottom: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--brand-navy);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.npc-character-wrap .npc-cat-svg {
  width: 88px;
  height: auto;
  transition: transform 0.3s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45));
  animation: npcIdle 2s ease-in-out infinite;
}

.npc-character-wrap:hover .npc-cat-svg { transform: scale(1.06); }

.npc-hot-dot {
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 1rem;
  z-index: 2;
  animation: npcHotPulse 1.5s ease-in-out infinite;
}

@keyframes npcHotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes npcIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.npc-teaser {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  max-width: min(200px, calc(100vw - 48px));
  padding: 0.45rem 0.75rem;
  background: rgba(15, 27, 45, 0.95);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  border-radius: 12px 12px 4px 12px;
  border: 2px solid var(--brand-yellow);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  cursor: pointer;
  animation: npcTeaserPop 0.35s ease;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.npc-teaser:hover {
  background: rgba(26, 71, 110, 0.98);
  border-color: #ffe566;
}

@keyframes npcTeaserPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.npc-bubble {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  max-width: 320px;
  width: min(320px, calc(100vw - 32px));
  max-height: min(75vh, 480px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 3px solid var(--brand-yellow);
  animation: bubblePop 0.3s ease;
}

.npc-bubble.open { display: block; }

.npc-bubble__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.npc-bubble__close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #edf2f7;
  color: #4a5568;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}

.npc-bubble__close:hover { background: #e2e8f0; }

.npc-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  border: 10px solid transparent;
  border-top-color: var(--brand-yellow);
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.npc-bubble h4 {
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.npc-bubble p {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.npc-bubble .npc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.npc-bubble .npc-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* กัน .world-page a ทับสีปุ่ม — ต้อง contrast ชัด */
.npc-guide .npc-btn-primary {
  background: var(--brand-navy);
  color: #fff !important;
}

.npc-guide .npc-btn-primary:hover {
  background: #243b55;
  color: #fff !important;
}

.npc-guide .npc-btn-chat {
  background: #1a8f7a;
  color: #fff !important;
}

.npc-guide .npc-btn-chat:hover {
  background: #157a68;
  color: #fff !important;
}

.npc-guide .npc-btn-line {
  background: #06c755;
  color: #fff !important;
}

.npc-guide a.npc-tour-detail {
  color: #fff !important;
  font-size: 0.88rem;
  padding: 0.75rem;
}

.npc-guide a.npc-tour-detail:hover {
  background: #243b55;
  color: #fff !important;
}

.npc-messages {
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.npc-msg-text {
  font-size: 0.82rem;
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.npc-tour-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  max-height: 200px;
  overflow-y: auto;
}

.npc-tour-option {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  padding: 0.55rem;
  border-radius: 10px;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.npc-tour-option:hover { border-color: var(--brand-teal); }

.npc-tour-option.is-active {
  border-color: var(--brand-yellow);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.npc-tour-option__thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.npc-tour-option__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npc-tour-option__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.npc-tour-option__body strong {
  font-size: 0.75rem;
  color: var(--brand-navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npc-tour-option__meta { font-size: 0.65rem; color: #718096; }
.npc-tour-option__price { font-size: 0.72rem; font-weight: 800; color: #c53030; }

.npc-tour-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.npc-nav-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #cbd5e0;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-navy) !important;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.npc-nav-btn:hover {
  border-color: var(--brand-yellow);
  background: #fffbeb;
}

.npc-nav-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a5568;
  min-width: 48px;
  text-align: center;
}

.npc-tour-detail {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.npc-tour-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.npc-tour-card:hover {
  transform: translateX(-3px);
  border-color: var(--brand-teal, #2a9d8f);
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.2);
}

.npc-tour-card.is-active {
  border-color: var(--brand-yellow);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 4px 16px rgba(249, 200, 14, 0.25);
}

.npc-tour-thumb {
  position: relative;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.npc-tour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npc-tour-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  background: rgba(26, 71, 110, 0.9);
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.npc-tour-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.npc-tour-info strong {
  font-size: 0.78rem;
  color: var(--brand-navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npc-tour-meta {
  font-size: 0.68rem;
  color: #718096;
}

.npc-tour-price {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c53030;
}

.npc-tour-cta {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.npc-hint {
  font-size: 0.7rem;
  color: #a0aec0;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.npc-btn-secondary {
  background: #edf2f7;
  color: var(--brand-navy);
}

/* ===== GLOBAL THEME — ทุกหน้า ===== */
body.world-page {
  background: linear-gradient(180deg, #0f1b2d 0%, #1a2a42 50%, #243b55 100%);
  min-height: 100vh;
  color: #e2e8f0;
}

.world-main { min-height: 60vh; }

.world-inner {
  padding: 0 0 4rem;
  min-height: 60vh;
  background: transparent;
}

.world-page .world-inner > .section:first-of-type {
  padding-top: 1rem;
}

.world-page .empty-hint {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
}

/* Page hero — ทุกหน้าย่อย ธีมเดียวกับหน้าแรก */
.world-page .page-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249, 200, 14, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(26,71,110,0.55) 0%, transparent 100%);
  padding: 2.5rem 0 1.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(249, 200, 14, 0.2);
}

.world-page .page-hero-inner { position: relative; }

.world-page .page-hero-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(249, 200, 14, 0.12);
  border: 1px solid rgba(249, 200, 14, 0.3);
  color: var(--brand-yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.world-page .page-hero-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.world-page .page-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.world-page .page-hero-sub,
.world-page .page-hero p {
  color: #a8c5e8 !important;
  max-width: 640px;
  margin: 0.65rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
}

.world-page .page-hero--tour { text-align: left; }
.world-page .page-hero-tags { margin-bottom: 0.75rem; justify-content: flex-start; }

.world-page .text-muted,
.world-page [style*="--text-muted"] {
  color: #94a3b8 !important;
}

.world-page .blog-excerpt { font-size: 0.9rem; color: #94a3b8; margin-bottom: 0.5rem; }
.world-page .blog-read-more { color: var(--brand-yellow); font-weight: 700; }

/* Blog article — อ่านง่าย จัดอักษรชัด */
.article-section { padding-top: 0.5rem; padding-bottom: 3rem; }

.article-container {
  max-width: 42rem;
  margin: 0 auto;
}

.article-meta {
  margin-top: 0.85rem !important;
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}

.article-body .info-box {
  padding: 2rem 2.25rem;
}

.article-content {
  font-family: 'Sarabun', sans-serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: #e8edf4;
  letter-spacing: 0.015em;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content p {
  margin: 0 0 1.4rem;
}

.article-content .article-lead {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #cbd5e1;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-content h2 {
  font-family: 'M PLUS Rounded 1c', 'Sarabun', sans-serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(249, 200, 14, 0.28);
}

.article-content h2:first-of-type { margin-top: 0.5rem; }

.article-content h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 1.75rem 0 0.75rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.35rem;
  line-height: 1.75;
}

.article-content li::marker {
  color: var(--brand-yellow);
  font-weight: 700;
}

.article-content strong {
  color: #fff;
  font-weight: 700;
}

.article-content a {
  color: var(--brand-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-content a:hover {
  color: #ffe566;
}

.article-content img,
.article-content .article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.75rem 0 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.article-content .article-figure {
  margin: 0 0 2rem;
}

.article-content .article-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
}

.article-content .article-tip {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  background: rgba(249, 200, 14, 0.1);
  border-left: 4px solid var(--brand-yellow);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.article-content .article-tip strong {
  color: var(--brand-yellow);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .article-body .info-box {
    padding: 1.35rem 1.15rem;
  }

  .article-content {
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .article-content .article-lead {
    font-size: 1.1rem;
  }

  .article-content h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }

  .article-footer .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }
}

/* Sections */
.world-page .section {
  padding: 2rem 0;
  background: transparent;
}

.world-page .section-alt {
  background: rgba(0,0,0,0.15);
}

.world-page .section-header h2 { color: #fff; }
.world-page .section-header p { color: #94a3b8; }

/* Game tour cards — รูปคนเที่ยวสนุก */
.tour-card--game {
  background: rgba(15, 27, 45, 0.85);
  border: 2px solid rgba(249, 200, 14, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tour-card--game:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-yellow);
  box-shadow: 0 20px 50px rgba(249, 200, 14, 0.2);
}

.tour-card--game .tour-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--brand-navy);
}

.tour-card--game .tour-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s, opacity 0.3s;
}

.tour-card--game:hover .tour-card-bg {
  transform: scale(1.08);
  opacity: 0.65;
}

.tour-card--game .tour-card-traveler {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 95%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  filter: drop-shadow(-4px 0 12px rgba(0,0,0,0.4));
  transition: transform 0.4s ease;
}

.tour-card--game:hover .tour-card-traveler {
  transform: scale(1.05) translateY(-4px);
}

.tour-card--game .tour-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,71,110,0.5) 0%, transparent 50%, rgba(249,200,14,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.tour-card-fun-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(249, 200, 14, 0.95);
  color: var(--brand-navy);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  animation: funPulse 2s ease-in-out infinite;
}

@keyframes funPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tour-card--game .tour-badge {
  z-index: 3;
  top: auto;
  bottom: 50px;
  left: 12px;
}

.tour-card--game .tour-price-tag {
  z-index: 3;
  background: rgba(15, 27, 45, 0.92);
  color: var(--brand-yellow);
  border: 2px solid var(--brand-yellow);
}

.tour-card--game .tour-card-body {
  background: rgba(15, 27, 45, 0.95);
  color: #e2e8f0;
}

.tour-card--game h3 a { color: #fff; }
.tour-card--game h3 a:hover { color: var(--brand-yellow); }
.tour-card--game .tour-tag {
  background: rgba(255,255,255,0.1);
  color: #cbd5e1;
}
.tour-card--game .tour-highlights { color: #94a3b8; }
.tour-card--game .tour-departure { color: var(--brand-teal); }

/* Info boxes, forms — dark theme */
.world-page .info-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.world-page .info-box h3 {
  color: #fff;
  border-bottom-color: rgba(249, 200, 14, 0.3);
}

.world-page .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.world-page .form-control::placeholder { color: #64748b; }
.world-page .form-control:focus {
  border-color: var(--brand-yellow);
  background: rgba(255,255,255,0.12);
}

.world-page .filter-bar select {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.world-page .btn-secondary {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.world-page .btn-secondary:hover {
  background: rgba(249, 200, 14, 0.2);
  border-color: var(--brand-yellow);
  color: #fff;
}

.world-page .btn-primary {
  background: linear-gradient(135deg, var(--brand-yellow), #e6b800);
  color: var(--brand-navy);
  box-shadow: 0 4px 16px rgba(249, 200, 14, 0.35);
}

.world-page .price-box {
  background: rgba(15, 27, 45, 0.95);
  border-color: var(--brand-yellow);
  color: #e2e8f0;
}

.world-page .price-box .price { color: var(--brand-yellow); }

.world-page .faq-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.world-page .faq-question { color: #fff; }

.world-page .review-card {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--brand-yellow);
  color: #e2e8f0;
}

.world-page .why-card,
.world-page .type-card,
.world-page .dest-card,
.world-page .blog-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
}

.world-page .why-card h3,
.world-page .type-card h3,
.world-page .dest-card h4,
.world-page .blog-card h3 { color: #fff; }

.world-page .cta-section {
  background: linear-gradient(135deg, var(--brand-navy), #2a5a8a);
  border: 2px solid var(--brand-yellow);
}

.world-page .wizard-card {
  background: rgba(15, 27, 45, 0.95);
  border: 2px solid rgba(249, 200, 14, 0.25);
  color: #e2e8f0;
}

.world-page .wizard-card h3 { color: #fff; }
.world-page .wizard-option {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

.world-page .wizard-option.selected,
.world-page .wizard-option:hover {
  border-color: var(--brand-yellow);
  background: rgba(249, 200, 14, 0.15);
}

.world-page .itinerary-day h4 { color: #fff; }
.world-page .inclusion-item { background: rgba(255,255,255,0.06); color: #e2e8f0; }

.world-page .tour-gallery-main,
.world-page .tour-detail-hero-img {
  position: relative;
  border: 3px solid rgba(249, 200, 14, 0.3);
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
}

.tour-detail-hero-img .detail-bg {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  opacity: 1;
}

.world-page .tour-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.world-page .tour-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: 1;
  min-height: 72px;
}

.world-page .tour-gallery-thumb.is-active {
  border-color: var(--brand-yellow);
}

.world-page .tour-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-detail-hero-img .detail-traveler {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 45%;
  max-height: 90%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  z-index: 2;
}

.world-page .sticky-book-bar {
  background: rgba(15, 27, 45, 0.98);
  border-top: 2px solid var(--brand-yellow);
}

.world-page a { color: var(--brand-teal); }
.world-page a:hover { color: var(--brand-yellow); }

/* About us + SEO — หน้าแรก */
.world-about {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1rem 2rem;
}

.world-about-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(249, 200, 14, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  color: #d4e4f7;
}

.world-about-inner h2 {
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
}

.world-about-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-size: 1rem;
}

.world-about-lead strong { color: var(--brand-yellow); }

.world-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .world-about-grid { grid-template-columns: 1fr 1fr; }
}

.world-about-card {
  background: rgba(15, 27, 45, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.25rem;
}

.world-about-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.world-about-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.world-about-card ul li::before {
  content: '✓ ';
  color: var(--brand-yellow);
  font-weight: 700;
}

.world-about-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.world-about-countries-title {
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.world-about-countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.world-about-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #e2e8f0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: center;
}

.world-about-country:hover {
  border-color: var(--brand-yellow);
  background: rgba(249, 200, 14, 0.1);
  transform: translateY(-2px);
  color: #fff;
}

.world-about-country .ico { font-size: 1.5rem; }
.world-about-country .name { font-weight: 700; font-size: 0.85rem; }
.world-about-country .from { font-size: 0.72rem; color: var(--brand-yellow); }

.world-about-footer {
  text-align: center;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
}

.world-about-footer a {
  color: var(--brand-yellow);
  font-weight: 700;
}

/* Footer dark */
body.world-page .site-footer {
  background: #0a1220;
  border-top: 2px solid rgba(249, 200, 14, 0.2);
  margin-top: 0;
}

/* Header override for dark world page */
body.world-page .site-header {
  background: rgba(15, 27, 45, 0.95);
  border-bottom-color: rgba(249, 200, 14, 0.3);
}

body.world-page .site-header .logo,
body.world-page .site-header__brand,
body.world-page .nav-desktop a { color: #fff; }
body.world-page .nav-desktop a:hover { background: rgba(249, 200, 14, 0.2); }
body.world-page .nav-toggle { background: var(--brand-yellow); color: var(--brand-navy); }
body.world-page .nav-mobile { background: #1a2a42; }
body.world-page .nav-mobile a { color: #fff; background: rgba(255,255,255,0.08); }

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

/* Hide old chat fab on world page */
body.world-page .chat-fab,
body.world-page .chat-panel { display: none !important; }

/* ===== Booking / Live Chat ===== */
.booking-hero p { color: #a0aec0; max-width: 560px; }
.booking-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.booking-sidebar__card {
  background: rgba(15, 27, 45, 0.9);
  border: 2px solid rgba(249, 200, 14, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}
.booking-sidebar__card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.booking-sidebar__hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.booking-contact-chat {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.booking-contact-chat:hover {
  border-color: var(--brand-teal);
  background: rgba(42, 157, 143, 0.15);
}
.booking-main { min-width: 0; }
.booking-tour-link { color: var(--brand-teal); font-size: 0.8rem; }
.booking-tour-banner {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(249,200,14,0.25);
}
.booking-tour-img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.booking-tour-banner h2 { font-size: 1.1rem; color: #fff; margin: 0.25rem 0; }
.booking-tour-tag { font-size: 0.8rem; color: var(--brand-yellow); }
.booking-contact-panel {
  background: rgba(15,27,45,0.9);
  border: 2px solid rgba(249,200,14,0.2);
  border-radius: 16px;
  padding: 1.25rem;
}
.booking-contact-panel h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.booking-contact-hint { font-size: 0.8rem; color: #a0aec0; margin-bottom: 1rem; }
.booking-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.booking-contact-btn:hover { border-color: var(--brand-yellow); background: rgba(249,200,14,0.1); }
.booking-contact-btn span { font-size: 1.4rem; }
.booking-contact-btn strong { display: block; font-size: 0.85rem; }
.booking-contact-btn small { color: #a0aec0; font-size: 0.75rem; }
.booking-contact-line:hover { border-color: #06c755; }
.booking-contact-wa:hover { border-color: #25d366; }
.booking-chat-tip {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(42,157,143,0.15);
  border: 1px solid rgba(42,157,143,0.3);
  font-size: 0.78rem;
  color: #cbd5e0;
  line-height: 1.5;
}
.booking-chat-tip strong { color: var(--brand-teal, #2a9d8f); }
.booking-main-panel {
  background: rgba(15,27,45,0.9);
  border: 2px solid rgba(249,200,14,0.2);
  border-radius: 16px;
  overflow: hidden;
}
.booking-tabs { display: flex; border-bottom: 2px solid rgba(255,255,255,0.08); }
.booking-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  color: #a0aec0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.booking-tab.is-active { color: #fff; background: rgba(249,200,14,0.12); border-bottom: 2px solid var(--brand-yellow); margin-bottom: -2px; }
.booking-tab-panel { display: none; padding: 1.25rem; }
.booking-tab-panel.is-active { display: block; }
.booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking-form .form-group label { color: #cbd5e0; font-size: 0.85rem; }
.world-page .booking-form .form-control {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.btn-block { width: 100%; margin-top: 0.5rem; }
.booking-success { text-align: center; padding: 2rem 1rem; }
.booking-success-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.booking-success h3 { color: #fff; }

.chat-setup h3 { color: #fff; font-size: 1.1rem; }
.chat-setup p { color: #a0aec0; font-size: 0.85rem; margin-bottom: 1rem; }
.chat-resume-box {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.chat-resume-box p { font-size: 0.85rem; color: #a0aec0; margin-bottom: 0.5rem; }
.chat-resume-row { display: flex; gap: 0.5rem; }
.chat-room-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-room-header__main { flex: 1; min-width: 0; }
.chat-room-header strong { color: #fff; }
.chat-room-header small { display: block; color: #a0aec0; font-size: 0.75rem; margin-top: 0.25rem; }
.chat-close-btn {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.chat-live-badge { color: #48bb78; font-size: 0.75rem; font-weight: 700; margin-right: 0.5rem; }
.chat-hash-code {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--brand-yellow);
  background: rgba(249,200,14,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.chat-copy-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
}
.chat-messages {
  height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}
.chat-msg { max-width: 85%; display: flex; flex-direction: column; gap: 0.15rem; }
.chat-msg--in { align-self: flex-end; }
.chat-msg--out { align-self: flex-start; }
.chat-msg-body {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg--in .chat-msg-body { background: var(--brand-navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--out .chat-msg-body { background: rgba(255,255,255,0.12); color: #e2e8f0; border-bottom-left-radius: 4px; }
.chat-msg-time { font-size: 0.65rem; color: #718096; padding: 0 0.25rem; }
.chat-msg--in .chat-msg-time { text-align: right; }
.chat-input-row { display: flex; gap: 0.5rem; }
.chat-input-row .form-control { flex: 1; }

@media (max-width: 768px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-sidebar__card { position: static; }
  .booking-form .form-row { grid-template-columns: 1fr; }
  .home-hero__nav { grid-template-columns: repeat(2, 1fr); }

  body.chat-fullscreen-open { overflow: hidden; }

  .chat-room.chat-room--active {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex !important;
    flex-direction: column;
    background: #0f1629;
    padding: 0;
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .chat-room.chat-room--active .chat-room-header {
    flex-shrink: 0;
    margin: 0;
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    background: rgba(0,0,0,0.25);
  }
  .chat-room.chat-room--active .chat-close-btn { display: inline-flex; align-items: center; justify-content: center; }
  .chat-room.chat-room--active .chat-messages {
    flex: 1;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    margin: 0;
  }
  .chat-room.chat-room--active .chat-input-row {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .chat-room.chat-room--active .chat-input-row .btn {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .world-building { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .world-room.lobby { grid-column: span 2; }
  .room-scene { height: 120px; }
  .room-icon { font-size: 2.5rem; }
  .npc-guide { width: 80px; }
  .npc-character-wrap { width: 80px; }
  .npc-character-wrap .npc-cat-svg { width: 72px; }
  .npc-bubble { max-width: calc(100vw - 32px); }
}
