@font-face {
  font-family: "Caminata One";
  src: url("/fonts/CaminataOne.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Greys form the structural palette; black is the canvas. */
  --bg: #000000;
  --bg-soft: #0d1015;        /* sidebar (slightly elevated, blue-grey tint) */
  --bg-elev: #161a20;        /* bubbles, conn rows, modal cards */
  --bg-hi: #1c2027;          /* hover state on grey rows */

  --grey-900: #1f2937;       /* slate grey border (STK) */
  --grey-700: #374151;       /* hover / strong border */
  --grey-500: #8a92a0;       /* fainter text — brightened for contrast */
  --grey-400: #c5cbd4;       /* dim text — brightened for contrast */

  --border: var(--grey-900);
  --border-strong: var(--grey-700);

  --text: #e5e7eb;           /* off-white (STK) */
  --text-dim: var(--grey-400);
  --text-faint: var(--grey-500);

  --neon: #00ff41;           /* terminal green (STK) */
  --neon-deep: #00b82f;
  --neon-soft: rgba(0, 255, 65, 0.12);
  --neon-line: rgba(0, 255, 65, 0.28);
  --neon-glow: 0 0 0 1px rgba(0, 255, 65, 0.4), 0 0 20px rgba(0, 255, 65, 0.15);

  --yellow: #facc15;          /* warm yellow, paired with neon green */
  --yellow-soft: rgba(250, 204, 21, 0.14);
  --yellow-line: rgba(250, 204, 21, 0.45);

  /* Semantic accents — blue for links/info, red for alerts/destructive,
     paired with the existing neon green primary. */
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --info-line: rgba(96, 165, 250, 0.45);

  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-line: rgba(248, 113, 113, 0.5);

  --radius: 12px;
  --sidebar-w: 268px;
  --max-chat-w: 820px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans", "Google Sans Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

html {
  /* Stop iOS Safari from scrolling the entire page when the keyboard opens. */
  height: 100dvh;
}

button, a, label, .menu-item, .prompt-btn, .conn-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  overflow: hidden;
}

button {
  font-family: inherit;
}

/* === App grid === */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100dvh;
  width: 100%;
}

/* === Sidebar ===
   Brand stays pinned to the top and the auth/signup button stays pinned to
   the bottom — only the menu in between scrolls. Sidebar itself does NOT
   overflow; the inner .menu scroller handles that. */
.sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 6px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--neon);
  color: #000;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.brand-tld {
  font-size: 11px;
  font-weight: 500;
  color: var(--neon);
  letter-spacing: 0.01em;
  margin-left: 1px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Bottom-only scroll fade. The top edge of the menu sits right under the
     brand so we keep it solid — otherwise the first item ("Flight GPT")
     gets visually clipped at the top. */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 16px), transparent 100%);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 15.5px;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}

.menu-item:hover {
  background: var(--bg-hi);
}

.menu-item.active {
  background: var(--neon-soft);
  box-shadow: inset 3px 0 0 var(--neon);
}

.menu-item:hover .menu-icon,
.menu-item:hover .menu-label,
.menu-item.active .menu-icon,
.menu-item.active .menu-label {
  color: var(--neon);
}

.menu-item.active .menu-label {
  font-weight: 600;
}

.menu-icon {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.12s;
}

.menu-label {
  flex: 1;
  transition: color 0.12s;
}

.menu-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--neon-soft);
  color: var(--neon);
  border: 1px solid var(--neon-line);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Animated 🔥 emoji next to Vacation Packages — pulse + tilt, with a
   warm drop-shadow that makes it feel lit. Native emoji renders crisp at
   every DPI and matches the user's system font. */
.menu-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
  transform-origin: 50% 80%;
  animation: flameBob 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 140, 40, 0.55));
}
@keyframes flameBob {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.12) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-flame { animation: none; }
}

/* Quick prompts used in the welcome screen only */
.quick-prompts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.prompt-typewriter {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  font-feature-settings: "tnum";
  min-height: 50px;
  min-width: 320px;
  max-width: 100%;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  transition: border-color 0.12s, background 0.12s;
}

.prompt-typewriter:hover {
  border-color: var(--neon-line);
  background: var(--bg-hi);
}

.prompt-typewriter-text {
  display: inline;
  color: var(--text);
}

.prompt-typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--neon);
  margin-left: 2px;
  vertical-align: text-bottom;
  flex-shrink: 0;
  animation: caret-blink 0.9s steps(1, end) infinite;
  box-shadow: 0 0 4px rgba(0, 255, 65, 0.5);
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.prompt-typewriter-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  max-width: 580px;
}

.filter-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--neon-line);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.filter-chip:hover {
  background: rgba(0, 255, 65, 0.08);
  border-color: var(--neon);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.18);
}

.filter-chip:active {
  transform: translateY(1px);
}

@media (max-width: 760px) {
  .prompt-typewriter {
    min-width: 0;
    width: 100%;
    font-size: 13.5px;
  }
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.sidebar-auth {
  /* wrapper if needed in the future */
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}

.auth-btn:hover {
  border-color: var(--neon-line);
  background: var(--bg-hi);
}

.auth-btn.active {
  border-color: var(--neon);
  background: var(--neon-soft);
}

.auth-btn.active .auth-title {
  font-weight: 600;
}

.auth-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.12s;
}

