/* ============================================================
   Wayfarer — AI Travel Planner frontend
   Modern, professional, travel-editorial aesthetic.
   ============================================================ */

/* ============================================================
   Wayfarer — AI Travel Planner frontend
   Modern, luminous luxury travel editorial aesthetic (Light Mode).
   ============================================================ */

:root {
  /* Palette — Luminous Luxury Light Mode */
  --bg:           #f8fafc;
  --bg-subtle:    #f1f5f9;
  --surface:      #ffffff;
  --surface-card: #ffffff;
  --surface-hover: #f8fafc;

  --ink:          #0f172a;   /* deep slate charcoal */
  --ink-soft:     #475569;   /* medium slate */
  --muted:        #64748b;   /* soft slate */
  --line:         #e2e8f0;   /* clean borders */
  --line-strong:  #cbd5e1;

  --brand:        #0f766e;   /* rich deep teal */
  --brand-2:      #0d9488;
  --brand-ink:    #0f766e;
  --brand-light:  #f0fdfa;
  --accent:       #f59e0b;   /* warm golden amber */
  --accent-2:     #fb7185;

  --ok:           #16a34a;
  --warn:         #f59e0b;
  --bad:          #dc2626;

  --radius:       20px;
  --radius-sm:    12px;
  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:    0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg:    0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.04);

  --font:         'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(13, 148, 136, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(2, 132, 199, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ─── Global Sleek Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.75);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

/* ─── Global Focus-Visible & Select Option Styling ─────────────────── */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none !important;
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2) !important;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 8px 12px !important;
}

h1, h2, h3, .brand-name { font-family: var(--font); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }

a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: #eef2f6; color: #0f766e; padding: 1px 6px; border-radius: 6px; font-size: .85em; }

/* ─── Floating Translucent Glassmorphic Header ─────────────── */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1440px;
  width: calc(100% - 32px);
  margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 14px 35px -8px rgba(15, 23, 42, 0.10), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-header {
    top: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 12px 18px;
  }
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}
.brand-mark.small { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; }
.brand-name { font-size: 1.25rem; color: #0f172a; }

.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: .90rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.site-nav .nav-link:hover {
  background: rgba(13, 148, 136, 0.08);
  color: #0f766e;
}
.site-nav .nav-link.active {
  background: #0f766e;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.btn-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f766e;
  border: 1.5px solid #e2e8f0;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.btn-auth-pill:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.api-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: #475569;
  background: rgba(255, 255, 255, 0.85); border: 1px solid #e2e8f0;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.api-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.api-pill.online .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.api-pill.offline .dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(220,38,38,.18); }

/* ─── Hero (Full Screen Travel Sketches Background) ───────────── */
.hero-wide {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  margin-top: -68px;
  padding: clamp(90px, 11vw, 130px) clamp(16px, 4vw, 48px) 50px;
  background: url('../images/background-with-sketches-travel_23-2147557362.avif') center/cover no-repeat;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-header-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-main-title {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 12px;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  letter-spacing: -0.015em;
}

.hero-sub {
  font-size: 1.05rem;
  color: #475569;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─── Form Card (Translucent Glassmorphism Travel Console) ───── */
.form-card-wide {
  max-width: 1360px;
  width: 100%;
  margin: 20px auto 0;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: visible;
  text-align: left;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  flex-wrap: wrap;
}

.mode-tab {
  background: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mode-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}

.mode-tab.active {
  background: rgba(255, 255, 255, 0.92);
  color: #0f766e;
  font-weight: 700;
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-console-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.5fr 1.3fr;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  z-index: 50;
  overflow: visible !important;
}
@media (max-width: 960px) {
  .search-console-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .search-console-grid {
    grid-template-columns: 1fr;
  }
}

.console-segment {
  position: relative;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  z-index: 20;
  overflow: visible !important;
}
.console-segment:hover {
  background: rgba(255, 255, 255, 0.45);
}
.console-segment.has-dropdown-open {
  z-index: 99999 !important;
}
.console-segment.bordered-left {
  border-left: 1px solid rgba(226, 232, 240, 0.65);
}

/* ─── Google Search Style Autocomplete Dropdown ─────────────── */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 6px;
  right: 6px;
  background: #ffffff !important;
  border: 1.5px solid #0f766e !important;
  border-radius: 18px;
  box-shadow: 0 24px 60px -8px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: 8px;
  z-index: 999999 !important;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 3px;
  animation: dropdownFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.autocomplete-dropdown.open {
  display: flex !important;
}
.autocomplete-dropdown[hidden] {
  display: none !important;
}

.autocomplete-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 6px 12px 4px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}
.suggestion-item:hover,
.suggestion-item.selected {
  background: #f0fdfa;
}

.suggestion-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.suggestion-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f766e;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.suggestion-item:hover .suggestion-icon,
.suggestion-item.selected .suggestion-icon {
  background: #0f766e;
  color: #ffffff;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.suggestion-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.suggestion-title mark,
.suggestion-title strong {
  color: #0f766e;
  font-weight: 900;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.4);
}
.suggestion-sub {
  font-size: 0.77rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.suggestion-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.suggestion-badge.badge-km {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.25);
}
.suggestion-badge.badge-airport {
  background: #e0f2fe;
  color: #0369a1;
}
.suggestion-badge.badge-destination {
  background: #ccfbf1;
  color: #0f766e;
}

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

.pod-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-picker-wrap {
  display: flex;
  align-items: center;
}

.currency-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%230f766e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1.5px solid rgba(13, 148, 136, 0.35);
  background-color: rgba(240, 253, 250, 0.95);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f766e;
  padding: 4px 22px 4px 10px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.currency-dropdown:hover,
.currency-dropdown:focus {
  background-color: #ffffff;
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.currency-dropdown option {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

.pod-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0fdfa;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.pod-header label {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.console-segment input.big-input,
.console-segment input,
#origin,
#destination {
  border: none !important;
  background: transparent !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  padding: 2px 0 !important;
  outline: none !important;
  width: 100% !important;
  font-family: var(--font) !important;
  letter-spacing: -0.02em !important;
}

.console-segment input.big-input::placeholder,
.console-segment input::placeholder,
#origin::placeholder,
#destination::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  opacity: 0.9 !important;
}

.segment-sub {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 4px;
}

.dates-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.date-field-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.date-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.date-input {
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  width: 100%;
  transition: all 0.2s ease;
}
.date-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #0d9488;
}
.date-separator {
  color: #cbd5e1;
  font-weight: 700;
}
.date-badge-row {
  margin-top: 6px;
}
.night-counter {
  background: rgba(240, 253, 250, 0.85);
  color: #0f766e;
  border: 1px solid rgba(153, 246, 228, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}

.traveler-budget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.tb-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
  color: #0f766e;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.tb-stepper:focus-within {
  background: rgba(255, 255, 255, 0.95);
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.tb-num-input {
  width: 24px;
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
  text-align: center;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}
.tb-num-input::-webkit-outer-spin-button,
.tb-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tb-stepper-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  user-select: none;
}

.budget-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
  transition: all 0.2s ease;
}
.budget-input-group:focus-within {
  background: rgba(255, 255, 255, 0.95);
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.currency-symbol {
  color: #0f766e;
  font-weight: 800;
  font-size: 1.3rem;
  margin-right: 6px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.budget-num-input {
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
  outline: none;
  padding: 0;
  font-family: inherit;
  letter-spacing: -0.01em;
  -moz-appearance: textfield;
}
.budget-num-input::-webkit-outer-spin-button,
.budget-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.budget-num-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
  font-size: 1.15rem;
  opacity: 0.8;
}

.preferences-console {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 22px 24px;
  background: rgba(248, 250, 252, 0.45);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
@media (max-width: 900px) {
  .preferences-console {
    grid-template-columns: 1fr;
  }
}

.pref-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.pacing-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pace-btn {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.pace-btn span {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.75rem;
}
.pace-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #cbd5e1;
  color: #0f172a;
}
.pace-btn.active {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.15);
}
.pace-btn.active span {
  color: #0d9488;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.theme-tag {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.theme-tag:hover, .theme-tag.active, .theme-tag.selected {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

/* ─── Classy Custom Vision Prompt Card ────────────────────────── */
.vision-card-group {
  background: rgba(255, 255, 255, 0.68);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.vision-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vision-header-row label {
  color: #0f766e !important;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vision-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vision-box-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vision-textarea {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  width: 100% !important;
  resize: none !important;
  font-family: var(--font-body) !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease !important;
}

.vision-textarea:focus {
  border-color: #0d9488 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
}

.vision-textarea::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

.vision-quick-prompts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.prompt-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.vision-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.85);
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vision-chip:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
}

.form-cta-bar {
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}
.btn-hero-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(13, 148, 136, 0.4);
  transition: all 0.25s ease;
}
.btn-hero-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -6px rgba(13, 148, 136, 0.5);
}
.cta-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.cta-trust-badges span i {
  color: #0d9488;
}

.form-flash {
  animation: pulseFormGlow 0.9s ease-out;
}

@keyframes pulseFormGlow {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6); border-color: #0d9488; }
  50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.2); border-color: #0d9488; }
  100% { box-shadow: 0 20px 45px -10px rgba(15,23,42,0.12); }
}

