@charset "utf-8";
/* ==========================================================================
   Boolub MyGuide 2.0 Design System (myguide_v2.css)
   - Aligned 100% with Boolub x WAUG Design Tokens (waug.css)
   - Mobile-First Collapsible App Shell + Desktop 1200px 2-Column Dashboard
   ========================================================================== */

:root,
.bl-myguide-v2 {
  --mg-font: 'SUIT Variable', 'SUIT', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mg-primary: #38beef;
  --mg-primary-dark: #1fa8db;
  --mg-primary-text: #1596c9;
  --mg-primary-soft: #e8f7fd;
  --mg-primary-line: #bfe8f8;

  --mg-bg: #f5f8fa;
  --mg-surface: #ffffff;
  --mg-surface-sub: #f8fafc;
  --mg-line: #e5e8eb;
  --mg-line-soft: #f1f4f6;

  --mg-ink-900: #121619;
  --mg-ink-700: #3a4248;
  --mg-ink-500: #6b747a;
  --mg-ink-400: #9aa3a9;

  --mg-success: #10b981;
  --mg-success-soft: #ecfdf5;
  --mg-warning: #f59e0b;
  --mg-warning-soft: #fffbeb;
  --mg-danger: #ef4444;
  --mg-danger-soft: #fef2f2;

  --mg-radius-xl: 20px;
  --mg-radius-lg: 16px;
  --mg-radius-md: 12px;
  --mg-radius-sm: 8px;
  --mg-shadow: 0 6px 24px rgba(18, 22, 25, 0.05);
  --mg-shadow-lg: 0 16px 40px rgba(18, 22, 25, 0.14);
}

.bl-myguide-v2,
.bl-myguide-v2 body {
  width: 100%;
  max-width: 100%;
  background-color: var(--mg-bg) !important;
  color: var(--mg-ink-900);
  font-family: var(--mg-font) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.bl-myguide-v2 .wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.mg2-app,
.mg2-app *,
.mg2-sheet-backdrop,
.mg2-sheet-backdrop *,
.mg2-bigcard-overlay,
.mg2-bigcard-overlay *,
.mg2-lightbox,
.mg2-lightbox * {
  box-sizing: border-box;
}

/* Neutralize setting.css global `div, p, span, li, button, label { color:#555; font-size:15px }` (specificity 0,1,0 > 0,0,1) */
:is(.mg2-app, .mg2-sticky-bar, .mg2-sheet-backdrop, .mg2-bigcard-overlay, .mg2-lightbox, .mg2-toast) :where(p, span, div, li, ul, ol, dl, dt, dd, em, i, strong, b, label) {
  color: inherit;
  font-size: inherit;
}

.mg2-app {
  font-family: var(--mg-font);
  color: var(--mg-ink-900);
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 0 calc(92px + env(safe-area-inset-bottom, 0px));
  font-variant-numeric: tabular-nums;
}

:where(.mg2-app) a {
  text-decoration: none;
  color: inherit;
}

:where(.mg2-app, .mg2-sheet-backdrop, .mg2-bigcard-overlay) button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- Collapsible Sticky Compact Bar ---------- */
.mg2-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 450;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mg-line);
  transform: translateY(-105%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.mg2-sticky-bar.is-visible {
  transform: translateY(0);
}
.mg2-sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mg2-sticky-city {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mg-ink-900);
}
.mg2-sticky-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-ink-700);
}
.mg2-sticky-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mg-primary-soft);
  color: var(--mg-primary-text);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Popular City Switcher Strip ---------- */
.mg2-city-strip-wrap {
  background: var(--mg-surface);
  border-bottom: 1px solid var(--mg-line-soft);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mg2-city-strip {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mg2-city-strip::-webkit-scrollbar {
  display: none;
}
.mg2-city-strip-arrows {
  display: none;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-left: 8px;
  border-left: 1px solid var(--mg-line-soft);
}
@media (min-width: 768px) {
  .mg2-city-strip-arrows {
    display: flex;
  }
}
.mg2-strip-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mg-surface-sub) !important;
  border: 1px solid var(--mg-line) !important;
  color: var(--mg-ink-700) !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}
.mg2-strip-nav-btn:hover {
  background: var(--mg-primary-soft) !important;
  border-color: var(--mg-primary-line) !important;
  color: var(--mg-primary-text) !important;
}
.mg2-city-pill {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-ink-700);
  background: var(--mg-bg);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.mg2-city-pill:hover {
  border-color: var(--mg-primary-line);
  color: var(--mg-primary-text);
}
.mg2-city-pill.is-active,
.bl-myguide-v2 a.mg2-city-pill.is-active,
.bl-myguide-v2 button.mg2-city-pill.is-active {
  background-color: var(--mg-ink-900) !important;
  border-color: var(--mg-ink-900) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.mg2-city-pill.is-search {
  background: var(--mg-primary-soft);
  color: var(--mg-primary-text);
  border-color: var(--mg-primary-line);
  font-weight: 700;
}

/* ---------- Layout Grid (Mobile Single / Desktop 2-Col) ---------- */
.mg2-layout {
  display: block;
}
.mg2-sidebar {
  width: 100%;
}
.mg2-main {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .mg2-app {
    padding: 20px 20px 80px;
  }
  .mg2-city-strip-wrap {
    border-radius: var(--mg-radius-lg);
    border: 1px solid var(--mg-line);
    margin-bottom: 20px;
    padding: 12px 18px;
  }
  .mg2-layout {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .mg2-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* ---------- Hero Card ---------- */
.mg2-hero {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 22px 20px 18px;
  color: #ffffff;
  background-color: #18222d;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mg2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.36) 0%, rgba(15, 23, 42, 0.62) 52%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 0;
}
@media (min-width: 1024px) {
  .mg2-hero {
    border-radius: var(--mg-radius-xl);
    box-shadow: var(--mg-shadow);
    min-height: 268px;
  }
}
.mg2-hero-top,
.mg2-hero-mid,
.mg2-hero-stats {
  position: relative;
  z-index: 1;
}
.mg2-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mg2-hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mg2-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.mg2-badge-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
}
.mg2-badge-dday {
  background: var(--mg-primary);
  color: #ffffff !important;
}
.mg2-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s;
}
.mg2-gps-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mg2-hero-mid {
  margin: 18px 0 16px;
}
.mg2-city-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  padding: 0;
  text-align: left;
}
.mg2-city-selector h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}
.mg2-city-selector .mg2-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.mg2-hero-sub {
  margin: 5px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
}

