/* ── Chunk Planner — Modus B ──────────────────────────────────── */

/* ── Setup form ───────────────────────────────────────────────── */
.setup-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem 1rem;
}

.setup-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 2.5rem 2rem;
  max-width: 560px;
  width: 100%;
}

.setup-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.setup-card .setup-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1.8rem;
}

.setup-field {
  margin-bottom: 1.2rem;
}

.setup-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.setup-field input,
.setup-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
  resize: vertical;
}

.setup-field input:focus,
.setup-field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.setup-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.pref-chip {
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--brand-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

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

/* ── Structured preference questions ─────────────────────────── */
.pref-questions {
  margin-bottom: 1.2rem;
}

.pref-question {
  margin-bottom: 0.85rem;
}

.pref-question-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.pref-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pref-option {
  padding: 0.3rem 0.85rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

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

.setup-optional-toggle {
  font-size: 0.88rem;
  color: var(--brand-primary);
  cursor: pointer;
  user-select: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.setup-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

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

/* ── Trip header ──────────────────────────────────────────────── */
.trip-header {
  margin-bottom: 1.5rem;
}

.trip-header-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
}

.trip-header h1 {
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
}

.trip-header .trip-dates {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trip-header .trip-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ── Chunk overview ───────────────────────────────────────────── */
.chunks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.chunk-connector {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}

.chunk-connector::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.chunk-merge-btn {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s, color 0.2s;
}

.chunk-merge-btn:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.chunk-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid transparent;
  padding: 1.2rem 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.chunk-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.chunk-card.past {
  opacity: 0.55;
  border-left-color: #cbd5e1;
  background: #f8fafc;
}

.chunk-card.active-chunk {
  border-left-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(67,176,179,0.18);
}

.chunk-card.future {
  border-left-color: var(--brand-accent);
}

.chunk-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chunk-title-group {
  flex: 1;
  min-width: 0;
}

.chunk-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chunk-region {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.chunk-badges {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-pending {
  background: #fff7ed;
  color: #c2410c;
}

.badge-count {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.chunk-dates {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

.chunk-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.chunk-action-btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chunk-action-btn:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.chunk-action-btn.danger:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.chunk-warning {
  font-size: 0.8rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin: 0.3rem 0;
}

.add-chunk-btn {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.75rem;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.add-chunk-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ── Inline edit form inside chunk card ───────────────────────── */
.chunk-edit-form {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chunk-edit-form input {
  padding: 0.5rem 0.7rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.93rem;
  font-family: inherit;
}

.chunk-edit-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

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

.chunk-edit-form .form-actions {
  display: flex;
  gap: 0.5rem;
}

/* ── Chunk detail (day view) ──────────────────────────────────── */
.chunk-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.back-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.back-btn:hover {
  background: #e2e8f0;
}

.chunk-detail-title {
  flex: 1;
}

.chunk-detail-title h2 {
  margin: 0 0 0.15rem;
  font-size: 1.35rem;
  color: var(--text-primary);
}

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

.generate-chunk-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.generate-chunk-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Day card ─────────────────────────────────────────────────── */
.day-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.2rem;
  overflow: hidden;
  /* Reset the Modus A `.day-card` styling that leaks in from overview.css
     (width:100% + padding on a content-box element). In Modus B the day card
     is a nested wrapper whose header/body carry their own padding, so the base
     100%+padding made it render wider than its parent and spill past the right
     edge of the chunk "tray". Keep the wrapper flush (no padding) and let its
     width follow the parent. */
  box-sizing: border-box;
  width: auto;
  padding: 0;
}

.day-card-header {
  background: var(--brand-primary);
  color: white;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.day-card-date {
  font-size: 0.82rem;
  opacity: 0.85;
}

.day-card-body {
  padding: 1rem 1.2rem;
}

/* ── Activity card ────────────────────────────────────────────── */
.activity-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
  transition: border-color 0.15s;
}

.activity-card.pending {
  border-color: #fdba74;
  background: #fff7ed;
}

.activity-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

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

.activity-source-badge {
  font-size: 0.7rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.activity-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.activity-location {
  font-size: 0.8rem;
  color: var(--brand-primary);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.activity-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.accept-btn {
  padding: 0.35rem 0.85rem;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.accept-btn:hover {
  background: #a7f3d0;
}

.reject-btn {
  padding: 0.35rem 0.85rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.reject-btn:hover {
  background: #fecaca;
}

.edit-activity-btn,
.delete-activity-btn {
  padding: 0.35rem 0.75rem;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.delete-activity-btn:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* ── Bulk actions bar ─────────────────────────────────────────── */
.bulk-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.bulk-actions span {
  flex: 1;
  min-width: 120px;
}

.bulk-accept-all {
  padding: 0.3rem 0.8rem;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.bulk-reject-all {
  padding: 0.3rem 0.8rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── Add activity form ────────────────────────────────────────── */
.add-activity-section {
  margin-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.add-activity-section button {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  border: 1.5px dashed #cbd5e1;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.add-activity-section button:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.new-activity-form {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.new-activity-form input,
.new-activity-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.new-activity-form input:focus,
.new-activity-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.new-activity-form .form-actions {
  display: flex;
  gap: 0.5rem;
}

.save-btn {
  padding: 0.4rem 1rem;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.cancel-btn {
  padding: 0.4rem 1rem;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

/* ── Retry error box ──────────────────────────────────────────── */
.error-box {
  background: #fff1f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.error-box h3 { margin: 0 0 0.5rem; color: #991b1b; }
.error-box p  { color: var(--text-secondary); margin: 0 0 0.8rem; font-size: 0.9rem; }

.retry-btn {
  padding: 0.55rem 1.2rem;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

/* ── Loading ──────────────────────────────────────────────────── */
.loading {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loading-icon {
  height: 18px;
}

/* ── Stacked planner layout (map above content) ───────────────── */
.planner-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.planner-map-col {
  width: 100%;
}

.planner-content-col {
  min-width: 0;
}

.chunk-map-sticky {
  width: 100%;
  height: 400px;
  min-height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
  .chunk-map-sticky {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .chunk-map-sticky {
    height: 220px;
  }
}

/* ── Map (legacy inline, kept for backwards compat) ───────────── */
.chunk-map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.chunk-map-legend {
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  max-width: 160px;
}

/* ── Day card header generate button ─────────────────────────── */
.day-generate-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
  flex-shrink: 0;
}

.day-generate-btn:hover {
  background: rgba(255,255,255,0.3);
}

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

/* ── Move activity button ─────────────────────────────────────── */
.move-activity-btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text-secondary);
  cursor: pointer;
}

.move-activity-btn:hover {
  background: #e0e7ff;
  border-color: #7589d5;
  color: #3730a3;
}

/* ── Inline expanded chunk ────────────────────────────────────── */
.chunk-preview {
  /* override previous compact styles — now full-width detail */
  border-top: 1px solid #e2e8f0;
  padding-top: 0;
  margin-top: 0.75rem;
}

.inline-chunk-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}

/* Day cards inside expanded chunk inherit all detail-view styles */
.chunk-preview .day-card {
  margin-bottom: 0.75rem;
}

/* ── Single-activity generate form ───────────────────────────── */
.gen-single-form {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

.gen-single-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gen-single-inner textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.gen-single-inner textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(67,176,179,0.15);
}

/* ── Chunk expand button ──────────────────────────────────────── */
.chunk-expand-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}

.chunk-expand-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

/* ── Chunk preview panel ──────────────────────────────────────── */
.chunk-preview {
  margin-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.chunk-preview-days {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chunk-preview-day {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.preview-day-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.preview-activity-list li {
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.preview-activity-list li::before {
  content: "·";
  color: var(--brand-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.preview-activity-list li.preview-pending {
  color: var(--text-secondary);
  font-style: italic;
}

.preview-pending-tag {
  font-size: 0.7rem;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  font-style: normal;
}

.preview-loading,
.preview-empty {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
}

/* ── Location pin icon ────────────────────────────────────────── */
.loc-pin-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 3px;
  position: relative;
  top: -1px;
}

/* ── Drag and drop ────────────────────────────────────────────── */
.activity-card[data-activity-id] {
  cursor: grab;
}
/* Drag feedback moved to styles/activity-dnd.css (shared with the Dagplanner;
   see assets/activity-dnd.js). */

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .setup-dates { grid-template-columns: 1fr; }

  /* Stack title above badges so title isn't hidden */
  .chunk-card-header {
    flex-direction: column;
    gap: 0.4rem;
  }
  .chunk-badges {
    justify-content: flex-start;
  }

  /* Wrap header buttons so Samenwerken doesn't go off-screen */
  .trip-header-top {
    flex-wrap: wrap;
  }
  .trip-header-top > div {
    flex-shrink: 1;
    flex-wrap: wrap;
  }

  .chunk-detail-header { flex-direction: column; align-items: flex-start; }
  .bulk-actions { flex-direction: column; }

  /* Smaller legend so it doesn't cover most of the map */
  .chunk-map-legend {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    max-width: 110px;
    line-height: 1.5;
    max-height: 80px;
    overflow-y: auto;
  }

  .chunk-map-sticky {
    height: 220px;
  }
}

/* ── Trip status bar (countdown + completeness) ─────────────── */

.trip-status-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.6rem 0 0.2rem;
}

.countdown-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
}

.countdown-badge.countdown-active {
  background: #d1fae5;
  color: #065f46;
}

.countdown-badge.countdown-done {
  background: #f1f5f9;
  color: #64748b;
}

.completeness-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 160px;
}

.completeness-bar-track {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.completeness-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.completeness-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Activity status toggle ──────────────────────────────────── */

.status-toggle-btn {
  padding: 0.25rem 0.7rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.status-toggle-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.status-toggle-btn.done {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.status-done-badge {
  font-size: 0.7rem;
  background: #d1fae5;
  color: #065f46;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.activity-card.activity-done {
  opacity: 0.8;
}

.activity-card.activity-done .activity-name {
  color: #94a3b8;
}

/* ── Paklijst panel ──────────────────────────────────────────── */

.packing-panel-wrapper {
  margin-top: 1.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.packing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.packing-item:last-child { border-bottom: none; }

.packing-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
  font-size: 0.9rem;
}

.packing-item-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
}

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

.packing-category {
  font-size: 0.73rem;
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
}

.packing-delete-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  flex-shrink: 0;
  transition: color 0.15s;
}

.packing-delete-btn:hover { color: #ef4444; }

.packing-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.packing-add-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s;
}

.packing-add-row input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.packing-add-btn {
  padding: 0.5rem 0.85rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.packing-add-btn:hover { opacity: 0.85; }

.packing-ai-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: #fffbeb;
  color: #92400e;
  border: 1.5px solid #fcd34d;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.packing-ai-btn:hover:not(:disabled) { background: #fde68a; }
.packing-ai-btn:disabled { opacity: 0.6; cursor: default; }

/* "Voeg standaard paklijst toe" — apply the account's personal packing list */
.packing-personal-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  color: #2b8285;
  border: 1.5px solid #43b0b3;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.packing-personal-btn:hover:not(:disabled) { background: #ecfeff; }
.packing-personal-btn:disabled { opacity: 0.6; cursor: default; }

/* Small per-item "Bewaar" button — save an item to the personal packing list */
.packing-save-personal-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.15s;
}
.packing-save-personal-btn:hover { color: #2b8285; }

.packing-empty {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem 0;
  margin: 0;
}

/* ── AI suggestion items ─────────────────────────────── */
.packing-suggestions-section {
  margin-bottom: 0.5rem;
}

.packing-suggestions-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
  margin: 0.5rem 0 0.35rem;
}

.packing-item.packing-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 7px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.4rem;
}

.packing-item.packing-suggestion:last-child { border-bottom: 1.5px solid #fcd34d; }

.packing-suggestion-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.packing-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.packing-approve-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.packing-approve-btn:hover {
  background: #fde68a;
}

/* ── Activity todo list ──────────────────────────────────────── */
/* Checklist rules moved to styles/activity-todos.css (shared by every
   planner; see assets/activity-todos.js). */

/* Wrapper around the checklist and the document/photo/route buttons. The
   separator that used to sit here now belongs to .activity-todo-section, which
   is the block's first child either way. */
.activity-attachments { margin-top: 0.55rem; }



/* =====================================================================
   Design 1b — map-forward reskin for the chunk planner
   Scoped to #main so the shared sidebar/nav keep the site's own theme.
   Works as a theme layer: it retints the existing palette variables the
   chunk planner already consumes, swaps in the 1b type system, and adds
   the timeline + pill affordances. No markup/handler changes required.
   ===================================================================== */
#main {
  /* 1b flat neutrals, but keep the brand colours from the style guide */
  --brand-primary:  #43b0b3;
  --brand-accent:   #7589d5;
  --bg-card:        oklch(99% 0.003 240);
  --surface:        oklch(96% 0.006 240);
  --border:         oklch(88% 0.01 240);
  --text-primary:   oklch(20% 0.03 250);
  --text-secondary: oklch(48% 0.02 250);
}

/* ---- Cards ---- */
#main .chunk-card,
#main .day-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
}
/* Chunk card is a tinted "tray"; the white day cards nested inside it then read
   as clearly contained (the way A/C day cards pop against the page). Trim the
   tray's horizontal padding a little (from the base 1rem) so the day cards get
   the room A/C day cards enjoy. */
#main .chunk-card {
  background: oklch(95.5% 0.006 240);
  padding: 1.2rem 0.75rem;
}
#main .chunk-preview .day-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
#main .day-card-header {
  color: #fff;
}

/* ---- Badges / pills as 1b chips ---- */
#main .badge,
#main .activity-source-badge {
  border-radius: 5px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
#main .badge-pending,
#main .activity-source-badge {
  background: oklch(75% 0.12 70 / 0.2);
  color: oklch(42% 0.1 70);
}

/* ---- Activities rendered as a timeline (overview preview + detail) ---- */
#main .day-card-body:not(.gen-single-form) {
  position: relative;
  padding-left: 2rem;
}
#main .day-card-body:not(.gen-single-form)::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: var(--border);
}
#main .day-card-body:not(.gen-single-form) .activity-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
}
#main .day-card-body:not(.gen-single-form) .activity-card::before {
  content: "";
  position: absolute;
  left: -1.16rem;
  top: 1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid var(--bg-card);
}
#main .activity-card.pending {
  border-color: oklch(75% 0.12 70);
  background: oklch(97% 0.03 70);
}
#main .activity-card.pending::before {
  background: oklch(70% 0.13 70);
}

/* ---- Map rail card ---- */
#main .chunk-map-sticky {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* Driving-time row shown between two consecutive geocoded activity cards.
   Plain text (no icon glyphs, per UI conventions); reads as the drive between
   the stop above and the stop below. */
.travel-leg-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 0.15rem 0.75rem;
  padding: 0.2rem 0 0.2rem 0.85rem;
  border-left: 2px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Place chooser for 'category' activities (plan Phase 2.4). Selectable real
   venues; plain-text labels + a Google Maps link, no icon glyphs. */
.activity-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
}
.place-chooser {
  margin: 0.5rem 0 0.2rem;
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.1rem 0.6rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.place-chooser::-webkit-scrollbar { height: 7px; }
.place-chooser::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.place-chooser::-webkit-scrollbar-track { background: transparent; }
.place-chooser-note { font-size: 0.82rem; color: var(--text-secondary); margin: 0.3rem 0; }

/* Tile: photo (rating badge, distance, chosen check) + name/type/address + button. */
.place-option {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  scroll-snap-align: start;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.place-option.chosen {
  border: 2px solid #43b0b3;
  box-shadow: 0 0 0 3px rgba(67, 176, 179, 0.14), 0 6px 16px rgba(15, 23, 42, 0.1);
}

.place-option-photo { position: relative; aspect-ratio: 16 / 11; background: #eef2f6; }
.place-option-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-option-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0) 46%);
  pointer-events: none;
}
.place-option-rating {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}
.place-option-rating-star { color: #f59e0b; }
.place-option-rating-count { font-weight: 500; opacity: 0.6; }
.place-option-chosen-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #43b0b3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}
.place-option-distance {
  position: absolute;
  bottom: 6px;
  left: 7px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.place-option-body { padding: 8px 9px 9px; }
.place-option-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-option-meta { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }
.place-option-addr {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
}
.place-option-addr-icon { flex-shrink: 0; opacity: 0.65; }
.place-option-addr-text { overflow: hidden; text-overflow: ellipsis; }
.place-maps-link {
  display: block;
  margin-top: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #43b0b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-choose-btn {
  width: 100%;
  margin-top: 8px;
  border: 1.5px solid #43b0b3;
  border-radius: 8px;
  background: transparent;
  color: #43b0b3;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.place-choose-btn:hover:not(:disabled) { background: #43b0b3; color: #fff; }
.place-choose-btn:disabled {
  background: #43b0b3;
  color: #fff;
  border-color: #43b0b3;
  opacity: 1;
  cursor: default;
}

@media (max-width: 640px) {
  .place-option { flex-basis: 148px; width: 148px; }
}
.place-change-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  margin: 0.2rem 0;
}

/* Chosen place closed on its day (plan Phase 3.1). Amber, plain text. */
.place-closed-warning {
  font-size: 0.8rem;
  color: #b45309;
  background: #fef3c7;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  margin: 0.3rem 0;
}
/* AI-named specific venue not found by Places (plan Phase 2.2, opt-in). A soft
   gray hint, not an error — the venue may simply be missing from Google. */
.place-unverified-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  margin: 0.3rem 0;
}

/* Derived day timeline (plan Phase 3.2). Times read as muted; overfull note amber. */
.activity-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-right: 0.4rem;
  white-space: nowrap;
}
.activity-time.derived { opacity: 0.85; }
.day-overfull {
  font-size: 0.82rem;
  color: #b45309;
  background: #fef3c7;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  margin: 0.3rem 0 0.5rem;
}


/* =====================================================================
   Unified itinerary design — Flex (type-b, purple). Hero card + accent
   tokens live in itinerary-unified.css; these retint the chunk-planner
   components to the type accent and modernise the chunk cards.
   ===================================================================== */
.type-b .trip-header { margin-bottom: 1.25rem; }

/* Status bar sits under the hero stat row */
.itin-hero .trip-status-bar { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.type-b .countdown-badge.countdown-active {
  background: var(--b-accent-soft); color: var(--b-accent-ink);
}
.type-b .completeness-bar-fill { background: var(--b-accent); }

/* Chunk cards → modern tray look, purple accents */
.type-b .chunk-card {
  background: #fff;
  border: 1px solid var(--b-line);
  border-left-width: 1px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.05);
}
.type-b .chunk-card:hover { box-shadow: 0 8px 22px rgba(117,137,213,.16); }
.type-b .chunk-card.active-chunk {
  border-color: var(--b-accent);
  box-shadow: 0 6px 18px var(--b-accent-glow);
}
.type-b .chunk-card.future { border-left-color: var(--b-line); }
.type-b .chunk-name { color: var(--b-ink); font-weight: 800; }
.type-b .badge-count { background: var(--b-accent-soft); color: var(--b-accent-ink); }
.type-b .chunk-expand-btn { color: var(--b-accent-ink); }
.type-b .chunk-action-btn:hover {
  background: var(--b-accent); color: #fff; border-color: var(--b-accent);
}
.type-b .chunk-action-btn.danger:hover { background: #ef4444; border-color: #ef4444; }
.type-b .chunk-merge-btn:hover {
  background: var(--b-accent); color: #fff; border-color: var(--b-accent);
}
.type-b .add-chunk-btn:hover { border-color: var(--b-accent); color: var(--b-accent-ink); }

/* Packing accents (shares .itin-shell-free packing markup) */
.type-b .packing-add-btn { background: var(--b-accent); }
.type-b .packing-item-label input[type="checkbox"] { accent-color: var(--b-accent); }

@media (max-width: 760px) {
  .type-b .chunk-card { padding: 1rem 0.9rem; }
}


/* ---- Per-day header inside a chunk: match Modus A (no colour block, the
   text sits in the type accent shade + a day-number badge). ---- */
#main .planner-layout.type-b .day-card-header,
.type-b .day-card-header {
  background: transparent;
  color: var(--b-ink);
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--b-line);
  justify-content: flex-start;
}
.type-b .day-card-header .day-heading {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.type-b .day-card-header .day-label {
  font-size: 15.5px; font-weight: 700; color: var(--b-ink);
}

/* Add + generate activity buttons below the day's activities (native dashed
   style, like Modus A). */
.type-b .add-activity-section button {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--b-muted);
}
.type-b .add-activity-section button:hover {
  border-color: var(--b-accent); color: var(--b-accent-ink);
}


/* =====================================================================
   Accommodaties / Kaart / Foto's tabs (Modus C parity)
   The document and photo panels themselves come from trip-attachments.css;
   what follows is the chunk planner's own framing around them.
   ===================================================================== */

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tab-panel-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0.9rem 0 0;
}

/* ── Accommodation cards ─────────────────────────────────────── */
.stays-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Stays reuse .activity-card, minus the day-list timeline dot (that rail only
   exists inside .day-card-body, so nothing to undo) and with the check-in /
   check-out range as the card's subtitle. */
.stay-card {
  border-left: 3px solid #7589d5;
}

.stay-card-dates {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Check-in / check-out, side by side and labelled: two bare date fields do not
   say which is which. */
.stay-date-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stay-date-field {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stay-date-field > span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Accommodations of one block, above its day cards. */
.chunk-stays {
  border: 1px dashed #d7deea;
  border-radius: 10px;
  padding: 0.7rem 0.85rem 0.85rem;
  margin-bottom: 1rem;
  background: rgba(117, 137, 213, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chunk-stays-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chunk-stays-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a5878;
}

/* Foto's / Documenten toggles: under the checklist on an activity card, in the
   action row on an accommodation card. Quieter than the primary actions —
   these open a panel, they do not change the plan. */
.attach-toggle-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.attach-btn {
  background: none;
  border: none;
  padding: 0.15rem 0;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}

.attach-btn:hover { color: var(--text-primary); }

/* ── Kaart tab ───────────────────────────────────────────────── */
.trip-map-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

#trip-map-full {
  height: 520px;
  z-index: 0;
}

@media (max-width: 760px) {
  #trip-map-full { height: 360px; }
}
