@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #4A148C;
  --primary-dark: #6A1B9A;
  --primary-light: #8E24AA;
  --secondary: #CE93D8;
  --bg: #F3E5F5;
  --bg-card: #FFFFFF;
  --bg-surface: #FFF3E0;
  --text: #3E2723;
  --text-secondary: #795548;
  --text-light: #A1887F;
  --border: #FFCCBC;
  --border-light: #FFE0B2;
  --success: #66BB6A;
  --danger: #EF5350;
  --shadow-sm: 0 1px 3px rgba(62, 39, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(62, 39, 35, 0.08);
  --shadow-lg: 0 8px 24px rgba(62, 39, 35, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

::selection {
  background: var(--secondary);
  color: var(--primary-dark);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== APP SHELL ===== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 72px;
}

.app-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(230, 74, 25, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  font-size: 1.6rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.app-main {
  flex: 1;
  padding: 20px 16px;
}

/* ===== TAB BAR ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 16px rgba(62, 39, 35, 0.06);
  z-index: 100;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: var(--text-light);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

.tab-icon { font-size: 1.3rem; }
.tab-label { font-size: 0.72rem; font-weight: 500; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(230, 74, 25, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230, 74, 25, 0.35);
}

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

.btn-primary.full-width { width: 100%; }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-back {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-icon-sm {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s;
  opacity: 0.6;
}

.btn-icon-sm:hover { opacity: 1; background: var(--bg); }

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

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

/* ===== VIEW HEADERS ===== */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.view-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.view-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== TRIP CARDS ===== */
.trip-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.trip-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeSlideIn 0.4s ease both;
  border: 1px solid var(--border-light);
}

.trip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trip-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.trip-card-body { padding: 16px 18px; }

.trip-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.trip-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.trip-card-destination {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.trip-card-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.trip-badge {
  background: var(--bg);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.trip-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

.trip-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.trip-days-count {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trip-card-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===== TRIP DETAIL ===== */
.detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.detail-destination {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.detail-dates {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== DAY TABS ===== */
.day-tabs-wrapper {
  overflow-x: auto;
  margin: 0 -16px 16px;
  padding: 0 16px;
  scrollbar-width: none;
}

.day-tabs-wrapper::-webkit-scrollbar { display: none; }

.day-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  position: relative;
  min-width: 80px;
}

.day-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(230, 74, 25, 0.25);
}

.day-tab-num {
  font-size: 0.82rem;
  font-weight: 600;
}

.day-tab-date {
  font-size: 0.7rem;
  opacity: 0.8;
}

.day-tab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-tab.active .day-tab-badge {
  background: #fff;
  color: var(--primary-dark);
}

/* ===== DAY PLANNER ===== */
.day-planner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.day-planner-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== MAP ===== */
.map-container {
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.map-element {
  height: 260px;
  width: 100%;
}

/* ===== ACTIVITY TIMELINE ===== */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  gap: 14px;
  animation: fadeSlideIn 0.35s ease both;
}

.activity-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}

.marker-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.marker-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--border);
  margin: 4px 0;
}

.activity-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}

.activity-content:hover {
  box-shadow: var(--shadow-sm);
}

.activity-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

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

.activity-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.activity-time, .activity-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.activity-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.activity-notes {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
  font-style: italic;
}

.coords-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* ===== PACKING CHECKLIST ===== */
.progress-section {
  margin-bottom: 18px;
}

.progress-bar-bg {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 8px;
}

.progress-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.toggle-label input {
  accent-color: var(--primary);
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chip:hover:not(.active) { background: var(--secondary); }

/* ===== PACKING GROUPS ===== */
.packing-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.packing-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.group-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

.packing-items { padding: 4px 0; }

.packing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  transition: background 0.15s;
  animation: fadeSlideIn 0.3s ease both;
}

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

.packing-item.checked { opacity: 0.55; }

.packing-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.packing-label input[type="checkbox"] { display: none; }

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.packing-item.checked .checkmark {
  background: var(--success);
  border-color: var(--success);
}

.packing-item.checked .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.packing-name {
  font-size: 0.9rem;
  color: var(--text);
}

.packing-item.checked .packing-name {
  text-decoration: line-through;
  color: var(--text-light);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 0;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  line-height: 1;
}

/* ===== FORMS ===== */
.trip-form {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12);
}

.form-group textarea { resize: vertical; }

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 6px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 10px;
}

.empty-state.small { padding: 32px 16px; }

.empty-icon { font-size: 3rem; margin-bottom: 4px; }

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.empty-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== SKELETON ===== */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-card.large { min-height: 120px; }

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--secondary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-line.wide { width: 70%; }
.skeleton-line.medium { width: 50%; }
.skeleton-line.narrow { width: 30%; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 641px) {
  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: var(--radius-lg);
  }

  .app-main {
    padding: 24px 24px;
  }
}