.mg2-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mg-radius-md);
  padding: 10px 12px;
}
.mg2-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  color: #ffffff !important;
  padding: 2px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.mg2-stat-item:last-child {
  border-right: 0;
}
.mg2-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
}
.mg2-stat-val,
.mg2-stat-val span,
.mg2-stat-val i {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.mg2-stat-val img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.mg2-stat-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Quick Utility Dock ---------- */
.mg2-quick-dock {
  background: var(--mg-surface);
  margin: 12px 14px 0;
  padding: 14px 10px;
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow);
  border: 1px solid var(--mg-line-soft);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
@media (min-width: 1024px) {
  .mg2-quick-dock {
    margin: 0 0 16px;
    padding: 16px;
  }
}
.mg2-dock-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  color: var(--mg-ink-700);
  transition: transform 0.16s ease;
}
.mg2-dock-btn:active {
  transform: scale(0.95);
}
.mg2-dock-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mg-surface-sub);
  border: 1px solid var(--mg-line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mg-ink-900);
  transition: all 0.18s ease;
}
.mg2-dock-btn:hover .mg2-dock-icon {
  background: var(--mg-primary-soft);
  border-color: var(--mg-primary-line);
  color: var(--mg-primary-dark);
}
.mg2-dock-btn.is-sos .mg2-dock-icon {
  background: var(--mg-danger-soft);
  border-color: #fecaca;
  color: var(--mg-danger);
}
.mg2-dock-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--mg-ink-700);
  white-space: nowrap;
}
.mg2-dock-badge {
  position: absolute;
  top: 0;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mg-primary-dark);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Primary Navigation Tabs ---------- */
.mg2-tabs-nav {
  position: sticky;
  top: 54px;
  z-index: 300;
  background: var(--mg-surface);
  margin: 14px 0 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--mg-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (min-width: 1024px) {
  .mg2-tabs-nav {
    position: static;
    margin: 0 0 16px;
    border-radius: var(--mg-radius-lg);
    border: 1px solid var(--mg-line);
    padding: 0 12px;
  }
}
.mg2-tab-btn {
  position: relative;
  padding: 14px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mg-ink-500);
  text-align: center;
  letter-spacing: -0.3px;
  transition: color 0.18s;
  white-space: nowrap;
}
.mg2-tab-btn.is-active {
  color: var(--mg-ink-900);
  font-weight: 800;
}
.mg2-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--mg-primary);
}

.mg2-tab-panel {
  display: none;
  padding: 16px 14px 0;
}
.mg2-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 1024px) {
  .mg2-tab-panel {
    padding: 0;
  }
}

/* ---------- Common Surface Card ---------- */
.mg2-card {
  background: var(--mg-surface);
  border-radius: var(--mg-radius-lg);
  border: 1px solid var(--mg-line-soft);
  box-shadow: var(--mg-shadow);
  padding: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.mg2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.mg2-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--mg-ink-900);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mg2-card-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--mg-ink-500);
}
.mg2-link-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--mg-primary-text);
  padding: 6px 10px;
  border-radius: var(--mg-radius-sm);
  background: var(--mg-primary-soft);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.mg2-btn,
.bl-myguide-v2 button.mg2-btn,
.bl-myguide-v2 a.mg2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--mg-radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s ease;
  cursor: pointer;
}
.mg2-btn-primary,
.bl-myguide-v2 button.mg2-btn-primary,
.bl-myguide-v2 a.mg2-btn-primary {
  background-color: var(--mg-primary-dark) !important;
  color: #ffffff !important;
  border: 1px solid var(--mg-primary-dark) !important;
}
.mg2-btn-primary:hover,
.bl-myguide-v2 button.mg2-btn-primary:hover,
.bl-myguide-v2 a.mg2-btn-primary:hover {
  background-color: #1794c4 !important;
  border-color: #1794c4 !important;
}
.mg2-btn-soft,
.bl-myguide-v2 button.mg2-btn-soft,
.bl-myguide-v2 a.mg2-btn-soft {
  background-color: var(--mg-primary-soft) !important;
  color: var(--mg-primary-text) !important;
  border: 1px solid var(--mg-primary-line) !important;
}
.mg2-btn-outline,
.bl-myguide-v2 button.mg2-btn-outline,
.bl-myguide-v2 a.mg2-btn-outline {
  background-color: #ffffff !important;
  color: var(--mg-ink-700) !important;
  border: 1px solid var(--mg-line) !important;
}
.mg2-btn-dark,
.bl-myguide-v2 button.mg2-btn-dark,
.bl-myguide-v2 a.mg2-btn-dark {
  background-color: var(--mg-ink-900) !important;
  color: #ffffff !important;
  border: 1px solid var(--mg-ink-900) !important;
}
.mg2-btn-danger,
.bl-myguide-v2 button.mg2-btn-danger,
.bl-myguide-v2 a.mg2-btn-danger {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}
.mg2-btn-danger:hover,
.bl-myguide-v2 button.mg2-btn-danger:hover {
  background-color: #fee2e2 !important;
}
.mg2-btn-red,
.bl-myguide-v2 button.mg2-btn-red,
.bl-myguide-v2 a.mg2-btn-red {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
}
.mg2-btn-glass-dark,
.bl-myguide-v2 button.mg2-btn-glass-dark,
.bl-myguide-v2 a.mg2-btn-glass-dark {
  background-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.42) !important;
}
.mg2-btn-glass-dark:hover,
.bl-myguide-v2 button.mg2-btn-glass-dark:hover {
  background-color: rgba(255, 255, 255, 0.26) !important;
}
.mg2-btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: var(--mg-radius-sm);
}
.mg2-btn-block {
  width: 100%;
}

