/* ===== Treepy - OTA Design System v4.0 ===== */
/* Modern/Minimal style with Purple (Momondo-inspired) palette */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Primary - Viola elegante */
  --primary: #5C2D91;
  --primary-light: #7B4BAF;
  --primary-dark: #3D1E61;
  --primary-bg: rgba(92, 45, 145, 0.08);

  /* Accents */
  --accent-coral: #FF385C;
  --accent-gold: #FFB800;
  --accent-teal: #00A699;

  /* Semantic */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-secondary: #F7F5F9;
  --bg-tertiary: #EFEBF3;
  --fg: #1A1A2E;
  --fg-secondary: #4A4A5A;
  --muted: #6B6B7B;
  --border: #E8E5ED;
  --hover: #F7F5F9;
  --accent: #5C2D91;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(92, 45, 145, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(92, 45, 145, 0.08), 0 2px 4px -1px rgba(92, 45, 145, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(92, 45, 145, 0.1), 0 4px 6px rgba(92, 45, 145, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(92, 45, 145, 0.1), 0 10px 10px rgba(92, 45, 145, 0.04);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --maxw: 1200px;
  --maxw-chat: 800px;
}

/* Dark theme removed - light mode only */

/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--primary-light);
}

/* Utility: monospace for prices/codes */
.mono {
  font-family: var(--font-mono);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

/* ===== Topbar ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  z-index: 100;
}

.topbar h1 {
  font-size: 1rem;
  font-weight: 700;
}

.topbar-hidden {
  transform: translateY(-100%);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-btn:hover {
  background: var(--hover);
}

select.header-btn {
  appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  height: 24px;
  width: auto;
}

/* ===== Homepage OTA Style v4.0 ===== */
.homepage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.homepage-hidden {
  display: none !important;
}

/* Hero Section */
.hero-section {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.hero-content {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.hero-logo {
  width: 72px;
  height: auto;
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted);
  margin-bottom: var(--space-8);
}

/* Enhanced Search Box */
.hero-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  transition: all 0.2s;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), 0 0 0 4px var(--primary-bg);
}

.search-icon {
  padding: 0 var(--space-3);
  color: var(--muted);
}

.hero-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.0625rem;
  padding: var(--space-3) var(--space-2);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
}

.hero-input::placeholder {
  color: var(--muted);
}

.hero-search-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.hero-search-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.hero-search-btn:active {
  transform: translateY(0);
}

/* Quick Action Chips */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.action-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s;
}

.action-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chip-emoji {
  font-size: 1rem;
}

/* Hero Auth Links */
.hero-auth {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.875rem;
}

.auth-link {
  color: var(--primary);
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  color: var(--muted);
}

/* Inspiration Section */
.inspiration-section {
  padding: var(--space-12) var(--space-4);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--fg);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* Destination Card */
.destination-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.destination-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.destination-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}

.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.destination-card:hover .destination-image img {
  transform: scale(1.08);
}

.destination-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  color: #ffffff;
  z-index: 1;
}

.destination-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.destination-country {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: var(--space-2);
}

.destination-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* Recall Section */
.recall-section {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.recall-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.recall-toggle:hover {
  color: var(--primary);
}

.recall-form-container {
  margin-top: var(--space-4);
}

.recall-form {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.recall-input {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  width: 180px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    padding: var(--space-8) var(--space-4);
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-xl);
    padding: var(--space-3);
  }

  .hero-search-btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }

  .search-icon {
    display: none;
  }

  .quick-actions {
    gap: var(--space-2);
  }

  .action-chip {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* ===== Container ===== */
.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container-hidden {
  display: none !important;
}

/* ===== Two Column Layout (v3.2.0) ===== */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: calc(100vh - 50px);
  padding-top: 50px;
}

