


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.is-hidden {
  display: none !important;
}

:root {
  --navy: #1B2B6B;
  --navy-dark: #131f52;
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --teal-light: #eff6ff;
  --teal-border: #bfdbfe;
  --canvas: #f0f4f8;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --ink: #1a2340;
  --muted: #687693;
  --line: rgba(221, 227, 239, 0.6);
  --shadow-sm: 0 2px 8px rgba(27, 43, 107, 0.07);
  --shadow-md: 0 6px 24px rgba(27, 43, 107, 0.10);
  --shadow-lg: 0 12px 48px rgba(27, 43, 107, 0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --bg-overlay-start: rgba(240, 244, 248, 0.75);
  --bg-overlay-end: rgba(240, 244, 248, 0.95);
}

[data-theme="dark"] {
  --navy: #a5b4fc;
  --navy-dark: #c7d2fe;
  --teal: #60a5fa;
  --teal-dark: #3b82f6;
  --teal-light: #1e3a8a;
  --teal-border: #2563eb;
  --canvas: #0f172a;
  --surface: rgba(30, 41, 59, 0.85);
  --surface-solid: #1e293b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(51, 65, 85, 0.6);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
  --bg-overlay-start: rgba(15, 23, 42, 0.8);
  --bg-overlay-end: rgba(15, 23, 42, 0.95);
  --loader-bg: #0f172a;
}


.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--canvas);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.page-transition-overlay.is-faded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  height: 80px;
  width: auto;
  animation: logoPulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 160px;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.loader-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--teal);
  position: absolute;
  left: -100%;
  animation: loaderProgress 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(37, 99, 235, 0)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.3)); }
}

@keyframes loaderProgress {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}


.page {
  animation: pageEnter 0.5s ease-out forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: linear-gradient(var(--bg-overlay-start), var(--bg-overlay-end)), url('assets/world_landmarks_bg.png') center/cover fixed;
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}


.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  height: 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
}


.brand-mark,
.brand strong,
.brand small {
  display: none;
}


.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  background: transparent;
  white-space: nowrap;
  transition: all .2s;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-link:hover svg,
.nav-link.is-active svg {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link:hover {
  color: var(--navy);
  background: var(--teal-light);
}

.nav-link.is-active {
  color: var(--navy);
  font-weight: 700;
  background: var(--teal-light);
  border-color: var(--teal-border);
}


.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.lang-toggle-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--teal-border);
  background: linear-gradient(135deg, #f8fbff 0%, #e9f2ff 100%);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
}

.lang-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

[data-theme="dark"] .lang-toggle-btn {
  border-color: #334155;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
}

#themeToggleBtn.theme-toggle-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--teal-border);
  background: linear-gradient(135deg, #f8fbff 0%, #e9f2ff 100%);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
}

#themeToggleBtn.theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

[data-theme="dark"] #themeToggleBtn.theme-toggle-btn {
  border-color: #334155;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.user-menu-wrapper {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all .2s;
}

.user-menu-btn:hover {
  background: var(--teal-light);
  border-color: var(--teal-border);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar svg {
  width: 20px;
  height: 20px;
}

.profile-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--teal);
  box-shadow: var(--shadow-md);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-preview svg {
  width: 50px;
  height: 50px;
}

.photo-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s;
}

.photo-upload-label:hover {
  background: var(--teal);
  color: #fff;
}

.user-badge {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-btn .chevron {
  color: var(--muted);
  transition: transform .2s;
}

.user-menu-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-origin: top right;
  animation: dropdownFadeIn .15s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.dropdown-item svg {
  color: var(--muted);
}

.dropdown-item:hover {
  background: var(--teal-light);
  color: var(--navy);
}

.dropdown-item:hover svg {
  color: var(--teal-dark);
}

.dropdown-subitem {
  padding-left: 34px;
}

.dropdown-subitem svg {
  width: 14px;
  height: 14px;
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.text-danger {
  color: #dc2626 !important;
}

.text-danger svg {
  color: #ef4444 !important;
}

.text-danger:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}


.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  min-height: 40px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background .18s, transform .1s, box-shadow .18s;
}

.primary-btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.primary-btn:active {
  transform: scale(0.98);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  min-height: 40px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.ghost-btn:hover {
  background: var(--navy);
  color: #fff;
}

.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.google-auth-btn::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--canvas);
  color: #1a73e8;
  font-weight: 900;
}