/* ---------- Order / Voucher Boarding-Pass Card ---------- */
.mg2-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mg2-ticket-card {
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-md);
  padding: 14px;
  background: var(--mg-surface);
  transition: border-color 0.18s;
}
.mg2-ticket-card.is-confirmed {
  border-left: 4px solid var(--mg-success);
}
.mg2-ticket-card.is-pending {
  border-left: 4px solid var(--mg-warning);
}
.mg2-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.mg2-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.mg2-status-pill.confirmed {
  background: var(--mg-success-soft);
  color: #047857;
}
.mg2-status-pill.pending {
  background: var(--mg-warning-soft);
  color: #b45309;
}
.mg2-ticket-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-ink-700);
}
.mg2-ticket-body {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mg2-ticket-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--mg-bg);
  flex-shrink: 0;
}
.mg2-ticket-info {
  flex: 1;
  min-width: 0;
}
.mg2-ticket-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mg-ink-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mg2-ticket-opt {
  margin: 0;
  font-size: 12px;
  color: var(--mg-ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg2-ticket-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mg-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Progress Bar ---------- */
.mg2-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--mg-line-soft);
  overflow: hidden;
}
.mg2-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mg-primary) 0%, var(--mg-primary-dark) 100%);
  transition: width 0.3s ease;
}

/* ---------- Checklist Items ---------- */
.mg2-check-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mg2-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--mg-radius-sm);
  background: var(--mg-surface-sub);
  border: 1px solid var(--mg-line-soft);
}
.mg2-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--mg-ink-900);
}
.mg2-check-label input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  float: none !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--mg-primary-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.mg2-check-item.is-done .mg2-check-text {
  text-decoration: line-through;
  color: var(--mg-ink-400);
}
.mg2-check-del {
  color: var(--mg-ink-400);
  font-size: 16px;
  padding: 2px 6px;
}

/* ---------- Filter Chips ---------- */
.mg2-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.mg2-chip-row::-webkit-scrollbar {
  display: none;
}
.mg2-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--mg-surface-sub);
  color: var(--mg-ink-700);
  border: 1px solid var(--mg-line);
  transition: all 0.16s ease;
}
.mg2-chip.is-active,
.bl-myguide-v2 button.mg2-chip.is-active,
.bl-myguide-v2 a.mg2-chip.is-active {
  background-color: var(--mg-primary-dark) !important;
  border-color: var(--mg-primary-dark) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* ---------- POI / Spot Cards Grid ---------- */
.mg2-poi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 680px) {
  .mg2-poi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mg2-poi-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--mg-radius-md);
  border: 1px solid var(--mg-line-soft);
  background: var(--mg-surface);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.mg2-poi-card:hover {
  border-color: var(--mg-primary-line);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}
.mg2-poi-thumb {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--mg-bg);
  flex-shrink: 0;
}
.mg2-poi-body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mg2-poi-body > div {
  min-width: 0;
  max-width: 100%;
}
.mg2-poi-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.mg2-tag-verified {
  background: var(--mg-primary-soft);
  color: var(--mg-primary-text);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.mg2-tag-cat {
  font-size: 11px;
  color: var(--mg-ink-500);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}
.mg2-poi-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--mg-ink-900);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mg2-poi-desc {
  margin: 3px 0 6px;
  font-size: 12px;
  color: var(--mg-ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.42;
}
.mg2-poi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}
.mg2-rating {
  font-weight: 700;
  color: var(--mg-ink-900);
}
.mg2-rating .star {
  color: #ffb800;
}

/* ---------- Product Horizontal Cards ---------- */
.mg2-prod-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.mg2-prod-scroll::-webkit-scrollbar {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  :is(.mg2-prod-scroll, .mg2-city-strip, .mg2-chip-row, .mg2-spot-gallery, .js-mg2-drag-scroll) {
    cursor: grab;
  }
}
:is(.mg2-prod-scroll, .mg2-city-strip, .mg2-chip-row, .mg2-spot-gallery, .js-mg2-drag-scroll).is-dragging,
:is(.mg2-prod-scroll, .mg2-city-strip, .mg2-chip-row, .mg2-spot-gallery, .js-mg2-drag-scroll).is-dragging * {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
:is(.mg2-prod-scroll, .mg2-city-strip, .mg2-spot-gallery, .js-mg2-drag-scroll) img,
.mg2-prod-scroll a,
.mg2-city-strip a {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.mg2-prod-card {
  border: 1px solid var(--mg-line-soft);
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  background: var(--mg-surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mg2-prod-scroll:not(.is-dragging) .mg2-prod-card:hover {
    transform: translateY(-2px);
    border-color: var(--mg-primary-line);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  }
}
.mg2-prod-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66%;
  background: var(--mg-bg);
  overflow: hidden;
}
.mg2-prod-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg2-prod-instant {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(18, 22, 25, 0.78);
  color: #38beef;
  font-size: 10px;
  font-weight: 800;
}
.mg2-prod-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.mg2-prod-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mg-ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mg2-prod-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--mg-ink-900);
}
.mg2-prod-price .sale {
  color: var(--mg-primary-dark);
  margin-right: 4px;
}