.auth-btn:hover .auth-icon,
.auth-btn.active .auth-icon {
  color: var(--neon);
}

.auth-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-foot {
  padding: 8px 6px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.sidebar-foot a {
  color: var(--text-dim);
  text-decoration: none;
}

.sidebar-foot a:hover {
  color: var(--neon);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
}

/* === Main / chat === */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  position: relative;
}

.chat-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-inner {
  width: 100%;
  max-width: var(--max-chat-w);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === Welcome === */
.welcome {
  margin: 40px auto 8px;
  text-align: center;
  max-width: 580px;
  color: var(--text-dim);
}

.welcome h1 {
  color: var(--text);
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1.15;
}

.welcome h1 .accent {
  color: var(--neon);
  text-shadow: 0 0 14px rgba(0, 255, 65, 0.35);
}

.welcome p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 15.5px;
  color: var(--text);
}

/* === Messages === */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.msg.user {
  align-items: flex-end;
}

.msg.assistant {
  align-items: flex-start;
}

.bubble {
  padding: 12px 14px;
  border-radius: var(--radius);
  max-width: 92%;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 15.5px;
  line-height: 1.6;
}

.msg.user .bubble {
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.22);
  color: var(--text);
}

.msg.assistant .bubble {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.bubble a {
  color: var(--info);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bubble code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.bubble strong {
  color: var(--text);
  font-weight: 600;
}

/* === Markdown tables (flight results) === */
.md-table-wrap {
  margin: 10px -4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.md-table th,
.md-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}

.md-table tr:last-child td {
  border-bottom: none;
}

.md-table th {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-soft);
  border-bottom-color: var(--border-strong);
}

.md-table tbody tr:hover {
  background: var(--bg-hi);
}

.md-table td a {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  border: 1px solid var(--neon-line);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.12s, box-shadow 0.12s;
}

.md-table td a:hover {
  background: rgba(0, 255, 65, 0.18);
  box-shadow: 0 0 0 1px var(--neon-line);
}

/* Clickable flight name in the table — opens the detail card modal */
.md-table .flight-link {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--neon-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.12s, text-decoration-color 0.12s;
}

.md-table .flight-link:hover {
  color: var(--neon);
  text-decoration-color: var(--neon);
}

/* Flight detail card shown inside the modal when a flight name is clicked */
.flight-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 16px;
}

.flight-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.flight-row:last-child {
  border-bottom: none;
}

.flight-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.flight-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.flight-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.flight-hold-cta,
.flight-book-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.15s;
}

.flight-hold-cta {
  background: var(--yellow);
  color: #000;
}

.flight-hold-cta:hover {
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
}

.flight-book-cta {
  background: var(--neon);
  color: #000;
}

.flight-book-cta:hover {
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.55);
}

.flight-hold-cta:active,
.flight-book-cta:active {
  transform: translateY(1px);
}

/* === Fare alert form === */
.fare-alert-flight {
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}

.fare-alert-flight-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.fare-alert-flight-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

.form-field {
  display: block;
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.form-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon-line);
}

/* Hide the native number input spinner arrows */
.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.modal-action.primary {
  background: var(--neon);
  color: #000;
  border: none;
  font-weight: 700;
}

.modal-action.primary:hover {
  background: var(--neon);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.55);
}

.fare-success {
  text-align: center;
  padding: 14px 4px 4px;
}

.fare-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--neon-soft);
  color: var(--neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
}

.fare-success h3 {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
}

.fare-success p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* Pinned-header list layout — keep the H1, subheadline and search bar fixed
   at the top; let only the card grid scroll. Opt-in via .list-head +
   .list-scroll wrappers in the renderer. Used on /vacation-packages,
   /routes, /destinations list views. Detail pages don't render .list-head
   so they keep normal full-page scroll. */
[data-panel="vacation"].connectors-view:has(.list-head),
[data-panel="routes"].connectors-view:has(.list-head),
[data-panel="destination"].connectors-view:has(.list-head),
[data-panel="blog"].connectors-view:has(.list-head) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
[data-panel="vacation"]:has(.list-head) .conn-view-head,
[data-panel="routes"]:has(.list-head) .conn-view-head,
[data-panel="destination"]:has(.list-head) .conn-view-head,
[data-panel="blog"]:has(.list-head) .conn-view-head {
  flex-shrink: 0;
}
[data-panel="vacation"]:has(.list-head) .panel-view-content,
[data-panel="routes"]:has(.list-head) .panel-view-content,
[data-panel="destination"]:has(.list-head) .panel-view-content,
[data-panel="blog"]:has(.list-head) .panel-view-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
}
.list-head {
  flex-shrink: 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 4px;
}
.list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 0 32px;
}

/* === Product landing pages (Trains / Buses / Cabs / Activities / Insurance
   / Forex / eSIM). Shared layout: intro paragraph → popular-search chip
   grid → lead-capture form → FAQs. All rendered inside panel-view-content. */
