/* ===== menu tiles ===== */
.tiles-wrapper {
  margin: 2rem auto 0;
  max-width: 1100px;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.tiles-wrapper h1,
.tiles-wrapper p {
  text-align: center;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

/* Journey tiles — travelapp-style: cover image on top, light body below */
.itinerary-tile {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.itinerary-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tile-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  /* fallback while a cover blob loads, or when no image is set */
  background-color: #dbeafe;
  background-image: linear-gradient(135deg, #43b0b3, #7589d5);
  position: relative;
}

.tile-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.tile-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Distinct colour per planner type */
.tile-badge-a      { background: #43b0b3; } /* Full-AI  — teal   */
.tile-badge-b      { background: #7589d5; } /* Flex     — purple */
.tile-badge-c      { background: #f59e0b; } /* Dagplanner — amber */
.tile-badge-d      { background: var(--brand-4); } /* Reisplanner — 4th brand color */
.tile-badge-shared { background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); }

.tile-body {
  padding: 0.75rem 0.9rem 0.85rem;
  position: relative;
}

/* Soft-delete action on own trips; hidden until the tile is hovered */
.tile-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar itinerary badges ─────────────────────────────── */
.itinerary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.sidebar-itin-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-itin-badges {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.sidebar-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.sidebar-badge-a      { background: #43b0b3; }
.sidebar-badge-b      { background: #7589d5; }
.sidebar-badge-c      { background: #f59e0b; }
.sidebar-badge-d      { background: var(--brand-4); }
.sidebar-badge-shared { background: #94a3b8; }

@media (max-width: 1024px) {
  .tiles-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tiles-wrapper {
    padding: 0;
  }

  .tiles-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .tile-name {
    font-size: 0.9rem;
  }

  .tile-meta {
    font-size: 0.72rem;
  }
}


/* ===== itinerary ===== */
.itinerary-header {
    margin-top: 1rem;
  }

  .itinerary-item {
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .itinerary-item:hover {
    background: rgba(255,255,255,0.2);
  }

  .itinerary-item.active {
    background: #334155;
  }

  .empty-itinerary-box {
    width: 60%;
  }

  h1 {
    margin-top: 0;
  }

  .day-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .map-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    width: 100%;
    aspect-ratio: 4 / 1;
  }
  
  @media (max-width: 768px) {
    .map-card {
      aspect-ratio: 3 / 2;
    }
  }

  .day-card h2 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
  }

  .activity {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.85rem 1rem;
    margin: 0 0 0.65rem;
    transition: border-color 0.15s;
  }

  .activity:hover {
    border-color: #cbd5e1;
  }
  
  /* Edit buttons (pencil & save) */
  .activity .edit-btn,
  .itinerary-title .edit-btn,
  .itinerary-description .edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #334155;
    font-size: 0.9rem;
    transition: color 0.2s;
    }

    .activity .edit-btn:hover,
    .itinerary-title .edit-btn:hover,
    .itinerary-description .edit-btn:hover {
    color: #1e293b;
    }

  .day-card .delete-btn,
  .day-card .delete-day-btn,
  .activity .delete-btn,
  .itinerary-title .delete-btn,
  .itinerary-description .delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #334155;
    font-size: 0.9rem;
    transition: color 0.2s;
    }

  .day-card .delete-btn:hover,
  .day-card .delete-day-btn:hover,
  .activity .delete-btn:hover,
  .itinerary-title .delete-btn:hover,
  .itinerary-description .delete-btn:hover {
    color: #1e293b;
    }

    .activity input[type="text"],
    .activity textarea {
    width: 70%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    resize: vertical;
    }

    .activity button.save-btn {
    background: #757575;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    /*border-radius: 6px;*/
    cursor: pointer;
    font-size: 0.85rem;
    align-self: flex-start;
    transition: background 0.2s;
    }

    .activity button.save-btn:hover {
    background: #2563eb;
    }


  .activity h3 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 0.97rem;
    font-weight: 600;
  }

  .activity p {
    margin: 0.2rem 0;
    font-size: 0.87rem;
    color: #64748b;
    line-height: 1.5;
  }

  /* ===== Location bubbles ===== */
  .location-bubble {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    cursor: pointer;
  }

  .location-bubble.has-geo {
    background-color: #e6f4ea;
    color: #1e7e34;
  }

  .location-bubble.no-geo {
    background-color: #fff3cd;
    color: #856404;
  }

  .location-map-popup {
    position: absolute;
    width: 220px;
    height: 160px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 999;
    overflow: hidden;
  }

  .location-map-popup .leaflet-container {
    width: 100%;
    height: 100%;
  }

  /* The tile licence requires the credit on every map, including this 220px
     hover preview. Scaled down to fit rather than switched off. */
  .location-map-popup .leaflet-control-attribution {
    font-size: 8px;
    line-height: 1.3;
    padding: 0 3px;
    background: rgba(255, 255, 255, 0.75);
  }
  /* ===== Location bubbles ===== */

  .loading {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
  }

  .new-activity-form {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.new-activity-form input,
.new-activity-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  background: #f8fafc;
}

.new-activity-form textarea {
  resize: vertical;
  min-height: 70px;
}

.new-activity-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.new-activity-form .save-btn {
  background: #43b36e;
  color: white;
  margin-right: 0.5rem;
}

.new-activity-form .cancel-btn {
  background: #e2e8f0;
  color: #333;
}

.new-empty-itinerary-form {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.new-empty-itinerary-form input {
  width: 90%;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  background: #f8fafc;
}

.new-empty-itinerary-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.add-activity-btn,
.generate-activity-btn {
  width: 100%;
  padding: 0.6rem;
  border: none;
  background: #43b0b3;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.add-activity-btn:hover,
.generate-activity-btn:hover {
  background: #7589d5;
}


/* Arrow buttons styling */
.arrow-btn {
  display: none;           /* hidden until edit mode */
  border: none;
  background: transparent;
  font-size: 0.9rem;
  margin-left: 8px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  color: #666;             /* adjust to match your style */
}

.arrow-btn:hover {
  color: #222;
}

/* show arrows when in edit mode */
body.edit-mode .arrow-btn {
  display: inline-block;
}

/* small layout niceties */
.day-arrows { float: right; }
.activity-arrows { margin-left: 12px; margin-right: 8px; }
.activities-list .activity { display: block; margin-bottom: 8px; }

.edit-toggle {
  padding: 0.6rem;
  border: none;
  background: #43b0b3;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.edit-toggle:hover {
  background: #7589d5;
}

.add-day-btn {
  width: 100%;
  padding: 0.6rem;
  border: none;
  background: #7589d5;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.add-day-btn:hover {
  background: #43b0b3;
}

#hero-fullwidth {
  width: 100vw;
  height: 30vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: none;  
}

#hero-fullwidth.visible {
  display: block;
}

#hero-fullwidth.visible .hero-image {
  opacity: 1;
}

.hero-image {
  height: 100%;                /* 30% of viewport height */
  min-height: 240px;           /* keeps it nice on small screens */
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 24px;
  position: relative;
  
  -webkit-mask-image: linear-gradient(black 80%, transparent);
  mask-image: linear-gradient(black 80%, transparent);
  /*
  position: sticky;
  top: 0;
  z-index: 0;*/
}

/* Optional dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.55)
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.hero-title {
  color: white;
  font-size: 2rem;
  margin: 0;
}

.hero-credit {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  pointer-events: none; /* ensures it doesn't block clicks */
}


#days-container > * {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #days-container > * {
    max-width: 100%;
    box-sizing: border-box;
    /*padding-left: 0;
    padding-right: 0;*/
  }
}







/* AI Helper Button */
.ai-helper-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #43b0b3, #7589d5);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(67, 176, 179, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-helper-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 176, 179, 0.6);
}

.ai-helper-button span {
  font-size: 1.2rem;
}

/* AI Popup Overlay */
.ai-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.ai-popup-overlay.active {
  display: flex;
}

/* AI Popup Content */
.ai-popup-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

.ai-popup-header {
  background: linear-gradient(135deg, #43b0b3, #7589d5);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-popup-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.ai-popup-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.ai-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-popup-body {
  padding: 24px;
}

#ai-change-request {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  transition: border-color 0.2s;
}

#ai-change-request:focus {
  outline: none;
  border-color: #43b0b3;
}