/* ---------- AI Concierge Builder ---------- */
.mg2-ai-box {
  background: linear-gradient(135deg, #f0faff 0%, #f5f3ff 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--mg-radius-lg);
  padding: 18px;
}
.mg2-ai-group {
  margin-top: 12px;
}
.mg2-ai-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-ink-700);
  margin-bottom: 6px;
}
.mg2-qa-item {
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-md);
  padding: 14px 16px;
  background: #ffffff;
  margin-bottom: 10px;
}
.mg2-qa-q {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mg-ink-900);
}
.mg2-qa-a {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mg-ink-700);
}
.mg2-qa-details {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--mg-ink-500);
  line-height: 1.55;
}

/* ---------- Map Container & Preview Card ---------- */
.mg2-map-wrap {
  position: relative;
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  border: 1px solid var(--mg-line);
  height: 360px;
  background: #e9eef2;
}
@media (min-width: 1024px) {
  .mg2-map-wrap {
    height: 440px;
  }
}
#mg2GoogleMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.mg2-map-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}
.mg2-map-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg2-map-pin::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}
.mg2-map-preview {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #ffffff;
  border-radius: var(--mg-radius-md);
  padding: 12px 14px;
  box-shadow: var(--mg-shadow-lg);
  border: 1px solid var(--mg-line);
  display: none;
  z-index: 500;
}
.mg2-map-preview.is-open {
  display: block;
}

/* ---------- Account Book Summary & Category Bars ---------- */
.mg2-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.mg2-wallet-stat {
  background: var(--mg-surface-sub);
  border: 1px solid var(--mg-line-soft);
  border-radius: var(--mg-radius-md);
  padding: 12px 10px;
  min-width: 0;
}
.mg2-wallet-stat .lbl {
  font-size: 11px;
  color: var(--mg-ink-500);
  font-weight: 600;
}
.mg2-wallet-stat .val {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mg-ink-900);
  word-break: break-all;
}
.mg2-cat-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.mg2-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.mg2-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mg2-expense-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.mg2-expense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mg-line-soft);
}
.mg2-expense-item:last-child {
  border-bottom: 0;
}

/* ---------- Bottom Sheet Modal System ---------- */
.mg2-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mg2-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.mg2-sheet {
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  max-height: 88dvh;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--mg-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
  .mg2-sheet-backdrop {
    align-items: center;
    padding: 20px;
  }
  .mg2-sheet {
    border-radius: 24px;
    max-height: 84vh;
    max-height: 84dvh;
  }
}
.mg2-sheet-backdrop.is-open .mg2-sheet {
  transform: translateY(0);
}
.mg2-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.mg2-sheet-header {
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--mg-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.mg2-sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--mg-ink-900);
}
.mg2-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mg-bg);
  color: var(--mg-ink-700);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mg2-sheet-body {
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* ---------- Inputs & Forms ---------- */
.mg2-field {
  margin-bottom: 14px;
}
.mg2-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--mg-ink-700);
  margin-bottom: 6px;
}
.mg2-input,
.mg2-select,
.mg2-textarea,
.bl-myguide-v2 input.mg2-input,
.bl-myguide-v2 select.mg2-select,
.bl-myguide-v2 textarea.mg2-textarea {
  width: 100%;
  border: 1.5px solid #dbe2e8 !important;
  border-radius: var(--mg-radius-md) !important;
  padding: 12px 14px !important;
  font-size: 15px;
  font-family: inherit;
  color: var(--mg-ink-900) !important;
  background-color: #f8fafc !important;
  outline: none;
  transition: border-color 0.16s, background-color 0.16s;
}
.mg2-select,
.bl-myguide-v2 select.mg2-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 14px 14px !important;
}
.mg2-input:focus,
.mg2-select:focus,
.mg2-textarea:focus,
.bl-myguide-v2 input.mg2-input:focus,
.bl-myguide-v2 select.mg2-select:focus,
.bl-myguide-v2 textarea.mg2-textarea:focus {
  border-color: var(--mg-primary) !important;
  background-color: #ffffff !important;
}
.mg2-trans-output,
.bl-myguide-v2 textarea.mg2-trans-output {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 2px 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.48 !important;
  color: #0f172a !important;
  resize: none !important;
  outline: none !important;
}

/* ---------- Exchange Calculator Box ---------- */
.mg2-fx-box {
  background: var(--mg-surface-sub);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.mg2-fx-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mg2-fx-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
  color: var(--mg-ink-900) !important;
  outline: none;
  min-width: 0;
}
.mg2-fx-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: auto;
  max-width: 158px;
  padding: 8px 28px 8px 10px !important;
  border-radius: var(--mg-radius-sm);
  border: 1px solid var(--mg-line) !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--mg-ink-900) !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
}