.chat-section {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

.sidebar-right {
  border-left: 1px solid var(--border);
  padding: var(--space-4);
  background: var(--bg);
  overflow-y: auto;
  position: sticky;
  top: 50px;
  height: calc(100vh - 50px);
}

.sidebar-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sidebar-content {
  padding: 0;
}

/* Trip Data List - OTA Style */
.trip-data-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.trip-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.trip-data-item:hover {
  background: var(--hover);
}

.trip-data-item.filled {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary);
}

.trip-data-item.filled .trip-data-value {
  font-weight: 600;
  color: var(--primary-dark);
}

.trip-data-label {
  color: var(--muted);
  font-size: 0.8125rem;
}

.trip-data-value {
  font-weight: 400;
  color: var(--fg-secondary);
}

/* Calculate Button */
.btn-calculate {
  width: 100%;
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-calculate:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-calculate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Login Prompt in Sidebar */
.login-prompt {
  text-align: center;
  padding: var(--space-4);
}

.login-prompt p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.login-prompt-sub {
  font-size: 0.8125rem;
  margin-top: var(--space-3) !important;
}

.login-prompt-sub a {
  color: var(--primary);
  font-weight: 500;
}

/* Saved Trips */
.saved-trips-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trips-empty {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem 0;
}

/* Two Column Responsive */
@media (max-width: 960px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    position: relative;
    top: 0;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ===== Chat Layout ===== */
.chat-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 50px;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
}

.chat-sidebar {
  width: 320px;
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg);
  overflow-y: auto;
}

/* ===== Chat Messages ===== */
.chat-conversation {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  max-width: 85%;
  font-size: 0.9375rem;
  line-height: 1.6;
  animation: messageSlideIn 0.3s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

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

.chat-message.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.chat-message.assistant {
  background: var(--bg-secondary);
  color: var(--fg);
  align-self: flex-start;
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
}

/* Inline preview for destinations/events in chat */
.chat-preview {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.chat-preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.chat-preview-title {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-1);
}

.chat-preview-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ===== Chat Input ===== */
.chat-input-container {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

#chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
}

#chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

#chat-send-btn {
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#chat-send-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

#chat-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Chat Input Wrapper */
.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.chat-input-wrapper .chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
}

.chat-input-wrapper .chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.chat-input-wrapper .chat-send-btn {
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.chat-input-wrapper .chat-send-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Button Outline */
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--hover);
}

/* ===== Sidebar ===== */
.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.875rem;
}

.sidebar-label {
  color: var(--muted);
}

.sidebar-value {
  font-weight: 500;
}

/* ===== Forms ===== */
.form-section {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 1rem 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Consent checkboxes */
.consent-group {
  margin: 1rem 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-label a {
  color: var(--fg);
  text-decoration: underline;
}

.consent-label a:hover {
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--primary-bg);
}

/* Coral accent button for important CTAs */
.btn-coral {
  background: var(--accent-coral);
  color: #ffffff;
  border: none;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: background 0.2s, transform 0.1s;
}

.btn-coral:hover {
  background: #E6324F;
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* ===== Results ===== */
#results {
  padding: 1rem;
}

.results-header {
  margin-bottom: 1.5rem;
}

.results-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trip-code {
  font-size: 0.875rem;
  color: var(--muted);
}

.trip-code strong {
  color: var(--fg);
  font-weight: 700;
}

/* Tier Tabs */
.tier-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tier-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tier-tab:not(:last-child) {
  border-right: 1px solid var(--border);
}

.tier-tab.active {
  background: var(--fg);
  color: var(--bg);
}

.tier-tab:hover:not(.active) {
  background: var(--hover);
}

/* Result Cards */
.result-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--hover);
}

.result-card-header h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.result-card-price {
  font-weight: 700;
}

.result-card-body {
  padding: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

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

.result-label {
  color: var(--muted);
}

/* Grand Total */
.grand-total {
  padding: 1rem;
  border: 1px solid var(--fg);
  border-radius: 8px;
  margin-top: 1.5rem;
}

.grand-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.grand-total-label {
  font-weight: 600;
}

.grand-total-value {
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== OTA-Style Results Cards ===== */

/* Trip Parameters Card */
.trip-params-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.trip-params-header {
  background: var(--primary);
  color: white;
  padding: var(--space-4);
  font-weight: 600;
}

.trip-params-title {
  font-size: 1rem;
}

.trip-params-content {
  padding: var(--space-4);
}

.trip-param-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-3);
}

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