.ai-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #43b0b3, #7589d5);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ai-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 176, 179, 0.3);
}

.ai-submit-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

/* Loading Overlay */
.ai-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ai-loading-overlay.active {
  display: flex;
}

.ai-loading-image {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.ai-loading-overlay p {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .ai-helper-button {
    bottom: 16px;
    right: 16px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .ai-popup-content {
    width: 95%;
    margin: 16px;
  }
}


.share-card-btn {
  display: inline-flex; 
  align-items: center;
  background: var(--brand-accent);
  color: white;
  font-size: 14px; 
  font-weight: 700;
  
  padding: 0.6rem;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}
.share-card-btn:hover { transform: translateY(-2px); }
.share-card-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.map-route-legend {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(44,95,138,0.12); border: 1px solid rgba(44,95,138,0.25);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: #2C5F8A; margin-top: 6px;
}
.map-route-legend span {
  width: 20px; height: 3px;
  background: linear-gradient(90deg, #2C5F8A, #F4A829);
  border-radius: 2px; display: inline-block;
}

/* ── Collaboration panel ──────────────────────────────────── */
#collab-panel {
  margin-top: 1rem;
}
.collab-panel-inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}
.collab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.collab-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}
.collab-close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #94a3b8;
  padding: 0 4px;
}
.collab-close-btn:hover { color: #334155; }
.collab-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.collab-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  gap: 0.5rem;
}
.collab-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.collab-member-name { font-weight: 500; }
.collab-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.collab-pending    { background: #fef9c3; color: #92400e; }
.collab-role-eigenaar { background: #dcfce7; color: #15803d; }
.collab-role-bewerker { background: #dbeafe; color: #1d4ed8; }
.collab-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  border-radius: 4px;
}
.collab-remove-btn:hover { color: #dc2626; background: #fee2e2; }
.collab-invite-form {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}
.collab-invite-form h4 { color: #334155; }
.collab-invite-form input,
.collab-invite-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  background: white;
}
.collab-invite-form .save-btn { width: 100%; }
.collab-search-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.collab-search-row input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}
.collab-search-btn {
  width: 100%;
}
.collab-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.collab-search-item:hover { background: #f1f5f9; }


/* =====================================================================
   Design 1b — map-forward itinerary reskin
   Scoped to .itin-shell so the tiles/dashboard views are untouched.
   Placed last so these rules win over the legacy itinerary styles above.
   ===================================================================== */
.itin-shell {
  --b-bg:      oklch(96% 0.006 240);
  --b-surface: oklch(99% 0.003 240);
  --b-line:    oklch(88% 0.01 240);
  --b-ink:     oklch(20% 0.03 250);
  --b-muted:   oklch(48% 0.02 250);
  --b-accent:  oklch(55% 0.1 195);
  --b-accent-ink: oklch(40% 0.1 195);
  --b-warm-bg: oklch(75% 0.12 70 / 0.2);
  --b-warm-ink: oklch(42% 0.1 70);

  /* No grey shell box — the hero, map, tabs and edit fields sit directly on
     the page background, matching the Flex and Dagplanner pages. */
  background: transparent;
  color: var(--b-ink);
  border-radius: 0;
  padding: 24px 0 32px;
  box-sizing: border-box;
}

/* ---- Two-pane layout ---- */
.itin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 1.25rem;
}

.itin-map-rail {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.itin-main { min-width: 0; }

/* ---- Map card in the rail ---- */
.itin-shell .map-card {
  aspect-ratio: 3 / 4;
  padding: 0;
  margin: 0;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

/* ---- Day legend under the map ---- */
.day-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px;
}
.day-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--b-muted);
}
.day-legend-tick {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--b-accent);
  flex-shrink: 0;
}
/* ---- Day cards ---- */
.itin-shell .day-card {
  background: var(--b-surface);
  border: 1px solid var(--b-line);
  border-radius: 10px;
  box-shadow: none;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.itin-shell .day-card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--b-line);
  padding-bottom: 12px;
  margin-top: 0;
}
.itin-shell .day-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.itin-shell .day-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--b-ink);
}
/* ---- Activities as a timeline ---- */
.itin-shell .activities-list {
  position: relative;
  padding-left: 20px;
  margin-top: 16px;
}
.itin-shell .activities-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--b-line);
}
.itin-shell .activity {
  position: relative;
  background: var(--b-surface);
  border: 1px solid var(--b-line);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.itin-shell .activity::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--b-accent);
  border: 2px solid var(--b-surface);
}
.itin-shell .activity:hover { border-color: var(--b-accent); }
.itin-shell .activity h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--b-ink);
}
.itin-shell .activity p {
  font-size: 13px;
  color: var(--b-muted);
}