/* ---------- Phrase Show-Large Fullscreen Overlay ---------- */
.mg2-bigcard-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  width: 100%;
  max-width: 100vw;
  background: #0f172a;
  color: #ffffff !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 68px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
}
.mg2-bigcard-overlay.is-open {
  display: flex;
}
.mg2-bigcard-close-top {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mg2-bigcard-local {
  width: 100%;
  max-width: min(100%, 880px);
  font-size: clamp(24px, 6.4vw, 48px);
  font-weight: 800;
  line-height: 1.42;
  color: #ffffff !important;
  margin-bottom: 16px;
  padding: 0 4px;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.mg2-bigcard-pron {
  width: 100%;
  max-width: min(100%, 820px);
  font-size: clamp(16px, 4.4vw, 20px);
  color: #38beef !important;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.mg2-bigcard-ko {
  width: 100%;
  max-width: min(100%, 820px);
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84) !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---------- Toast Notification ---------- */
.mg2-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px);
  background: rgba(18, 22, 25, 0.94);
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  white-space: normal;
  text-align: center;
  word-break: keep-all;
}
.mg2-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Empty State ---------- */
.mg2-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--mg-ink-500);
}
.mg2-empty p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Spinner ---------- */
.mg2-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--mg-line);
  border-top-color: var(--mg-primary);
  border-radius: 50%;
  animation: mg2Spin 0.8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes mg2Spin {
  to { transform: rotate(360deg); }
}

/* ---------- Phase 2: Baggage Badges, Itinerary Timeline & Spot Gallery ---------- */
.mg2-tag-verified,
.mg2-tag-cat {
  white-space: nowrap;
  flex-shrink: 0;
}

.mg2-bag-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  vertical-align: middle;
}
.mg2-bag-badge.is-cabin {
  background: #e0f2fe;
  color: #0369a1 !important;
}
.mg2-bag-badge.is-checked {
  background: #fef3c7;
  color: #b45309 !important;
}
.mg2-bag-badge.is-prep {
  background: #f3e8ff;
  color: #7e22ce !important;
}

.mg2-itin-stop {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--mg-line);
}
.mg2-itin-stop.is-order {
  border-left: 4px solid var(--mg-primary-dark);
  background: #f8fdff;
}
.mg2-itin-move {
  margin: 4px 0 4px 20px;
  padding: 3px 10px;
  border-left: 2px dashed #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.mg2-spot-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.mg2-spot-gallery::-webkit-scrollbar {
  display: none;
}
.mg2-spot-gallery img {
  width: 210px;
  height: 148px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.mg2-spot-gallery.is-single img {
  width: 100%;
  height: 204px;
}

/* Spot Detail Top Split (Photo Left + Boolub Product Booking Card Right on PC, Stacked Full-Width on Mobile) */
.mg2-spot-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 600px) {
  .mg2-spot-hero-split {
    grid-template-columns: 234px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
  }
}
.mg2-spot-hero-media {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #f1f5f9;
  min-height: 190px;
}
.mg2-spot-hero-media img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  display: block;
}
@media (min-width: 600px) {
  .mg2-spot-hero-media img {
    height: 100%;
    min-height: 196px;
    max-height: 248px;
  }
}
.mg2-spot-photo-cnt {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.mg2-spot-subthumbs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: -4px 0 14px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mg2-spot-subthumbs::-webkit-scrollbar {
  display: none;
}
.mg2-spot-subthumbs img {
  width: 72px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--mg-line);
  cursor: zoom-in;
}

.mg2-spot-book-card {
  background: linear-gradient(155deg, #f0f9ff 0%, #ffffff 68%);
  border: 1.5px solid #bae6fd;
  border-radius: 15px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.07);
}
.mg2-spot-book-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.mg2-spot-book-instant {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #38bdf8 !important;
  font-size: 11px;
  font-weight: 800;
}
.mg2-spot-book-fact {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #0369a1 !important;
  font-size: 11px;
  font-weight: 700;
}
.mg2-spot-book-ptitle {
  font-size: 13px;
  font-weight: 800;
  color: #0369a1 !important;
  line-height: 1.35;
  margin-bottom: 3px;
}
.mg2-spot-book-desc {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a !important;
  line-height: 1.42;
  margin: 0;
}
.mg2-spot-book-hl {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mg2-spot-book-hl li {
  font-size: 12px;
  color: #334155 !important;
  line-height: 1.42;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.mg2-spot-book-hl li::before {
  content: '✓';
  color: #0284c7;
  font-weight: 800;
  flex-shrink: 0;
}
.mg2-spot-book-foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 9px;
  border-top: 1px dashed #cbd5e1;
}
@media (min-width: 460px) {
  .mg2-spot-book-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.mg2-spot-book-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mg2-spot-book-orig {
  font-size: 11.5px;
  color: #94a3b8 !important;
  text-decoration: line-through;
}
.mg2-spot-book-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a !important;
}
.mg2-spot-book-disc {
  font-size: 15px;
  font-weight: 900;
  color: #0284c7 !important;
}
.mg2-spot-book-cta,
.bl-myguide-v2 a.mg2-spot-book-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0284c7 0%, #1596c9 100%) !important;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mg2-spot-book-cta:hover,
.bl-myguide-v2 a.mg2-spot-book-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.32);
}

/* ---------- Editorial Curation Card Grid & Detail Sheet ---------- */
.mg2-ed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 680px) {
  .mg2-ed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mg2-ed-card,
.bl-myguide-v2 button.mg2-ed-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 14px 15px;
  border-radius: 16px;
  background: #ffffff !important;
  border: 1px solid var(--mg-line) !important;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mg2-ed-card:hover,
.bl-myguide-v2 button.mg2-ed-card:hover {
  transform: translateY(-2px);
  border-color: var(--mg-primary) !important;
  box-shadow: 0 8px 22px rgba(31, 168, 219, 0.10);
}
.mg2-ed-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e8eef4;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mg2-ed-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mg2-ed-body {
  flex: 1;
  min-width: 0;
}
.mg2-ed-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mg2-ed-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.mg2-ed-cnt {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.mg2-ed-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--mg-ink-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  white-space: normal;
}
.mg2-ed-preview {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--mg-ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  white-space: normal;
}
.mg2-ed-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mg-bg);
  color: var(--mg-ink-500);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.mg2-ed-card:hover .mg2-ed-arrow {
  background: var(--mg-primary-soft);
  color: var(--mg-primary-dark);
}