.trip-param-label {
  color: var(--muted);
  font-size: 0.875rem;
  min-width: 100px;
}

.trip-param-value {
  flex: 1;
  font-weight: 500;
  color: var(--fg);
}

.trip-param-event {
  color: var(--primary);
  font-weight: 600;
}

.trip-param-edit {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.trip-param-edit:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
}

/* Pricing Tier Cards */
.pricing-tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.pricing-tier:hover {
  box-shadow: var(--shadow-md);
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.tier-header.premium {
  background: linear-gradient(135deg, #5C2D91 0%, #7B4BAF 100%);
  color: white;
}

.tier-header.comfortable {
  background: linear-gradient(135deg, #00A699 0%, #00C9B7 100%);
  color: white;
}

.tier-header.adventure {
  background: linear-gradient(135deg, #FF385C 0%, #FF6B6B 100%);
  color: white;
}

.tier-total {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.tier-toggle {
  transition: transform 0.3s;
  font-size: 0.875rem;
}

.tier-toggle.open {
  transform: rotate(180deg);
}

.tier-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--bg);
}

.tier-content.open {
  max-height: 2000px;
}

.tier-details {
  padding: var(--space-4);
}

.detail-section {
  margin-bottom: var(--space-6);
}

.detail-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.detail-label {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Hotel Photo */
.hotel-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
}

.hotel-photo.fallback {
  background: var(--bg-tertiary);
}

/* Total Cost Box */
.total-cost {
  background: var(--primary);
  color: white;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-mono);
  margin-top: var(--space-4);
}

/* Trip Summary Details */
.trip-summary-details {
  background: var(--bg-secondary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}

.trip-summary-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--fg);
}

.trip-summary-details p {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  margin-bottom: var(--space-2);
}

/* Results Two Column Layout */
.results-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.results-left,
.results-right {
  min-width: 0;
}

.results-right h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--fg);
}

/* Email Section */
.email-section {
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

.email-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.email-action-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--fg);
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

@media (max-width: 768px) {
  .results-two-column {
    grid-template-columns: 1fr;
  }

  .email-action-row {
    flex-direction: column;
  }

  .email-action-row .btn {
    width: 100%;
  }
}

/* ===== Actions Section ===== */
.actions-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.email-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.email-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
}

.email-success {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--fg);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Auth Pages - OTA Style ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0 auto var(--space-6);
  text-decoration: none;
}