.product-popular {
  margin-top: 8px;
}
.product-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.product-chip {
  display: inline-block;
  background: var(--bg-hi);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.product-chip:hover {
  border-color: var(--info-line);
  color: var(--info);
}
.product-form-sec .vac-form {
  max-width: 100%;
}

/* Outstation Cabs — multi-section form (Trip / Car / Year) */
.cab-section {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px 12px;
  margin: 0 0 14px;
  background: var(--bg-elev);
}
.cab-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--info);
  padding: 0 6px;
  margin: 0 0 4px;
}
.cab-section .form-field {
  margin: 8px 0 0;
}
.cab-roundtrip-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 2px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.cab-roundtrip-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--info);
  cursor: pointer;
  flex-shrink: 0;
}

/* Top-10 popular-route pills above the cab form */
.cab-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 4px;
}
.cab-route-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-hi);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
}
.cab-route-pill:hover {
  background: var(--bg-elev);
  border-color: var(--info-line);
  color: var(--info);
}
.cab-route-pill:active {
  transform: scale(0.97);
}

/* Mandatory-field asterisk used on the Origin label */
.form-req {
  color: var(--danger, #fb7185);
  font-weight: 600;
  margin-left: 2px;
}

/* Subtle shake when the calendar is required but empty on submit */
.vac-dates-summary.error {
  border-color: var(--danger, #fb7185);
  animation: cab-shake 0.4s ease;
}
@keyframes cab-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Inline tailor-made link tucked into the ready-made list intro */
.vac-tailor-link {
  display: inline-block;
  margin-left: 4px;
  color: var(--info);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.vac-tailor-link:hover {
  text-decoration: underline;
}

/* === Vacation Packages — landing tiles === */
.vac-landing-intro {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 22px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.vac-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .vac-tile-grid { grid-template-columns: 1fr; }
}
.vac-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
  text-align: left;
}
.vac-tile:hover {
  border-color: var(--neon-line);
  background: var(--bg-hi);
  transform: translateY(-1px);
  text-decoration: none;
}
.vac-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--neon-soft);
  color: var(--neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.vac-tile-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
}
.vac-tile-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.vac-tile-desc {
  margin: 4px 0 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.vac-tile-cta {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--neon);
  margin-top: auto;
}
.vac-tile:hover .vac-tile-cta {
  text-decoration: underline;
}

/* === Vacation Packages — ready-made package cards === */
.vac-pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 780px) {
  .vac-pkg-grid { grid-template-columns: 1fr; }
}
.vac-pkg-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 18px 14px;
  position: relative;
}
.vac-pkg-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  border: 1px solid var(--neon-line);
  margin-bottom: 10px;
}
.vac-pkg-name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.vac-pkg-duration {
  font-size: 13px;
  color: var(--info);
  font-weight: 600;
  margin-bottom: 4px;
}
.vac-pkg-itin {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.45;
}
.vac-pkg-extra-tags {
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vac-pkg-tag-extra {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--yellow);
  border: 1px solid var(--yellow-line);
}
.vac-pkg-dates-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 6px;
}
.vac-pkg-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.vac-pkg-date {
  display: inline-flex;
  flex-direction: column;
  padding: 5px 9px;
  background: var(--bg-hi);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1.3;
}
.vac-pkg-date-day {
  color: var(--text);
  font-weight: 600;
}
.vac-pkg-date-seats {
  color: var(--text-dim);
  font-size: 10.5px;
}
.vac-pkg-more {
  font-size: 11.5px;
  color: var(--text-dim);
  align-self: center;
  padding: 0 4px;
}
.vac-pkg-onreq {
  font-size: 12.5px;
  color: var(--info);
  font-weight: 600;
  padding: 5px 9px;
  background: var(--info-soft);
  border: 1px solid var(--info-line);
  border-radius: 7px;
}
.vac-pkg-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.vac-pkg-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.vac-pkg-price-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}
.vac-pkg-price-amt {
  font-size: 18px;
  font-weight: 700;
  color: var(--neon);
}
.vac-pkg-price-unit {
  font-size: 11px;
  color: var(--text-dim);
}
.vac-pkg-cta {
  padding: 8px 14px;
  background: var(--neon);
  color: #000;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow 0.12s;
}
.vac-pkg-cta:hover {
  box-shadow: 0 0 14px rgba(0, 255, 65, 0.5);
}

/* Make the whole card clickable while keeping the Enquire button distinct.
   Clickwrap layer covers the card; CTA stays above it via z-index. */
.vac-pkg-card { position: relative; }
.vac-pkg-clickwrap {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 1;
  text-decoration: none;
}
.vac-pkg-card:hover {
  border-color: var(--neon-line);
}
.vac-pkg-card:hover .vac-pkg-name a {
  color: var(--info);
}
.vac-pkg-name a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.vac-pkg-cta { position: relative; z-index: 2; }