/* Editor Guide Detail Modal Cards */
.mg2-ed-hero {
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.mg2-ed-spot-card {
  background: #ffffff;
  border: 1px solid var(--mg-line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}
.mg2-ed-spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mg2-ed-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--mg-ink-900);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.mg2-ed-facts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--mg-surface-sub);
  border: 1px solid var(--mg-line-soft);
}
.mg2-ed-fact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.mg2-ed-fact-lbl {
  min-width: 78px;
  font-weight: 700;
  color: var(--mg-ink-700);
  flex-shrink: 0;
}
.mg2-ed-fact-val {
  color: var(--mg-ink-900);
  flex: 1;
}
.mg2-ed-tip-box {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--mg-primary-dark);
}
.mg2-ed-tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #0284c7 !important;
  margin-bottom: 5px;
}
.mg2-ed-tip-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: #1e293b;
}

/* ---------- Google Maps Hybrid Toolbar & Mode Toggle ---------- */
.mg2-map-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mg2-map-mode-bar {
  display: inline-flex;
  align-items: center;
  background: var(--mg-bg);
  border: 1px solid var(--mg-line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.mg2-map-mode-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-ink-500);
  white-space: nowrap;
}
.mg2-map-mode-btn.is-active {
  background: #ffffff;
  color: var(--mg-ink-900);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
#mg2GoogleEmbedFrame {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

/* ---------- Real-Time City Open Chat ---------- */
#sheet-openchat .mg2-sheet {
  height: 86vh;
  height: 86dvh;
  max-height: 760px;
}
#sheet-openchat .mg2-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.mg2-chat-pin {
  background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.48;
  color: #1e3a8a;
  margin-bottom: 0;
  flex-shrink: 0;
}
.mg2-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 140px;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--mg-line);
  border-radius: 14px;
}
#mg2OpenChatForm {
  flex-shrink: 0;
}
.mg2-chat-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 86%;
}
.mg2-chat-row.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.mg2-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 3px;
}
.mg2-chat-bubble {
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #0f172a;
  word-break: break-word;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.mg2-chat-row.is-mine .mg2-chat-bubble,
.mg2-chat-row.is-mine .mg2-chat-bubble * {
  border-radius: 14px 14px 4px 14px;
  background: var(--mg-primary-dark);
  border-color: var(--mg-primary-dark);
  color: #ffffff !important;
}
.mg2-chat-photo {
  display: block;
  margin-top: 6px;
  max-width: 190px;
  max-height: 190px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
}

/* ---------- Fullscreen Photo Lightbox ---------- */
.mg2-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10200;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mg2-lightbox.is-open {
  display: flex;
}
.mg2-lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ---------- Mobile Form & Button Action Grid Helpers ---------- */
.mg2-action-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}
@media (min-width: 480px) {
  .mg2-action-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mg2-action-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 14px;
}
@media (min-width: 440px) {
  .mg2-action-grid-3 {
    grid-template-columns: 1.2fr 1fr 0.9fr;
  }
}

/* ---------- Expanded Global Destination Hub (#sheet-city) ---------- */
@media (min-width: 768px) {
  .mg2-sheet.mg2-sheet-wide {
    max-width: 720px;
  }
}
.mg2-dest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
@media (min-width: 520px) {
  .mg2-dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.mg2-dest-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid var(--mg-line-soft);
  min-width: 0;
  text-decoration: none;
  transition: all 0.16s ease;
}
.mg2-dest-card:hover {
  border-color: var(--mg-primary-line);
  background: #f8fcff;
  transform: translateY(-1px);
}
.mg2-dest-card.is-current {
  border-color: var(--mg-primary);
  background: var(--mg-primary-soft);
}
.mg2-dest-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.mg2-dest-meta {
  min-width: 0;
  flex: 1 1 auto;
}
.mg2-dest-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mg2-dest-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--mg-ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg2-dest-country {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}
.mg2-dest-cur-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff !important;
  background: var(--mg-primary-dark);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.mg2-dest-sub {
  font-size: 12px;
  color: var(--mg-ink-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg2-dest-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-ink-300);
  flex-shrink: 0;
}
.mg2-dest-card:hover .mg2-dest-arrow {
  color: var(--mg-primary-text);
}

/* ---------- Around Spot List: Compact Pager & 2-Row Horizontal Slide Deck ---------- */
.mg2-around-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.mg2-around-slide-deck {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 326px);
  gap: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.mg2-around-slide-deck.is-single-row {
  grid-template-rows: minmax(0, auto);
}
.mg2-around-slide-deck.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.mg2-around-slide-deck::-webkit-scrollbar {
  height: 5px;
}
.mg2-around-slide-deck::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
@media (min-width: 680px) {
  .mg2-around-slide-deck {
    grid-auto-columns: 322px;
  }
}

.mg2-around-pager {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--mg-line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.mg2-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--mg-line);
  background: #ffffff;
  color: var(--mg-ink-700);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mg2-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--mg-primary-line);
  background: var(--mg-primary-soft);
  color: var(--mg-primary-dark);
}
.mg2-page-btn.is-active,
.bl-myguide-v2 button.mg2-page-btn.is-active {
  background: var(--mg-primary-dark) !important;
  border-color: var(--mg-primary-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.22);
}
.mg2-page-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.mg2-page-dots {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 2px;
}