.auth-brand:hover {
  color: var(--primary-hover);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  text-align: center;
  color: var(--fg);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-input::placeholder {
  color: var(--muted);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  display: none;
}

.form-error.visible {
  display: block;
}

/* Password Requirements */
.password-requirements {
  margin-top: var(--space-2);
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}

.password-requirements li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.password-requirements li.valid {
  color: var(--success);
}

.password-requirements li.valid::before {
  content: "●";
  color: var(--success);
}

/* Consent Checkboxes */
.consent-group {
  margin-bottom: var(--space-4);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--fg-secondary);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-label a {
  color: var(--primary);
  text-decoration: underline;
}

/* Auth Buttons */
.auth-btn {
  width: 100%;
  padding: var(--space-4);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-btn-primary {
  background: var(--primary);
  color: white;
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* OAuth Section */
.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--space-6) 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 var(--space-4);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.oauth-btn:hover {
  background: var(--hover);
  border-color: var(--fg-secondary);
}

.oauth-icon {
  width: 20px;
  height: 20px;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: 0.9375rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-link {
  color: var(--primary);
  font-weight: 500;
}

/* ===== Account Page ===== */
.account-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.account-header {
  margin-bottom: 2rem;
}

.account-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.account-brand {
  text-decoration: none;
  color: var(--primary);
}

.account-brand:hover {
  color: var(--primary-hover);
}

.account-brand h1 {
  margin: 0;
}

.account-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.info-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.info-value {
  font-weight: 500;
}

.logout-btn {
  margin-top: 1rem;
}

/* ===== Legal Pages ===== */
.legal-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-container {
  max-width: 700px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal-back:hover {
  color: var(--fg);
}

.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 2.5rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.legal-page h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.legal-page p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

/* ===== Loading ===== */
.loading-indicator {
  display: none;
  padding: 2rem;
  text-align: center;
}

.loading-indicator.show {
  display: block;
}

.loading-dots {
  display: inline-flex;
  gap: 0.25rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ===== Recall Form ===== */
.recall-form-container {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.recall-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.recall-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recall-error {
  color: var(--error);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  text-align: center;
}

.recall-loading {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* ===== User Menu ===== */
#user-logged {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

#user-name-display {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .chat-wrapper {
    flex-direction: column;
  }

  .chat-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    order: 2;
  }

  .chat-main {
    order: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tier-tabs {
    flex-wrap: wrap;
  }

  .tier-tab {
    flex: 1 1 auto;
    min-width: 33.33%;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0.75rem 1rem;
  }

  .header-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
  }

  .homepage {
    padding: 1.5rem 1rem;
  }

  .homepage-title {
    font-size: 1.5rem;
  }

  .chat-main {
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .email-form {
    flex-direction: column;
  }
}

/* ===== Print ===== */
@media print {
  .topbar,
  .chat-input-container,
  .actions-section,
  .modal {
    display: none !important;
  }

  .chat-wrapper {
    display: block;
  }

  .chat-sidebar {
    width: 100%;
    border: none;
  }
}

/* ===== Agency Search Overlay ===== */
.agency-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.agency-search-overlay .overlay-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.agency-search-overlay .close-overlay-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.agency-search-overlay .close-overlay-btn:hover {
  color: var(--fg);
}

.agency-search-overlay h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.agency-search-overlay .overlay-subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Contact Options */
.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.contact-option-btn:hover {
  border-color: var(--success);
  background: var(--hover);
}

.contact-option-btn .contact-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-option-btn .contact-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.contact-option-btn .contact-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Phone Input */
.phone-input-section {
  margin-top: 1rem;
  text-align: left;
}

.phone-input-section label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.phone-input-section input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
}

.phone-input-section input:focus {
  outline: none;
  border-color: var(--success);
}

/* Searching Animation */
.agency-searching {
  flex-direction: column;
  align-items: center;
}

.searching-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.search-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: pulse 1.5s ease-out infinite;
}

.search-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: pulse 1.5s ease-out infinite 0.5s;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.searching-animation .search-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -60%); }
}