.google-auth-btn:hover {
  border-color: rgba(14, 165, 167, .42);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}


.page {
  display: none;
}

.page.is-active {
  display: block;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 72px;
  flex: 1;
  width: 100%;
}


.hero-band {
  text-align: center;
  padding: 60px 24px 44px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-band h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-band>p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}


.style-tabs {
  display: inline-flex;
  gap: 8px;
  background: #f0f4f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 28px;
}

.style-tab {
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
}

.style-tab.is-active,
.style-tab:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}


.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.currency-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  vertical-align: middle;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.input-icon-wrap .icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

input:not(.input-icon-wrap input),
select:not(.input-icon-wrap select),
textarea {
  padding-left: 14px;
}

.input-icon-wrap input,
.input-icon-wrap select {
  padding-left: 40px;
}

input::placeholder {
  color: #9faec4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding-left: 14px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}


.calc-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.30);
}

.save-plan-btn {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}


.result-area {
  max-width: 960px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.result-panel,
.detail-panel,
.profile-panel,
.table-wrap,
.content-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-panel {
  min-height: 0;
}

.result-panel:empty {
  display: none;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.result-total {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.result-total strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 800;
}

.breakdown {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.bar {
  height: 8px;
  background: #e4eaf5;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}


.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--teal);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}


.section-band {
  margin-top: 52px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 6px;
}


.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.destination-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.destination-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}


.card-gallery {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--canvas);
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-img.is-active {
  opacity: 1;
}

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.3);
}

.gallery-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

.gallery-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}


.destination-body {
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.destination-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.destination-title-row h3 {
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}

.destination-rating-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 191, 71, 0.35);
  border-radius: 999px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.destination-rating-chip .rating-star {
  color: #f3a400;
  font-size: 0.78rem;
}

.destination-rating-chip.is-loading,
.destination-rating-chip.is-empty {
  display: none;
}

.destination-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.card-actions .ghost-btn,
.card-actions .primary-btn {
  flex: 1;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.85rem;
}


.pop-dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pop-dest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.pop-dest-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pop-dest-card .pin {
  color: var(--teal);
  font-size: 1.1rem;
}


.toolbar {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.search-field {
  display: grid;
  gap: 6px;
}


.budget-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}


.rates-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.rates-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.rate-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.live-dot {
  font-size: 0.75rem;
}


.auth-card-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 36px;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  height: 44px;
  margin: 0 auto 12px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.is-active) {
  color: var(--navy);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-demo-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 6px;
  transition: color .18s;
}

.auth-demo-link:hover {
  color: var(--navy);
}

.auth-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  accent-color: var(--teal);
  cursor: pointer;
}

.forgot-password-link {
  background: none;
  border: none;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s;
}

.forgot-password-link:hover {
  color: var(--teal);
  text-decoration: underline;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-left: 14px;
  padding-right: 48px;
}

.password-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.password-icon-btn:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.password-icon-btn svg {
  width: 18px;
  height: 18px;
}

.password-tools {
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.password-generate-btn {
  min-height: 40px;
  width: 100%;
  justify-content: center;
}

.password-strength {
  display: grid;
  gap: 7px;
}

.password-strength strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.password-strength-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf5;
}

.password-strength-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
  transition: width .18s ease, background .18s ease;
}

.password-tools[data-strength="weak"] .password-strength-bar span {
  background: #ef4444;
}

.password-tools[data-strength="fair"] .password-strength-bar span {
  background: #f59e0b;
}

.password-tools[data-strength="good"] .password-strength-bar span {
  background: #2563eb;
}

.password-tools[data-strength="strong"] .password-strength-bar span {
  background: #22c55e;
}

.password-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.password-checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.password-checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.password-checklist li.is-met {
  color: var(--teal-dark);
  font-weight: 700;
}

.password-checklist li.is-met::before {
  background: #22c55e;
}

@media (max-width: 480px) {
  .password-checklist {
    grid-template-columns: 1fr;
  }
}


.rates-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.converter-form {
  display: grid;
  gap: 14px;
}

.converter-amount-row {
  display: flex;
  gap: 10px;
  align-items: end;
}

.amount-input-lg {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  height: 58px !important;
  min-height: 58px !important;
  color: var(--navy) !important;
}