/* ---------- Phase 3: Top Brand Return Bar & Sticky Home ---------- */
.mg2-top-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--mg-line);
}
@media (min-width: 1024px) {
  .mg2-top-brand-bar {
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: var(--mg-radius-lg);
    border: 1px solid var(--mg-line);
    box-shadow: var(--mg-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.03));
  }
}
.mg2-brand-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.mg2-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.mg2-brand-logo img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 1024px) {
  .mg2-brand-logo img {
    height: 28px;
  }
}
.mg2-brand-divider {
  width: 1px;
  height: 15px;
  background: #dbe2e8;
}
.mg2-brand-badge {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.mg2-brand-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.mg2-brand-right::-webkit-scrollbar {
  display: none;
}
.mg2-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mg2-brand-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.mg2-brand-link.is-shop {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}
.mg2-brand-link.is-shop:hover {
  background: #e0f2fe;
}
.mg2-brand-link.is-home {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
}
.mg2-brand-link.is-home:hover {
  background: #1e293b;
}
@media (max-width: 600px) {
  #mg2TopHotelQuickBtn {
    display: none;
  }
  .mg2-brand-link {
    padding: 0 9px;
    font-size: 11.5px;
    height: 30px;
  }
}
.mg2-sticky-home-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 800;
  color: #334155 !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Phase 3: My Hotel Bar & GPS Arrival Banner ---------- */
.mg2-hotel-pinned-bar,
.mg2-gps-arrival-banner {
  margin: 8px 14px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef2ff 0%, #f0f9ff 100%);
  border: 1px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 1024px) {
  .mg2-hotel-pinned-bar,
  .mg2-gps-arrival-banner {
    margin: 0 0 12px;
  }
}
.mg2-map-pin-hotel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #4338ca;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---------- Phase 3: Urgent 500m Radar Row ---------- */
.mg2-urgent-radar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.mg2-urgent-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #b45309;
  white-space: nowrap;
  flex-shrink: 0;
}
.mg2-urgent-chip {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #fcd34d;
  color: #92400e;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.mg2-urgent-chip:hover {
  background: #fef3c7;
}
.mg2-urgent-chip.is-hotel {
  border-color: #c7d2fe;
  color: #4338ca;
  background: #eef2ff;
}

/* ---------- Phase 3: Dietary / Allergy Order Builder ---------- */
.mg2-dietary-builder {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.mg2-dietary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mg2-diet-chip {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mg2-diet-chip.is-active,
.bl-myguide-v2 button.mg2-diet-chip.is-active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

/* ---------- Phase 3: Ticket Redemption Guide & High-Brightness Scan Pass ---------- */
.mg2-ticket-guide-details {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.mg2-ticket-guide-details summary {
  font-weight: 800;
  color: #0369a1;
  cursor: pointer;
  list-style: none;
}
.mg2-ticket-guide-details ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #334155;
  line-height: 1.55;
}
.mg2-scanpass-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.mg2-scanpass-overlay.is-open {
  display: flex;
}
.mg2-scanpass-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mg2-scanpass-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
}
.mg2-scanpass-code {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #0f172a;
  word-break: break-all;
}

/* ==========================================================================
   AI Concierge Itinerary Timeline & Product-Linked Result UI (Phase 3+)
   ========================================================================== */
.mg2-ai-res-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mg2-ai-res-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid var(--mg-primary-line, #bfe8f8);
  color: var(--mg-ink-900, #121619) !important;
  box-shadow: 0 6px 20px rgba(31, 168, 219, 0.08);
}
.mg2-ai-res-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.mg2-ai-res-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mg-primary-soft, #e8f7fd);
  border: 1px solid var(--mg-primary-line, #bfe8f8);
  color: var(--mg-primary-text, #1596c9) !important;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.mg2-ai-res-date {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mg-ink-400, #9aa3a9) !important;
  white-space: nowrap;
}
.mg2-ai-res-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.mg2-ai-res-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--mg-ink-900, #121619) !important;
  line-height: 1.34;
  letter-spacing: -0.3px;
}
.mg2-ai-res-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.mg2-ai-res-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mg-bg, #f5f8fa);
  border: 1px solid var(--mg-line, #e5e8eb);
  color: var(--mg-ink-700, #3a4248) !important;
  font-size: 12px;
  font-weight: 700;
}
.mg2-ai-res-chip.is-ticket {
  background: var(--mg-primary-soft, #e8f7fd);
  border: 1px solid var(--mg-primary-line, #bfe8f8);
  color: var(--mg-primary-text, #1596c9) !important;
  font-weight: 800;
}
.mg2-ai-res-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mg2-ai-apply-btn,
.bl-myguide-v2 button.mg2-ai-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--mg-primary-dark, #1fa8db) !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  border: none !important;
  box-shadow: 0 4px 12px rgba(31, 168, 219, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mg2-ai-apply-btn:hover,
.bl-myguide-v2 button.mg2-ai-apply-btn:hover {
  background: var(--mg-primary-text, #1596c9) !important;
  transform: translateY(-1px);
}
.mg2-ai-share-btn,
.bl-myguide-v2 button.mg2-ai-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: var(--mg-primary-text, #1596c9) !important;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.mg2-ai-share-btn:hover,
.bl-myguide-v2 button.mg2-ai-share-btn:hover {
  background: #e0f2fe !important;
}

/* Day Filter Bar */
.mg2-ai-day-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
}
.mg2-ai-day-tabs::-webkit-scrollbar {
  display: none;
}
.mg2-ai-day-tab,
.bl-myguide-v2 button.mg2-ai-day-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  color: #3a4248 !important;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mg2-ai-day-tab.is-active,
.bl-myguide-v2 button.mg2-ai-day-tab.is-active {
  background: var(--mg-primary-dark, #1fa8db) !important;
  border-color: var(--mg-primary-dark, #1fa8db) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(31, 168, 219, 0.22);
}

/* Day Container Card */
.mg2-ai-day-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(18, 22, 25, 0.04);
}
.mg2-ai-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eff6ff;
}
.mg2-ai-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--mg-primary-dark, #1fa8db);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.mg2-ai-day-flow {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
.mg2-ai-day-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

/* Timeline Stepper */
.mg2-ai-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mg2-ai-stop-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.mg2-ai-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
}
.mg2-ai-node {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e0f2fe;
  border: 2px solid #0284c7;
  color: #0369a1 !important;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}
.mg2-ai-stop-row.has-ticket .mg2-ai-node {
  background: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
}
.mg2-ai-rail-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, #bae6fd 0%, #e2e8f0 100%);
  margin: 4px 0;
}
.mg2-ai-stop-row:last-child .mg2-ai-rail-line {
  display: none;
}

.mg2-ai-stop-col {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
}
.mg2-ai-stop-row:last-child .mg2-ai-stop-col {
  padding-bottom: 0;
}

.mg2-ai-stop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.mg2-ai-stop-card.has-ticket {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%);
}
.mg2-ai-stop-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.mg2-ai-stop-main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.mg2-ai-stop-thumb-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 13px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  flex-shrink: 0;
}
.mg2-ai-stop-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mg2-ai-stop-body {
  flex: 1;
  min-width: 0;
}
.mg2-ai-stop-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.mg2-ai-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1 !important;
}
.mg2-ai-time-pill.is-meal {
  background: #ffedd5;
  color: #c2410c !important;
}
.mg2-ai-time-pill.is-night {
  background: #ede9fe;
  color: #6d28d9 !important;
}
.mg2-ai-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569 !important;
}
.mg2-ai-area-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7;
}
.mg2-ai-stop-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.34;
  word-break: keep-all;
}
.mg2-ai-stop-title.is-clickable:hover {
  color: #0284c7;
  text-decoration: underline;
}
.mg2-ai-stop-reason {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.52;
  color: #475569;
  word-break: keep-all;
}
.mg2-ai-stop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.mg2-ai-mini-btn,
.bl-myguide-v2 button.mg2-ai-mini-btn,
.bl-myguide-v2 a.mg2-ai-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155 !important;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mg2-ai-mini-btn:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1 !important;
}