/* ─── Quick Vibe Pills Bar ─── */
.quick-vibe-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.vibe-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vibe-quick-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vibe-quick-pill i {
  color: #0d9488;
}

.vibe-quick-pill:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
  transform: translateY(-1px);
}

/* ─── Features Showcase (TripAdvisor / TripPlanner.ai Style) ─── */
.features-showcase {
  max-width: 1620px;
  width: 96%;
  margin: 30px auto 40px;
  padding: 0 clamp(12px, 2vw, 24px);
}

.features-inner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.features-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.features-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f0fdfa;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.features-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.features-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  transition: all 0.2s ease;
}

.feature-item-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

.f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-item-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-item-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ─── Search Console Grid ─────────────────────────────────────── */
.search-console-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr 1.3fr;
  background: #fff;
  border-radius: 16px 16px 0 0;
}
@media (max-width: 900px) {
  .search-console-grid {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .search-console-grid {
    grid-template-columns: 1fr;
  }
}

.console-segment {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  overflow: visible !important;
}
.console-segment:hover {
  background: #f8fafc;
}
.console-segment.has-dropdown-open {
  z-index: 99999 !important;
}
.bordered-left {
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) {
  .bordered-left {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .search-console-grid > div:nth-child(2),
  .search-console-grid > div:nth-child(4) {
    border-left: 1px solid var(--line);
    border-top: none;
  }
  .search-console-grid > div:nth-child(3),
  .search-console-grid > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .bordered-left, .search-console-grid > div {
    border-left: none !important;
    border-top: 1px solid var(--line);
  }
}

.console-segment label {
  color: var(--brand-ink);
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.segment-sub {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.night-counter {
  color: var(--brand-ink);
  font-weight: 600;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
}

/* ─── High-Contrast Inputs ─────────────────────────────────────── */
.input-wrap.no-border input,
.input-wrap.no-border select,
.console-segment input.big-input,
#origin,
#destination {
  border: none !important;
  background: transparent !important;
  padding: 2px 0 !important;
  font-size: 1.45rem !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  width: 100% !important;
  outline: none !important;
}

.input-wrap.no-border input::placeholder,
.console-segment input.big-input::placeholder,
#origin::placeholder,
#destination::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
}

.input-wrap.invalid { box-shadow: 0 0 0 2px var(--bad) !important; border-radius: var(--radius-sm); }
/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 12px 18px; transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}
.btn-block { width: 100%; margin-top: 6px; padding: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(15,118,110,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(15,118,110,.36); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-approve { background: var(--ok); color: #fff; }
.btn-approve:hover { background: #15803d; }
.btn-modify { background: var(--accent); color: #3a2a05; }
.btn-modify:hover { background: #e08e09; }
.btn-reject { background: #fff; color: var(--bad); border: 1.5px solid #f4caca; }
.btn-reject:hover { background: #fff5f5; }

.form-error { color: var(--bad); font-size: .85rem; font-weight: 600; margin: 12px 0 0; }

/* ─── Whole Page Workspace Layout ─── */
.workspace {
  max-width: 1620px; width: 96%; margin: 0 auto 40px;
  padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  position: relative; z-index: 2;
}

/* ─── Full-Page Dashboard Layout (Full Width, No Cramped Sidebar) ─── */
.plan-dashboard-grid {
  display: block;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.plan-main-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.plan-side-column {
  display: none !important;
}

@media (max-width: 1080px) {
  .plan-dashboard-grid {
    width: 100%;
  }
}

/* ─── Side Weather Station Card (Full-Width Responsive Banner) ─── */
.weather-side-widget {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.weather-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-side-head h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.weather-side-hero {
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.weather-hero-temps {
  display: flex;
  flex-direction: column;
}
.weather-hero-big {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.weather-hero-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}
.weather-hero-icon {
  font-size: 2.4rem;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.weather-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.weather-metric-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.metric-k {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.metric-v {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.weather-mini-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.weather-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  transition: background 0.15s ease;
}
.weather-mini-row:hover {
  background: #eef6f5;
}

.workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.workspace-head h2 { font-size: 1.6rem; margin: 0 0 4px; }
.ws-meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* pipeline stepper */
.pipeline { list-style: none; display: flex; align-items: flex-start; padding: 0; margin: 0 0 24px; gap: 0; }
.pipeline .step { flex: 1; text-align: center; position: relative; color: var(--muted); }
.pipeline .step::before {
  content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px;
  background: var(--line); z-index: 0;
}
.pipeline .step:first-child::before { display: none; }
.step-icon {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line); color: var(--muted);
  transition: all .25s;
}
.step-label { font-size: .82rem; font-weight: 600; }
.step.active .step-icon { border-color: var(--brand-2); color: var(--brand); box-shadow: 0 0 0 5px rgba(20,184,166,.15); }
.step.active { color: var(--brand-ink); }
.step.done .step-icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done::before { background: var(--brand-2); }
.step.done { color: var(--ink-soft); }
.step.gate-wait .step-icon { border-color: var(--accent); color: var(--warn); box-shadow: 0 0 0 5px rgba(245,158,11,.18); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(245,158,11,.18);} 50% { box-shadow: 0 0 0 9px rgba(245,158,11,.05);} }

/* working banner */
.working-banner {
  display: none; flex-direction: column; gap: 14px;
  background: linear-gradient(135deg, #f0fbf9 0%, #f8fafc 100%);
  border: 1px solid #cdeae5; color: var(--brand-ink);
  padding: 18px 20px; border-radius: var(--radius); font-weight: 600;
  box-shadow: 0 4px 18px rgba(13, 148, 136, .08);
}
.working-head { display: flex; align-items: flex-start; gap: 12px; }
.working-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.working-title { font-size: 1rem; font-weight: 700; color: var(--brand-ink); }
.working-sub {
  font-weight: 500; font-size: .78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.progress-wrap { width: 100%; }
.progress-track {
  position: relative; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.progress-fill {
  position: relative; z-index: 1; height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand), #14b8a6);
  transition: width .65s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 12px rgba(13, 148, 136, .35);
}
.working-banner.gate-pause {
  border-color: #f6e0b3;
  background: linear-gradient(135deg, #fffaf0 0%, #f8fafc 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, .1);
}
.working-banner.gate-pause .spinner { display: none; }
.working-banner.gate-pause .working-head::before {
  content: '\f28b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.15rem; font-weight: 800;
  color: var(--warn);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.working-banner.gate-pause .progress-shimmer { animation: none; opacity: 0; }
.working-banner.gate-pause .progress-fill {
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, .25);
}
.working-banner.over-draft {
  margin-bottom: 20px;
  border-color: #b8e0db;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
}
.progress-shimmer {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: progress-shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.status-lines {
  position: relative; min-height: 2.2em;
}
.status-line {
  display: block; position: absolute; left: 0; right: 0; top: 0;
  font-weight: 500; font-size: .9rem; color: var(--ink-soft); line-height: 1.45;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.status-line.visible {
  opacity: 1; transform: translateY(0);
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #cdeae5; border-top-color: var(--brand-2);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Review gate ──────────────────────────────────────────── */
.draft-area { margin-top: 24px; }
.review-gate {
  background: linear-gradient(180deg, #fffaf0, #fff);
  border: 1.5px solid #f6e0b3; border-radius: var(--radius);
  padding: 22px; margin-bottom: 26px;
}
.gate-head { margin-bottom: 16px; }
.gate-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #3a2a05; font-weight: 700; font-size: .82rem;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 8px;
}
.gate-head p { margin: 8px 0 0; color: var(--ink-soft); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-box { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #f0d99a; }
.feedback-hint {
  margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: #fff8eb; color: #7c5a10; font-size: .88rem; line-height: 1.5;
}
.feedback-box label { display: block; font-weight: 600; margin-bottom: 8px; }
.feedback-box textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; resize: vertical;
}
.feedback-box textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.feedback-actions { display: flex; gap: 10px; margin-top: 12px; }

/* ─── Itinerary ────────────────────────────────────────────── */
.itinerary { display: grid; gap: 22px; }
.summary-card {
  background: linear-gradient(135deg, var(--brand-ink), var(--brand));
  color: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-md);
}
.summary-card h3 { margin: 0 0 6px; font-size: 1.8rem;
  letter-spacing: -0.02em; }
.summary-card .sum-sub { opacity: .85; margin: 0 0 18px; }
.sum-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.sum-stat { background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 12px 16px; min-width: 110px; }
.sum-stat .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.sum-stat .v { font-size: 1.25rem; font-weight: 800; font-family: var(--font); }

/* budget */
.budget-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.budget-card h3 { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.budget-card h3 i { color: var(--accent); }
.budget-row { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 12px; margin-bottom: 12px; }
.budget-row .b-label { font-weight: 600; font-size: .9rem; text-transform: capitalize; }
.b-bar { height: 10px; background: #eef1f7; border-radius: 999px; overflow: hidden; }
.b-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.budget-row .b-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* day cards */
.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.day-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: #f9fbfd; border-bottom: 1px solid var(--line);
}
.day-head .d-title { display: flex; align-items: center; gap: 12px; }
.day-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; font-family: var(--font); }
.day-head h4 { margin: 0; font-size: 1.05rem; }
.day-head .d-date { color: var(--muted); font-size: .82rem; }
.day-weather { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); background: #eef6f5; padding: 6px 12px; border-radius: 999px; }
.day-body { padding: 8px 20px 18px; }
.activity { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.activity:last-child { border-bottom: 0; }
.activity .a-time { flex: 0 0 100px; font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 2px; }
.a-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.a-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.a-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.a-spec-badge i {
  color: #0f766e;
}
.a-spec-badge.spec-cost {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #b45309;
}
.a-travel-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-left: 3.5px solid #0f766e;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #0f766e;
  font-weight: 600;
}
.a-travel-connector strong {
  color: #0f172a;
}
.a-travel-connector i {
  font-size: 0.92rem;
}
.activity .a-body { flex: 1; display: flex; gap: 24px; align-items: flex-start; text-align: left; flex-direction: row; }

.a-text { flex: 1; min-width: 0; }
.activity .a-title { font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.activity .a-title a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.activity-title-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px dotted var(--brand);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.activity-title-link:hover {
  color: var(--brand);
  border-bottom-style: solid;
}
.activity-title-link .activity-link-icon {
  font-size: 0.72rem;
  color: var(--brand);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.activity-title-link:hover .activity-link-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}
.activity .a-desc { color: var(--ink-soft); font-size: .95rem; margin: 0 0 8px; line-height: 1.6; }
.activity .a-cost { display: inline-block; font-weight: 700; color: var(--accent); font-size: .88rem; padding: 4px 10px; background: rgba(245, 158, 11, 0.1); border-radius: 6px; margin-top: 6px; }
.a-travel {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; margin-bottom: 12px;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}
.a-travel strong { color: var(--ink); font-weight: 700; }
.a-travel i { opacity: .7; }

.day-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.day-route {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700;
  color: var(--brand); background: #eef6f5; padding: 6px 12px; border-radius: 999px;
}

/* route map */
.route-map-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.route-map-card h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.route-map-card h3 i { color: var(--brand); }
.route-map-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: .92rem; }
.carto-power-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.35);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.map-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.map-day-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pill-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .2s ease; font-family: inherit;
}
.day-pill-btn:hover { border-color: var(--brand); color: var(--brand); }
.day-pill-btn.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.day-pill-btn.active .pill-dot { background: #fff !important; }

.route-map-wrap { height: 440px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); overflow: hidden; background: #fdfbf7; box-shadow: inset 0 1px 4px rgba(0,0,0,0.05); }

/* ─── Leaflet Custom Speech-Bubble Callout Pins (Matching Freepik/Google Map Style) ─── */
.wayfarer-pin-wrapper { background: transparent !important; border: none !important; }
.wayfarer-map-callout {
  position: relative; display: flex; flex-direction: column; align-items: center;
  user-select: none; pointer-events: auto; cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.wayfarer-map-callout:hover { transform: translateY(-4px) scale(1.08); z-index: 1000 !important; }

.callout-bubble {
  background: var(--pin-bg, #fff);
  border: 2px solid var(--pin-color, #2563eb);
  border-radius: 8px; padding: 4px 8px;
  min-width: 95px; max-width: 140px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.bubble-row {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  margin-bottom: 2px;
}
.bubble-time {
  font-size: .65rem; font-weight: 700; color: var(--pin-text);
  background: rgba(255,255,255,.9); padding: 1px 4px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 3px;
}
.bubble-tag {
  font-size: .60rem; font-weight: 800; text-transform: uppercase;
  background: var(--pin-color); color: #fff; padding: 1px 5px; border-radius: 3px;
  letter-spacing: .02em;
}
.bubble-title {
  font-size: .74rem; font-weight: 800; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.callout-needle {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--pin-color);
  margin-top: -1px;
}

.callout-anchor {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pin-color); color: #fff;
  border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  display: grid; place-items: center;
  font-size: .70rem; font-weight: 800;
  margin-top: -2px;
}
.wayfarer-map-callout.is-lodging .callout-anchor { background: #4338ca; }

/* ─── Leaflet Controls Modernization ─────────────────────────────── */
.leaflet-control-layers {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15) !important;
  border: 1px solid var(--line) !important;
  font-family: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
}
.leaflet-control-layers-expanded {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
}
.leaflet-control-zoom {
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border-bottom-color: var(--line) !important;
}
.leaflet-control-zoom a:hover {
  background-color: #f8fafc !important;
  color: #0f766e !important;
}

/* ─── Leaflet Popups (High Contrast, Ultra-Readable Card) ─── */
.wayfarer-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.22), 0 0 1px 1px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
}
.wayfarer-leaflet-popup .leaflet-popup-content {
  margin: 0;
  line-height: 1.45;
  width: 280px !important;
}
.wayfarer-leaflet-popup .leaflet-popup-tip {
  background: #ffffff;
}

.map-popup-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.map-popup-card .popup-head {
  padding: 14px 16px 10px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}
.map-popup-card .popup-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}
.map-popup-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.3;
}
.popup-loc-sub {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.map-popup-card .popup-body {
  padding: 12px 16px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popup-time {
  font-size: 0.84rem;
  color: #334155;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.popup-time i {
  color: #0f766e;
}
.popup-time strong {
  color: #0f172a;
  font-weight: 700;
}
.popup-travel-from {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.popup-travel-from i {
  color: #0d9488;
}
.popup-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.popup-maps-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0f766e;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.22);
}
.popup-maps-link:hover {
  background: #0d9488;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.32);
}

/* ─── Interactive Sequence Timeline Track (Replaces Cluttered Table) ─── */
.sequence-timeline-wrapper {
  background: #f8fafc; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.day-sequence-track { margin-bottom: 14px; }
.day-sequence-track:last-child { margin-bottom: 0; }
.track-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: .90rem; color: var(--ink);
}
.track-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.track-sub { font-size: .75rem; color: var(--muted); margin-left: 6px; }
.track-flow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.seq-leg-connector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px;
}
.seq-leg-pill {
  font-size: 0.70rem;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.sequence-step {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 12px;
  cursor: pointer; transition: all .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sequence-step:hover {
  border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.sequence-step.active-step {
  border-color: #0f766e !important;
  background: #f0fdfa !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22), 0 4px 12px rgba(15, 118, 110, 0.12) !important;
  transform: translateY(-2px) scale(1.02);
}
.sequence-step.active-step .seq-title {
  color: #0f766e !important;
  font-weight: 800 !important;
}
.sequence-step.active-step .seq-badge {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0f766e !important;
}
.sequence-step.is-hotel-step { border-color: #c7d2fe; background: #f5f7ff; }
.seq-badge {
  width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center;
  color: #fff; font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.seq-info { display: flex; flex-direction: column; text-align: left; }
.seq-title { font-size: .80rem; font-weight: 700; color: var(--ink); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seq-time { font-size: .70rem; color: var(--ink-soft); }
.seq-arrow { color: var(--muted); font-size: .80rem; opacity: .5; margin: 0 2px; }

@media (max-width: 600px) {
  .route-map-wrap { height: 300px; }
}

.a-image { flex: 0 0 240px; height: 160px; margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.a-image img { width: 100%; height: 100%; object-fit: cover; display: block; background: #eef1f7; transition: transform 0.4s ease; }
.a-image.a-image-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: linear-gradient(135deg, #eef6f5, #eef1f7); color: var(--brand);
  font-size: .82rem; font-weight: 600; text-align: center; padding: 12px;
}
.a-image.a-image-pending {
  background: linear-gradient(135deg, #eef6f5 0%, #f1f5f9 50%, #eef6f5 100%);
  background-size: 200% 100%;
  animation: image-skeleton-bg 2.2s ease-in-out infinite;
}
.a-image-skeleton {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 100%; color: var(--brand); font-size: .78rem; font-weight: 600;
}
.a-image-skeleton i { font-size: 1.8rem;
  letter-spacing: -0.02em; opacity: .55; animation: image-pulse 1.6s ease-in-out infinite; }
@keyframes image-skeleton-bg {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}
@keyframes image-pulse {
  0%, 100% { opacity: .4; transform: scale(.96); }
  50% { opacity: .85; transform: scale(1); }
}
.a-image img.a-image-reveal {
  animation: image-reveal .45s ease;
}
@keyframes image-reveal {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
.a-image.a-image-fallback i { font-size: 1.6rem; opacity: .7; }
.a-image:hover img { transform: scale(1.05); }

@media (max-width: 600px) {
  .activity .a-body { flex-direction: column; text-align: left; align-items: stretch; gap: 14px; }
  .a-image { flex: auto; height: 200px; width: 100%; }
}

/* generic note / json fallback */
.note-block { background: #f9fbfd; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.note-block h3 { margin: 0 0 10px; font-size: 1.05rem; }
.note-block pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: .85rem; color: var(--ink-soft); }
.note-block ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

.completed-banner {
  display: flex; align-items: center; gap: 12px;
  background: #ecfdf3; border: 1px solid #abefc6; color: #14532d;
  padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 4px;
}
.completed-banner i { color: var(--ok); font-size: 1.2rem; }

/* ─── How it works (Glassmorphic Flow) ─────────────────────── */
.section-title { text-align: center; font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin: 0 0 10px; color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; font-weight: 700; letter-spacing: -0.015em; }
.section-sub { text-align: center; color: #475569 !important; margin: 0 auto 40px; max-width: 680px; font-size: 1rem; line-height: 1.55; }
.how, .agents { max-width: 1620px; width: 96%; margin: 0 auto; padding: clamp(48px, 6vw, 80px) clamp(18px, 3vw, 36px); }

.flow { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.flow-step { flex: 1 1 180px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); padding: 22px 18px; text-align: left; position: relative; transition: all 0.25s ease; box-shadow: var(--shadow-sm); }
.flow-step:hover { transform: translateY(-3px); border-color: #0d9488; box-shadow: 0 12px 25px rgba(13, 148, 136, 0.12); }
.flow-step .n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #0f766e; color: #ffffff; font-weight: 800; font-size: 0.85rem; margin-bottom: 12px; }
.flow-step.gate { border-color: #fde68a; background: #fffbeb; }
.flow-step.gate .n { background: #d97706; color: #ffffff; }
.flow-step h3 { margin: 0 0 6px; font-size: 1.05rem; color: #0f172a; }
.flow-step p { margin: 0; color: #475569; font-size: .85rem; line-height: 1.45; }
.flow-arrow { align-self: center; color: #cbd5e1; font-size: 1.1rem; }

/* ─── 21st.dev Style Bento Grid for Agents (Light Mode) ────────── */
.bento-header-wrap { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.bento-kicker { display: inline-flex; align-items: center; gap: 6px; background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.bento-grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .bento-grid-container { grid-template-columns: 1fr; } }
.bento-card { position: relative; background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 20px; padding: 28px 26px; overflow: hidden; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease; }
.bento-card:hover { transform: translateY(-4px); border-color: #0d9488; box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.15); }
.bento-wide { grid-column: 1 / -1; }
.bento-glow { position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.bento-badge-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bento-pill-teal { font-size: 0.76rem; font-weight: 700; color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4; padding: 4px 10px; border-radius: 999px; }
.bento-pill-blue { font-size: 0.76rem; font-weight: 700; color: #0284c7; background: #e0f2fe; border: 1px solid #bae6fd; padding: 4px 10px; border-radius: 999px; }
.bento-pill-amber { font-size: 0.76rem; font-weight: 700; color: #b45309; background: #fef3c7; border: 1px solid #fde68a; padding: 4px 10px; border-radius: 999px; }
.bento-pill-purple { font-size: 0.76rem; font-weight: 700; color: #7c3aed; background: #f3e8ff; border: 1px solid #e9d5ff; padding: 4px 10px; border-radius: 999px; }
.bento-latency-pill { font-size: 0.72rem; font-family: monospace; color: #64748b; }
.bento-mcp-badge { font-size: 0.74rem; font-weight: 700; color: #e11d48; background: #ffe4e6; border: 1px solid #fecdd3; padding: 3px 8px; border-radius: 999px; }
.bento-tag-hitl { font-size: 0.72rem; font-family: monospace; color: #b45309; }
.bento-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: #0f172a; }
.bento-card p { margin: 0; color: #475569; font-size: 0.9rem; line-height: 1.55; }
.bento-tools-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.b-tool { font-size: 0.78rem; font-family: monospace; background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 6px; }
.bento-metric-box { display: flex; gap: 20px; margin-top: 18px; }
.b-stat { display: flex; flex-direction: column; }
.b-stat span { font-size: 1.6rem; font-weight: 800; color: #0f766e; }
.b-stat small { font-size: 0.75rem; color: #64748b; font-weight: 600; }
.bento-hitl-pills { display: flex; gap: 10px; margin-top: 18px; }
.b-action-approve { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.b-action-modify { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.b-action-reject { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 36px clamp(18px, 4vw, 48px); text-align: center; color: var(--ink-soft); background: rgba(7, 11, 20, 0.9); }
.site-footer p { margin: 4px 0; display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.site-footer .muted { color: var(--muted); font-size: .85rem; }

/* ─── Toasts ───────────────────────────────────────────────── */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 99999; pointer-events: none; display: flex; flex-direction: column; gap: 10px; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.35); font-weight: 600; font-size: .92rem;
  animation: toast-in .3s ease; max-width: 360px;
}
.toast.ok { background: #14532d; }
.toast.bad { background: #7f1d1d; }
.toast.warn { background: #78350f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ─── Optional travel price panel (form) ───────────────────── */
.travel-panel {
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  margin-bottom: 18px; overflow: hidden; background: #f9fbfd;
}
.travel-panel-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; border: 0; background: transparent;
  font-family: inherit; font-size: .95rem; font-weight: 700; color: var(--ink);
  cursor: pointer; text-align: left;
}
.travel-panel-toggle em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .85rem; }
.travel-panel-toggle i.travel-chevron { transition: transform .2s ease; color: var(--muted); }
.travel-panel.open .travel-chevron { transform: rotate(180deg); }
.travel-panel-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.travel-panel-hint { margin: 12px 0; font-size: .85rem; color: var(--ink-soft); }
.travel-subsection { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.travel-subsection-label { margin: 0 0 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.travel-airports { margin: 10px 0 14px; padding: 10px 12px; background: var(--surface-2, #f8f9fb); border-radius: 8px; font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.route-iata-badge { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(13, 148, 136, .12); color: var(--accent, #0d9488); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.check-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem;
  font-weight: 600; cursor: pointer; background: #fff;
}
.check-pill:has(input:checked) { border-color: var(--brand); background: #eef6f5; color: var(--brand); }
.check-pill input { accent-color: var(--brand); }

/* ─── HITL travel picker (review gate) ─────────────────────── */
.travel-review {
  margin: 16px 0; padding: 16px; background: #f8fbff;
  border: 1px solid #c7daf5; border-radius: var(--radius-sm);
}
.travel-review-inner > h4 { margin: 0 0 6px; font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.travel-review-sub, .travel-review-skip { margin: 0 0 12px; font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }
.travel-review-skip { margin: 12px 0 0; }
.travel-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 4px; }
.travel-section-label { margin: 14px 0 8px; font-size: .88rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.travel-section-label:first-of-type { margin-top: 0; }
.travel-pick-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 12px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-family: inherit; transition: .15s ease;
}
.travel-pick-card:hover { border-color: var(--brand); }
.travel-pick-card.selected { border-color: var(--brand); background: #eef6f5; box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.travel-pick-card strong { font-size: .92rem; color: var(--ink); }
.pick-select-label { font-size: .75rem; font-weight: 700; color: var(--brand); margin-top: 4px; }
.pick-open-link {
  position: absolute; top: 12px; right: 12px;
  display: none; background: var(--brand); color: #fff;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-sm); z-index: 10; align-items: center; gap: 6px;
}
.pick-open-link:hover { background: var(--brand-2); }
.travel-pick-card.selected:hover .pick-open-link { display: flex; }

.selected-travel-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fff 70%);
  border: 1px solid #f6e0b3; border-radius: var(--radius);
  padding: 20px; margin-bottom: 4px;
}
.selected-travel-card > h3 { margin: 0 0 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.selected-travel-card p { margin: 6px 0; font-size: .9rem; color: var(--ink-soft); }

/* ─── Travel picks (recommended at top of itinerary) ───────── */
.travel-picks-card {
  background: linear-gradient(135deg, #f0faf9 0%, #fff 55%);
  border: 1px solid #c5e8e4; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.travel-picks-card > h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.travel-picks-card > h3 i { color: var(--brand); }
.travel-picks-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: .92rem; }
.travel-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pick-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px;
  background: #fff; display: flex; flex-direction: column; gap: 10px;
}
.pick-card.pick-flight { border-color: #93c5fd; background: #f8fbff; }
.pick-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(13, 148, 136, .14); color: var(--brand);
}
.pick-badge-hotel { background: rgba(99, 102, 241, .12); color: #4f46e5; }
.pick-main { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.pick-main h4 { margin: 4px 0 2px; font-size: 1rem; }
.pick-meta { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.pick-price { font-size: 1.05rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pick-reason { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.pick-hotel-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pick-hotel-info { flex: 1; min-width: 0; }
.pick-link { align-self: flex-start; padding: 6px 12px !important; font-size: .82rem !important; }

.travel-options-card summary {
  cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  padding: 4px 0 12px; list-style: none; display: flex; align-items: center; gap: 8px;
}
.travel-options-card summary::-webkit-details-marker { display: none; }

/* ─── Travel options cards (final plan) ────────────────────── */
.travel-options-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.travel-options-card > h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.travel-options-card > h3 i { color: var(--brand); }
.travel-options-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: .92rem; }
.travel-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.travel-tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: .15s ease;
}
.travel-tab.active, .travel-tab:hover { border-color: var(--brand); color: var(--brand); background: #eef6f5; }
.travel-route-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: var(--ink-soft); background: #f4f6fa; padding: 8px 14px; border-radius: 999px; margin-bottom: 14px;
}
.travel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.travel-offer {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px;
  background: #fff; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.travel-offer:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.travel-offer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.travel-price { font-size: 1.35rem; font-weight: 800; color: var(--brand); font-family: var(--font); white-space: nowrap; }
.travel-meta { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.travel-meta strong { color: var(--ink); }
.travel-offer.hotel-offer { padding: 0; overflow: hidden; }
.hotel-thumb { width: 100%; height: 130px; object-fit: cover; background: #eef1f7; display: block; }
.hotel-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.hotel-rating { font-size: .82rem; font-weight: 700; color: var(--accent); }
.travel-empty { color: var(--muted); font-size: .9rem; padding: 12px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .site-nav { gap: 8px; }
  .site-nav .nav-link { padding: 6px 12px; font-size: 0.82rem; }
  .site-nav a:not(.nav-link) { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .pipeline .step-label { font-size: .7rem; }
  .budget-row { grid-template-columns: 90px 1fr 70px; }
  .gate-actions .btn { flex: 1; }
}

/* ─── Revisions and Research additions ─────────────────────── */
.revision-info {
  margin: 16px 0;
  padding: 14px;
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.rev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.rev-notes strong { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.rev-notes ul { margin: 0; padding-left: 20px; font-size: 0.9rem; }
.rev-notes li { margin-bottom: 4px; }

.research-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.research-card h3 { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; color: var(--brand-ink); }
.r-section { margin-bottom: 16px; }
.r-section:last-child { margin-bottom: 0; }
.r-section h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.9; }
.r-section ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; }
.r-section li { margin-bottom: 4px; }
.r-weather-grid { display: grid; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); background: #f9fbfd; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.r-weather-item strong { color: var(--ink); }
.r-sources a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(15,118,110,0.3); text-underline-offset: 2px; }
.r-sources a:hover { text-decoration-color: var(--brand); }

/* ─── Model Context Protocol (MCP) Export & Traveler Kit ───────── */
.mcp-export-card {
  margin: 18px 0 24px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border: 1.5px solid #0d9488;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 4px 14px -2px rgba(13, 148, 136, 0.12);
}

.mcp-export-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
}

.mcp-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mcp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mcp-protocol-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-family: monospace;
}

.mcp-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f766e;
}

.mcp-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.btn-mcp-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 148, 136, 0.3);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-mcp-action i {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.btn-mcp-pdf i { color: #dc2626; }
.btn-mcp-cal i { color: #0284c7; }
.btn-mcp-print i { color: #0f766e; }

.mcp-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mcp-btn-text strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.mcp-btn-text span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.btn-mcp-action:hover {
  transform: translateY(-2px);
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.16);
  background: #fafbfc;
}

/* ─── MCP Safety & Cultural Advisory Card ────────────────────────── */
.mcp-advisory-card {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid #0284c7;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.mcp-advisory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mcp-advisory-head h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.mcp-pill-small {
  font-size: 0.72rem;
  font-family: monospace;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.mcp-emergency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mcp-emergency-pill {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.mcp-tipping-note, .mcp-transit-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 6px 0;
  line-height: 1.45;
}

.mcp-tipping-note strong, .mcp-transit-note strong {
  color: var(--ink);
}

.mcp-etiquette-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.mcp-etiquette-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.mcp-etiquette-list li i {
  color: #0d9488;
  margin-top: 3px;
  font-size: 0.85rem;
}

/* ─── Media Print (Browser Vector Print to PDF) ──────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt;
  }

  .site-header, .site-footer, .hero-wide, .working-banner, .how, .agents, .mcp-export-card, .toast-stack, #new-plan-btn, .review-gate {
    display: none !important;
  }

  .workspace {
    margin: 0 !important;
    padding: 0 !important;
  }

  .plan-dashboard-grid {
    display: block !important;
  }

  .summary-card, .day-card, .mcp-advisory-card, .budget-card, .research-card {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    margin-bottom: 12pt !important;
  }

  a {
    text-decoration: none !important;
    color: inherit !important;
  }
}



/* ─── Hover Motion Action Bar (Event Cards) ──────────────────── */
.activity {
  position: relative;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;
  padding: 24px 20px;
  margin: 0 -20px;
  border-bottom: 1px dashed transparent;
}
.activity:hover {
  background: #f8fafc;
  box-shadow: 0 4px 15px rgba(15,23,42,0.03);
}

.activity-hover-actions {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(18px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}
.activity:hover .activity-hover-actions {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  pointer-events: auto;
}

.action-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.action-btn i { font-size: 0.9rem; }
.action-btn.btn-chat:hover { background: #eff6ff; color: #1d4ed8; }
.action-btn.btn-replace:hover { background: #f0fdfa; color: #0f766e; }
.action-btn.btn-remove:hover { background: #fff1f2; color: #e11d48; }

/* Suppress floating action bubble completely when the inline chatbot is active */
.activity.has-inline-chat-open .activity-hover-actions,
.activity.has-inline-chat-open:hover .activity-hover-actions {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ─── Top Itinerary Header Undo Action Button ───────────────── */
.itinerary-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-undo-header {
  background: #ffffff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.btn-undo-header:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  background: #f0fdfa;
  transform: translateY(-1px);
}
.btn-undo-header:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
  color: var(--muted);
  box-shadow: none;
}
.btn-undo-header i {
  color: var(--brand);
}
.btn-undo-header:disabled i {
  color: var(--muted);
}

/* ─── Movable Drag & Drop Cards ────────────────────────────── */
.activity.is-draggable {
  cursor: grab;
}
.activity.is-dragging {
  opacity: 0.4 !important;
  border: 2px dashed var(--brand) !important;
  background: #f0fdfa !important;
  cursor: grabbing !important;
  transform: scale(0.99);
}
.activity.drag-over-above {
  border-top: 3.5px solid var(--brand) !important;
}
.activity.drag-over-below {
  border-bottom: 3.5px solid var(--brand) !important;
}
.a-drag-handle {
  width: 22px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: grab;
  margin-right: 4px;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  user-select: none;
  font-size: 0.88rem;
}
.activity:hover .a-drag-handle {
  opacity: 1;
}
.a-drag-handle:hover {
  color: var(--brand);
}

/* ─── Middle Hover Line & Add Event Inserter ───────────────── */
.event-insert-zone {
  position: relative;
  height: 28px;
  margin: -14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.2s ease;
}
.event-insert-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}
.event-insert-zone:hover .event-insert-line {
  background: rgba(13, 148, 136, 0.45);
}
.btn-insert-event {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1.5px solid rgba(13, 148, 136, 0.4);
  color: var(--brand);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.event-insert-zone:hover .btn-insert-event {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  border-color: var(--brand);
  background: #f0fdfa;
}
.btn-insert-event:hover {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.25);
  transform: scale(1.05);
}

/* Inline Add Event Creator Box */
.event-insert-creator {
  background: #ffffff;
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: dropdownFadeIn 0.2s ease;
}
.creator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.creator-head h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.creator-close {
  background: #f1f5f9;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}
.creator-close:hover {
  background: #fee2e2;
  color: #dc2626;
}
.creator-inputs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.creator-inputs-row input,
.creator-inputs-row select {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}
.creator-inputs-row input:focus,
.creator-inputs-row select:focus {
  border-color: var(--brand);
}
.creator-title-input {
  flex: 1;
  min-width: 180px;
}
.creator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.creator-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.creator-chip {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.creator-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #f0fdfa;
}
.btn-save-event {
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-save-event:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

/* ─── Inline Activity Card Chatbot & Expansion (Right Side) ─── */
.activity.has-inline-chat-open {
  background: #ffffff !important;
  border: 2px solid var(--brand) !important;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 4px rgba(15, 118, 110, 0.1) !important;
  border-radius: 20px !important;
  padding: 26px 24px !important;
  margin: 18px -12px !important;
  z-index: 50;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 24px;
  align-items: stretch;
  min-height: 480px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 980px) {
  .activity.has-inline-chat-open {
    grid-template-columns: 1fr !important;
    margin: 16px 0 !important;
    min-height: auto;
  }
}

.activity-main-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.activity-inline-widget {
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 420px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
  animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.inline-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.inline-widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.inline-widget-title-wrap i {
  color: var(--brand);
  font-size: 1rem;
}
.inline-widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-widget-close {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.inline-widget-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.inline-widget-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 300px;
  padding-right: 4px;
}
.inline-chat-bubble {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.inline-chat-ai {
  align-self: flex-start;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.inline-chat-user {
  align-self: flex-end;
  background: var(--brand);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.inline-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.inline-chip-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.inline-chip-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #f0fdfa;
}

.inline-widget-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s;
}
.inline-widget-input-bar:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.inline-widget-input-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  color: var(--ink);
  outline: none;
}
.inline-widget-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.inline-widget-send-btn:hover {
  background: var(--brand-2);
  transform: scale(1.05);
}

/* Replace Mode alternative cards inside the inline widget */
.inline-alt-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.inline-alt-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.inline-alt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.inline-alt-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.inline-alt-cost {
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.inline-alt-desc {
  font-size: 0.80rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}
.inline-alt-swap-btn {
  align-self: flex-start;
  background: #f0fdfa;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.inline-alt-swap-btn:hover {
  background: var(--brand);
  color: #ffffff;
}

/* ─── Slide-Out Drawer (Right Side) ──────────────────────────── */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: #f8fafc;
  z-index: 1050;
  box-shadow: -10px 0 40px rgba(15,23,42,0.1);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
.drawer-close {
  position: absolute;
  top: 24px; right: 24px;
  background: #f1f5f9;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.drawer-close:hover { background: #e2e8f0; color: var(--ink); }

.drawer-header-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.drawer-header-info { flex: 1; min-width: 0; padding-right: 24px; }
.drawer-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.drawer-sub { font-size: 0.9rem; color: var(--muted); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Chat Mode */
.vibe-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.vibe-badge {
  background: #e0e7ff; color: #3730a3;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.chat-stream { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.chat-bubble { max-width: 85%; padding: 14px 18px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; }
.chat-user { align-self: flex-end; background: var(--brand-ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-ai { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: 0 4px 12px rgba(15,23,42,0.04); }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.chat-chip {
  background: #fff; border: 1px solid var(--line); color: var(--brand-ink);
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 6px rgba(15,23,42,0.03);
}
.chat-chip:hover { border-color: var(--brand-2); box-shadow: 0 4px 10px rgba(20,184,166,0.12); }

.chat-input-area {
  padding: 20px 24px; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 12px;
}
.chat-input-area input {
  flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #f8fafc; font-family: inherit; font-size: 0.95rem; transition: all 0.2s;
}
.chat-input-area input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(15,118,110,0.1); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--brand); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: transform 0.2s;
}
.chat-send-btn:hover { transform: scale(1.05); }

/* Replace Mode */
.replace-search-box {
  background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}
.replace-preprompt {
  width: 100%; padding: 12px; border-radius: 8px; border: 1.5px dashed var(--brand-2);
  background: #f0fdfa; color: var(--brand-ink); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; margin-bottom: 16px;
}
.replace-preprompt:hover { background: #ccfbf1; }
.replace-or { text-align: center; font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }

.alt-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.03); display: flex; flex-direction: column; gap: 12px;
}
.alt-header { display: flex; justify-content: space-between; align-items: flex-start; }
.alt-title { font-weight: 800; font-size: 1.1rem; color: var(--ink); margin: 0; }
.alt-loc { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.alt-cost { font-size: 0.85rem; font-weight: 700; color: var(--accent); background: rgba(245,158,11,0.1); padding: 4px 8px; border-radius: 6px; }
.alt-desc { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.btn-swap {
  width: 100%; padding: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px;
  font-weight: 700; color: var(--ink); cursor: pointer; transition: all 0.2s;
}
.btn-swap:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* Fix Chrome autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    /* no box-shadow to preserve hover bg */
    -webkit-text-fill-color: var(--ink) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.dates-flex input[type="date"] {
  font-family: inherit;
  font-size: 1.2rem !important;
  color: var(--ink);
  cursor: pointer;
}
.dates-flex input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}
.dates-flex input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Ensure the giant button container centers properly */
.form-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-wrap.no-border input, .input-wrap.no-border select {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
.console-segment {
  transition: background 0.3s ease;
}
.console-segment:hover {
  background: #f1f5f9;
}

/* Capitalize the city names to look professional */
#origin, #destination {
  text-transform: capitalize;
}

/* Ensure the layout has breathing room */
.form-card-wide {
  margin-top: 20px;
}

.hero-wide-header {
  margin-bottom: 40px;
}

/* ─── Supabase Auth & Nav Pill ─────────────────────────────────────── */
.auth-nav-pill {
  display: flex;
  align-items: center;
}

.btn-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth-pill:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.user-avatar-tiny {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ─── Community Explorer Section (Full-Width Like Hero) ─────────── */
.community-section {
  max-width: 1620px;
  width: 95%;
  margin: 30px auto 60px;
  padding: 0 clamp(16px, 3vw, 36px);
}

.community-header-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.community-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.community-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 16px;
  border-radius: 12px;
  flex: 1 1 280px;
  border: 1px solid var(--line);
}

.community-search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.community-search-wrap input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.community-tags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comm-filter-tag {
  padding: 7px 15px;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.comm-filter-tag:hover, .comm-filter-tag.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.community-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.comm-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding: 8px 34px 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background-color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  font-family: inherit;
}
.comm-select:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}
.comm-select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

/* ─── Compact Squarish Embedded-Image Cards Grid ────────────────── */
.community-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (min-width: 1400px) {
  .community-trips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.comm-card-squarish {
  position: relative;
  height: 380px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  text-decoration: none;
  background: #0f172a;
}

.comm-card-squarish:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(13, 148, 136, 0.35);
  border-color: #0d9488;
}

.comm-card-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.comm-card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.comm-card-squarish:hover .comm-card-bg-img {
  transform: scale(1.08);
}

.comm-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.35) 40%, rgba(15, 23, 42, 0.94) 100%);
  transition: opacity 0.3s ease;
}

.comm-card-top-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comm-card-top-row .comm-dest-pill {
  background: rgba(13, 148, 136, 0.92);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comm-card-top-row .comm-card-rating-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comm-card-bottom-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ffffff;
}

.comm-author-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.comm-author-tiny {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #5eead4;
}

.comm-author-name {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.comm-duration-chip {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: auto;
}

.comm-card-squarish .comm-card-title {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comm-card-squarish .comm-card-title a {
  color: #ffffff !important;
}

.comm-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.comm-budget-chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5eead4;
  background: rgba(13, 148, 136, 0.4);
  border: 1px solid rgba(94, 234, 212, 0.45);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comm-tags-mini {
  display: flex;
  gap: 4px;
}

.comm-tag-mini {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.comm-card-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.comm-stats-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comm-card-squarish .comm-like-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.comm-card-squarish .comm-like-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.comm-card-squarish .comm-like-btn.liked {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #fca5a5;
}

.comm-card-squarish .comm-reviews-count {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comm-explore-cta {
  font-size: 0.8rem;
  font-weight: 800;
  color: #5eead4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.2s ease;
}

.comm-card-squarish:hover .comm-explore-cta {
  transform: translateX(4px);
}

.comm-like-btn.liked { background: #ef4444; border-color: #ef4444; color: #fff; }

/* ─── Modals (Auth, Community Detail, Share) ───────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  color: #0f172a;
}



.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ink-soft);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 12px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.auth-tab-btn.active {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.form-field {
  margin-bottom: 14px;
  text-align: left;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
}

.form-field input:focus, .form-field textarea:focus {
  border-color: #0d9488;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.auth-error-msg {
  color: #ef4444;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.share-tags-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tag-check {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ─── Community Detail Modal Split View ────────────────────────────── */
.comm-detail-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .comm-detail-body {
    grid-template-columns: 1fr;
  }
}

.comm-remix-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.comm-remix-box h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #0f766e;
}

.comm-remix-box p {
  font-size: 0.8rem;
  color: #475569;
  margin: 0 0 10px;
}

.comm-remix-result {
  margin-top: 10px;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px dashed #0d9488;
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.45;
}

.comm-review-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.rating-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.star-rating {
  display: inline-flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 2px;
}

.star-btn.active {
  color: #f59e0b;
}

.comm-reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.comm-review-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.comm-rev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comm-rev-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.comm-rev-user img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.comm-rev-stars {
  color: #f59e0b;
  font-size: 0.85rem;
}

.comm-rev-section {
  font-size: 0.83rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.comm-rev-section strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.comm-rev-comment {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 6px;
  border-top: 1px dashed #f1f5f9;
  padding-top: 6px;
}

/* ─── Dedicated Community Hero & Platform Stats ───────────────────── */
.comm-hero {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 40px) 40px;
  text-align: center;
}

.comm-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.comm-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.comm-title-highlight {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.comm-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto 30px;
}

.comm-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.comm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Continuous Horizontal Moving Locations Marquee ─────────────── */
.locations-marquee-section {
  width: 100%;
  padding: 50px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-header-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.marquee-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.marquee-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.marquee-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.locations-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  padding: 10px 0;
}

.locations-marquee-rail {
  display: flex;
  width: max-content;
}

.locations-marquee-track {
  display: flex;
  gap: 24px;
  padding: 10px 12px 20px;
  animation: marqueeGlide 42s linear infinite;
  will-change: transform;
}

.locations-marquee-container:hover .locations-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeGlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee-loc-card {
  position: relative;
  width: 290px;
  height: 380px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.16);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.marquee-loc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loc-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.3) 40%, rgba(15, 23, 42, 0.92) 100%);
  transition: opacity 0.3s ease;
}

.marquee-loc-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 44px -10px rgba(13, 148, 136, 0.4);
}

.marquee-loc-card:hover img {
  transform: scale(1.08);
}

.loc-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.star-char, .star-icon {
  color: #f59e0b !important;
  font-size: 0.9rem;
  line-height: 1;
}

.loc-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 18px 18px;
  color: #ffffff;
  z-index: 3;
}

.loc-country {
  font-size: 0.75rem;
  font-weight: 700;
  color: #5eead4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.loc-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.loc-meta {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.loc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.9);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.marquee-loc-card:hover .loc-action {
  background: #0d9488;
  transform: translateX(3px);
}

/* ─── Community Hero (Dedicated 4K Landscape Background) ───────── */
.comm-hero {
  background: url('../images/hero-4k.jpg') center/cover no-repeat !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  margin-top: -68px !important;
  padding: clamp(90px, 11vw, 130px) clamp(16px, 4vw, 40px) 48px !important;
}

.comm-hero .comm-hero-inner {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.comm-hero .comm-hero-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

.comm-hero .comm-hero-sub {
  color: #475569 !important;
}

.comm-hero .stat-box {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.comm-hero .stat-num {
  color: #0f172a !important;
}

.comm-hero .stat-label {
  color: #0f766e !important;
}



.community-detail-card {
  max-width: 1300px;
  width: 95vw;
  height: 95vh;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.comm-modal-header {
  padding: 32px 40px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}

.comm-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .comm-modal-body {
    grid-template-columns: 1fr;
  }
}

.comm-modal-itinerary {
  padding-right: 20px;
}

.comm-modal-sidebar {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  height: fit-content;
}

.comm-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  z-index: 1100;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-modal-close:hover {
  transform: scale(1.1);
  background: #f1f5f9;
}

/* Comment Box Styling */
.comm-review-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}

.comm-review-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  margin-top: 12px;
  margin-bottom: 16px;
  background: #f8fafc;
  transition: all 0.2s;
}

.comm-review-textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

.comm-review-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.comm-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.comm-review-item {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
}

/* ─── Upgraded Community Cards (Cover Photos & Badges) ───────────── */
.comm-card-cover-wrap {
  position: relative;
  height: 190px;
  width: 100%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #0f172a;
}

.comm-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.comm-trip-card:hover .comm-cover-img {
  transform: scale(1.08);
}

.comm-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

.comm-card-rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comm-card-cover-wrap .comm-dest-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 148, 136, 0.92);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.comm-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comm-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d9488;
}

.comm-author-text {
  display: flex;
  flex-direction: column;
}

.comm-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.2;
}

.comm-author-badge {
  font-size: 0.72rem;
  color: #0f766e;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comm-reviews-count {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-view-fullpage {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

/* ─── Dedicated Full-Page Community Trip Inspector ───────────────── */
.community-trip-page-body {
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
}

.trip-fullpage-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.96) 100%),
              url('../images/hero-4k.jpg') center 30%/cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 48px) 36px;
}

.trip-hero-content-wrap {
  max-width: 1560px;
  margin: 0 auto;
}

.trip-hero-top-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.trip-dest-badge {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trip-duration-badge {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trip-rating-badge {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trip-fullpage-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.trip-fullpage-sub {
  font-size: 1.05rem;
  color: #475569;
  max-width: 820px;
  margin: 0 0 24px;
  line-height: 1.55;
}

.trip-author-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.trip-author-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-img-large {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d9488;
}

.author-copy {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.author-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.trip-hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-like-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-like-pill:hover, .btn-like-pill.liked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* ─── Dashboard 2-Column Split ─────────────────────────────────────── */
.trip-dashboard-wrapper {
  max-width: 1560px;
  width: 95%;
  margin: 32px auto 60px;
}

.trip-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .trip-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.trip-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spec-pod {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
}

.pod-lbl {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pod-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.trip-lodging-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 4.5px solid #0f766e;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px -2px rgba(13, 148, 136, 0.08);
}

.lodging-badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trip-map-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.section-card-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-hint {
  font-size: 0.78rem;
  color: #64748b;
}

.trip-leaflet-map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.trip-day-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.trip-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.day-number-badge {
  background: #0f766e;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.cluster-pill {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.day-activities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.act-time-pill {
  font-weight: 800;
  color: #0f766e;
  font-size: 0.88rem;
  min-width: 65px;
}

.side-remix-card {
  background: #f0fdfa;
  border: 1.5px solid #99f6e4;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}

.remix-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.side-remix-card h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #0f172a;
}

.side-remix-card p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.remix-result-display {
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px dashed #0d9488;
  font-size: 0.84rem;
  color: #0f172a;
  line-height: 1.5;
}

.side-reviews-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.reviews-header-block {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.reviews-header-block h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-header-block p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.reviews-count-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #99f6e4;
}

.review-compose-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.star-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.star-rating-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.star-picker {
  display: inline-flex;
  gap: 4px;
}

.star-pick-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}

.star-pick-btn.active {
  color: #f59e0b;
}

.trip-reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