.converter-from-wrap {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}

.from-select-sm {
  width: 90px !important;
  min-height: 58px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 6px 8px !important;
  text-align: center;
}

.converter-direction {
  margin: 4px 0;
}

.dir-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--teal-border);
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  width: 100%;
  justify-content: center;
}

.dir-toggle:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.dir-icon {
  font-size: 1.1rem;
}

.converter-result-box {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 60px;
}

.conv-main {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conv-main strong {
  color: var(--teal-dark);
}

.conv-arrow {
  color: var(--teal);
  font-size: 1.2rem;
}

.conv-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  background: var(--teal-light);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}


.profile-panel {
  margin-bottom: 20px;
}

.profile-stack {
  display: grid;
  gap: 28px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}

.profile-favorites-section {
  display: grid;
  gap: 14px;
}


.readonly-profile-value {
  display: flex;
  align-items: center;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--line));
  color: var(--muted);
  cursor: not-allowed;
  user-select: text;
}
.plan-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.plan-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}


.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.wide-field {
  grid-column: 1 / -1;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.85rem;
}


.content-page {
  max-width: 820px;
}

details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: 0;
}

summary {
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: var(--teal);
  transition: transform .2s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

.contact-form {
  margin-top: 16px;
}

.form-status {
  min-height: 24px;
  color: var(--teal-dark);
  font-weight: 700;
  margin-top: 12px;
}


.detail-panel {
  margin-top: 22px;
}

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: start;
}

.detail-main img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.detail-list div {
  padding: 12px 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.detail-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-extra-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.detail-extra-card h4 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1rem;
}

.detail-extra-card.full-width {
  grid-column: 1 / -1;
}

.mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.mini-item:last-child {
  border-bottom: 0;
}

.mini-item strong {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-item .rating,
.mini-item .date {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--teal-light);
  padding: 2px 8px;
  border-radius: 999px;
}

.tips-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--canvas) 25%, var(--line) 50%, var(--canvas) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}


.toast {
  width: min(720px, calc(100% - 48px));
  margin: 32px auto 0;
  padding: 14px 18px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.warning {
  background: #f59e0b;
  color: #fff;
}

.toast.error {
  background: #ef4444;
  color: #fff;
}

.toast.success {
  background: #22c55e;
  color: #fff;
}

.is-hidden {
  display: none !important;
}


.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 32px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color .18s;
}

.footer-col ul li a:hover {
  color: var(--teal);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
}


h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}

h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  line-height: 1.65;
}


@media (max-width: 1024px) {
  .topbar {
    padding: 0 20px;
  }

  main {
    padding: 28px 20px 56px;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-row,
  .pop-dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .rates-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .budget-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }

  .nav-list {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  main {
    padding: 20px 16px 48px;
  }

  .hero-band {
    padding: 40px 16px 32px;
  }

  .hero-band h1 {
    font-size: 2rem;
  }

  .features-row,
  .destination-grid,
  .pop-dest-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .budget-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .breakdown-row {
    grid-template-columns: 1fr;
  }

  .plan-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }
}


.explore-results-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.explore-header-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.explore-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.explore-card h4 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 1rem;
}

.explore-card.full-width {
  grid-column: 1 / -1;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1024px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
  transform: translateY(0);
  transition: transform 0.3s;
}

.modal-overlay.is-hidden .modal-content {
  transform: translateY(20px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--teal);
  color: #fff;
}


.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-select-trigger:hover {
  border-color: var(--teal);
}

.custom-select-container.open {
  z-index: 999;
}

.custom-select-container.open .custom-select-trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-trigger .chevron {
  transition: transform 0.2s;
  color: #9faec4;
}

.custom-select-container.open .custom-select-trigger .chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-solid);
  border: 1.5px solid var(--teal);
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 99;
  box-shadow: var(--shadow-md);
  display: none;
}

.custom-select-container.open .custom-select-options {
  display: block;
  animation: slideDown 0.15s ease forwards;
}

.custom-select-search {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 42px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-solid);
  padding: 10px 14px;
  font-size: 0.9rem;
}