/* === Package detail page === */
.vac-detail-head {
  margin-bottom: 14px;
}
.vac-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.vac-detail-duration {
  color: var(--info);
  font-weight: 600;
}
.vac-detail-itin {
  font-size: 15px;
  color: var(--text);
  margin: 8px 0 0;
}
.vac-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.vac-detail-bar-price {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.vac-detail-cta {
  padding: 11px 18px;
  font-size: 14.5px;
}

.vac-detail-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vac-detail-list li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.vac-detail-list.vac-detail-inc li::marker { color: var(--neon); }
.vac-detail-list.vac-detail-exc li::marker { color: var(--danger); }

.vac-detail-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vac-detail-day {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
}
.vac-detail-day > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}
.vac-detail-day > summary::-webkit-details-marker { display: none; }
.vac-detail-day-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  font-weight: 700;
  flex-shrink: 0;
}
.vac-detail-day-title { font-size: 15px; }
.vac-detail-day p {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.vac-detail-hotels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vac-detail-hotel {
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.vac-detail-hotel-city {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.vac-detail-hotel-list {
  font-size: 13.5px;
  margin-top: 2px;
}

.vac-detail-dates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.vac-detail-dates-table th,
.vac-detail-dates-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.vac-detail-dates-table tbody tr:last-child td { border-bottom: none; }
.vac-detail-dates-table th {
  background: var(--bg-hi);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}
.vac-detail-date-price {
  color: var(--neon);
  font-weight: 600;
  white-space: nowrap;
}

/* Enquiry-modal package summary */
.vac-pkg-summary {
  background: var(--bg-hi);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.vac-pkg-summary-line {
  margin-bottom: 3px;
}

/* === Vacation Packages structured form === */
.vac-form {
  max-width: 400px;
  margin: 0 auto;
}
.vac-form .form-field {
  margin-bottom: 16px;
}

.vac-country {
  position: relative;
}
.vac-country-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.vac-country-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.vac-country-opt:hover {
  background: var(--bg-hi);
  color: var(--neon);
}

.vac-dates-summary {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vac-dates-summary.set {
  color: var(--neon);
  font-weight: 600;
}

.vac-cal,
.vac-travellers {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.vac-cal {
  padding: 10px 12px 12px;
}
.vac-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vac-cal-title {
  font-size: 13.5px;
  font-weight: 600;
}
.vac-cal-nav,
.vac-step {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.vac-cal-nav:hover:not(:disabled),
.vac-step:hover:not(:disabled) {
  border-color: var(--neon-line);
  color: var(--neon);
}
.vac-cal-nav:disabled,
.vac-step:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.vac-cal-weekdays,
.vac-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.vac-cal-weekdays span {
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
  padding: 2px 0 4px;
}
.vac-cal-grid {
  gap: 2px;
}
.vac-cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.vac-cal-cell.empty {
  cursor: default;
}
.vac-cal-cell:not(.empty):not(.past):not(.sel):hover {
  background: var(--bg-hi);
}
.vac-cal-cell.past {
  color: var(--text-faint);
  opacity: 0.4;
  cursor: not-allowed;
}
.vac-cal-cell.in-range {
  background: var(--neon-soft);
  border-radius: 0;
}
.vac-cal-cell.hover-range {
  background: rgba(0, 255, 65, 0.22);
  border-radius: 0;
}
/* Selected start/return dates — dark green, distinct from the light-green range */
.vac-cal-cell.sel {
  background: var(--neon-deep);
  color: #000;
  font-weight: 700;
}
.vac-cal-cell.sel.start {
  border-radius: 7px 0 0 7px;
}
.vac-cal-cell.sel.end {
  border-radius: 0 7px 7px 0;
}

.vac-travellers {
  padding: 4px 12px;
}
.vac-trav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.vac-trav-row:last-child {
  border-bottom: none;
}
.vac-trav-label {
  font-size: 13.5px;
}
.vac-trav-sub {
  font-size: 11px;
  color: var(--text-dim);
}
.vac-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vac-step-val {
  min-width: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.vac-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.vac-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.vac-pill:hover {
  border-color: var(--neon-line);
  color: var(--text);
}
.vac-pill.on {
  background: var(--neon-soft);
  border-color: var(--neon);
  color: var(--neon);
  font-weight: 600;
}

/* === Hotel search — check-in / check-out row === */
.hot-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hot-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hot-date-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* === Visa section === */
.visa-intro {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 16px;
}
.visa-trip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
}
.visa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.visa-field-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
}
.visa-field-label em {
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
  color: var(--text-faint);
  font-weight: 500;
}
.visa-citizen {
  display: flex;
  align-items: center;
  background: var(--bg-hi);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 600;
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* "I'm going to" — typeahead search bar with floating results list.
   Replaces the older <select> dropdown so users can type a country name
   and pick from a filtered list. Re-uses .list-search for the input chrome. */
.visa-search {
  position: relative;
  margin: 0;
}
.visa-search .list-search-input {
  margin: 0;
}
.visa-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.visa-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text);
  transition: background 0.08s;
}
.visa-search-item:hover,
.visa-search-item.active {
  background: var(--bg-hi);
}
.visa-search-flag {
  font-size: 17px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.visa-search-name {
  flex: 1;
  font-weight: 500;
}
.visa-search-short {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 4px;
}
.visa-search-empty {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-dim);
  list-style: none;
}

/* "I already have a visa for" — toggle pills (one per country). Click to
   select; click again to deselect. Selected pills fill neon-green; inactive
   stay outlined. Replaces the older dropdown + add-button pattern. */
.visa-held-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.visa-held-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-hi);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.visa-held-pill:hover {
  border-color: var(--neon-line);
  color: var(--neon);
}
.visa-held-pill.active {
  background: var(--neon-soft);
  border-color: var(--neon-line);
  color: var(--neon);
}
.visa-perk {
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid var(--neon-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 8px;
}
.visa-perk-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--neon);
  margin-right: 4px;
}

.visa-result {
  margin-top: 18px;
}
.visa-result:empty {
  display: none;
}

.visa-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.visa-flag {
  font-size: 42px;
  line-height: 1;
}
.visa-card-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.visa-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Shared inline calendar icon — sits next to date/time text in pills,
   facts, and summaries. Sized small so it inherits parent line-height. */
.cal-ic {
  flex: 0 0 auto;
  opacity: 0.85;
  color: var(--neon);
}

.visa-ease {
  margin-bottom: 20px;
}
.visa-ease-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}
.visa-ease-score {
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}
.visa-ease-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-hi);
  overflow: hidden;
}
.visa-ease-fill {
  height: 100%;
  border-radius: 999px;
}
.ease-high {
  color: #00ff41;
}
.ease-high.visa-ease-fill {
  background: #00ff41;
}
.ease-good {
  color: #a3e635;
}
.ease-good.visa-ease-fill {
  background: #a3e635;
}
.ease-mid {
  color: var(--yellow);
}
.ease-mid.visa-ease-fill {
  background: var(--yellow);
}
.ease-low {
  color: #fb923c;
}
.ease-low.visa-ease-fill {
  background: #fb923c;
}

