  /* ---------- Empty state ---------- */
  .empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--muted);
    border: 2px dashed var(--border); border-radius: var(--radius);
    grid-column: 1 / -1;
  }
  .empty-state h3 { margin: 0 0 8px; color: var(--text); font-size: 18px; }
  .empty-state p { margin: 0; font-size: 14px; }

  /* ---------- Itinerary view: redesigned ---------- */
  .iti-summary {
    border-radius: 16px;
    padding: 12px 16px;
    display: flex; flex-wrap: wrap; gap: 18px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 16px;
  }
  .iti-summary .iti-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .iti-summary .iti-stat .label {
    font-size: 10px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  }
  .iti-summary .iti-stat .value { font-size: 15px; font-weight: 700; }
  .iti-summary .iti-stat .value.over { color: var(--danger); }
  .iti-summary .iti-divider { width: 1px; height: 28px; background: rgba(15,23,42,0.10); }

  .iti-map-wrap {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    margin-bottom: 20px;
  }
  .iti-map { position: absolute; inset: 0; }

  /* Floating day chips at top of map */
  .sched-day-chips {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    z-index: 5;
    display: flex; gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.10);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
  .sched-day-chips::-webkit-scrollbar { height: 6px; }
  .sched-day-chips::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); border-radius: 99px; }
  .sched-day-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .12s, border-color .12s, color .12s;
  }
  .sched-day-chip:hover { background: var(--bg-soft); }
  .sched-day-chip.active { background: var(--brand); color: white; border-color: var(--brand); }
  .sched-day-chip.unsched-chip {
    border-style: dashed;
  }
  .sched-day-chip.unsched-chip.active { background: #d97706; border-color: #d97706; }
  .sched-day-chip .count {
    background: rgba(15,23,42,0.08);
    color: inherit;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10px; font-weight: 700;
  }
  .sched-day-chip.active .count { background: rgba(255,255,255,0.25); }

  /* Driving-route toggle (floats top-right of the schedule map) */
  .sched-route-toggle {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 6;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.12);
    font-size: 13px; font-weight: 700;
    color: var(--text);
    cursor: pointer;
  }
  .sched-route-toggle svg { width: 16px; height: 16px; }
  .sched-route-toggle.active {
    background: var(--brand);
    color: white;
  }
  .sched-route-info {
    position: absolute;
    top: 56px; right: 12px;
    z-index: 6;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.12);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px; color: var(--muted);
    max-width: 240px;
    display: none;
  }
  .sched-route-info.show { display: block; }
  .sched-route-info strong { color: var(--text); font-size: 13px; }

  /* Floating card strip at bottom of map */
  .sched-card-strip {
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 5;
  }
  .sched-card-strip .card-row {
    display: flex; gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
  }
  /* Smaller cards inside the schedule map strip */
  .sched-card-strip .card-mini {
    width: 160px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.18);
  }
  .sched-card-strip .card-mini-img-wrap {
    aspect-ratio: 16 / 9;
  }
  .sched-card-strip .card-mini-body {
    padding: 6px 9px 8px;
  }
  .sched-card-strip .card-mini-cat {
    font-size: 10px;
    margin-bottom: 1px;
    gap: 3px;
  }
  .sched-card-strip .card-mini-cat svg { width: 10px; height: 10px; }
  .sched-card-strip .card-mini-title {
    font-size: 12px;
    line-height: 1.25;
  }
  .sched-card-strip .card-mini .card-mini-day-badge {
    top: 6px; left: 6px;
    font-size: 9px;
    padding: 2px 6px;
  }
  .sched-card-strip .card-mini .card-mini-schedule {
    bottom: 6px; right: 6px;
    font-size: 10px;
    padding: 3px 8px;
    gap: 3px;
  }
  .sched-card-strip .card-mini .card-mini-schedule svg { width: 9px; height: 9px; }
  .sched-card-strip::-webkit-scrollbar { height: 6px; }
  .sched-card-strip::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.20); border-radius: 99px; }
  .sched-no-cards {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px; color: var(--muted);
    box-shadow: 0 4px 14px rgba(15,23,42,0.12);
    text-align: center;
  }

  /* Day badge + Schedule button on each scheduled card */
  .card-mini .card-mini-day-badge {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    background: rgba(15,23,42,0.85);
    color: white;
    font-size: 10px; font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  .card-mini .card-mini-day-badge.unsched {
    background: #d97706;
  }
  .card-mini .card-mini-schedule {
    position: absolute;
    bottom: 8px; right: 8px;
    z-index: 2;
    background: rgba(15,23,42,0.85);
    color: white;
    border: none;
    font-size: 11px; font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .card-mini .card-mini-schedule:hover { background: var(--brand); }

  /* Day picker modal: each day option as a row */
  .day-picker-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
  .day-picker-row {
    display: grid;
    grid-template-columns: 22px 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: white;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    user-select: none;
  }
  .day-picker-row:hover { border-color: var(--brand); }
  .day-picker-row.selected { border-color: var(--brand); background: var(--brand-soft); }
  .day-picker-row .day-check {
    width: 22px; height: 22px;
    border: 1.5px solid var(--border-strong);
    border-radius: 6px;
    background: white;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .day-picker-row.selected .day-check {
    background: var(--brand); border-color: var(--brand);
  }
  .day-picker-row.selected .day-check::after {
    content: "";
    width: 12px; height: 12px;
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  }
  .day-picker-row .day-num {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: white; font-weight: 800;
    font-size: 14px;
  }
  .day-picker-row .day-num small {
    display: block; font-size: 9px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    opacity: 0.8; margin-bottom: -2px;
  }
  .day-picker-row .day-meta { min-width: 0; }
  .day-picker-row .day-date { font-size: 14px; font-weight: 700; }
  .day-picker-row .day-sub { font-size: 11px; color: var(--muted); }
  .day-picker-row .day-current-pill {
    background: var(--brand); color: white;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.04em;
  }

  .iti-day-list {
    display: flex; flex-direction: column;
    gap: 14px;
  }
  .iti-day {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s ease;
  }
  .iti-day:hover { box-shadow: var(--shadow); }

  .iti-day-head {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
  }
  .iti-day-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: white; font-weight: 800;
    font-size: 16px; letter-spacing: -0.02em;
    box-shadow: 0 2px 6px rgba(15,23,42,0.15);
    font-feature-settings: "tnum";
  }
  .iti-day-num small {
    display: block;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    opacity: 0.75; margin-bottom: -2px;
  }
  .iti-day-info { min-width: 0; }
  .iti-day-date { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
  .iti-day-sub { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
  .iti-day-cost { text-align: right; }
  .iti-day-cost .total { font-size: 16px; font-weight: 700; }
  .iti-day-cost small { font-size: 11px; color: var(--muted); display: block; }

  .iti-day-body { padding: 12px 14px; }

  .iti-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: white;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
  }
  .iti-row:hover { background: var(--bg-soft); border-color: var(--border); }
  .iti-row.transport { background: var(--brand-soft); cursor: default; }
  .iti-row.transport:hover { background: var(--brand-soft); }
  .iti-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.8);
  }
  .iti-row-icon {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--bg-soft);
    display: grid; place-items: center;
    color: var(--muted);
    flex-shrink: 0;
  }
  .iti-row.transport .iti-row-icon { background: var(--brand); color: white; }
  .iti-row-icon svg { width: 14px; height: 14px; }
  .iti-row-info { min-width: 0; }
  .iti-row-title { font-size: 14px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.005em; }
  .iti-row-sub { font-size: 12px; color: var(--muted); margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .iti-row-price { font-size: 13px; font-weight: 700; }
  .iti-row-price.free { color: #065f46; }
  .iti-row-remove {
    background: transparent; border: 1px solid transparent;
    color: var(--muted-2); padding: 6px;
    border-radius: 6px;
  }
  .iti-row-remove:hover { background: #fef2f2; color: var(--danger); }

  .iti-day-empty {
    color: var(--muted-2); font-size: 13px;
    border: 1px dashed var(--border); border-radius: 10px;
    padding: 14px; text-align: center;
    margin-bottom: 6px;
  }

  /* ---------- Gantt-style hourly timeline ---------- */
  .tl-wrap {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px 18px;
    margin-top: 4px;
  }
  .tl-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
  }
  .tl-header h3 {
    margin: 0;
    font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  }
  .tl-header .tl-sub {
    font-size: 12px; color: var(--muted);
    margin: 2px 0 0;
  }
  .tl-legend {
    display: flex; flex-wrap: wrap; gap: 10px 14px;
    margin: 10px 0 14px;
    font-size: 12px; color: var(--muted);
    align-items: center;
  }
  /* Per-category filter pills above the legend */
  .tl-filter-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 6px 0 10px;
    align-items: center;
  }
  .tl-filter-row .tl-filter-label {
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-right: 6px;
  }
  .tl-filter-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: white;
    color: var(--text);
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background .12s, border-color .12s, color .12s;
  }
  .tl-filter-pill:hover { border-color: var(--border-strong); }
  .tl-filter-pill .sw {
    width: 10px; height: 10px; border-radius: 3px;
  }
  .tl-filter-pill.active {
    background: var(--cat-color, var(--brand));
    border-color: var(--cat-color, var(--brand));
    color: white;
  }
  .tl-filter-pill.active .sw { background: rgba(255,255,255,0.7) !important; }
  .tl-filter-all {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 6px;
    margin-left: 4px;
  }
  .tl-filter-all[disabled] { color: var(--muted-2); cursor: default; text-decoration: none; }
  .tl-legend-item { display: inline-flex; align-items: center; gap: 6px; }
  .tl-swatch {
    width: 12px; height: 12px; border-radius: 3px; display: inline-block;
    flex-shrink: 0;
  }
  .tl-grid {
    position: relative;
    display: grid;
    grid-template-columns: var(--tl-day-col, 140px) 1fr;
    border-top: 1px solid var(--border);
  }
  /* Draggable column resizer between the day-info column and the hour grid */
  .tl-day-col-resizer {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--tl-day-col, 140px);
    width: 8px;
    margin-left: -4px;
    cursor: col-resize;
    z-index: 6;
    touch-action: none;
  }
  .tl-day-col-resizer::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: transparent;
    transition: background-color .12s ease;
  }
  .tl-day-col-resizer:hover::after,
  .tl-day-col-resizer.dragging::after {
    background: var(--brand);
  }
  .tl-hour-row {
    display: contents;
  }
  .tl-corner {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
  }
  .tl-hours {
    display: grid;
    grid-template-columns: repeat(var(--tl-hours, 18), 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    position: sticky; top: 0; z-index: 2;
  }
  .tl-hour-label {
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 8px 4px 6px;
    text-align: left;
    border-right: 1px solid var(--border);
  }
  .tl-hour-label:last-child { border-right: none; }
  .tl-day-info {
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    display: flex; align-items: center; gap: 10px;
    min-height: 64px;
  }
  .tl-day-num {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: white; font-weight: 800;
    font-size: 14px; letter-spacing: -0.02em;
    flex-shrink: 0;
    font-feature-settings: "tnum";
  }
  .tl-day-num small {
    display: block;
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    opacity: 0.8; margin-bottom: -2px;
  }
  .tl-day-meta { min-width: 0; line-height: 1.25; }
  .tl-day-date {
    font-size: 13px; font-weight: 700;
    margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tl-day-sub {
    font-size: 11px; color: var(--muted);
    margin: 1px 0 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tl-row {
    position: relative;
    border-bottom: 1px solid var(--border);
    background:
      repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / var(--tl-hours, 18) - 1px),
        rgba(15,23,42,0.06) calc(100% / var(--tl-hours, 18) - 1px),
        rgba(15,23,42,0.06) calc(100% / var(--tl-hours, 18))
      );
    min-height: 64px;
    cursor: copy;
  }
  .tl-row:hover { background-color: rgba(14,165,164,0.03); }
  .tl-block {
    position: absolute;
    top: 6px; bottom: 6px;
    border-radius: 8px;
    padding: 6px 8px;
    color: white;
    font-size: 11px; font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,23,42,0.10);
    display: flex; flex-direction: column;
    transition: transform .08s ease, box-shadow .12s ease;
  }
  .tl-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15,23,42,0.18);
    z-index: 4;
  }
  .tl-block[data-entry-id] { cursor: grab; touch-action: none; }
  .tl-block.dragging {
    cursor: grabbing;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(15,23,42,0.30);
    z-index: 10;
    opacity: 0.95;
    transition: none;
  }
  .tl-block.resizing {
    z-index: 10;
    box-shadow: 0 8px 18px rgba(15,23,42,0.25);
    transition: none;
  }
  .tl-row.drop-target { background-color: rgba(14,165,164,0.10) !important; }
  /* Resize handles on entry blocks (left/right edges) */
  .tl-resize-handle {
    position: absolute;
    top: 4px; bottom: 4px;
    width: 7px;
    z-index: 3;
    cursor: ew-resize;
    touch-action: none;
    border-radius: 4px;
    background: transparent;
    transition: background-color .12s ease;
  }
  .tl-resize-handle.left { left: 0; }
  .tl-resize-handle.right { right: 0; }
  .tl-block[data-entry-id]:hover .tl-resize-handle,
  .tl-block.resizing .tl-resize-handle {
    background: rgba(255,255,255,0.45);
  }
  .tl-resize-handle::before {
    content: ""; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 2px; height: 14px;
    border-radius: 1px;
    background: rgba(255,255,255,0.85);
    opacity: 0; transition: opacity .12s ease;
  }
  .tl-block[data-entry-id]:hover .tl-resize-handle::before,
  .tl-block.resizing .tl-resize-handle::before {
    opacity: 1;
  }
  .tl-block .tl-block-title {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    letter-spacing: -0.005em;
  }
  .tl-block .tl-block-time {
    font-size: 10px; font-weight: 600;
    opacity: 0.85;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tl-block.transit  { background: #d4a87a; }
  .tl-block.stay     { background: #8095a8; }
  .tl-block.food     { background: #c88080; }
  .tl-block.experience { background: #0ea5a4; }
  .tl-block.free     { background: #a8a070; }
  .tl-block.notes    { background: #8b85aa; }

  .tl-toolbar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .tl-toolbar .chip { font-size: 12px; }

  .tl-add-fab {
    position: sticky; bottom: 8px;
    margin-left: auto;
    display: inline-flex;
    align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--cta); color: white;
    border: none; font-weight: 700; font-size: 13px;
    box-shadow: 0 6px 18px rgba(255,107,87,0.32);
    cursor: pointer;
  }

  /* Entry editor modal */
  .entry-modal .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .entry-modal label.field-label {
    display: block;
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 6px;
  }
  .entry-modal input[type="time"],
  .entry-modal input[type="text"],
  .entry-modal select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: white;
  }
  .entry-modal .type-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
  }
  .entry-modal .type-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .entry-modal .type-pill.active {
    background: var(--brand); color: white; border-color: var(--brand);
  }
  .entry-modal .type-swatch {
    width: 10px; height: 10px; border-radius: 3px;
  }
  .entry-modal .danger-link {
    background: transparent; border: none;
    color: var(--danger); font-size: 13px; font-weight: 700;
    cursor: pointer; padding: 0;
  }

  /* Filter modal — Rexby-style */
  .filter-overlay .modal {
    max-width: 520px;
    padding: 0;
    overflow: hidden;
    display: flex; flex-direction: column;
    max-height: 88vh;
  }
  .filter-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .filter-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
  .filter-body {
    overflow-y: auto;
    padding: 18px 22px 10px;
    flex: 1; min-height: 0;
  }
  .filter-section { margin-bottom: 22px; }
  .filter-section:last-child { margin-bottom: 8px; }
  .filter-section-title {
    font-size: 17px; font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
  }
  .filter-row {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
  }
  .filter-row:last-child { border-bottom: none; }
  .filter-row .filter-chev {
    width: 18px; height: 18px; color: var(--muted);
    transition: transform .15s ease;
    flex-shrink: 0;
  }
  .filter-row.expanded .filter-chev { transform: rotate(180deg); }
  .filter-row.no-chev .filter-chev { visibility: hidden; }
  .filter-row .filter-label-text {
    font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .filter-row .filter-label-text svg { width: 18px; height: 18px; color: var(--muted); }
  .filter-row .filter-check {
    appearance: none; -webkit-appearance: none;
    width: 22px; height: 22px;
    border: 1.5px solid var(--border-strong);
    border-radius: 6px;
    background: white;
    display: inline-grid; place-items: center;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    flex-shrink: 0;
  }
  .filter-row .filter-check:checked {
    background: var(--brand);
    border-color: var(--brand);
  }
  .filter-row .filter-check:indeterminate {
    background: white;
    border-color: var(--brand);
  }
  .filter-row .filter-check:indeterminate::after {
    content: ""; width: 10px; height: 2px;
    background: var(--brand); border-radius: 1px;
  }
  .filter-row .filter-check:checked::after {
    content: "";
    width: 12px; height: 12px;
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  }
  .filter-sublist {
    grid-column: 1 / -1;
    display: none;
    padding: 4px 0 8px 32px;
  }
  .filter-row.expanded + .filter-sublist { display: block; }
  .filter-sub-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
  }
  .filter-sub-row .filter-check { width: 18px; height: 18px; border-radius: 5px; }
  .filter-sub-row .filter-check:checked::after { width: 10px; height: 10px; }

  .filter-foot {
    border-top: 1px solid var(--border);
    padding: 14px 22px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
  }
  .filter-foot .filter-clear {
    background: transparent; border: none;
    color: var(--text);
    font-size: 14px; font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 0;
  }
  .filter-foot .filter-clear[disabled] { color: var(--muted-2); cursor: default; text-decoration: none; }
  .filter-foot .filter-apply {
    background: var(--ink); color: white;
    border: none; border-radius: 999px;
    padding: 12px 32px;
    font-weight: 700; font-size: 14px;
    cursor: pointer;
  }
  .filter-foot .filter-apply:hover { background: #1e293b; }

  .chip.has-filters {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
  }
  .chip.missing-loc-pill {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
    font-weight: 600;
  }
  .chip.missing-loc-pill:hover { background: #fde68a; }
  .chip .filter-count {
    background: rgba(255,255,255,0.25);
    color: inherit;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px; font-weight: 700;
    margin-left: 6px;
  }

  /* ---------- Itinerary view (legacy classes) ---------- */
  .day-list { display: flex; flex-direction: column; gap: 14px; }
  .day-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
  }
  .day-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
  }
  .day-header .day-num {
    font-size: 11px; color: var(--muted);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  }
  .day-header .day-date { font-size: 16px; font-weight: 700; margin-top: 2px; }
  .day-header .day-cost { font-size: 14px; font-weight: 700; color: var(--text); }
  .day-header .day-cost small { color: var(--muted); font-weight: 500; font-size: 11px; display: block; }
  .day-body { padding: 12px 14px; }
  .day-empty {
    color: var(--muted); font-size: 13px;
    border: 1px dashed var(--border); border-radius: 10px;
    padding: 14px; text-align: center;
  }
  .iti-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 8px; background: white;
  }
  .iti-item:last-child { margin-bottom: 0; }
  .iti-item .iti-img {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    background: var(--bg-soft);
  }
  .iti-item .iti-info { flex: 1; min-width: 0; }
  .iti-item .iti-cat { font-size: 11px; color: var(--muted); }
  .iti-item .iti-title { font-weight: 700; font-size: 14px; margin: 1px 0 0; }
  .iti-item .iti-price { font-weight: 700; font-size: 13px; color: var(--text); }
  .iti-item .iti-price.free { color: #065f46; }
  .iti-item .iti-actions { display: flex; gap: 4px; }
  .iti-item .iti-remove {
    background: transparent; border: 1px solid transparent;
    color: var(--muted-2); padding: 6px; border-radius: 6px;
  }
  .iti-item .iti-remove:hover { background: var(--bg-soft); color: var(--danger); }

  .add-to-day-btn {
    width: 100%; border: 1px dashed var(--border-strong);
    background: transparent; color: var(--muted);
    padding: 10px; border-radius: 10px;
    font-weight: 600; font-size: 13px; margin-top: 8px;
  }
  .add-to-day-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

  .iti-banner {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
    display: flex; gap: 14px; align-items: center;
  }
  .iti-banner .icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; flex-shrink: 0;
  }
  .iti-banner h4 { margin: 0 0 2px; font-size: 14px; }
  .iti-banner p { margin: 0; font-size: 13px; color: var(--muted); }

  /* ---------- Accommodation view ---------- */
  .acc-map-wrap {
    position: relative;
    width: 100%;
    height: 36vh;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    margin-bottom: 18px;
  }
  .acc-map { position: absolute; inset: 0; }

  .acc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .acc-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    align-items: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .acc-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
  .acc-card.selected { border-color: var(--selected); background: var(--selected-bg); }
  .acc-card .acc-img {
    width: 100px; height: 80px; border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: var(--bg-soft);
  }
  .acc-meta {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
    margin-bottom: 4px;
  }
  .acc-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.005em; }
  .acc-info-line { font-size: 13px; color: var(--muted); margin: 1px 0; }
  .acc-info-line strong { color: var(--text); font-weight: 700; }
  .acc-aside { text-align: right; }
  .acc-total { font-size: 18px; font-weight: 700; }
  .acc-total .per-night { font-size: 11px; color: var(--muted); display: block; font-weight: 500; margin-top: 1px; }
  .acc-status {
    display: inline-block;
    font-size: 10px; padding: 3px 9px;
    border-radius: 99px; margin-top: 6px;
    background: var(--selected); color: white;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  }
  .acc-status.unsaved { background: var(--bg-soft); color: var(--muted); }

  /* Check-in / Check-out fields on each accommodation card */
  .acc-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 2px;
    align-items: end;
  }
  .acc-dates .acc-date-field { min-width: 0; }
  .acc-dates label.lbl {
    display: block;
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  .acc-dates input[type="datetime-local"] {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
  }
  .acc-dates input[type="datetime-local"]:focus { outline: none; border-color: var(--brand); }
  .acc-clear-dates {
    background: transparent; border: none;
    color: var(--muted);
    font-size: 11px; font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0; margin-top: 4px;
  }
  .acc-clear-dates:hover { color: var(--danger); }
  @media (max-width: 600px) {
    .acc-card { grid-template-columns: 80px 1fr; }
    .acc-card .acc-img { width: 80px; height: 80px; }
    .acc-aside { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  }

  /* ---------- Getting Around ---------- */
  .transport-section {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px;
    margin-bottom: 16px;
  }
  .transport-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
  }
  .transport-section-head h3 { margin: 0; font-size: 15px; }
  .transport-section-head .count { color: var(--muted); font-weight: 500; font-size: 13px; }
  .transport-card {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    align-items: center; gap: 14px;
    padding: 14px; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 8px; background: white;
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
  }
  .transport-card:last-child { margin-bottom: 0; }
  .transport-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
  .transport-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; flex-shrink: 0;
  }
  .transport-icon svg { width: 22px; height: 22px; }
  .transport-info { min-width: 0; }
  .transport-route { font-weight: 700; font-size: 14px; margin: 0; }
  .transport-meta { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
  .transport-cost { font-weight: 700; font-size: 14px; }
  .transport-actions { display: flex; gap: 4px; }
  .transport-del {
    background: transparent; border: 1px solid transparent; color: var(--muted-2);
    padding: 6px; border-radius: 6px;
  }
  .transport-del:hover { background: #fef2f2; color: var(--danger); }

  .iti-transport {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; background: var(--brand-soft); color: var(--text);
    border-left: 3px solid var(--brand); border-radius: 8px;
    margin-bottom: 8px; font-size: 13px;
  }
  .iti-transport svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
  .iti-transport .what { font-weight: 700; }
  .iti-transport .when { color: var(--muted); margin-left: auto; font-size: 12px; }