/* Embedded Boolub Product Booking Banner inside Stop Card */
.mg2-ai-stop-prod {
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
  border: 1px solid #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.mg2-ai-stop-prod:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.14);
}
.mg2-ai-stop-prod-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.mg2-ai-stop-prod-thumb {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #bae6fd;
  flex-shrink: 0;
}
.mg2-ai-stop-prod-info {
  min-width: 0;
  flex: 1;
}
.mg2-ai-stop-prod-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #0284c7;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 2px;
}
.mg2-ai-stop-prod-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg2-ai-stop-prod-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 1px;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a !important;
}
.mg2-ai-stop-prod-disc {
  color: #0284c7 !important;
  font-weight: 900;
  font-size: 12.5px;
}
.mg2-ai-stop-prod-orig {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8 !important;
  text-decoration: line-through;
}
.mg2-ai-stop-prod-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

/* Inter-Stop Movement Pill */
.mg2-ai-move-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
}

/* Editorial Q&A Bento Grid */
.mg2-ai-qa-sec {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}
.mg2-ai-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.mg2-ai-qa-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mg2-ai-qa-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mg2-ai-qa-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.mg2-ai-qa-title {
  margin: 0;
  font-size: 13.8px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.38;
}
.mg2-ai-qa-ans {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.55;
  color: #334155;
}
.mg2-ai-qa-bullets {
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mg2-ai-qa-bullets li {
  font-size: 12px;
  color: #0369a1;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .mg2-ai-res-hero {
    padding: 15px;
  }
  .mg2-ai-res-title {
    font-size: 16.5px;
  }
  .mg2-ai-res-actions {
    width: 100%;
    margin-top: 2px;
  }
  .mg2-ai-apply-btn,
  .bl-myguide-v2 button.mg2-ai-apply-btn {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 12.5px;
  }
  .mg2-ai-day-card {
    padding: 13px 12px;
  }
  .mg2-ai-stop-row {
    gap: 9px;
  }
  .mg2-ai-rail {
    width: 22px;
  }
  .mg2-ai-node {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .mg2-ai-stop-thumb-wrap {
    width: 70px;
    height: 70px;
    border-radius: 11px;
  }
  .mg2-ai-stop-actions {
    gap: 5px;
    margin-top: 10px;
  }
  .mg2-ai-mini-btn,
  .bl-myguide-v2 button.mg2-ai-mini-btn,
  .bl-myguide-v2 a.mg2-ai-mini-btn {
    padding: 4px 7px;
    font-size: 11px;
  }
  .mg2-ai-stop-prod {
    flex-wrap: wrap;
    padding: 10px;
  }
  .mg2-ai-stop-prod-cta {
    width: 100%;
    padding: 8px 12px;
  }
  .mg2-ai-qa-grid {
    grid-template-columns: 1fr;
  }
}