.custom-select-search:focus {
  box-shadow: none;
  border-color: var(--line);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-option {
  padding: 10px 14px 10px 40px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.92rem;
  color: var(--ink);
}

.custom-option:hover {
  background: var(--teal-light);
}

.custom-option.selected {
  background: var(--teal);
  color: white;
  font-weight: 500;
}

.custom-option.is-empty {
  color: var(--muted);
  cursor: default;
  font-style: italic;
}

.custom-option.is-empty:hover {
  background: transparent;
}

.upcoming-events-default {
  width: 100%;
}

.explore-section-header {
  margin-bottom: 24px;
}

.explore-section-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.upcoming-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.upcoming-city-card {
  background: var(--surface-solid);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.upcoming-city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.upcoming-city-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--teal-light);
}

.upcoming-city-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.upcoming-city-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}

.upcoming-country {
  font-size: 0.82rem;
}

.upcoming-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upcoming-events-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.event-dot {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.event-when {
  font-size: 0.78rem;
  margin-left: auto;
  white-space: nowrap;
}

.explore-city-btn {
  margin-top: auto;
  width: 100%;
  font-size: 0.85rem;
  padding: 8px 12px;
}




.result-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.result-action-bar .ghost-btn {
  flex: 1;
  min-width: 140px;
}

.compare-btn.is-added {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-border);
}




.comparison-section {
  margin-top: 36px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.comparison-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
  animation: slideInUp 0.35s ease-out both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.compare-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
  padding: 0;
}

.compare-remove-btn:hover {
  background: #ef4444;
}

.compare-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.compare-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.compare-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-top: 4px;
}

.compare-total-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.compare-total-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.compare-breakdown {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child { border-bottom: none; }

.compare-award {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.itinerary-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.itinerary-card.is-compact {
  box-shadow: none;
}

.itinerary-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.itinerary-header h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.itinerary-list {
  display: grid;
  gap: 10px;
}

.itinerary-day {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
}

.itinerary-day-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.itinerary-day h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 0.95rem;
}

.itinerary-day p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.destination-deep-dive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-grid,
.budget-band-list,
.prep-tip-row {
  display: grid;
  gap: 10px;
}

.insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-grid span,
.budget-band-list div,
.prep-tip-row span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--muted);
  font-size: 0.86rem;
}

.insight-grid strong,
.budget-band-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}

.budget-band-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.recommendation-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.recommendation-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recommendation-card h3 {
  margin: 6px 0;
  color: var(--navy);
  font-size: 1rem;
}

.recommendation-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.recommendation-reason,
.trust-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(32, 196, 183, 0.12);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.share-download-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trust-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.trip-match-panel,
.travel-profile-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.trip-match-panel h3,
.travel-profile-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.trip-match-form,
.plan-edit-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.trip-match-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-match-form .primary-btn {
  grid-column: 1 / -1;
}

.trip-match-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.trip-match-result {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  text-align: left;
}

.trip-match-result img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.trip-match-result h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.ai-planner-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.ai-planner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.ai-planner-form label:first-child,
.ai-planner-form .primary-btn {
  grid-column: 1 / -1;
}

.ai-planner-result {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.ai-planner-hero {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  align-items: start;
}

.ai-planner-hero img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.ai-planner-hero h3 {
  margin: 4px 0 8px;
  color: var(--navy);
}

.ai-planner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ai-planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ai-planner-result .itinerary-card {
  margin-top: 16px;
}

.visa-info-card,
.season-alert-card {
  border-left: 4px solid var(--teal);
}

.visa-info-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.season-alert-card p {
  color: var(--ink);
  line-height: 1.55;
}

.plan-edit-day {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 0;
}

.plan-edit-day legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 800;
}

.plan-edit-day textarea {
  resize: vertical;
}

.travel-profile-card {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.travel-profile-bars {
  display: grid;
  gap: 9px;
  min-width: 220px;
}

.travel-profile-bars span {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.travel-profile-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

.plan-notes-form,
.price-alert-form,
.plan-comment-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.plan-notes-form textarea,
.plan-comment-form textarea {
  resize: vertical;
}

.price-alert-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.price-alert-list div,
.plan-comments-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
}

.plan-comments-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.plan-comments-list {
  display: grid;
  gap: 8px;
}

.plan-comments-list div {
  display: block;
}

.plan-comments-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.plan-comment-form {
  grid-template-columns: 140px 1fr auto;
  align-items: end;
}

.achievement-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.achievement-panel h2 {
  margin: 0 0 14px;
  color: var(--navy);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.achievement-badge {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--surface-solid);
  opacity: 0.72;
}

.achievement-badge.is-unlocked {
  border-style: solid;
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-light);
  opacity: 1;
}

