@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;600&family=Mulish:wght@300;400;500;600&display=swap');

  :root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface2: #242424;
    --border: #2e2e2e;
    --text: #f0f0f0;
    --text-muted: #888;
    --accent: #3390ec;
    --accent-dark: #2878d4;
    --radius: 20px;
    --radius-sm: 12px;
  }

  @media (prefers-color-scheme: light) {
    :root {
      --bg: #f5f5f0;
      --surface: #ffffff;
      --surface2: #efefea;
      --border: #e0e0d8;
      --text: #111111;
      --text-muted: #888;
      --accent: #3390ec;
      --accent-dark: #2878d4;
    }
  }

  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

  body {
    font-family: 'Mulish', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  .app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 0 100px;
  }

  /* ── Header ── */
  .header {
    padding: 20px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .brand {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
  }

  .progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .progress-dots {
    display: flex;
    gap: 6px;
    flex: 1;
  }

  .dot {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    flex: 1;
    cursor: pointer;
    transition: background 0.3s;
  }

  .dot.active { background: var(--accent); }
  .dot.done   { background: var(--accent); opacity: 0.4; }

  .step-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
  }

  /* ── Card viewport (horizontal slider) ── */
  .cards-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-top: 8px;
  }

  .cards-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
  }

  .card {
    min-width: 100%;
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
  }

  .card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    flex-shrink: 0;
  }

  .card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: -12px;
    line-height: 1.5;
    flex-shrink: 0;
  }

  /* ── Text input ── */
  input[type="text"], input[type="date"] {
    width: 100%;
    padding: 18px 20px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    flex-shrink: 0;
  }

  input:focus { border-color: var(--accent); }
  input::placeholder { color: var(--text-muted); }
  input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }

  /* ── City autocomplete dropdown ── */
  .city-input-row { position: relative; }

  .city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 46px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }

  .city-dropdown.open { display: block; }

  .city-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
  }

  .city-dropdown-item:last-child { border-bottom: none; }
  .city-dropdown-item:active, .city-dropdown-item:hover { background: var(--surface2); }

  .city-dropdown-flag { font-size: 20px; flex-shrink: 0; }

  .city-dropdown-info { flex: 1; min-width: 0; }

  .city-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .city-dropdown-country {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
  }

  .city-dropdown-loading {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ── Calendar ── */
  .cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
  }

  .cal-nav {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
  }

  .cal-nav:active { transform: scale(0.88); background: var(--surface2); }

  .cal-month-label {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    flex: 1;
  }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    flex-shrink: 0;
  }

  .cal-dow {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 4px 0 6px;
  }

  .cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s, color 0.12s;
    position: relative;
  }

  .cal-day:hover:not(.cal-day-disabled):not(.cal-day-start):not(.cal-day-end) {
    background: var(--surface2);
  }

  .cal-day-disabled {
    color: var(--border);
    cursor: default;
    pointer-events: none;
  }

  .cal-day-in-range {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 0;
  }

  .cal-day-start, .cal-day-end {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px !important;
  }

  .cal-day-start { border-radius: 8px 0 0 8px !important; }
  .cal-day-end   { border-radius: 0 8px 8px 0 !important; }
  .cal-day-start.cal-day-end { border-radius: 8px !important; }

  .cal-day-today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
  }

  .cal-day-start.cal-day-today::after,
  .cal-day-end.cal-day-today::after { background: #000; }

  .cal-selected-row {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .cal-selected-chip {
    flex: 1;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .cal-selected-chip.active { border-color: var(--accent); }

  .cal-chip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .cal-chip-value {
    font-size: 14px;
    font-weight: 600;
  }

  .cal-chip-nights {
    font-size: 11px;
    color: var(--text-muted);
  }

  /* ── Calendar time pickers ── */
  .cal-time-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  .cal-time-block { display: flex; flex-direction: column; gap: 7px; }

  .cal-time-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .cal-time-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .cal-time-pill {
    padding: 7px 11px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
    white-space: nowrap;
  }

  .cal-time-pill:active { transform: scale(0.94); }

  .cal-time-pill.selected {
    border-color: var(--accent);
    background: var(--surface2);
    color: var(--text);
  }

  /* ── Custom interests ── */
  .custom-interests-row {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .custom-interests-row input { flex: 1; }

  .custom-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 0;
  }

  .custom-interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface2);
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    animation: fadeUp 0.2s ease;
  }

  .custom-interest-remove {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
  }

  .custom-interest-remove:hover { background: #ff4a4a33; color: #ff4a4a; }

  /* ── Multi-city step ── */
  .city-input-row {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .city-input-row input[type="text"] { flex: 1; }

  .btn-add-city {
    padding: 0 18px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-add-city:active { transform: scale(0.94); }
  .btn-add-city:disabled { opacity: 0.3; cursor: default; }
  .btn-add-city:disabled:active { transform: none; }

  .cities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .city-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    animation: fadeUp 0.25s ease both;
  }

  .city-tag-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    min-width: 20px;
  }

  .city-tag-name { flex: 1; font-size: 15px; font-weight: 500; }

  .city-tag-arrow { font-size: 13px; color: var(--text-muted); }

  .city-tag-remove {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, transform 0.15s;
  }

  .city-tag-remove:hover  { background: #ff4a4a22; color: #ff4a4a; }
  .city-tag-remove:active { transform: scale(0.88); }

  .max-cities-note { font-size: 12px; color: var(--text-muted); text-align: center; }

  /* ── City Days step ── */
  .days-progress-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .days-progress-bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
  }

  .days-progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
  }

  .days-progress-bar-fill.over { background: #ff6b6b; }

  .days-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
  }

  .days-progress-count {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 600;
  }

  .days-progress-remaining {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
  }

  .days-progress-remaining.warn  { color: #ff6b6b; }
  .days-progress-remaining.ok    { color: var(--accent); }

  .city-days-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 8px;
  }

  /* Each city's day-allocation card */
  .city-day-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    animation: fadeUp 0.3s ease both;
  }

  .city-day-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .city-day-card-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 7px;
    flex-shrink: 0;
  }

  .city-day-card-name {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
  }

  /* Stepper row */
  .stepper-row {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .stepper-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    user-select: none;
  }

  .stepper-btn:active:not(:disabled) { transform: scale(0.88); }
  .stepper-btn:disabled { opacity: 0.25; cursor: default; }

  .stepper-btn.plus:not(:disabled):hover { border-color: var(--accent); }

  .stepper-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .stepper-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.1s;
  }

  .stepper-unit {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Flex pills */
  .flex-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .flex-row-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
  }

  .flex-pills {
    display: flex;
    gap: 6px;
    flex: 1;
  }

  .flex-pill {
    flex: 1;
    padding: 6px 0;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--surface2);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    user-select: none;
  }

  .flex-pill:active { transform: scale(0.93); }

  .flex-pill.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
  }

  /* ── Budget ── */
  .budget-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .budget-card {
    padding: 18px 20px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
    flex-shrink: 0;
  }

  .budget-card:active { transform: scale(0.98); }

  .budget-card.selected {
    border-color: var(--accent);
    background: var(--surface2);
  }

  .budget-icon { font-size: 24px; line-height: 1; }
  .budget-info { flex: 1; }
  .budget-name { font-weight: 600; font-size: 15px; }
  .budget-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

  .budget-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .budget-card.selected .budget-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  /* ── Interests ── */
  .chips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .chip {
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex; align-items: center; gap: 10px;
    user-select: none;
  }

  .chip:active { transform: scale(0.97); }

  .chip.selected {
    border-color: var(--accent);
    background: var(--surface2);
  }

  .chip-icon  { font-size: 20px; line-height: 1; }
  .chip-label { font-size: 13px; font-weight: 500; }

  /* ── Vibe step (group + pace) ── */
  .vibe-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .vibe-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
  }

  .vibe-card {
    padding: 16px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
    text-align: center;
  }

  .vibe-card:active { transform: scale(0.96); }

  .vibe-card.selected {
    border-color: var(--accent);
    background: var(--surface2);
  }

  .vibe-icon { font-size: 28px; line-height: 1; }

  .vibe-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }

  .vibe-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  .pace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
  }

  .pace-card {
    padding: 14px 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    user-select: none;
    text-align: center;
  }

  .pace-card:active  { transform: scale(0.96); }
  .pace-card.selected {
    border-color: var(--accent);
    background: var(--surface2);
  }

  .pace-icon { font-size: 24px; line-height: 1; }
  .pace-name { font-size: 12px; font-weight: 700; }
  .pace-desc { font-size: 10px; color: var(--text-muted); line-height: 1.3; }

  /* Travel time pills */
  .travel-time-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
  }

  .travel-time-pill {
    flex: 1;
    min-width: calc(20% - 8px);
    padding: 10px 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  }

  .travel-time-pill:active { transform: scale(0.94); }

  .travel-time-pill.selected {
    border-color: var(--accent);
    background: var(--surface2);
    color: var(--text);
  }

  /* ── Summary ── */
  .summary-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
  }

  .summary-row { display: flex; align-items: flex-start; gap: 12px; }

  .summary-icon { font-size: 18px; line-height: 1; margin-top: 1px; flex-shrink: 0; }

  .summary-key {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  }

  .summary-val { font-size: 15px; font-weight: 500; margin-top: 2px; }

  .summary-route {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center;
  }

  .summary-city-badge {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex; align-items: center; gap: 5px;
  }

  .summary-city-days {
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
  }

  .summary-city-flex {
    font-size: 10px;
    color: var(--text-muted);
  }

  .summary-city-arrow { font-size: 13px; color: var(--text-muted); }

  .summary-divider { height: 1px; background: var(--border); }

  /* ── Bottom bar ── */
  .bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex; gap: 10px;
  }

  .btn {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    flex: 1;
  }

  .btn:active { transform: scale(0.97); }
  .btn:disabled { opacity: 0.4; cursor: default; }
  .btn:disabled:active { transform: none; }

  .btn-primary  { background: var(--accent); color: #fff; }
  .btn-secondary {
    background: var(--surface); color: var(--text);
    border: 1.5px solid var(--border);
    flex: 0 0 auto; padding: 16px 20px;
  }

  /* ── Loading ── */
  .loading-screen {
    display: none;
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 100;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; padding: 40px; text-align: center;
  }

  .loading-screen.active { display: flex; }

  .loader {
    width: 56px; height: 56px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
  }

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

  .loading-title { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 600; }

  .loading-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; }

  .loading-step {
    font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center; gap: 10px;
    transition: color 0.3s;
  }

  .loading-step.done { color: var(--accent); }

  .loading-step-dot {
    width: 6px; height: 6px;
    border-radius: 50%; background: var(--border); flex-shrink: 0;
    transition: background 0.3s;
  }

  .loading-step.done .loading-step-dot { background: var(--accent); }

  /* ── Generating banner (shown during streaming) ── */
  .generating-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
  }

  .generating-spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
  }

  /* ── Plan screen ── */
  .plan-screen {
    display: none;
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 90;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 24px 100px;
    max-width: 480px;
    margin: 0 auto;
  }

  .plan-screen-close {
    position: sticky;
    top: 0;
    float: right;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface2);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin-bottom: -32px;
    transition: background 0.15s;
  }

  .plan-screen-close:hover { background: var(--border); }

  .plan-screen.active { display: block; }

  /* ── Transition day indicator ── */
  .day-transition {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
  }

  /* ── Bot CTA in plan ── */
  .plan-bot-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    border: 1.5px solid var(--accent);
    border-radius: 16px;
    background: var(--surface);
  }

  .plan-bot-cta-icon { font-size: 24px; flex-shrink: 0; }

  .plan-bot-cta-text { flex: 1; min-width: 0; }

  .plan-bot-cta-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
  }

  .plan-bot-cta-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  .plan-bot-cta-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
  }

  .plan-bot-cta-btn:hover { opacity: 0.88; }

  .plan-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }

  .plan-title  { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.3; }
  .plan-subtitle { font-size: 13px; color: var(--text-muted); }

  .plan-route {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px;
  }

  .plan-route-city {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 3px 10px;
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
  }

  .plan-route-city-days { font-size: 10px; color: var(--accent); font-family: 'Unbounded', sans-serif; }
  .plan-route-arrow { font-size: 12px; color: var(--text-muted); }

  .day-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
  }

  .day-header { margin-bottom: 16px; }

  .day-city-badge {
    display: inline-block;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 6px; padding: 2px 8px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
  }

  .day-title {
    font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.05em;
  }

  .activity {
    display: flex; gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .activity:last-child  { border-bottom: none; padding-bottom: 0; }
  .activity:first-child { padding-top: 0; }

  .activity-time {
    font-size: 12px; font-weight: 700; color: var(--accent);
      min-width: 48px;
      max-width: 48px;
      font-size: 11px; padding-top: 2px;
    font-family: 'Unbounded', sans-serif;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .activity-info  { flex: 1; }
  .activity-name  { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
  .activity-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 5px; }

  .activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
  }

  .activity-meta-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  max-width: 100%;
  }

  .activity-meta-pill.cost {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  }

  .activity-meta-pill.maps {
    text-decoration: none;
    color: #6ab4ff;
    border-color: color-mix(in srgb, #6ab4ff 30%, transparent);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .activity-meta-pill.maps:active {
    background: color-mix(in srgb, #6ab4ff 15%, transparent);
  }

  .activity-meta-pill.rating {
    background: #fff7e0;
    color: #b8860b;
    font-weight: 600;
  }

  /* ── Activity reviews ── */
  .activity-reviews-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
  }

  .activity-reviews-toggle-arrow {
    font-size: 9px;
    transition: transform 0.2s;
    display: inline-block;
  }

  .activity-reviews-toggle.open .activity-reviews-toggle-arrow {
    transform: rotate(180deg);
  }

  .activity-reviews-wrap {
    display: none;
    flex-direction: column;
    gap: 7px;
    margin-top: 6px;
  }

  .activity-reviews-wrap.open { display: flex; }

  .activity-reviews-disclaimer {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
    margin-top: 2px;
  }

  .activity-review {
    background: var(--surface2);
    border-radius: 10px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .activity-review-header {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .activity-review-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
  }

  .activity-review-stars {
    font-size: 10px;
    letter-spacing: -1px;
    color: #f5a623;
    margin-left: auto;
    flex-shrink: 0;
  }

  .activity-review-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
  }

  /* ── Activity photos carousel ── */
  .activity-photos-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    transition: color 0.15s;
  }

  .activity-photos-toggle:hover { color: var(--text); }

  .activity-photos-toggle-arrow {
    font-size: 9px;
    transition: transform 0.2s;
    display: inline-block;
  }

  .activity-photos-toggle.open .activity-photos-toggle-arrow {
    transform: rotate(180deg);
  }

  .activity-photos-wrap {
    display: none;
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: var(--surface2);
    height: 200px;
    width: 100%;
  }

  .activity-photos-wrap.open { display: block; }

  /* Carousel track */
  .photo-carousel {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .photo-carousel-slide {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
  }

  .photo-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .photo-carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: flex-end;
    gap: 6px;
    line-height: 1.3;
  }

  .photo-carousel-caption-text { flex: 1; }
  .photo-carousel-source { opacity: 0.55; white-space: nowrap; font-size: 9px; }

  /* Prev / Next buttons */
  .photo-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: background 0.15s, transform 0.1s;
    backdrop-filter: blur(4px);
  }

  .photo-carousel-btn:active { transform: translateY(-50%) scale(0.88); }
  .photo-carousel-btn.prev   { left: 8px; }
  .photo-carousel-btn.next   { right: 8px; }
  .photo-carousel-btn:disabled { opacity: 0.25; cursor: default; }

  /* Dot indicators */
  .photo-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
  }

  .photo-carousel-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .photo-carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
  }

  /* Counter badge */
  .photo-carousel-counter {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    z-index: 2;
  }

  .activity-photo-skeleton {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
  }

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

  .plan-intro {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px;
    font-size: 14px; line-height: 1.6; color: var(--text-muted);
    margin-bottom: 20px;
  }

  .plan-bottom {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 16px 24px;
    background: var(--bg); border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
  }

  .btn-share {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
  }

  .btn-share:active { transform: scale(0.97); }

  /* Toast notification */
  .toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 200;
  }

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

  /* Shared plan view — hide form elements */
  .shared-view .app    { display: none; }
  .shared-view .bottom-bar { display: none; }
  .shared-view #planScreen { padding-top: 24px; }
  .shared-view .plan-bottom .btn-secondary { display: none !important; }

  /* Extras-only mode — show only affiliate / weather / practical */
  .extras-only .app         { display: none; }
  .extras-only .bottom-bar  { display: none; }
  .extras-only .plan-header { display: none; }
  .extras-only #planIntro   { display: none; }
  .extras-only #planDays    { display: none; }
  .extras-only #eventsBlock { display: none; }
  .extras-only .plan-bottom { display: none; }
  .extras-only .shared-loading { display: none; }
  .extras-only #planScreen  { padding-top: 0; background: transparent; box-shadow: none; }
  .extras-only body         { background: transparent; }
  .extras-only .plan-screen { background: transparent; }

  /* Loading state for shared plan */
  .shared-loading {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    background: var(--bg);
    z-index: 200;
  }

  .shared-loading-text {
    font-size: 14px;
    color: var(--text-muted);
  }

  .city-separator {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 0 14px;
  }

  .city-separator-line  { flex: 1; height: 1px; background: var(--border); }
  .city-separator-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent); white-space: nowrap;
  }

  /* ── Weather block ── */
  .weather-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .weather-header-icon { font-size: 16px; }

  .weather-header-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
  }

  .weather-header-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
  }

  .weather-city-block { margin-bottom: 16px; }

  .weather-city-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }

  .weather-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .weather-scroll::-webkit-scrollbar { display: none; }

  .weather-day {
    flex-shrink: 0;
    width: 64px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: fadeUp 0.3s ease both;
  }

  .weather-day.today { border-color: var(--accent); }

  .weather-date {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.2;
  }

  .weather-icon { font-size: 22px; line-height: 1; }

  .weather-temps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .weather-temp-max {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
  }

  .weather-temp-min {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1;
  }

  .weather-precip {
    font-size: 10px;
    color: #6ab4ff;
    font-weight: 600;
    min-height: 13px;
  }

  .weather-loading {
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .weather-loading-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1s ease infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
  }

  .weather-unavailable {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
  }

  .weather-historical-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .weather-historical-banner strong { color: var(--text); }

  .weather-historical-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

  .weather-day.historical {
    opacity: 0.85;
    border-style: dashed;
  }

  /* ── Practical info block ── */
  .practical-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .practical-header-icon { font-size: 16px; }

  .practical-header-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
  }

  .practical-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
  }

  /* Section rows inside practical card */
  .practical-section {
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }

  .practical-section:last-child { border-bottom: none; }

  .practical-section-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .practical-section-body { flex: 1; min-width: 0; }

  .practical-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }

  /* Currency */
  .currency-rows { display: flex; flex-direction: column; gap: 6px; }

  .currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .currency-pair {
    font-size: 13px;
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
  }

  .currency-rate {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
  }

  .currency-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
  }

  .currency-loading {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Outlets */
  .outlet-rows { display: flex; flex-direction: column; gap: 8px; }

  .outlet-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .outlet-types {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .outlet-type-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .outlet-type-badge {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 8px 14px 8px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .outlet-svg-icon {
    color: var(--text);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .outlet-type-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .outlet-type-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
  }

  .outlet-type-where {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
  }

  .outlet-voltage {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
  }

  .outlet-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 4px;
  }

  /* Transport apps */
  .transport-list { display: flex; flex-direction: column; gap: 8px; }

  .transport-city-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
  }

  .transport-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .transport-app {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
  }

  .transport-app-icon { font-size: 14px; }

  .transport-app-cat {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
  }

  /* Emergency */
  .emergency-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .emergency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 60px;
  }

  .emergency-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 600;
  }

  .emergency-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
  }

  .practical-unknown {
    font-size: 12px;
    color: var(--text-muted);
  }

  /* AI Tips */
  .practical-tips-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .practical-tip {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
  }

  /* ── Date mode toggle ── */
  .date-mode-toggle {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .date-mode-pill {
    flex: 1;
    padding: 12px 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    transition: all 0.15s;
  }

  .date-mode-pill:active { transform: scale(0.97); }

  .date-mode-pill.active {
    border-color: var(--accent);
    background: var(--surface2);
    color: var(--text);
  }

  /* ── Duration stepper ── */
  .duration-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    flex-shrink: 0;
  }

  .duration-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
  }

  /* ── Country badge in cities list ── */
  .city-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
  }

  /* ── Country dropdown badge ── */
  .city-dropdown-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
    width: fit-content;
  }

  /* ── Events block ── */
  .events-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .events-header-icon { font-size: 16px; }

  .events-header-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
  }

  .event-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  .event-card.holiday  { border-left-color: #f5a623; }
  .event-card.festival { border-left-color: #a855f7; }
  .event-card.sports   { border-left-color: #3b82f6; }
  .event-card.disaster { border-left-color: #ef4444; }

  .event-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
  .event-info { flex: 1; min-width: 0; }

  .event-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .event-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .event-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* ── Animations ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

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

/* ── Affiliate block ── */
.affiliate-block {
  margin-bottom: 20px;
}

.affiliate-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.affiliate-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.affiliate-card:active {
  transform: scale(0.97);
  border-color: var(--accent);
}

.affiliate-icon { font-size: 18px; flex-shrink: 0; }

.affiliate-info { flex: 1; min-width: 0; }

.affiliate-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.affiliate-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.affiliate-arrow {
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.affiliate-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  opacity: 0.6;
}
.cal-duration-error {
  color: #e53935;
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
  margin-top: 6px;
}