.visa-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.visa-fact {
  background: var(--bg-elev);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.visa-fact-k {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
}
.visa-fact-v {
  font-size: 16px;
  color: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.visa-fact-v .cal-ic {
  margin-top: 4px;
}
.visa-fact-v > span {
  min-width: 0;
}
.visa-type-badge {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}
.vt-free {
  background: rgba(0, 255, 65, 0.14);
  color: #00ff41;
}
.vt-voa {
  background: rgba(163, 230, 53, 0.14);
  color: #a3e635;
}
.vt-evisa {
  background: rgba(250, 204, 21, 0.14);
  color: var(--yellow);
}
.vt-sticker {
  background: rgba(251, 146, 60, 0.14);
  color: #fb923c;
}

.visa-block {
  margin-bottom: 20px;
}
.visa-block h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 10px;
}
.visa-block p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.visa-docs {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.visa-docs li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.visa-link {
  display: inline-block;
  color: var(--info);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}
.visa-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--info);
}

.visa-note {
  background: rgba(250, 204, 21, 0.07);
  border: 1px solid var(--yellow-line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 22px;
}
.visa-note strong {
  color: var(--text);
}
.visa-note a {
  color: var(--info);
  word-break: break-all;
}

.visa-lead {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px;
  margin-top: 8px;
}
.visa-lead h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.visa-lead .form-field {
  margin-bottom: 10px;
}
.visa-lead .fare-success {
  padding: 4px;
}

/* === Routes section === */
.route-list-intro {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 18px;
}

/* Shared list-search bar — used above /routes, /destinations and /blog
   card grids. Lives inside the panel-view-content max-width so it lines up
   with the grid below it. */
.list-search {
  position: relative;
  margin: 0 0 16px;
}
.list-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.list-search-input {
  width: 100%;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  appearance: none;
  -webkit-appearance: none;
}
.list-search-input::placeholder {
  color: var(--text-dim);
}
.list-search-input:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 1px var(--info-line);
}
.list-search:focus-within .list-search-icon {
  color: var(--info);
}
/* Hide native clear button — we don't style it consistently across browsers. */
.list-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.list-empty {
  text-align: center;
  margin: 28px 0 0;
  font-size: 14.5px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) {
  .route-grid { grid-template-columns: 1fr; }
}
.route-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.route-card:hover {
  border-color: var(--neon-line);
  background: var(--bg-hi);
  text-decoration: none;
}
.route-card-pill {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.route-card-meta {
  font-size: 13.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}
.route-card-meta .cal-ic {
  margin-top: 3px;
}

/* Destination cards — show a 2-line tagline instead of the visa fact, with
   fixed line-clamp so every card in the grid renders the same height. */
.dest-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dest-card .route-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0;
}
.dest-card-tagline {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 2);
}

/* Route detail page */
.route-crumb {
  margin-bottom: 14px;
  font-size: 14px;
}
.route-crumb a {
  color: var(--text-dim);
  text-decoration: none;
}
.route-crumb a:hover {
  color: var(--info);
}
/* Blog detail byline — author chip + publish/update dates + reading time. */
.blog-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--info-soft);
  color: var(--info);
  border: 1px solid var(--info-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.blog-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.blog-author-bio {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.blog-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.route-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.route-iata {
  color: var(--neon);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.route-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route-dot {
  color: var(--text-faint);
}
.route-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 22px;
}
.route-sec {
  margin-bottom: 22px;
}
.route-sec h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.route-sec p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 10px;
}
.route-sec a {
  color: var(--info);
  text-decoration: none;
}
.route-sec a:hover {
  text-decoration: underline;
  text-decoration-color: var(--info);
}
.route-cta {
  margin-top: 30px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--neon-line);
  border-radius: 12px;
  text-align: center;
}
.route-cta p {
  margin: 0 0 12px;
  font-size: 16px;
}
.route-cta .modal-action {
  display: inline-block;
  width: auto;
  padding: 11px 22px;
  text-decoration: none;
  margin-top: 0;
}