.achievement-badge small {
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .destination-deep-dive,
  .insight-grid,
  .share-download-actions,
  .recommendation-card,
  .ai-planner-layout,
  .ai-planner-form,
  .ai-planner-hero,
  .trip-match-panel,
  .trip-match-form,
  .trip-match-result,
  .travel-profile-card,
  .plan-comment-form {
    grid-template-columns: 1fr;
  }

  .recommendation-card img {
    height: 180px;
  }
}

.compare-row strong {
  color: var(--ink);
  font-weight: 700;
}

.compare-per-person {
  margin-top: 10px;
  font-size: 0.85rem;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.compare-rating {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.compare-per-person strong {
  color: var(--navy);
}




.share-total-box {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 18px;
  display: inline-block;
}

.share-breakdown {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.share-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.share-row strong {
  color: var(--ink);
}

.share-url-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-url-box input {
  flex: 1;
  font-size: 0.82rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--muted);
}

.share-url-box .primary-btn {
  white-space: nowrap;
  flex-shrink: 0;
}


.bar span {
  transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}




@media print {
  .topbar, .nav-list, .account-actions, .site-footer,
  .features-row, .section-band, .result-action-bar,
  .comparison-section, #pageLoader, .save-plan-btn,
  #featuredDestinations, .hero-band > form { display: none !important; }

  body { background: #fff !important; color: #000 !important; }

  .result-panel {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    padding: 24px !important;
  }

  .result-total strong { color: #1B2B6B !important; }
}




.map-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.map-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
}

.map-search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  border: 2px solid rgba(255,255,255,0.8);
}

.legend-economy  { background: #22c55e; }
.legend-standard { background: #f59e0b; }
.legend-luxury   { background: #6366f1; }

.wayg-map-container {
  height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--surface);
}

.map-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s;
}

.map-marker:hover { transform: scale(1.4); }

.map-popup { display: flex; flex-direction: column; gap: 6px; }
.map-popup-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.map-popup-body { font-size: 0.88rem; }




.detail-weather {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: #fff;
  margin-bottom: 16px;
}

.detail-weather h4 { color: rgba(255,255,255,0.85); }

.weather-widget { }

.weather-current {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.weather-icon-lg { font-size: 2.5rem; }

.weather-temp {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.weather-city {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.weather-day {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
}

.weather-day-name { font-weight: 700; font-size: 0.72rem; opacity: 0.8; }
.weather-day-max  { font-weight: 700; color: #fff; }
.weather-day-min  { opacity: 0.65; }
.weather-rain     { font-size: 0.7rem; color: #93c5fd; }




.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.detail-rating-badge {
  background: var(--teal-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: right;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--teal-border);
}

.detail-rating-badge .stars {
  color: #f59e0b;
  font-weight: 800;
  font-size: 1.1rem;
}

.detail-rating-badge .count {
  font-size: 0.75rem;
  color: var(--muted);
}

.review-avg {
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
}

.review-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--canvas);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 38px;
  border: 1px solid var(--line);
}

.review-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.82rem;
}

.review-content {
  min-width: 0;
  flex: 1;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.review-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.review-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}


.review-form { margin-top: 16px; }

.review-stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}

.review-stars-input input { display: none; }

.review-stars-input label {
  font-size: 1.6rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s;
  display: inline;
  padding: 0 2px;
}

.review-stars-input input:checked ~ label,
.review-stars-input label:hover,
.review-stars-input label:hover ~ label {
  color: #f59e0b;
}




.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.checklist-progress-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.checklist-progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.checklist-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checklist-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.checklist-item {
  display: flex;
  align-items: center;
}

.checklist-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: background 0.15s;
}

.checklist-item label:hover { background: var(--teal-light); }

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item.is-done label {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.7;
}




.conversion-history-wrap {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.conversion-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.history-clear-btn {
  font-size: 0.78rem;
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.history-clear-btn:hover { background: #fef2f2; }

.conversion-history-list {
  list-style: none;
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: var(--canvas);
  border-radius: 6px;
  font-size: 0.83rem;
}

.history-time {
  color: var(--muted);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-right: 8px;
}

.history-expr { color: var(--ink); }
.history-expr strong { color: var(--teal-dark); }




.map-info-panel {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}






.community-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .community-layout { grid-template-columns: 1fr; }
}

.community-sidebar h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.community-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-link {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-link:hover { background: var(--teal-light); }
.cat-link.is-active {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: transform 0.2s;
  cursor: pointer;
}

.topic-card:hover {
  transform: translateX(4px);
  border-color: var(--teal);
}

.topic-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.topic-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--teal-light);
  color: var(--teal-dark);
  text-transform: uppercase;
  font-weight: 700;
}

.topic-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.topic-excerpt,
.topic-body {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 12px;
}

.topic-body {
  color: var(--ink);
  white-space: pre-wrap;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.topic-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.topic-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topic-modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px;
}

.topic-reply {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.topic-reply p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.community-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}


.community-category-picker {
  border: 0;
  padding: 0;
  margin: 0;
}

.community-category-picker legend {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
}

.community-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-category-option {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.community-category-option:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.community-category-option.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.community-category-option:active,
.community-category-option:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 8px 18px rgba(37, 99, 235, 0.18);
}

.input-icon-wrap {
  position: relative;
}

.explore-suggestions {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.explore-suggestion-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.explore-suggestion-item:hover,
.explore-suggestion-item:focus-visible {
  background: var(--teal-light);
  outline: none;
}

.explore-suggestion-item span {
  display: grid;
  gap: 2px;
}

.explore-suggestion-item small {
  color: var(--muted);
  font-size: 0.78rem;
}
.community-form textarea {
  resize: vertical;
}

.community-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.community-empty {
  padding: 40px;
  text-align: center;
}

.ai-assistant-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  justify-items: end;
  gap: 12px;
}

.ai-assistant-bubble {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(32, 196, 183, 0.45);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ai-assistant-bubble:hover,
.ai-assistant-bubble.is-active {
  transform: translateY(-2px);
  background: var(--teal-dark);
}

.ai-bubble-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.ai-bubble-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ai-bubble-text {
  max-width: 160px;
  white-space: nowrap;
}

.ai-assistant-prompt {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  align-self: center;
  max-width: 210px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 4px 18px;
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: left;
}

.ai-assistant-prompt::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 9px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}

.ai-assistant-panel {
  grid-column: 1 / -1;
  grid-row: 1;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  animation: aiPanelIn 0.18s ease-out;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1), height 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.ai-assistant-panel.is-expanded {
  width: min(680px, calc(100vw - 32px));
  height: min(80vh, 800px);
}

.ai-assistant-panel.is-expanded .ai-panel-expand svg {
  transform: rotate(45deg);
}

@keyframes aiPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}

.ai-panel-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-panel-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.ai-panel-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ai-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ai-panel-expand {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.18s, color 0.18s, transform 0.22s;
}

.ai-panel-expand:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.ai-panel-expand svg {
  transition: transform 0.22s;
}

.ai-panel-resize-handle {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.5;
  border-radius: 4px;
  transition: opacity 0.18s;
  user-select: none;
  -webkit-user-select: none;
}

.ai-panel-resize-handle:hover {
  opacity: 1;
}

.ai-panel-header strong {
  display: block;
  color: var(--navy);
}

.ai-panel-header span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.ai-panel-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.ai-panel-form {
  display: grid;
  gap: 12px;
}


.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 8px;
  scroll-behavior: smooth;
}

.ai-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 20px;
}

.ai-chat-welcome span {
  font-size: 2rem;
}

.ai-chat-welcome p {
  line-height: 1.5;
  max-width: 240px;
}


.ai-panel-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface);
}

