/**
 * TripPortier Trip Detail Page Styles
 * Full-screen trip view with tabs matching iOS app
 */

/* ============================================
   Base Layout
   ============================================ */

.trip-detail-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ============================================
   Back Button
   ============================================ */

.trip-back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.trip-back-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.trip-back-btn svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Loading State
   ============================================ */

.trip-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1rem;
}

.trip-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: trip-spin 0.8s linear infinite;
}

@keyframes trip-spin {
  to {
    transform: rotate(360deg);
  }
}

.trip-loading p {
  color: #64748b;
  font-size: 1rem;
}

/* ============================================
   Error State
   ============================================ */

.trip-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.trip-error-icon {
  width: 80px;
  height: 80px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trip-error-icon svg {
  width: 40px;
  height: 40px;
  color: #ef4444;
}

.trip-error h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.trip-error p {
  color: #64748b;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.trip-error-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trip-error-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ============================================
   Trip Content Container
   ============================================ */

.trip-content {
  min-height: 100vh;
  padding-bottom: 80px; /* Space for tab bar */
}

/* ============================================
   Tab Content
   ============================================ */

.trip-tab-content {
  display: none;
}

.trip-tab-content.active {
  display: block;
}

/* ============================================
   Cover Photo Section (Hub Tab)
   ============================================ */

.trip-cover {
  position: relative;
  height: 55vh;
  min-height: 400px;
  max-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #4c1d95 0%, #6366f1 50%, #0ea5e9 100%);
}

.trip-cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-cover-gradient {
  display: none;
}

.trip-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 30%,
    transparent 50%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.trip-cover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
}

/* Status Badge */
.trip-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.trip-status-badge.active .trip-status-dot {
  background: #22c55e;
  animation: pulse-status 2s ease-in-out infinite;
}

.trip-status-badge.upcoming .trip-status-dot {
  background: #f59e0b;
}

.trip-status-badge.past .trip-status-dot {
  background: #94a3b8;
}

.trip-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.trip-status-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Trip Title & Info */
.trip-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.trip-destination {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.trip-dates {
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
}

/* ============================================
   Main Content Area
   ============================================ */

.trip-main {
  padding: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

/* Desktop: Wider content area */
@media (min-width: 1024px) {
  .trip-main {
    max-width: 1200px;
    padding: 2rem 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .trip-main {
    max-width: 900px;
    padding: 2rem;
  }
}

.trip-section {
  margin-bottom: 2rem;
}

.trip-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 1.5rem 0 1rem;
}

/* ============================================
   Tab Headers (Non-Hub Tabs)
   ============================================ */

.trip-tab-header {
  background: white;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.trip-tab-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.trip-tab-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.trip-tab-body {
  padding: 1rem;
}

/* Desktop: Better width for tab content */
@media (min-width: 768px) {
  .trip-tab-body {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .trip-tab-body {
    padding: 2rem 3rem;
    max-width: 1200px;
  }
}

/* ============================================
   Weather Section
   ============================================ */

.trip-weather-section {
  margin-bottom: 1.5rem;
}

.trip-weather-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  color: white;
}

/* Desktop: Better weather card layout */
@media (min-width: 768px) {
  .trip-weather-card {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .trip-weather-extra {
    display: flex !important;
    gap: 2rem;
  }
}

.trip-weather-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trip-weather-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-weather-icon svg {
  width: 48px;
  height: 48px;
  color: white;
}

.trip-weather-temp {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.trip-weather-details {
  flex: 1;
  min-width: 120px;
}

.trip-weather-desc {
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  opacity: 0.95;
}

.trip-weather-location {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.trip-weather-extra {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trip-weather-stat {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.trip-weather-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.trip-weather-stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Weather icon variants */
.trip-weather-icon.cloudy svg {
  color: #e2e8f0;
}

.trip-weather-icon.rainy svg {
  color: #93c5fd;
}

@media (max-width: 480px) {
  .trip-weather-card {
    padding: 1rem 1.25rem;
  }

  .trip-weather-temp {
    font-size: 2rem;
  }

  .trip-weather-icon {
    width: 40px;
    height: 40px;
  }

  .trip-weather-icon svg {
    width: 40px;
    height: 40px;
  }

  .trip-weather-extra {
    gap: 1rem;
  }
}

/* ============================================
   Essentials Grid
   ============================================ */

.trip-essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.trip-essential-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.trip-essential-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.trip-essential-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.trip-essential-icon.emoji {
  background: #f1f5f9;
  font-size: 1.5rem;
}

.trip-essential-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.trip-essential-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

/* ============================================
   Quick Actions
   ============================================ */

.trip-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Desktop: 2x2 grid for quick actions */
@media (min-width: 768px) {
  .trip-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .trip-actions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.trip-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.trip-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.trip-action-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trip-action-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.trip-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.trip-action-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.trip-action-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
}

.trip-action-arrow {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ============================================
   App Download CTA
   ============================================ */

.trip-app-cta {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.trip-app-cta-content {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: white;
}

.trip-app-cta-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.trip-app-cta-content p {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.trip-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: white;
  color: #1e293b;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trip-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ============================================
   Bottom Tab Bar
   ============================================ */

.trip-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}

.trip-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}

.trip-tab-btn svg {
  width: 24px;
  height: 24px;
}

.trip-tab-btn span {
  font-size: 0.75rem;
  font-weight: 500;
}

.trip-tab-btn.active {
  color: #6366f1;
}

.trip-tab-btn:hover {
  color: #6366f1;
}

/* ============================================
   Plan Sub-tabs
   ============================================ */

.plan-subtabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.plan-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-subtab svg {
  width: 16px;
  height: 16px;
}

.plan-subtab.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.plan-subtab:hover:not(.active) {
  background: #e2e8f0;
}

.plan-subtab-content {
  display: none;
}

.plan-subtab-content.active {
  display: block;
}

/* ============================================
   Itinerary Tab
   ============================================ */

.itinerary-container {
  max-width: 600px;
  margin: 0 auto;
}

.itinerary-empty,
.packing-empty,
.todos-empty,
.documents-empty,
.budget-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.itinerary-empty-icon,
.packing-empty-icon,
.todos-empty-icon,
.documents-empty-icon,
.budget-empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.itinerary-empty-icon svg,
.packing-empty-icon svg,
.todos-empty-icon svg,
.documents-empty-icon svg,
.budget-empty-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.itinerary-empty h3,
.packing-empty h3,
.todos-empty h3,
.documents-empty h3,
.budget-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.itinerary-empty p,
.packing-empty p,
.todos-empty p,
.documents-empty p,
.budget-empty p {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.itinerary-add-btn,
.packing-add-btn,
.todos-add-btn,
.documents-add-btn,
.budget-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.itinerary-add-btn:hover,
.packing-add-btn:hover,
.todos-add-btn:hover,
.documents-add-btn:hover,
.budget-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.itinerary-add-btn svg,
.budget-add-btn svg {
  width: 18px;
  height: 18px;
}

/* Itinerary Day */
.itinerary-day {
  margin-bottom: 1.5rem;
}

.itinerary-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.75rem;
}

.itinerary-day-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.itinerary-day-count {
  font-size: 0.8125rem;
  color: #64748b;
}

.itinerary-day-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Itinerary Item */
.itinerary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.itinerary-item-time {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  min-width: 60px;
  flex-shrink: 0;
}

.itinerary-item-icon {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.itinerary-item-icon svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
}

.itinerary-item-content {
  flex: 1;
  min-width: 0;
}

.itinerary-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.itinerary-item-location {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.itinerary-item-notes {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.itinerary-item-cost {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  flex-shrink: 0;
}

/* ============================================
   Packing List
   ============================================ */

.packing-container,
.todos-container,
.documents-container {
  max-width: 600px;
  margin: 0 auto;
}

.packing-category {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.packing-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.75rem;
}

.packing-category-icon {
  font-size: 1.25rem;
}

.packing-category-header h3 {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.packing-category-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.packing-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.packing-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.packing-item.packed {
  opacity: 0.6;
}

.packing-item.packed .packing-item-name {
  text-decoration: line-through;
}

.packing-item-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.packing-item-check svg {
  width: 24px;
  height: 24px;
  color: #22c55e;
}

.packing-item:not(.packed) .packing-item-check svg {
  color: #cbd5e1;
}

.packing-item-name {
  flex: 1;
  font-size: 0.9375rem;
  color: #1e293b;
}

.packing-item-qty {
  font-size: 0.8125rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  min-width: 1.5rem;
  text-align: center;
}

.packing-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.qty-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.qty-btn:active {
  transform: scale(0.95);
}

.packing-item-delete,
.todo-item-delete,
.expense-item-delete {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.packing-item-delete:hover,
.todo-item-delete:hover,
.expense-item-delete:hover {
  background: #fee2e2;
  color: #ef4444;
}

.packing-item-delete svg,
.todo-item-delete svg,
.expense-item-delete svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Todos
   ============================================ */

.todos-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.todo-item.completed {
  opacity: 0.6;
}

.todo-item.completed .todo-item-title {
  text-decoration: line-through;
}

.todo-item-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.todo-item-check svg {
  width: 24px;
  height: 24px;
  color: #22c55e;
}

.todo-item:not(.completed) .todo-item-check svg {
  color: #cbd5e1;
}

.todo-item-content {
  flex: 1;
  min-width: 0;
}

.todo-item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  display: block;
}

.todo-item-notes {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: block;
}

.todo-item-due {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6366f1;
  background: #eef2ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ============================================
   Budget
   ============================================ */

.budget-container {
  max-width: 600px;
  margin: 0 auto;
}

.budget-overview {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 20px;
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.budget-total {
  text-align: center;
  margin-bottom: 1.5rem;
}

.budget-total-label {
  font-size: 0.875rem;
  opacity: 0.9;
  display: block;
  margin-bottom: 0.25rem;
}

.budget-total-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.budget-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.budget-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.budget-category-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.budget-category-amount {
  font-size: 0.875rem;
  font-weight: 600;
}

.expenses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.expense-item-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expense-item-icon svg {
  width: 20px;
  height: 20px;
  color: #6366f1;
}

.expense-item-content {
  flex: 1;
  min-width: 0;
}

.expense-item-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  display: block;
}

.expense-item-category {
  font-size: 0.8125rem;
  color: #64748b;
}

.expense-item-right {
  text-align: right;
  flex-shrink: 0;
}

.expense-item-amount {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  display: block;
}

.expense-item-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ============================================
   Floating AI Button
   ============================================ */

.trip-ai-fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trip-ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.trip-ai-fab svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ============================================
   AI Overlay
   ============================================ */

.trip-ai-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.trip-ai-overlay.active {
  opacity: 1;
  visibility: visible;
}

.trip-ai-overlay-content {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.trip-ai-overlay.active .trip-ai-overlay-content {
  transform: translateY(0);
}

.trip-ai-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.trip-ai-overlay-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trip-ai-overlay-title svg {
  color: #6366f1;
}

.trip-ai-overlay-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.trip-ai-overlay-close {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.trip-ai-overlay-close:hover {
  background: #e2e8f0;
}

.trip-ai-overlay-close svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.trip-ai-overlay-body {
  padding: 1.5rem;
}

.trip-ai-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.trip-ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trip-ai-suggestion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.trip-ai-suggestion:hover {
  background: #f1f5f9;
  border-color: #6366f1;
}

.trip-ai-suggestion-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trip-ai-suggestion-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.trip-ai-app-prompt {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.trip-ai-app-prompt p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.trip-ai-app-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trip-ai-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* AI Chat Interface */
.trip-ai-overlay-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 70vh;
  padding: 0;
}

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

.ai-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
  margin-bottom: auto;
}

.ai-chat-welcome-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ai-chat-welcome-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.ai-chat-welcome h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.ai-chat-welcome p {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  max-width: 280px;
}

.ai-chat-message {
  max-width: 85%;
  padding: 0.875rem 1rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.ai-chat-message.user {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.ai-chat-message.assistant {
  background: #f1f5f9;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-chat-message.assistant p {
  margin: 0 0 0.75rem;
}

.ai-chat-message.assistant p:last-child {
  margin-bottom: 0;
}

.ai-chat-message.assistant strong {
  color: #6366f1;
}

.ai-chat-loading {
  display: flex;
  gap: 4px;
  padding: 0.875rem 1rem;
  background: #f1f5f9;
  border-radius: 16px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-chat-loading span {
  width: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

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

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

.ai-quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ai-quick-btn {
  padding: 0.5rem 0.875rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ai-quick-btn:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.ai-chat-input-container {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.ai-chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  font-size: 0.9375rem;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-chat-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ai-chat-send-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.ai-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-chat-send-btn:not(:disabled):hover {
  transform: scale(1.05);
}

.ai-chat-send-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

.ai-premium-notice {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ai-premium-notice-content {
  text-align: center;
  padding: 2rem;
}

.ai-premium-notice-content svg {
  width: 48px;
  height: 48px;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.ai-premium-notice-content p {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1.25rem;
}

.ai-premium-btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.ai-premium-btn:hover {
  transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .trip-cover {
    height: 50vh;
    min-height: 350px;
  }

  .trip-cover-content {
    padding: 1.5rem;
  }

  .trip-title {
    font-size: 2rem;
  }

  .trip-destination {
    font-size: 1.125rem;
  }

  .trip-main {
    padding: 1rem;
    margin-top: -1.5rem;
  }

  .trip-essentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trip-tab-header {
    padding: 1rem;
  }

  .trip-tab-body {
    padding: 0.75rem;
  }

  .plan-subtabs {
    flex-wrap: wrap;
  }

  .trip-ai-fab {
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .trip-cover {
    height: 45vh;
    min-height: 300px;
  }

  .trip-title {
    font-size: 1.75rem;
  }

  .trip-essential-card {
    padding: 1rem;
  }

  .trip-essential-icon {
    width: 40px;
    height: 40px;
  }

  .trip-essential-icon svg {
    width: 20px;
    height: 20px;
  }

  .trip-tab-bar {
    height: 65px;
  }

  .trip-tab-btn svg {
    width: 22px;
    height: 22px;
  }

  .trip-tab-btn span {
    font-size: 0.6875rem;
  }

  .trip-ai-fab {
    bottom: 75px;
    width: 48px;
    height: 48px;
  }

  .trip-ai-fab svg {
    width: 22px;
    height: 22px;
  }
}

/* ============================================
   Desktop Enhancements
   ============================================ */

@media (min-width: 768px) {
  .trip-back-btn {
    top: 1.5rem;
    left: 1.5rem;
  }

  .trip-cover-content {
    max-width: 900px;
    padding: 2.5rem;
  }

  .trip-tab-bar {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  .trip-tab-btn {
    padding: 10px 20px;
  }

  .trip-tab-btn svg {
    width: 26px;
    height: 26px;
  }

  .trip-tab-btn span {
    font-size: 0.8125rem;
  }

  .trip-ai-fab {
    right: calc(50% - 350px);
  }

  .trip-essentials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .trip-weather-card {
    padding: 1.5rem 2rem;
  }
}

/* Large Desktop Enhancements */
@media (min-width: 1024px) {
  .trip-cover {
    height: 60vh;
    min-height: 500px;
    max-height: 600px;
  }

  .trip-cover-content {
    max-width: 1200px;
    padding: 3rem;
  }

  .trip-tab-bar {
    max-width: 800px;
    height: 75px;
  }

  .trip-tab-btn {
    padding: 12px 24px;
  }

  .trip-tab-btn svg {
    width: 28px;
    height: 28px;
  }

  .trip-tab-btn span {
    font-size: 0.875rem;
  }

  .trip-ai-fab {
    right: calc(50% - 450px);
    width: 60px;
    height: 60px;
  }

  .trip-ai-fab svg {
    width: 28px;
    height: 28px;
  }

  .trip-essentials-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .trip-essential-card {
    padding: 1.75rem;
  }

  .trip-action-card {
    padding: 1.25rem 1.5rem;
  }

  .trip-section-title {
    font-size: 1.25rem;
    margin: 2rem 0 1.5rem;
  }

  .trip-content {
    padding-bottom: 100px;
  }
}

/* ============================================
   Add Item Forms
   ============================================ */

.add-item-form {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.add-item-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-item-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
}

.add-item-input:focus {
  border-color: #6366f1;
}

.add-item-input::placeholder {
  color: #94a3b8;
}

.add-item-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  background: white;
  color: #475569;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 120px;
}

.add-item-select:focus {
  border-color: #6366f1;
}

.add-item-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.add-item-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

.add-item-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Itinerary Form */
.add-itinerary-form {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.add-itinerary-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.add-itinerary-row:last-child {
  margin-bottom: 0;
}

.add-itinerary-row-extra {
  margin-top: 0.25rem;
}

.add-item-date {
  max-width: 140px;
  flex-shrink: 0;
}

.add-item-time {
  max-width: 100px;
  flex-shrink: 0;
}

/* Itinerary Item Actions */
.itinerary-item {
  position: relative;
}

.itinerary-item-actions {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.itinerary-item:hover .itinerary-item-actions {
  opacity: 1;
}

.itinerary-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.itinerary-action-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.itinerary-action-btn.delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.itinerary-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Interactive Packing Items */
.packing-item {
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.15s;
  padding: 0.625rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
}

.packing-item:hover {
  background-color: #f8fafc;
}

.packing-item:active {
  background-color: #f1f5f9;
}

/* Interactive Todo Items */
.todo-item {
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.todo-item:hover {
  transform: translateX(2px);
}

.todo-item:active {
  transform: scale(0.99);
}

/* Responsive adjustments for add forms */
@media (max-width: 480px) {
  .add-item-input-row {
    flex-wrap: wrap;
  }

  .add-item-input {
    width: 100%;
    flex: none;
  }

  .add-item-select {
    flex: 1;
    min-width: 0;
  }

  .add-item-btn {
    width: 44px;
  }
}

/* ============================================
   Trip Menu Button & Dropdown
   ============================================ */

.trip-menu-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.trip-menu-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.trip-menu-btn svg {
  width: 24px;
  height: 24px;
}

.trip-menu-dropdown {
  position: fixed;
  top: 4rem;
  right: 1rem;
  z-index: 101;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.trip-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.trip-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.trip-menu-item:hover {
  background: #f1f5f9;
}

.trip-menu-item svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.trip-menu-item-danger {
  color: #dc2626;
}

.trip-menu-item-danger svg {
  color: #dc2626;
}

.trip-menu-item-danger:hover {
  background: #fef2f2;
}

.trip-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.25rem 0;
}

/* ============================================
   Trip Modals
   ============================================ */

.trip-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.trip-modal.active {
  opacity: 1;
  visibility: visible;
}

.trip-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.trip-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.trip-modal.active .trip-modal-content {
  transform: translateY(0);
}

.trip-modal-content-small {
  max-width: 400px;
}

.trip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.trip-modal-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.trip-modal-close {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.trip-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.trip-modal-close svg {
  width: 20px;
  height: 20px;
}

.trip-modal-body {
  padding: 1.5rem;
}

.trip-modal-field {
  margin-bottom: 1rem;
}

.trip-modal-field:last-child {
  margin-bottom: 0;
}

.trip-modal-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.5rem;
}

.trip-modal-field input,
.trip-modal-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.trip-modal-field input:focus,
.trip-modal-field select:focus {
  border-color: #6366f1;
}

.trip-modal-field-row {
  display: flex;
  gap: 1rem;
}

.trip-modal-field-row .trip-modal-field {
  flex: 1;
}

.trip-modal-warning {
  width: 60px;
  height: 60px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.trip-modal-warning svg {
  width: 30px;
  height: 30px;
  color: #dc2626;
}

.trip-modal-message {
  text-align: center;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
}

.trip-modal-message strong {
  color: #1e293b;
}

.trip-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.trip-modal-btn-secondary,
.trip-modal-btn-primary,
.trip-modal-btn-danger {
  flex: 1;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.trip-modal-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.trip-modal-btn-secondary:hover {
  background: #e2e8f0;
}

.trip-modal-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.trip-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.trip-modal-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.trip-modal-btn-danger {
  background: #dc2626;
  color: white;
}

.trip-modal-btn-danger:hover {
  background: #b91c1c;
}

.trip-modal-btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   Toast Notification
   ============================================ */

.trip-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.875rem 1.5rem;
  background: #1e293b;
  color: white;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 300;
}

.trip-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 768px) {
  .trip-menu-btn {
    top: 1.5rem;
    right: 1.5rem;
  }

  .trip-menu-dropdown {
    top: 4.5rem;
    right: 1.5rem;
  }
}

/* ============================================
   Add Expense Form
   ============================================ */

.add-expense-form {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.add-expense-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-expense-row:first-child {
  margin-bottom: 0.5rem;
}

.add-expense-row .add-item-input[type="number"] {
  width: 100px;
  flex: none;
}

@media (max-width: 480px) {
  .add-expense-row {
    flex-wrap: wrap;
  }

  .add-expense-row:first-child .add-item-input {
    width: 100%;
    flex: none;
  }

  .add-expense-row .add-item-input[type="number"] {
    flex: 1;
    min-width: 80px;
  }

  .add-expense-row .add-item-select {
    flex: 1;
    min-width: 0;
  }
}

/* ============================================
   Dark Mode
   ============================================ */

[data-theme="dark"] .trip-detail-body {
  background: #0f0f23;
}

[data-theme="dark"] .trip-loading p,
[data-theme="dark"] .trip-error p {
  color: #94a3b8;
}

[data-theme="dark"] .trip-error h2,
[data-theme="dark"] .trip-section-title {
  color: #f1f5f9;
}

[data-theme="dark"] .add-item-form,
[data-theme="dark"] .add-itinerary-form,
[data-theme="dark"] .add-expense-form {
  background: #1a1a3e;
  border: 1px solid #2d2d5a;
}

[data-theme="dark"] .add-item-input,
[data-theme="dark"] .add-item-select {
  background: #0f0f23;
  border-color: #2d2d5a;
  color: #f1f5f9;
}

[data-theme="dark"] .add-item-input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .packing-category,
[data-theme="dark"] .itinerary-day,
[data-theme="dark"] .budget-overview,
[data-theme="dark"] .expense-item {
  background: #1a1a3e;
  border-color: #2d2d5a;
}

[data-theme="dark"] .packing-category-header h3,
[data-theme="dark"] .itinerary-day-header h3,
[data-theme="dark"] .itinerary-item-title,
[data-theme="dark"] .todo-item-title,
[data-theme="dark"] .expense-item-name {
  color: #f1f5f9;
}

[data-theme="dark"] .packing-item-name,
[data-theme="dark"] .itinerary-item-location,
[data-theme="dark"] .itinerary-item-notes,
[data-theme="dark"] .todo-item-notes,
[data-theme="dark"] .expense-item-category {
  color: #94a3b8;
}

[data-theme="dark"] .packing-item:hover,
[data-theme="dark"] .todo-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .itinerary-action-btn {
  background: #2d2d5a;
  color: #94a3b8;
}

[data-theme="dark"] .itinerary-action-btn:hover {
  background: #3d3d6a;
  color: #f1f5f9;
}

[data-theme="dark"] .itinerary-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

[data-theme="dark"] .trip-modal-content {
  background: #1a1a3e;
}

[data-theme="dark"] .trip-modal-header {
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-modal-header h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .trip-modal-close {
  background: #2d2d5a;
  color: #94a3b8;
}

[data-theme="dark"] .trip-modal-close:hover {
  background: #3d3d6a;
  color: #f1f5f9;
}

[data-theme="dark"] .trip-modal-field label {
  color: #94a3b8;
}

[data-theme="dark"] .trip-modal-field input,
[data-theme="dark"] .trip-modal-field select {
  background: #0f0f23;
  border-color: #2d2d5a;
  color: #f1f5f9;
}

[data-theme="dark"] .trip-modal-btn-secondary {
  background: #2d2d5a;
  border-color: #3d3d6a;
  color: #f1f5f9;
}

[data-theme="dark"] .trip-modal-message {
  color: #94a3b8;
}

[data-theme="dark"] .trip-toast {
  background: #f1f5f9;
  color: #0f0f23;
}

[data-theme="dark"] .trip-tab-bar {
  background: #1a1a3e;
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-tab-btn {
  color: #64748b;
}

[data-theme="dark"] .trip-tab-btn.active {
  color: #818cf8;
}

[data-theme="dark"] .trip-tab-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .trip-tab-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .plan-subtab {
  background: #2d2d5a;
  color: #94a3b8;
}

[data-theme="dark"] .plan-subtab.active {
  background: #6366f1;
  color: white;
}

[data-theme="dark"] .trip-essential-card {
  background: #1a1a3e;
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-essential-label {
  color: #64748b;
}

[data-theme="dark"] .trip-essential-value {
  color: #f1f5f9;
}

[data-theme="dark"] .trip-action-card {
  background: #1a1a3e;
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-action-title {
  color: #f1f5f9;
}

[data-theme="dark"] .trip-action-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .trip-menu-dropdown {
  background: #1a1a3e;
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-menu-item {
  color: #f1f5f9;
}

[data-theme="dark"] .trip-menu-item:hover {
  background: #2d2d5a;
}

[data-theme="dark"] .trip-menu-divider {
  background: #2d2d5a;
}

[data-theme="dark"] .qty-btn {
  background: #2d2d5a;
  color: #a5b4fc;
}

[data-theme="dark"] .qty-btn:hover {
  background: #3d3d7a;
  color: #c4b5fd;
}

[data-theme="dark"] .packing-item-qty {
  color: #e2e8f0;
}

[data-theme="dark"] .packing-item-delete,
[data-theme="dark"] .todo-item-delete,
[data-theme="dark"] .expense-item-delete {
  color: #64748b;
}

[data-theme="dark"] .packing-item-delete:hover,
[data-theme="dark"] .todo-item-delete:hover,
[data-theme="dark"] .expense-item-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

[data-theme="dark"] .add-item-date {
  color-scheme: dark;
}

/* AI Chat Dark Mode */
[data-theme="dark"] .trip-ai-overlay-content {
  background: #1e1e3f;
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-ai-overlay-header {
  border-color: #2d2d5a;
}

[data-theme="dark"] .trip-ai-overlay-title h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .ai-chat-messages {
  background: #1e1e3f;
}

[data-theme="dark"] .ai-chat-welcome h4 {
  color: #e2e8f0;
}

[data-theme="dark"] .ai-chat-welcome p {
  color: #94a3b8;
}

[data-theme="dark"] .ai-chat-message.assistant {
  background: #2d2d5a;
  color: #e2e8f0;
}

[data-theme="dark"] .ai-chat-message.assistant strong {
  color: #a5b4fc;
}

[data-theme="dark"] .ai-chat-loading {
  background: #2d2d5a;
}

[data-theme="dark"] .ai-chat-loading span {
  background: #64748b;
}

[data-theme="dark"] .ai-quick-suggestions {
  background: #15152d;
  border-color: #2d2d5a;
}

[data-theme="dark"] .ai-quick-btn {
  background: #2d2d5a;
  border-color: #3d3d7a;
  color: #e2e8f0;
}

[data-theme="dark"] .ai-quick-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
}

[data-theme="dark"] .ai-chat-input-container {
  background: #1e1e3f;
  border-color: #2d2d5a;
}

[data-theme="dark"] .ai-chat-input {
  background: #15152d;
  border-color: #2d2d5a;
  color: #e2e8f0;
}

[data-theme="dark"] .ai-chat-input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .ai-chat-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .ai-premium-notice {
  background: rgba(30, 30, 63, 0.98);
}

[data-theme="dark"] .ai-premium-notice-content p {
  color: #94a3b8;
}

/* ============================================
   Trip Suggestions & Recommendations
   ============================================ */

.trip-suggestions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Desktop: Grid layout for suggestions */
@media (min-width: 768px) {
  .trip-suggestions-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .trip-suggestions-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.suggestion-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.suggestion-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.suggestion-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-card-content {
  flex: 1;
  min-width: 0;
}

.suggestion-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}

.suggestion-card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.suggestion-card-menu {
  position: relative;
}

.suggestion-card-menu-btn {
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.suggestion-card-menu-btn:hover {
  background: #cbd5e1;
  color: #475569;
}

.suggestion-card-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  display: none;
  z-index: 100;
  overflow: hidden;
}

.suggestion-card-menu-dropdown.active {
  display: block;
}

.suggestion-card-menu-dropdown button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.suggestion-card-menu-dropdown button:hover {
  background: #f1f5f9;
}

.suggestion-card-menu-dropdown button.destructive {
  color: #ef4444;
}

.suggestion-card-action {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.suggestion-card-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* eSIM Card Styles */
.suggestion-card.esim .suggestion-card-icon {
  color: #3b82f6;
}

.suggestion-card.esim .suggestion-card-action {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.suggestion-card.esim .suggestion-card-action:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.suggestion-card-state-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-card-secondary-action {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  padding: 4px 0;
  cursor: pointer;
  text-align: center;
}

.suggestion-card-secondary-action:hover {
  color: #475569;
  text-decoration: underline;
}

/* Asia Transport Card Styles */
.suggestion-card.transport .suggestion-card-icon {
  color: #e67e22;
}

.suggestion-card.transport .suggestion-card-action {
  background: linear-gradient(90deg, #e67e22, #d35400);
  justify-content: space-between;
}

.suggestion-card.transport .suggestion-card-action:hover {
  background: linear-gradient(90deg, #d35400, #c0392b);
}

/* Airport Transfer Card Styles */
.suggestion-card.transfer .suggestion-card-icon {
  color: #4a90e2;
}

.suggestion-card.transfer .suggestion-card-action {
  background: linear-gradient(90deg, #4a90e2, #3a7bc8);
  justify-content: space-between;
}

.suggestion-card.transfer .suggestion-card-action:hover {
  background: linear-gradient(90deg, #3a7bc8, #2a5a8f);
}

/* Email Import Card Styles */
.suggestion-card.email-import .suggestion-card-icon {
  color: #9966ff;
}

.email-import-address {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.email-import-address-text {
  flex: 1;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-import-copy-btn {
  background: #9966ff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.email-import-copy-btn:hover {
  background: #7d4cdb;
}

.email-import-copy-btn.copied {
  background: #22c55e;
}

/* Companions Section Styles */
.trip-companions-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
}

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

.companions-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.companions-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.companions-invite-btn {
  background: none;
  border: none;
  color: #4a90e2;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.companions-invite-btn:hover {
  text-decoration: underline;
}

.companions-list {
  display: flex;
  gap: -8px;
  margin-bottom: 12px;
}

.companion-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #475569;
  margin-left: -8px;
}

.companion-avatar:first-child {
  margin-left: 0;
}

.companion-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.companion-more {
  font-size: 0.75rem;
  color: #64748b;
}

.companions-view-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0;
  color: #1e293b;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.companions-view-btn:hover {
  color: #4a90e2;
}

/* Invite Prompt Card */
.companions-invite-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
}

.companions-invite-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.companions-invite-icon {
  font-size: 28px;
  color: #4a90e2;
}

.companions-invite-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}

.companions-invite-content p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.companions-invite-actions {
  display: flex;
  gap: 12px;
}

.companions-invite-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.companions-invite-primary {
  background: #4a90e2;
  color: white;
}

.companions-invite-primary:hover {
  background: #3a7bc8;
}

.companions-invite-secondary {
  background: #e2e8f0;
  color: #64748b;
}

.companions-invite-secondary:hover {
  background: #cbd5e1;
}

/* Premium Badge for Email Import */
.suggestion-card.email-import .suggestion-card-title::after {
  content: ' 🔒';
  font-size: 0.875rem;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .suggestion-card {
    padding: 14px;
  }

  .suggestion-card-title {
    font-size: 0.875rem;
  }

  .suggestion-card-subtitle {
    font-size: 0.6875rem;
  }

  .email-import-address {
    flex-direction: column;
    align-items: stretch;
  }

  .email-import-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .companions-invite-actions {
    flex-direction: column;
  }
}

/* Dark Theme Support */
[data-theme="dark"] .suggestion-card {
  background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .suggestion-card-title {
  color: #f1f5f9;
}

[data-theme="dark"] .suggestion-card-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .suggestion-card-menu-btn {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

[data-theme="dark"] .suggestion-card-menu-btn:hover {
  background: rgba(100, 116, 139, 0.3);
}

[data-theme="dark"] .suggestion-card-menu-dropdown {
  background: rgba(30, 41, 59, 0.98);
}

[data-theme="dark"] .suggestion-card-menu-dropdown button {
  color: #f1f5f9;
}

[data-theme="dark"] .suggestion-card-menu-dropdown button:hover {
  background: rgba(100, 116, 139, 0.2);
}

[data-theme="dark"] .email-import-address {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(100, 116, 139, 0.3);
}

[data-theme="dark"] .trip-companions-section,
[data-theme="dark"] .companions-invite-card {
  background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .companions-title {
  color: #94a3b8;
}

[data-theme="dark"] .companions-view-btn {
  color: #f1f5f9;
}

[data-theme="dark"] .companions-view-btn:hover {
  color: #60a5fa;
}

[data-theme="dark"] .companions-invite-content h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .companions-invite-content p {
  color: #94a3b8;
}

[data-theme="dark"] .companions-invite-secondary {
  background: rgba(100, 116, 139, 0.3);
  color: #cbd5e1;
}

[data-theme="dark"] .companions-invite-secondary:hover {
  background: rgba(100, 116, 139, 0.4);
}