/* Route detail — quick-facts table */
.route-facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
}
.route-facts th,
.route-facts td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.5;
}
.route-facts tr:last-child th,
.route-facts tr:last-child td {
  border-bottom: none;
}
.route-facts th {
  font-weight: 600;
  color: var(--text-dim);
  width: 38%;
  background: rgba(255, 255, 255, 0.02);
}
.route-facts td {
  color: var(--text);
}

/* Route detail — FAQ */
.route-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 8px;
  background: var(--bg-elev);
}
.route-faq-item summary {
  padding: 13px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 28px;
}
.route-faq-item summary::-webkit-details-marker {
  display: none;
}
.route-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.15s;
}
.route-faq-item[open] summary::after {
  content: "−";
}
.route-faq-item p {
  margin: 0 0 14px;
  padding-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Route detail — related routes */
.route-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 640px) {
  .route-related-grid { grid-template-columns: 1fr; }
}
.route-related-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  transition: border-color 0.12s, background 0.12s;
}
.route-related-link:hover {
  border-color: var(--neon-line);
  background: var(--bg-hi);
  text-decoration: none;
}
.route-related-iata {
  color: var(--neon);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12.5px;
}
.route-related-pill {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}
.route-related-link:hover .route-related-pill {
  color: var(--neon);
}

/* Make assistant bubbles containing tables a bit wider for breathing room */
.msg.assistant .bubble:has(.md-table-wrap) {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 760px) {
  .md-table-wrap {
    margin: 10px -10px;
    border-radius: 8px;
  }
  .md-table th,
  .md-table td {
    padding: 8px 10px;
  }
  .md-table th {
    font-size: 10px;
  }
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--neon);
  background: var(--neon-soft);
  border: 1px solid var(--neon-line);
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
  align-self: flex-start;
}

.tool-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: pulse 1.2s ease-in-out infinite;
}

.tool-pill .dot.done {
  animation: none;
  background: var(--neon-deep);
  box-shadow: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 2px 0;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 4px rgba(0, 255, 65, 0.6);
  animation: bounce 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.error {
  border-color: rgba(255, 80, 80, 0.5) !important;
  color: #ff7a7a !important;
}

/* === Composer === */
.composer {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg) 35%);
  padding: 14px 24px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.composer-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-chat-w);
  display: flex;
  align-items: flex-end;
}

#input,
#hot-input {
  width: 100%;
  resize: none;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 14px 56px 14px 44px;
  font: inherit;
  /* 16px minimum on mobile prevents iOS Safari from auto-zooming on focus. */
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  min-height: 52px;
  max-height: 200px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.composer-search-icon {
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--text-dim);
  pointer-events: none;
  z-index: 1;
}

#input:focus ~ .composer-search-icon,
#hot-input:focus ~ .composer-search-icon,
.composer-inner:focus-within .composer-search-icon {
  color: var(--neon);
}

#input::placeholder,
#hot-input::placeholder {
  color: var(--text-dim);
}

#input:focus,
#hot-input:focus {
  border-color: var(--neon);
  box-shadow: var(--neon-glow);
}

#send,
#hot-send {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--neon);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.12s, transform 0.05s;
}

#send:hover:not(:disabled),
#hot-send:hover:not(:disabled) {
  box-shadow: 0 0 14px rgba(0, 255, 65, 0.55);
}

#send:active:not(:disabled),
#hot-send:active:not(:disabled) {
  transform: translateY(1px);
}

#send:disabled,
#hot-send:disabled {
  background: var(--border-strong);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}

.composer-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  max-width: var(--max-chat-w);
  width: 100%;
  padding: 0 16px;
}

/* === Sidebar toggle (mobile) === */
/* Mobile top bar — fixed header with the menu toggle + centred logo.
   Hidden on desktop; shown via the max-width:760px media query. */
.mobile-bar {
  display: none;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Tap-outside backdrop — shown only when the mobile sidebar is open */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 15;
  animation: fadeIn 0.12s ease-out;
}

.sidebar-backdrop.show {
  display: block;
}

/* === Scrollbar === */
.chat-scroll::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.chat-scroll::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.chat-scroll::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--grey-700);
}

/* Sidebar gets a thinner, lighter scrollbar so it's less obtrusive. */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

/* === Connectors main-area view === */
.connectors-view[hidden] {
  display: none;
}

.connectors-view {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 36px 32px 80px;
  width: 100%;
}

.conn-view-head {
  max-width: 880px;
  margin: 40px auto 28px;
}

.conn-view-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
}

/* Blog card titles use info-blue all the time — they're editorial links, so
   the colour signals clickability on every device. Hover also flips the
   card border from neon-green to info-blue to keep the palette consistent
   with the title colour. */
[data-panel="blog"] .route-card .route-card-pill {
  color: var(--info);
}
[data-panel="blog"] .route-card:hover {
  border-color: var(--info);
}
[data-panel="blog"] .route-card:hover .route-card-pill {
  text-decoration: underline;
  text-decoration-color: var(--info);
}