.ai-panel-input-bar textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 0.88rem;
  resize: none;
  line-height: 1.45;
  overflow-y: auto;
  transition: border-color 0.18s;
}

.ai-panel-input-bar textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ai-send-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.07);
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ai-answer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink);
  font-size: 0.84rem;
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.ai-answer-title {
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 8px;
}

.ai-answer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.ai-answer li {
  line-height: 1.45;
}

.ai-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.ai-chat-row.is-user {
  flex-direction: row-reverse;
}

.ai-chat-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.ai-chat-row.is-user .ai-chat-avatar {
  background: var(--navy);
  color: #fff;
}

.ai-chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-solid);
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.88rem;
}

.ai-chat-row.is-user .ai-chat-bubble {
  border: none;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, var(--navy) 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(27, 43, 107, 0.25);
}


.ai-chat-bubble p { margin: 0 0 8px; line-height: 1.6; }
.ai-chat-bubble p:last-child { margin-bottom: 0; }
.ai-chat-bubble .ai-md-heading { font-size:0.9rem; font-weight:700; color:var(--navy); margin:10px 0 4px; padding-bottom:3px; border-bottom:1px solid var(--line); }
.ai-chat-bubble .ai-md-heading:first-child { margin-top: 0; }
.ai-chat-bubble .ai-md-list { margin:4px 0 8px; padding-left:16px; display:flex; flex-direction:column; gap:5px; list-style:disc; }
.ai-chat-bubble .ai-md-list:last-child { margin-bottom: 0; }
.ai-chat-bubble .ai-md-list li { line-height:1.5; }
.ai-chat-bubble strong { font-weight:700; color:var(--navy); }
[data-theme='dark'] .ai-chat-bubble strong { color:#a5f3fc; }
.ai-chat-bubble em { font-style:italic; color:var(--muted); }
.ai-chat-bubble code { font-family:'Courier New',monospace; font-size:0.82rem; background:var(--canvas); border:1px solid var(--line); border-radius:4px; padding:1px 5px; color:var(--teal-dark); }

.ai-chat-row.is-user .ai-chat-bubble strong { color: #ffffff; }
.ai-chat-row.is-user .ai-chat-bubble em { color: rgba(255,255,255,0.75); }
.ai-chat-row.is-user .ai-chat-bubble .ai-md-heading { color: #ffffff; border-bottom-color: rgba(255,255,255,0.2); }
.ai-chat-row.is-user .ai-chat-bubble code { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #e0f2fe; }
.ai-chat-row.is-user .ai-chat-bubble a { color: #bae6fd; }

.ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 38px;
  min-height: 18px;
}

.ai-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: aiTyping 1s infinite ease-in-out;
}

.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 640px) {
  .ai-assistant-widget {
    right: 14px;
    bottom: 14px;
    left: 14px;
    align-items: stretch;
  }

  .ai-assistant-bubble {
    align-self: flex-end;
  }

  .ai-assistant-prompt {
    max-width: min(220px, calc(100vw - 130px));
  }

  .ai-bubble-text {
    max-width: 130px;
  }

  .ai-assistant-panel {
    width: 100%;
  }
}


.flatpickr-calendar {
  background: var(--surface-solid) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-xl) !important;
  border-radius: var(--radius) !important;
  font-family: inherit !important;
  padding: 8px 4px !important;
}
.flatpickr-calendar select, .flatpickr-calendar input {
  min-height: 0 !important;
  padding: 0 !important;
  width: auto !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  background: transparent !important;
  outline: none !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
.flatpickr-calendar .flatpickr-monthDropdown-months {
  padding: 0 !important;
  border-radius: 0 !important;
}
.flatpickr-calendar .numInputWrapper {
  width: 6.5ch !important;
}
.flatpickr-calendar .numInputWrapper span {
  display: none !important;
}
.flatpickr-day {
  color: var(--ink) !important;
  border-radius: var(--radius-sm) !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
}
.flatpickr-day.inRange {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.flatpickr-day.today {
  border-color: var(--teal) !important;
}


.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none; 
  user-select: none;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none; 
}

.faq-item summary::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687693' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] summary {
  background: var(--teal-light);
  border-bottom: 1px solid var(--line);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item > p {
  padding: 16px 20px;
  margin-top: 0 !important;
  background: var(--surface-solid);
  color: var(--muted);
  line-height: 1.6;
}


::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 10px;
  border: 2px solid var(--canvas);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}



.content-photo-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--teal-border);
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 700;
}