/* ---- Location pills (keep geo/no-geo semantics, retint to 1b) ---- */
.itin-shell .location-bubble {
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 10px;
}
.itin-shell .location-bubble.has-geo {
  background: oklch(55% 0.1 195 / 0.12);
  color: var(--b-accent-ink);
}
.itin-shell .location-bubble.no-geo {
  background: var(--b-warm-bg);
  color: var(--b-warm-ink);
}

/* ---- Ghost / dashed action buttons ---- */
.itin-shell .add-activity-btn,
.itin-shell .generate-activity-btn,
.itin-shell .add-day-btn {
  background: none;
  border: 1.5px dashed var(--b-line);
  color: var(--b-muted);
  font-size: 12px;
  border-radius: 8px;
  padding: 10px;
  transition: border-color 0.15s, color 0.15s;
}
.itin-shell .add-activity-btn:hover,
.itin-shell .generate-activity-btn:hover,
.itin-shell .add-day-btn:hover {
  border-color: var(--b-accent);
  color: var(--b-accent-ink);
  background: none;
}

/* ---- AI assistant, reskinned to the 1b dark pill ---- */
.ai-helper-button {
  background: var(--b-ink, #1c2430);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.ai-helper-button:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.ai-popup-header,
.ai-submit-btn {
  background: oklch(55% 0.1 195) !important;
}
#ai-change-request:focus { border-color: oklch(55% 0.1 195); }

/* ---- Responsive: collapse to one column ---- */
@media (max-width: 900px) {
  .itin-shell { padding: 16px; }
  .itin-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .itin-map-rail { position: static; }
  .itin-shell .map-card { aspect-ratio: 3 / 2; }
}

/* On phones the default 80%-wide .maindiv wastes the side gutters — use the
   full width. border-box keeps the 15px page padding inside the viewport
   (the default .maindiv has no box-sizing, so width:100% + padding overflows). */
@media (max-width: 768px) {
  .maindiv { width: 100%; box-sizing: border-box; }
  .itin-shell { padding: 14px 12px 20px; }
}


/* =====================================================================
   Generic tab system (design 1b) — used by overview + chunk planner.
   The dagplanner keeps its own .dp-page-scoped tab styles (higher
   specificity), so these don't disturb it. Active colour is the literal
   1b teal so it renders correctly under either page's palette vars.
   ===================================================================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid oklch(88% 0.01 240);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: oklch(48% 0.02 250);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab-btn:hover { color: oklch(40% 0.1 195); }
.tab-btn.active {
  color: oklch(40% 0.1 195);
  border-bottom-color: oklch(55% 0.1 195);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* =====================================================================
   Paklijst (Modus A) — scoped to .itin-shell so it only styles the
   overview page; chunk planner / dagplanner keep their own packing CSS.
   ===================================================================== */
.itin-shell .packing-panel-wrapper {
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: var(--b-surface);
  padding: 16px 18px;
  max-width: 640px;
}
.itin-shell .packing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--b-line);
}
.itin-shell .packing-item:last-child { border-bottom: none; }
.itin-shell .packing-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  font-size: 14px;
}
.itin-shell .packing-item-label input[type="checkbox"] {
  width: 15px; height: 15px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--b-accent);
}
.itin-shell .packing-item.checked .packing-item-name {
  text-decoration: line-through;
  color: var(--b-muted);
}
.itin-shell .packing-category {
  font-size: 10px;
  background: oklch(93% 0.008 240);
  color: var(--b-muted);
  padding: 2px 7px;
  border-radius: 4px;
}
.itin-shell .packing-delete-btn {
  background: transparent;
  border: none;
  color: var(--b-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.itin-shell .packing-delete-btn:hover { color: #ef4444; }
.itin-shell .packing-add-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.itin-shell .packing-add-row input {
  flex: 1;
  padding: 8px 11px;
  border: 1px solid var(--b-line);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.itin-shell .packing-add-row input:focus {
  outline: none;
  border-color: var(--b-accent);
}
.itin-shell .packing-add-btn {
  padding: 8px 14px;
  background: var(--b-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}
.itin-shell .packing-add-btn:hover { opacity: 0.88; }
.itin-shell .packing-ai-btn {
  width: 100%;
  margin-top: 10px;
  padding: 9px 14px;
  background: #fffbeb;
  color: var(--b-warm-ink, #92400e);
  border: 1.5px solid #fcd34d;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.itin-shell .packing-ai-btn:hover:not(:disabled) { background: #fde68a; }
.itin-shell .packing-ai-btn:disabled { opacity: 0.6; cursor: default; }

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

/* Small per-item "Bewaar" button — save an item to the personal packing list */
.itin-shell .packing-save-personal-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.15s;
}
.itin-shell .packing-save-personal-btn:hover { color: #2b8285; }
.itin-shell .packing-empty {
  font-size: 13px;
  color: var(--b-muted);
  text-align: center;
  padding: 8px 0;
  margin: 0;
}
.itin-shell .packing-suggestions-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--b-warm-ink);
  margin: 4px 0 8px;
}
.itin-shell .packing-item.packing-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--b-warm-bg);
  border: 1px solid oklch(75% 0.12 70);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.itin-shell .packing-suggestion-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.itin-shell .packing-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.itin-shell .packing-approve-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--b-warm-ink);
  background: oklch(88% 0.08 75);
  border: 1px solid oklch(75% 0.12 70);
  border-radius: 5px;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.itin-shell .packing-approve-btn:hover { opacity: 0.88; }


/* =====================================================================
   Location search widget (Zoek button) — used by overview + chunk planner
   via /assets/locsearch.js. Generic classes; the dagplanner keeps its own
   .geocode-* variant.
   ===================================================================== */
.loc-search { position: relative; margin: 0.25rem 0; }

/* Input + "Zoek" button sit on one row (design 1a layout). */
.loc-search-row { display: flex; gap: 0.5rem; align-items: stretch; }
.loc-search-row .loc-search-field { flex: 1; min-width: 0; }

/* Search field: magnifying-glass icon sits inside the input (design 1b look). */
.loc-search-field { position: relative; display: block; }
.loc-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.loc-search-field.is-loading .loc-search-icon {
  color: #43b0b3;
  animation: locSearchPulse 0.9s ease-in-out infinite;
}
@keyframes locSearchPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.loc-search-field .loc-search-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 2.4rem;
  border: 1.5px solid #d7e0e8;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.loc-search-field .loc-search-input:focus {
  border-color: #43b0b3;
  box-shadow: 0 0 0 4px rgba(67, 176, 179, 0.14);
}

/* "Zoek" button — brand teal, matches the field height.
   Scoped to .loc-search-row so it beats the generic `.new-activity-form button`
   rule (which would otherwise strip the border and add vertical padding, making
   the button taller than the input). */
.loc-search-row .loc-search-btn {
  flex: none;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 0 1.1rem;
  border: 1.5px solid #43b0b3;
  border-radius: 12px;
  background: #43b0b3;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.loc-search-row .loc-search-btn:hover { background: #369699; border-color: #369699; }
.loc-search-row .loc-search-btn:disabled { opacity: 0.6; cursor: default; }

/* Floating suggestion dropdown. */
.loc-search-results {
  margin-top: 0.4rem;
  border-radius: 16px;
  background: #fff;
  padding: 0.35rem;
  max-height: 300px;
  overflow-y: auto;
}
.loc-search-results:not(:empty) {
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px #eef2f6;
}

/* Suggestion tile: pin chip · name/subtitle · chevron. */
.loc-search-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: background 0.14s, transform 0.14s;
  animation: tileIn 0.16s ease both;
}
.loc-search-item:hover { background: #f0faf9; transform: translateX(3px); }
@keyframes tileIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.loc-search-pin {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #e2f4f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #43b0b3;
}
.loc-search-body { flex: 1; min-width: 0; }
.loc-search-chevron {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid #cbd5e1;
  border-top: 2px solid #cbd5e1;
  transform: rotate(45deg);
}

/* Status rows (loading / empty / hint) render as plain text, no tile chrome. */
.loc-search-item.muted {
  color: #64748b;
  cursor: default;
  font-size: 0.82rem;
  padding: 0.6rem 0.75rem;
}
.loc-search-item.muted:hover { background: #fff; transform: none; }

.loc-search-name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #0f172a;
}
.loc-search-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: keep 16px text (avoids iOS zoom-on-focus) but trim the chrome so the
   field/button don't tower over the form — tighter padding, smaller radius,
   icon pulled in. */
@media (max-width: 640px) {
  .loc-search-row { gap: 0.4rem; }
  .loc-search-icon { left: 0.7rem; }
  .loc-search-field .loc-search-input {
    font-size: 16px;
    padding: 0.5rem 0.7rem 0.5rem 2.1rem;
    border-radius: 10px;
  }
  .loc-search-row .loc-search-btn { padding: 0 0.85rem; font-size: 0.9rem; border-radius: 10px; }
  .loc-search-item { padding: 0.6rem; gap: 0.65rem; }
  .loc-search-pin { width: 36px; height: 36px; }
  .loc-search-results { max-height: 55vh; }
}

/* ===== Upcoming-trip hero (design 1b — split photo / content card) ===== */
.upcoming-hero-wrap {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.upcoming-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9rem;
}
.upcoming-eyebrow .ln { width: 22px; height: 1px; background: #43b0b3; }
.upcoming-eyebrow .tx {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #43b0b3;
}

.upcoming-hero {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
  min-height: 266px;
}

.upcoming-photo {
  position: relative;
  width: 340px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #dbeafe;
  background-image: linear-gradient(135deg, #43b0b3, #7589d5);
}
.upcoming-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 30, 0.5), transparent 55%);
}
.upcoming-photo .tile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}
.upcoming-weather {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.upcoming-body {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.upcoming-body-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.upcoming-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #43b0b3;
  margin-bottom: 6px;
}
.upcoming-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: #0f172a;
}
.upcoming-dates {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 6px;
}
.upcoming-countdown {
  text-align: center;
  flex-shrink: 0;
  border-left: 1px solid #e2e8f0;
  padding-left: 20px;
}
.upcoming-countdown .num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 0.9;
  color: #43b0b3;
  letter-spacing: -0.02em;
}
.upcoming-countdown .lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
}