/* Destination cards — blue border + blue city/country name on hover (desktop),
   blue by default on touch devices since there is no real hover. */
[data-panel="destination"] .route-card:hover {
  border-color: var(--info);
}
[data-panel="destination"] .route-card:hover .route-card-title {
  color: var(--info);
}
@media (hover: none) {
  /* Touch devices: keep the grey border, but show the city/country in blue
     so the affordance is preserved without the heavy border highlight. */
  [data-panel="destination"] .route-card .route-card-title {
    color: var(--info);
  }
}

/* Route cards — same treatment: blue border + blue 'City to City (IATA)' pill
   on hover (desktop), blue text only on touch devices (border stays grey). */
[data-panel="routes"] .route-card:hover {
  border-color: var(--info);
}
[data-panel="routes"] .route-card:hover .route-card-pill {
  color: var(--info);
}
@media (hover: none) {
  [data-panel="routes"] .route-card .route-card-pill {
    color: var(--info);
  }
}

.conn-view-head p {
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
  text-align: center;
}

/* Generic sidebar panels (Past searches, Settings, About, Hotel, Vacation,
   Feedback, Privacy, Terms, Log in) render their content here. */
.panel-view-content {
  max-width: 720px;
  margin: 0 auto;
}

/* === Hotel panel — mirrors the chat (home) layout ===
   Hides the panel header so the welcome sits centered the same way as
   home, and pins the hotel composer to the bottom of the scroll area. */
[data-panel="hotel"] .conn-view-head {
  display: none;
}
[data-panel="hotel"].connectors-view {
  padding: 0;
  display: flex;
  flex-direction: column;
}
[data-panel="hotel"] .panel-view-content {
  max-width: none;
  width: 100%;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hot-composer {
  margin-top: auto;
  width: 100%;
  max-width: none;
}
.hot-welcome {
  padding: 36px 24px 0;
}

.panel-view-content p {
  line-height: 1.6;
  font-size: 15.5px;
}

.conn-group {
  max-width: 880px;
  margin: 0 auto 28px;
}

.conn-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 12px;
}

.conn-group-head h2 {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

.conn-group-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.conn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.conn-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.12s, background 0.12s;
  min-width: 0;
}

.conn-card:hover:not(.disabled) {
  border-color: var(--neon-line);
  background: var(--bg-hi);
}

.conn-card.disabled {
  opacity: 0.55;
}

.conn-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  font-family: "Google Sans", "Inter", sans-serif;
  overflow: hidden;
}

.conn-logo.conn-logo-img {
  background: var(--bg-hi);
  padding: 0;
}

.conn-logo.conn-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.conn-card-info {
  flex: 1;
  min-width: 0;
}

.conn-card-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conn-card-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 780px) {
  .conn-grid {
    grid-template-columns: 1fr;
  }
  .connectors-view {
    padding: 24px 16px 60px;
  }
}

/* === Toast === */
.toast[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  /* Center over the right (main) panel — sidebar takes --sidebar-w on the left.
     50% + half-sidebar shifts the midpoint into the main area. */
  bottom: 50%;
  left: calc(50% + var(--sidebar-w) / 2);
  transform: translate(-50%, 50%);
  background: var(--bg-elev);
  border: 1px solid var(--neon-line);
  color: var(--neon);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 65, 0.08);
  z-index: 200;
  animation: toastIn 0.18s ease-out;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 780px) {
  /* Sidebar collapses on mobile — center over full viewport instead. */
  .toast {
    left: 50%;
  }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, calc(50% + 8px)); }
  to { opacity: 1; transform: translate(-50%, 50%); }
}

/* === Modal === */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.14s ease-out;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 255, 65, 0.08);
  animation: modalIn 0.14s ease-out;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}

.modal-head h2 {
  text-align: center;
}

.modal-head .modal-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-head h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.modal-body {
  padding: 16px 18px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-intro {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

/* === Connectors panel === */
.conn-section {
  margin-bottom: 18px;
}

.conn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 0 4px;
}

.conn-section-head h3 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

.conn-section-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.conn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--bg-elev);
  transition: border-color 0.12s;
}

.conn-row:hover:not(.disabled) {
  border-color: var(--neon-line);
}

.conn-row.disabled {
  opacity: 0.55;
}

.conn-row-info {
  flex: 1;
  min-width: 0;
}

.conn-row-name {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.conn-row-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

/* === Toggle switch === */
.toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle input:disabled {
  cursor: not-allowed;
}

.toggle .track {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background 0.16s, box-shadow 0.16s;
}

.toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s, background 0.16s;
}

.toggle input:checked ~ .track {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.45);
}

.toggle input:checked ~ .track .knob {
  transform: translateX(16px);
  background: #000;
}

.toggle input:disabled ~ .track {
  background: var(--bg-elev);
}

/* === Past searches === */
.past-row {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 6px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s;
}

.past-row:hover {
  border-color: var(--neon-line);
}

.past-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.past-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Settings === */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.setting-row:last-of-type {
  border-bottom: none;
}