.content-photo-field input[type="file"] {
  width: 100%;
  color: var(--muted);
  font-weight: 600;
}

.content-photo-field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  padding: 9px 14px;
  margin-right: 12px;
  cursor: pointer;
}

.content-photo {
  margin-top: 10px;
  width: min(100%, 280px);
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.content-photo-wide {
  width: min(100%, 680px);
  max-height: 320px;
}

.content-photo-lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55vh;
}

.content-photo-lightbox img {
  max-width: min(92vw, 980px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}


.content-photo-lightbox {
  position: relative;
}

.content-photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.content-photo-close:hover {
  background: var(--blue);
}

.moderation-photo-preview {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.moderation-photo-preview .content-photo-wide {
  width: min(100%, 520px);
  max-height: 360px;
  object-fit: contain;
}


/* ==========================================================================
   MULTI-STOP ROUTE PLANNER STYLES
   ========================================================================== */

.multi-route-layout {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.multi-route-config {
  position: sticky;
  top: 86px;
  z-index: 5;
}

.multi-route-form,
.multi-route-results-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stops-container {
  padding: 14px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.68));
}

.stops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stops-heading {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.clear-stops-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background .18s, border-color .18s;
}

.clear-stops-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.stops-timeline-wrapper {
  position: relative;
  display: grid;
  gap: 12px;
}

.stops-timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--navy), var(--teal), rgba(37, 99, 235, 0.16));
}