.upcoming-stats {
  display: flex;
  gap: 26px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  flex-wrap: wrap;
}
.upcoming-stat .val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.upcoming-stat .cap {
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.upcoming-packing { flex: 1; max-width: 180px; min-width: 130px; }
.upcoming-packing .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}
.upcoming-packing .bar {
  height: 6px;
  border-radius: 4px;
  background: #eef2f6;
  overflow: hidden;
}
.upcoming-packing .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #43b0b3, #7589d5);
}

.upcoming-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}
.upcoming-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 11px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.upcoming-btn:hover { transform: translateY(-1px); }
.upcoming-btn.primary {
  background: #43b0b3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(67, 176, 179, 0.32);
}
.upcoming-btn.secondary {
  background: #fff;
  color: #43b0b3;
  border: 1.5px solid #cfe6e6;
}

/* Small sun glyph reused from the design (decorative, not a control) */
.upcoming-sun {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffd27a, #ff914d);
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.22);
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .upcoming-hero { flex-direction: column; }
  .upcoming-photo { width: 100%; height: 170px; }
  .upcoming-countdown {
    border-left: none;
    padding-left: 0;
    text-align: left;
  }
  .upcoming-body-top { flex-direction: column-reverse; align-items: flex-start; }
}
/* Modus A trip dates line + inline start-date edit (plan §5). */
.itinerary-dates {
  font-size: 0.9rem;
  color: #475569;
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.link-edit-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.day-label { font-variant-numeric: tabular-nums; }

/* Place chooser for 'category' activities (Modus A parity, plan Phase 2.4).
   Ported from chunk-planner.css — overview.html does not load that sheet.
   Selectable real venues; plain-text labels + a Google Maps link, no 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, #475569); 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, #475569); margin-top: 2px; }
.place-option-addr {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--text-secondary, #475569);
  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, #e2e8f0);
  border-radius: 8px;
  color: var(--text-secondary, #475569);
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  margin: 0.2rem 0;
}

/* Derived per-day timeline + driving rows (Modus A parity, plan Phase 1.3/3.2).
   Ported from chunk-planner.css with var() fallbacks. Display-only clock times;
   manual times override the estimate (dimmed when derived). */
.activity-time-row { display: flex; align-items: center; gap: 0.35rem; margin: 0.1rem 0 0.2rem; }
.activity-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--text-secondary, #475569);
  white-space: nowrap;
}
.activity-time.derived { opacity: 0.85; }
.activity-time-empty { font-size: 0.78rem; color: var(--text-secondary, #475569); opacity: 0.7; }
.day-overfull {
  font-size: 0.82rem;
  color: #b45309;
  background: #fef3c7;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  margin: 0.3rem 0 0.5rem;
}
.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, #e2e8f0);
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  font-variant-numeric: tabular-nums;
}
/* Wrapper around the shared time editor (styles/time-editor.css); the fields
   themselves are styled there so every planner shows the same control. */
.time-edit-form { display: flex; flex-direction: column; gap: 0.5rem; }
/* Chosen place closed on its day (Modus A parity, 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). 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, #475569);
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  margin: 0.3rem 0;
}


/* ---- Modus A hero/day-card glue (shared hero card lives in
   itinerary-unified.css; these are the overview-scoped tweaks) ---- */
.itin-shell .itinerary-header { margin: 0; }
.itin-shell .day-card h2 { align-items: center; }
.itin-shell .day-sub {
  font-size: 12px;
  color: var(--b-muted);
  font-weight: 600;
  margin-top: 2px;
}
.itin-shell .location-bubble.has-geo {
  background: var(--b-accent-soft);
  color: var(--b-accent-ink);
}
@media (max-width: 760px) {
  .itin-shell { padding: 14px 0 22px; }
  .itin-shell .day-card { padding: 14px 14px; }
}

/* ===================== Reischeck ===================== */
/* Grades the plan against real data (driving times, opening hours, day load).
   Shared markup with day-planner and overview; see assets/trip-check.js. */

.trip-check {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin: 1rem 0;
}

.trip-check-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.7rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.trip-check-head:focus-visible {
  outline: 2px solid #43b0b3;
  outline-offset: -2px;
}

.trip-check-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #475569;
}

.trip-check-summary {
  font-size: 0.9rem;
  color: #0f172a;
}

.trip-check.is-clean .trip-check-summary { color: #2f8d6a; }

.trip-check-list {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.trip-check-list[hidden] { display: none; }

.trip-check-item {
  border-left: 3px solid #cbd5e1;
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trip-check-item.is-warning { border-left-color: #e08a3c; }
.trip-check-item.is-info    { border-left-color: #7589d5; }

.trip-check-item-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.trip-check-item-detail {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.45;
}