.search-status {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.search-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.search-progress-bar {
  height: 100%;
  background: var(--success);
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
}

.search-tip {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Success State */
.agency-found {
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.agency-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.contact-info {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Error State */
.agency-not-found {
  flex-direction: column;
  align-items: center;
}

.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--warning);
  color: white;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.error-message {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.no-agency-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .agency-search-overlay .overlay-content {
    max-width: 90%;
    margin: 2rem;
  }

  .contact-option-btn {
    padding: 1rem;
  }

  .search-progress {
    width: 100%;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .agency-search-overlay .overlay-content {
    padding: 1.5rem;
    margin: 1rem;
    max-width: 100%;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .no-agency-actions {
    flex-direction: column;
  }

  .contact-option-btn .contact-icon {
    font-size: 1.5rem;
  }

  .searching-animation .search-icon {
    font-size: 2rem;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-version {
  font-size: 0.6875rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ===== Nearby Activities (v4.0.0 Up-sell/Cross-sell) ===== */
.nearby-activities-section {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.nearby-activities-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nearby-icon {
  font-size: 1.5rem;
}

.nearby-activities-subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.5rem 0;
}

.activities-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activities-group {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
}

.activities-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activities-list {
  display: grid;
  gap: 0.75rem;
}

.activity-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.1);
}

.activity-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
}

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

.activity-name {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.activity-distance,
.activity-price,
.activity-cuisine {
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--muted);
}

.activity-price {
  color: var(--success);
  font-weight: 600;
}

.activity-cuisine {
  color: var(--primary);
}

.activity-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(138, 43, 226, 0.1);
  transition: background 0.2s;
}

.activity-link:hover {
  background: rgba(138, 43, 226, 0.2);
}

/* Responsive - Nearby Activities */
@media (max-width: 768px) {
  .nearby-activities-section {
    padding: 1rem;
  }

  .activity-card {
    flex-direction: column;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .activity-link {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .activity-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .activity-meta span {
    width: fit-content;
  }
}

/* ===== B2B Cross-Sell Section (v4.1.0) ===== */
.crosssell-section {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.crosssell-header {
  margin-bottom: 1.5rem;
}

.crosssell-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crosssell-icon {
  font-size: 1.5rem;
}

.crosssell-subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.crosssell-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.crosssell-category {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.category-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 8px;
}

.category-titles {
  flex: 1;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.category-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.category-count {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-services {
  display: grid;
  gap: 0.75rem;
}

/* Service Card */
.b2b-service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.b2b-service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.1);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.service-title-wrap {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-provider {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Tier badges */
.tier-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge.budget {
  background: #10b981;
  color: white;
}

.tier-badge.mid {
  background: #3b82f6;
  color: white;
}

.tier-badge.premium {
  background: #8b5cf6;
  color: white;
}

.tier-badge.luxury {
  background: #f59e0b;
  color: white;
}

.service-body {
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.service-location,
.service-duration,
.service-rating {
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--muted);
}

.service-rating {
  color: #f59e0b;
}

.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.reason-tag {
  font-size: 0.6875rem;
  background: rgba(138, 43, 226, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.service-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.service-book-btn,
.service-info-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.service-book-btn {
  background: var(--primary);
  color: white;
  border: none;
}

.service-book-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.service-info-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.service-info-btn:hover {
  background: rgba(138, 43, 226, 0.1);
}

/* Responsive - Cross-Sell */
@media (max-width: 768px) {
  .crosssell-section {
    padding: 1rem;
  }

  .category-services {
    grid-template-columns: 1fr;
  }

  .service-header {
    flex-wrap: wrap;
  }

  .tier-badge {
    order: 3;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .service-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-book-btn,
  .service-info-btn {
    width: 100%;
    text-align: center;
  }

  .service-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===== Groups & Private Rooms (v4.0.0) ===== */

/* Room Cards Grid */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.room-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.room-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light, #a855f7));
  color: white;
}

.room-name {
  font-weight: 600;
  font-size: 1rem;
}

.room-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.room-card-body {
  padding: 1rem;
}

.room-card-body p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.room-destination {
  color: var(--fg) !important;
  font-weight: 500;
}

.room-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.unread-badge {
  background: var(--danger, #ef4444);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

/* Compatibility Badge */
.compatibility-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Chat UI */
.room-chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.chat-room-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--bg);
}

.chat-message.own {
  align-self: flex-end;
  background: var(--primary);
  color: white;
}

.chat-message.system {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: italic;
  max-width: 100%;
  text-align: center;
}

.message-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}

.message-author {
  font-weight: 600;
  color: var(--primary);
}

.chat-message.own .message-author {
  color: rgba(255, 255, 255, 0.8);
}

.message-time {
  color: var(--muted);
}

.chat-message.own .message-time {
  color: rgba(255, 255, 255, 0.6);
}

.message-text {
  font-size: 0.9375rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-input-container {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  font-size: 0.9375rem;
  resize: none;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send-btn {
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: var(--primary-dark, #7c3aed);
}

/* Voting UI */
.voting-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.voting-title {
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vote-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vote-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.vote-option:hover {
  border-color: var(--primary);
}

.vote-option-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.vote-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.vote-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.vote-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.vote-voters {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Members List */
.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.member-info {
  flex: 1;
}

.member-name {
  font-weight: 500;
}

.member-role {
  font-size: 0.75rem;
  color: var(--muted);
}

.member-role.creator {
  color: var(--primary);
}

/* Join Room Modal */
.join-room-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.room-code-input {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

/* Create Room Form */
.create-room-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .room-chat-container {
    height: 350px;
  }

  .chat-message {
    max-width: 90%;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .chat-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .message-header {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===== Event Enhanced Info Section v5.0 ===== */
.event-enhanced-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-info-block {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.info-block-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--fg);
}

/* Venue Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item.transport-item {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 500;
}

/* Artist Info */
.artist-bio {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.artist-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.artist-genres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.genre-tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.artist-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.stat-icon {
  font-size: 1rem;
}

.artist-tracks {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.tracks-label {
  font-weight: 500;
  margin-right: 0.35rem;
}

.spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #1DB954;
  color: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.spotify-link:hover {
  opacity: 0.85;
}

.previous-events {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.prev-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.prev-event {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--fg-secondary);
}

/* Local Tips */
.tips-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tips-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tips-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tip-icon {
  font-size: 1.1rem;
}

.tip-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--fg);
}

.tip-distance {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-tertiary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Responsive for Event Enhanced */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .artist-details {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Dynamic Form Buttons (Event Flow) ===== */
.chat-input-form {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid var(--border);
}

.chat-input-form .form-group {
  margin-bottom: 0.5rem;
}

.chat-input-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

/* Preference Buttons (Arrival/Departure) */
.preference-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preference-btn {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

.preference-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.preference-btn.recommended {
  border-color: var(--primary);
}

.preference-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.preference-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Ticket Category Buttons */
.ticket-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticket-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

.ticket-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.ticket-btn.recommended {
  border-color: var(--primary);
}

.ticket-icon {
  font-size: 1.5rem;
}

.ticket-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.ticket-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

/* Travel Type Buttons */
.travel-type-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.travel-type-btn {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.travel-type-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.travel-type-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.travel-type-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Travel Style Buttons */
.travel-style-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.travel-style-btn {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

.travel-style-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.travel-style-btn.recommended {
  border-color: var(--primary);
}

.travel-style-icon {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.travel-style-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.travel-style-detail {
  font-size: 0.8rem;
  color: var(--muted);
}

.travel-style-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
}

/* Travelers Selection */
.travelers-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.travelers-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
  flex: 1;
}

.travelers-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.travelers-btn.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.travelers-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.travelers-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.travelers-custom-group {
  margin-top: 1rem;
}

.travelers-custom-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 1rem;
  text-align: center;
}

.travelers-custom-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* City Autocomplete Component */
.city-autocomplete-group {
  position: relative;
}

.city-autocomplete-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.city-autocomplete-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-bg);
}

.city-autocomplete-group input::placeholder {
  color: var(--muted);
}

.city-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border: 2px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.city-autocomplete-list:empty {
  display: none;
}

.autocomplete-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.autocomplete-item:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
}

.autocomplete-city {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
}

.autocomplete-country {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* Recommended Badge */
.recommended-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Event Select Buttons */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.event-select-btn {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.event-select-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.event-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.event-date, .event-venue, .event-city {
  font-size: 0.8rem;
  color: var(--muted);
}

.event-date {
  color: var(--primary);
  font-weight: 500;
}

/* Activity Destinations Grid */
.activity-destinations-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-dest-btn {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.activity-dest-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-dest-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.activity-dest-season {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.activity-dest-duration {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.125rem;
}

/* Inspiration Choices Grid */
.inspiration-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.inspiration-category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.inspiration-category-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inspiration-category-btn .category-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.inspiration-category-btn .category-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.inspiration-destinations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.inspiration-dest-btn {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.inspiration-dest-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inspiration-dest-btn .dest-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.inspiration-dest-btn .dest-country {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Mobile responsive for inspiration */
@media (max-width: 400px) {
  .inspiration-categories-grid,
  .inspiration-destinations-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Submit Button */
.form-submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.75rem;
}

.form-submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Responsive Form Buttons */
@media (min-width: 480px) {
  .preference-buttons,
  .ticket-buttons,
  .travel-type-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .preference-btn,
  .ticket-btn,
  .travel-type-btn {
    flex: 1;
    min-width: 140px;
  }
}
/* ===== Completeness Score Section ===== */
.completeness-score-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
}

.completeness-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.completeness-icon {
  font-size: 1.25rem;
}

.completeness-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

.completeness-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.completeness-gauge {
  position: relative;
  width: 100px;
  height: 60px;
}

.gauge-svg {
  width: 100%;
  height: auto;
}

.gauge-value {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1;
}

.gauge-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.gauge-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 1px;
}

.completeness-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  color: white;
  min-width: 80px;
}

.grade-letter {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.grade-label {
  font-size: 0.7rem;
  opacity: 0.9;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.completeness-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ===== Multi-leg Routes Section ===== */
.multileg-routes-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
}

.multileg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.multileg-icon {
  font-size: 1.25rem;
}

.multileg-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  flex: 1;
}

.route-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.route-badge.direct {
  background: var(--success);
  color: white;
}

.route-badge.stops {
  background: var(--warning);
  color: white;
}

.multileg-summary {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.summary-item {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.summary-item strong {
  color: var(--fg);
}

.summary-item.vectors {
  font-size: 1rem;
  margin-left: auto;
}

.route-segments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.route-segment {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.route-segment[data-vector="train"] {
  border-left-color: #3b82f6;
}

.route-segment[data-vector="bus"] {
  border-left-color: #22c55e;
}

.route-segment[data-vector="ferry"] {
  border-left-color: #06b6d4;
}

.route-segment[data-vector="car"],
.route-segment[data-vector="taxi"] {
  border-left-color: #f59e0b;
}

.segment-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.segment-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.segment-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.segment-arrow {
  color: var(--muted);
}

.segment-times {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.segment-duration {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--muted);
}

.segment-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.segment-carrier {
  font-weight: 500;
}

.segment-price {
  font-weight: 600;
  color: var(--primary);
}

.segment-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.segment-badge.live {
  background: var(--success);
  color: white;
}

.segment-badge.simulated {
  background: var(--bg-tertiary);
  color: var(--muted);
}

.route-connection {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0 0.25rem 19px;
}

.connection-dot {
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: 50%;
}

.connection-line {
  width: 2px;
  height: 16px;
  background: var(--border);
}

.route-score {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.score-item {
  font-size: 0.8rem;
  color: var(--muted);
  cursor: default;
}

/* ===== Travel Info Section ===== */
.travel-info-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
}

.travel-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.travel-info-icon {
  font-size: 1.25rem;
}

.travel-info-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

.travel-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.travel-info-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.info-card-icon {
  font-size: 1.25rem;
}

.info-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
}

.info-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.info-card-detail {
  font-size: 0.8rem;
  color: var(--muted);
}

.info-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.info-card-badge.required {
  background: #fef2f2;
  color: #dc2626;
}

.info-card-badge.not-required {
  background: #f0fdf4;
  color: #16a34a;
}

.info-card-badge.warning {
  background: #fffbeb;
  color: #d97706;
}

/* Mobile responsive for travel info */
@media (max-width: 480px) {
  .completeness-content {
    flex-direction: column;
    gap: 1rem;
  }

  .multileg-summary {
    flex-direction: column;
    gap: 0.5rem;
  }

  .summary-item.vectors {
    margin-left: 0;
  }

  .route-segment {
    flex-direction: column;
    gap: 0.5rem;
  }

  .segment-icon {
    width: auto;
  }

  .travel-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Updated Dom  5 Gen 2026 */