.stop-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.stop-row-badge {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 900;
}

.origin-badge {
  background: var(--navy);
}

.stops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stops-list .empty-state {
  min-height: 92px;
  padding: 16px;
  border: 1px dashed var(--teal-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.64);
}

.stop-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(221, 227, 239, 0.92);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  box-shadow: 0 8px 20px rgba(27, 43, 107, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color .2s;
}

.stop-item:hover {
  transform: translateY(-1px);
  border-color: var(--teal-border);
  box-shadow: 0 12px 28px rgba(27, 43, 107, 0.1);
}

.origin-item {
  min-height: 74px;
}

.stop-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stop-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stop-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stop-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  min-width: 0;
  overflow-wrap: anywhere;
}

.stop-chip {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.stop-controls {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) minmax(120px, 1fr);
  align-items: end;
  gap: 10px;
}

.stop-controls label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}

.stop-controls input[type="number"] {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  text-align: center;
}

.stop-controls select {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.stop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.stop-reorder-actions {
  display: grid;
  gap: 4px;
}

.stop-move-btn {
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.stop-move-btn:hover:not(:disabled) {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-border);
}

.stop-move-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.stop-delete-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s;
}

.stop-delete-btn:hover {
  background: #fee2e2;
}

.add-stop-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1.5px dashed var(--teal-border);
  border-radius: var(--radius-sm);
  background: rgba(239, 246, 255, 0.72);
}

.add-stop-title {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.add-stop-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.add-stop-controls .primary-btn {
  min-height: 42px;
  padding: 0 16px;
}

.multi-route-meta-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.multi-route-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.multi-route-results-area {
  min-width: 0;
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(221, 227, 239, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.multi-route-map {
  width: 100%;
  height: clamp(340px, 46vh, 500px);
  min-height: 340px;
  z-index: 1;
}

.route-map-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  font-weight: 800;
  pointer-events: none;
}

.multi-route-results-panel {
  display: none;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Timeline */
.multi-route-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
  margin-top: 20px;
}

.multi-route-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.timeline-step {
  position: relative;
  padding-bottom: 24px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-step.origin-node .timeline-icon {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 700;
}

.timeline-step.transit-node {
  padding-bottom: 16px;
}

.timeline-step.transit-node .timeline-icon {
  border-color: var(--muted);
  color: var(--muted);
  width: 18px;
  height: 18px;
  left: -25px;
  top: 4px;
  background: var(--canvas);
}

.timeline-content {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: transform 0.2s;
}

.timeline-content:hover {
  transform: translateX(2px);
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
}

.timeline-transit-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
}

/* Map Polyline Custom Styles */
.route-path-line {
  stroke-dasharray: 6, 6;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .multi-route-layout {
    grid-template-columns: 1fr;
  }
  .multi-route-config {
    position: static;
  }
  .multi-route-results-area {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .stops-container,
  .add-stop-box {
    padding: 12px;
  }
  .stops-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .clear-stops-btn {
    width: 100%;
  }
  .stop-item {
    flex-direction: column;
  }
  .stop-title-line,
  .stop-actions {
    width: 100%;
  }
  .stop-actions {
    justify-content: space-between;
  }
  .stop-reorder-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .stop-move-btn,
  .stop-delete-btn {
    width: 36px;
    height: 34px;
  }
  .stop-controls,
  .multi-route-meta-grid,
  .add-stop-controls {
    grid-template-columns: 1fr;
  }
  .multi-route-map {
    height: 320px;
    min-height: 320px;
  }
}