@media (max-width: 640px) {
  .header-title { font-size: 1.25rem; }
  .view-title { font-size: 1.3rem; }
  .view-header { flex-direction: column; gap: 10px; }
  .header-actions { width: 100%; }
  .header-actions .btn-secondary,
  .header-actions .btn-primary { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
  .map-element { height: 200px; }
  .detail-title { font-size: 1.2rem; }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Trip Planner! This is your trips dashboard where you can plan and manage all your upcoming adventures.", "view": "user", "highlight_selector": ".view-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap 'New Trip' to create your first trip. Enter the destination, travel dates, and an optional description.", "view": "user", "highlight_selector": ".btn-primary", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Your trip cards show the destination, dates, and a countdown. Tap any trip to open the detailed day-by-day planner.", "view": "user", "highlight_selector": ".trip-cards", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Inside a trip, use the day tabs to switch between days. Each day can have its own activities with times, locations, and map coordinates.", "view": "user", "highlight_selector": ".day-tabs", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Add activities with coordinates and they'll appear as markers on the map with a connecting route line. Enter latitude and longitude from Google Maps.", "view": "user", "highlight_selector": ".map-container", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Switch to the Packing tab to manage your packing checklist. Load the starter kit or use AI to suggest smart items to pack.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 7, "narration": "Check off items as you pack. The progress bar shows how prepared you are. Filter by category and remove packed items when done.", "view": "user", "highlight_selector": ".progress-section", "wait_for": "tap_to_continue"}
]
-->

.auth-gate { max-width: 520px; margin: 24px auto 0; }
.auth-login-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-light); padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); max-width: 220px; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.user-avatar-fallback { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .header-actions { align-items: stretch; } .user-chip { max-width: 100%; flex: 1; justify-content: center; } }

.trip-card-actions { display: flex; align-items: flex-start; gap: 4px; }
.share-preview { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.share-preview-title { font-weight: 700; color: var(--text); }
.share-preview-meta { font-size: 0.85rem; color: var(--text-secondary); }
.share-actions-row { display: flex; gap: 10px; }
.share-actions-row > button { flex: 1; }
.share-status { font-size: 0.85rem; color: var(--success); font-weight: 600; }
@media (max-width: 640px) { .share-actions-row { flex-direction: column; } }

.location-photo-section { margin-top: 18px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.location-photo-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.location-photo-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.location-photo-hint { font-size: 0.78rem; color: var(--text-light); }
.location-photo-uploader { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.location-photo-label-input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; color: var(--text); background: var(--bg); outline: none; }
.location-photo-label-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12); }
.location-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.location-photo-card { border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-surface); }
.location-photo-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.location-photo-meta { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 10px 12px; }
.location-photo-title { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.location-photo-subtitle { font-size: 0.76rem; color: var(--text-secondary); margin-top: 2px; word-break: break-word; }

.weather-panel { margin: 0 0 18px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.weather-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.weather-panel-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.weather-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px 14px; }
.weather-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.weather-summary { font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.weather-location { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }
.weather-temp { font-family: 'Playfair Display', serif; font-size: 2rem; line-height: 1; color: var(--primary-dark); font-weight: 700; }
.weather-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 0.8rem; color: var(--text-secondary); }

.ai-trip-advisor { margin: 0 0 18px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.ai-trip-advisor-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ai-trip-advisor-header h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); }
.ai-trip-advisor-header p { font-size: 0.84rem; color: var(--text-secondary); margin-top: 2px; }
.ai-trip-advisor-form { display: flex; flex-direction: column; gap: 12px; }
.ai-trip-advisor-actions { display: flex; flex-direction: column; justify-content: flex-end; }
.ai-trip-advisor-results { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.ai-result-section { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px 14px; }
.ai-result-section h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ai-result-section-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ai-result-list { display: flex; flex-direction: column; gap: 10px; }
.ai-result-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; }
.ai-result-title { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.ai-result-meta { font-size: 0.78rem; color: var(--text-secondary); margin-top: 3px; }
.ai-result-note { font-size: 0.82rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.45; }
.ai-tip-list { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary); font-size: 0.84rem; }
.ai-result-actions { display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .ai-trip-advisor-header, .ai-result-section-header { flex-direction: column; align-items: stretch; } .ai-result-actions .btn-secondary { width: 100%; } }

.detail-actions-row { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.itinerary-pdf-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.itinerary-pdf-content { background: #fff; color: #222; padding: 24px; width: 800px; font-family: 'DM Sans', sans-serif; }
.itinerary-pdf-header { border-bottom: 2px solid #eee; padding-bottom: 14px; margin-bottom: 18px; }
.itinerary-pdf-header h1 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 6px; }
.itinerary-pdf-destination, .itinerary-pdf-dates { color: #555; font-size: 14px; }
.itinerary-pdf-section { margin-bottom: 20px; }
.itinerary-pdf-section h2 { font-size: 18px; margin-bottom: 10px; }
.itinerary-pdf-subsection { margin-top: 12px; }
.itinerary-pdf-subsection h3, .itinerary-pdf-day h3 { font-size: 15px; margin-bottom: 8px; }
.itinerary-pdf-content ul { padding-left: 18px; }
.itinerary-pdf-content li { margin-bottom: 6px; line-height: 1.45; }
.itinerary-pdf-summary, .itinerary-pdf-empty { font-size: 14px; line-height: 1.5; color: #333; }
.itinerary-pdf-day { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.itinerary-pdf-photos { margin-top: 8px; }
.itinerary-pdf-photos-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
@media print { .itinerary-pdf-hidden { position: static; width: auto; height: auto; opacity: 1; overflow: visible; } }

.email-send-panel { margin: 0 0 18px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.email-send-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.email-send-header h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); }
.email-send-header p { font-size: 0.84rem; color: var(--text-secondary); margin-top: 2px; }
.email-send-form { display: flex; flex-direction: column; gap: 12px; }
.email-send-options { display: flex; gap: 8px; flex-wrap: wrap; }
.email-send-options .chip { flex: 1; min-width: 160px; }
@media (max-width: 640px) { .email-send-header { flex-direction: column; align-items: stretch; } .email-send-options .chip { min-width: 0; width: 100%; } }