.setting-name {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.setting-desc {
  font-size: 13px;
  color: var(--text-dim);
}

.setting-value {
  font-size: 14.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.setting-divider {
  height: 12px;
}

/* === About === */
.about-meta {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.about-meta-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.about-meta-label {
  flex-shrink: 0;
  width: 82px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.about-meta a {
  color: var(--info);
  text-decoration: none;
}

.about-meta a:hover {
  text-decoration: underline;
  text-decoration-color: var(--info);
}

/* === Empty state === */
.empty-state {
  text-align: center;
  padding: 30px 12px;
  color: var(--text);
}

.muted {
  color: var(--text-dim);
}

.empty-state .muted {
  font-size: 14px;
  margin-top: 6px;
}

/* Larger empty state for main-area views */
.empty-state-large {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.empty-state-large .bell {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--neon-soft);
  color: var(--neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-state-large h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.empty-state-large p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === Modal action button === */
.modal-action {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s;
}

.modal-action:hover {
  border-color: var(--text-dim);
}

.modal-action.danger {
  border-color: var(--danger-line);
  color: var(--danger);
  background: var(--danger-soft);
}

.modal-action.danger:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: var(--danger);
}

/* === Mobile === */
@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
    /* Clear the fixed mobile top bar. */
    padding-top: 52px;
  }

  /* Frozen top bar: menu toggle on the left, logo centred. Stays put on scroll. */
  .mobile-bar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 10;
    padding: 0 12px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
  }

  .mobile-bar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.18s ease-out;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Sits inside the fixed mobile bar (no longer a floating button). */
  .sidebar-toggle {
    display: inline-flex;
    position: static;
  }

  .chat-inner {
    padding: 24px 16px 16px;
  }

  .composer {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }

  .welcome h1 {
    font-size: 24px;
  }

  .welcome {
    margin-top: 24px;
  }

  /* Prevent layout-affecting font scaling in landscape orientation. */
  body {
    -webkit-text-size-adjust: 100%;
  }
}

/* === SSR footer ===
   Server-side rendered footer with internal links to all top categories +
   popular routes / destinations / blog / packages. Visible to crawlers and
   no-JS users; hidden when the SPA hydrates (the main app fills the screen
   and our flex layout doesn't reserve room for it). */
.ssr-footer {
  display: none;
}
#ssr-noscript-content {
  display: none;
}
@media print {
  .ssr-footer, #ssr-noscript-content { display: block; }
}

/* === Blog detail SEO additions === */
.blog-progress { position: sticky; top: 0; height: 3px; background: rgba(255,255,255,0.05); z-index: 50; margin-bottom: 8px; }
.blog-progress-bar { height: 100%; background: var(--info); width: 0%; transition: width 0.1s linear; }
.blog-hero {
  height: 120px;
  border-radius: 14px;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
}
.blog-h1 { font-size: 28px; font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
.blog-fresh-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--neon-soft);
  color: var(--neon);
  border: 1px solid var(--neon-line);
  vertical-align: middle;
  margin-left: 6px;
}
.blog-author { text-decoration: none; color: inherit; }
.blog-author:hover .blog-author-name { color: var(--info); }
.blog-author-role { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.blog-reviewed a { color: var(--info); }
.blog-share {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 10px 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.blog-share-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}
.blog-share-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--bg-hi);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.blog-share-btn:hover { border-color: var(--info-line); color: var(--info); }
.blog-share-btn.saved { background: var(--neon-soft); border-color: var(--neon-line); color: var(--neon); }
.blog-toc {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--info);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.blog-toc h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.blog-toc ol { margin: 0; padding-left: 18px; }
.blog-toc li { font-size: 14px; line-height: 1.7; }
.blog-toc a { color: var(--info); text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; }

.blog-newsletter {
  background: linear-gradient(135deg, var(--info-soft) 0%, transparent 60%);
  border: 1px solid var(--info-line);
  border-radius: 12px;
  padding: 18px 20px;
}
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font: inherit;
}
.blog-author-card { background: var(--bg-elev); border-radius: 12px; padding: 18px 20px; }
.blog-author-card-inner { display: flex; gap: 16px; align-items: flex-start; }
.blog-author-card-avatar {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.blog-author-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.blog-author-card-links { font-size: 13px; margin-top: 8px; }
.blog-author-card-links a { color: var(--info); text-decoration: none; }
.blog-author-card-links a:hover { text-decoration: underline; }

/* === Author pages (list + detail) === */
.author-card { position: relative; padding-top: 50px; }
.author-card-avatar {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.author-detail-head { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.author-detail-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.author-detail-head h1 { font-size: 24px; margin: 0 0 4px; }
.author-detail-links { font-size: 13.5px; margin-top: 10px; }
.author-detail-links a { color: var(--info); text-decoration: none; }
.author-detail-links a:hover { text-decoration: underline; }

/* === Lazy-loaded images === */
img { max-width: 100%; height: auto; loading: lazy; }
img[loading="lazy"] { content-visibility: auto; }

/* === Print stylesheet === */
@media print {
  body { background: #fff; color: #000; }
  .sidebar, .composer, .mobile-bar, .blog-share, .blog-progress, .blog-newsletter,
  .ssr-footer, #ssr-noscript-content, #ssr-page-content,
  .blog-author-card-links, .route-cta { display: none !important; }
  .main, .main-scroll, .panel-view-content, .list-scroll {
    overflow: visible !important;
    max-width: 700px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .blog-hero { display: none; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
}
