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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0f0f13;
  color: #e4e4e7;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-bottom: 1px solid #2a2a3e;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8f8ff, #a0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  margin-top: 0.4rem;
  color: #a0a0c0;
  font-size: 0.9rem;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.legend-group {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.legend-separator {
  width: 1px;
  height: 16px;
  background: #444;
  margin: 0 0.4rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #b0b0c4;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.seoul { background: #ec4899; }
.legend-dot.tokyo { background: #6366f1; }
.legend-dot.osaka { background: #f97316; }
.legend-dot.kyoto { background: #10b981; }

.legend-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* === FLOATING SEARCH BAR === */
.search-float {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.6rem 1rem;
  background: rgba(15, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a2a3e;
}

.search-float-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e1e2e;
  border: 1px solid #3a3a54;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  transition: border-color 0.2s;
}

.search-float-inner:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.search-float-icon {
  flex-shrink: 0;
  color: #6b6b8a;
}

.search-float-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #e4e4e7;
  font-size: 0.85rem;
  font-family: inherit;
}

.search-float-input::placeholder {
  color: #6b6b8a;
}

.search-float-count {
  font-size: 0.7rem;
  color: #8888cc;
  white-space: nowrap;
  display: none;
}

.search-float-count.visible {
  display: inline;
}

.search-float-clear {
  display: none;
  background: none;
  border: none;
  color: #6b6b8a;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.15rem;
  line-height: 1;
  transition: color 0.15s;
}

.search-float-clear:hover {
  color: #e4e4e7;
}

.search-float-clear.visible {
  display: inline;
}

/* Search highlight on day cells */
.day-cell.search-match {
  border-color: #6366f1 !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35), inset 0 0 20px rgba(99, 102, 241, 0.06);
}

.day-cell.search-dim {
  opacity: 0.3;
  pointer-events: none;
}

/* Search highlight for sidebar items */
.item.search-highlight {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid #6366f1;
  padding-left: calc(0.65rem - 3px);
  border-radius: 6px;
  margin: 0.25rem 0;
}

/* Calendar Grid */
.calendar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.weekday-header span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8888cc;
  padding: 0.5rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-cell {
  min-height: 120px;
  background: #1a1a24;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.day-cell.empty {
  background: transparent;
  border-color: transparent;
}

.day-cell.trip-day {
  cursor: pointer;
}

.day-cell.trip-day:hover {
  border-color: #4444aa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.day-cell.trip-day.active {
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.day-cell .city-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.day-cell .city-stripe.seoul { background: #ec4899; }
.day-cell .city-stripe.tokyo { background: #6366f1; }
.day-cell .city-stripe.osaka { background: #f97316; }
.day-cell .city-stripe.kyoto { background: #10b981; }

.day-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ccc;
  margin-top: 0.2rem;
}

.day-cell.trip-day .day-number {
  color: #fff;
}

.day-theme {
  font-size: 0.55rem;
  color: #a0a0c0;
  margin-top: 0.25rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.day-badges {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.day-badge-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.day-booked-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
}

.day-booked-name {
  color: #4ade80;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-booked-time {
  color: #6ee7a0;
  opacity: 0.7;
  white-space: nowrap;
  font-size: 0.48rem;
}

/* Sidebar / Detail Panel */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.overlay.open {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -560px;
  width: 540px;
  max-width: 92vw;
  height: 100%;
  background: #16161e;
  border-left: 1px solid #2a2a3e;
  z-index: 100;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
  right: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #2a2a3e;
  position: sticky;
  top: 0;
  background: #16161e;
  z-index: 1;
}

.sidebar-header .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}

.sidebar-header .close-btn:hover {
  background: #2a2a3e;
  color: #fff;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 2rem;
}

.sidebar-title-row h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.sidebar-rename-btn {
  background: none;
  border: 1px solid transparent;
  color: #a0a0c0;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s;
  flex-shrink: 0;
}

.sidebar-rename-btn:hover {
  color: #fff;
  background: #2a2a3e;
  border-color: #3a3a5e;
}

.sidebar-header .day-subtitle {
  font-size: 0.8rem;
  color: #a0a0c0;
  margin-top: 0.3rem;
}

.sidebar-hero {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.sidebar-content {
  padding: 1rem 1.5rem 2rem;
}

.section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8888cc;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #1f1f2e;
}

.item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #1a1a28;
}

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

.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222233;
}

.item-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #1e1e30, #2a2a40);
}

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

.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e4e7;
}

.item-name a {
  color: #e4e4e7;
  text-decoration: none;
  transition: color 0.15s;
}

.item-name a:hover {
  color: #818cf8;
  text-decoration: underline;
}

.item-link-icon {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-left: 0.25rem;
}

.item-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(100, 100, 160, 0.12);
  color: #8888bb;
  text-decoration: none;
  transition: all 0.15s;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.item-icon-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  transform: translateY(-1px);
}

.item-icon-btn.item-ig-btn {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
}

.item-icon-btn.item-ig-btn:hover {
  background: rgba(225, 48, 108, 0.2);
  color: #f77fbe;
  transform: translateY(-1px);
}

.item-desc {
  font-size: 0.73rem;
  color: #9999c0;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.item-cost {
  font-size: 0.68rem;
  color: #8888cc;
  margin-top: 0.2rem;
}

/* Address line */
.item-address {
  font-size: 0.68rem;
  color: #a0a0c0;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Hours line */
.item-hours {
  font-size: 0.68rem;
  color: #7a9e7a;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.item-address a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s;
}

.item-address a:hover {
  color: #93bbfd;
  text-decoration: underline;
}

/* User note */
.item-note {
  font-size: 0.68rem;
  color: #a78bfa;
  margin-top: 0.3rem;
  padding: 0.3rem 0.5rem;
  background: rgba(167, 139, 250, 0.08);
  border-left: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

/* Edit button */
.edit-item-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-left: 0.3rem;
}

.edit-item-btn:hover {
  background: #2a2a3e;
  color: #818cf8;
}

/* Inline edit form */
.inline-edit-form {
  margin-top: 0.6rem;
  padding: 0.8rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
}

.inline-edit-form .form-group {
  margin-bottom: 0.6rem;
}

.inline-edit-form .form-group:last-of-type {
  margin-bottom: 0.6rem;
}

.inline-edit-form label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #a0a0c0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.inline-edit-form input,
.inline-edit-form textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  background: #0f0f16;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #e4e4e7;
  font-family: inherit;
  transition: border-color 0.15s;
}

.inline-edit-form input:focus,
.inline-edit-form textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.inline-edit-form textarea {
  resize: vertical;
  min-height: 48px;
}

.inline-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.inline-edit-actions .btn-save {
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.inline-edit-actions .btn-save:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.inline-edit-actions .btn-cancel {
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a0a0c0;
  background: #1a1a28;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.inline-edit-actions .btn-cancel:hover {
  background: #2a2a3e;
  color: #e4e4e7;
}

.inline-edit-actions .btn-reset {
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: auto;
}

.inline-edit-actions .btn-reset:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* === RESERVATION BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Queue only — warning triangle */
.badge.queue-only {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Needs booking — red exclamation */
.badge.needs-booking {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Booked — green check */
.badge.booked {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Walk-in — dim */
.badge.no-res {
  background: rgba(100, 100, 140, 0.1);
  color: #666688;
  border: 1px solid rgba(100, 100, 140, 0.15);
}

.booking-note {
  font-size: 0.66rem;
  color: #f87171;
  margin-top: 0.25rem;
  line-height: 1.4;
  padding: 0.3rem 0.5rem;
  background: rgba(239, 68, 68, 0.06);
  border-left: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 0 4px 4px 0;
}

.booking-note.queue-note {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.06);
  border-left-color: rgba(245, 158, 11, 0.3);
}

/* Book button */
.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.book-btn:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

/* Booked info display */
.booked-info {
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 8px;
  font-size: 0.7rem;
  color: #4ade80;
  line-height: 1.5;
}

.booked-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.booked-info-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booked-info-actions {
  display: flex;
  gap: 0.5rem;
}

.booked-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
}

.booked-info-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.booked-info-icon {
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
}

.booked-info-value {
  font-size: 0.72rem;
  color: #c4c4d7;
  font-weight: 500;
}

.booked-info-conf {
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 0.65rem;
  color: #a0a0c0;
  background: rgba(100, 100, 150, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.booked-info-notes {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(34, 197, 94, 0.1);
  font-size: 0.66rem;
  color: #a0a0c0;
  line-height: 1.45;
}

.booked-info .edit-booking-btn,
.booked-info .remove-booking-btn {
  background: none;
  border: none;
  font-size: 0.62rem;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
}

.booked-info .edit-booking-btn {
  color: #818cf8;
}

.booked-info .edit-booking-btn:hover {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.1);
}

.booked-info .remove-booking-btn {
  color: #f87171;
}

.booked-info .remove-booking-btn:hover {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
}

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #1a1a28;
  border: 1px solid #2a2a3e;
  border-radius: 14px;
  width: 400px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid #2a2a3e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e4e4e7;
}

.modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.3rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.modal-close:hover {
  background: #2a2a3e;
  color: #fff;
}

.modal-body {
  padding: 1.2rem 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a0a0c0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #e4e4e7;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Address lookup */
.address-lookup-wrap {
  display: flex;
  gap: 0.4rem;
}
.address-lookup-wrap input {
  flex: 1;
  min-width: 0;
}
.address-lookup-btn {
  padding: 0.5rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a0a0c0;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.address-lookup-btn:hover {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
}
.address-results {
  display: none;
  margin-top: 0.3rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}
.address-results.open {
  display: block;
}
.address-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  text-align: left;
  font-size: 0.78rem;
  color: #c0c0d8;
  background: none;
  border: none;
  border-bottom: 1px solid #1e1e2e;
  cursor: pointer;
  transition: background 0.1s;
}
.address-result-item:last-child {
  border-bottom: none;
}
.address-result-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #e4e4e7;
}
.address-result-name {
  line-height: 1.3;
}
.address-result-type {
  font-size: 0.65rem;
  color: #6b6b8a;
  text-transform: capitalize;
}
.address-loading,
.address-no-results {
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
  color: #6b6b8a;
  text-align: center;
}

.evt-photo-preview {
  position: relative;
  margin-top: 0.4rem;
}
.evt-photo-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2a2a3e;
}
.photo-remove-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}
.photo-remove-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row .form-group {
  flex: 1;
}

.modal-footer {
  padding: 0 1.4rem 1.2rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.modal-footer .btn-save {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.modal-footer .btn-save:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  transform: translateY(-1px);
}

.modal-footer .btn-cancel {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0a0c0;
  background: #222233;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.modal-footer .btn-cancel:hover {
  background: #2a2a3e;
  color: #e4e4e7;
}

.day-estimate {
  margin-top: 0.5rem;
  padding: 0.7rem;
  background: #1a1a28;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #a0a0c0;
  text-align: center;
}

.suggestion {
  font-size: 0.73rem;
  color: #9999c0;
  padding: 0.4rem 0;
  line-height: 1.4;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a24;
}

/* === COST SUMMARY === */
.day-cost-summary {
  margin: 0.8rem 0 0.3rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  text-align: center;
}

.cost-summary-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8888cc;
  margin-bottom: 0.25rem;
}

.cost-summary-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #a78bfa;
}

/* === DISABLED BUTTON STATE === */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === BOTTOM NAVBAR === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(18, 18, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #2a2a3e;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 2rem;
  color: #6b6b8a;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  transition: stroke 0.2s;
}

.bottom-nav-item:hover {
  color: #a0a0c0;
}

.bottom-nav-item.active {
  color: #818cf8;
}

.bottom-nav-item.active svg {
  stroke: #818cf8;
}

body {
  padding-bottom: 64px;
}

/* === MOBILE AGENDA VIEW === */
.mobile-agenda {
  display: none;
}

@media (max-width: 700px) {
  .weekday-header,
  .calendar-grid {
    display: none !important;
  }

  .mobile-agenda {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .sidebar {
    width: 100%;
    max-width: 100vw;
  }

  .sidebar-hero {
    height: 140px;
  }

  .item-thumb, .item-thumb-placeholder {
    width: 44px;
    height: 44px;
  }

  .modal {
    width: 95vw;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    max-width: 100%;
  }

  .wishlist-panel.open {
    width: 100%;
    right: 0;
  }
}

/* --- Agenda Card --- */
.agenda-card {
  background: #1a1a24;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}

.agenda-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.agenda-card.city-seoul::before { background: #ec4899; }
.agenda-card.city-tokyo::before { background: #6366f1; }
.agenda-card.city-osaka::before { background: #f97316; }
.agenda-card.city-kyoto::before { background: #10b981; }

.agenda-card.expanded {
  border-color: #6366f1;
}

.agenda-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.agenda-day-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  min-width: 2rem;
  text-align: center;
  line-height: 1;
}

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

.agenda-header-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.agenda-date-label {
  font-size: 0.7rem;
  color: #8888a8;
  font-weight: 500;
}

.agenda-city-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.agenda-city-tag.seoul { color: #ec4899; background: rgba(236,72,153,0.12); }
.agenda-city-tag.tokyo { color: #818cf8; background: rgba(99,102,241,0.12); }
.agenda-city-tag.osaka { color: #f97316; background: rgba(249,115,22,0.12); }
.agenda-city-tag.kyoto { color: #10b981; background: rgba(16,185,129,0.12); }

.agenda-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e4f0;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-chevron {
  color: #555570;
  font-size: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.agenda-card.expanded .agenda-chevron {
  transform: rotate(180deg);
}

/* --- Collapsed preview chips --- */
.agenda-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 0.8rem 0.6rem;
}

.agenda-card.expanded .agenda-preview {
  display: none;
}

.agenda-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(100, 100, 140, 0.1);
  color: #b0b0c8;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-preview-chip.st-booked { color: #4ade80; background: rgba(74,222,128,0.1); }
.agenda-preview-chip.st-needs { color: #f87171; background: rgba(248,113,113,0.1); }
.agenda-preview-chip.st-queue { color: #fbbf24; background: rgba(251,191,36,0.1); }

.agenda-preview-more {
  font-size: 0.6rem;
  color: #555570;
  padding: 0.15rem 0.3rem;
}

/* --- Expanded content --- */
.agenda-expanded {
  display: none;
  border-top: 1px solid #2a2a3e;
  padding: 0.6rem 0.8rem 0.8rem;
}

.agenda-card.expanded .agenda-expanded {
  display: block;
}

.agenda-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-event {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(100, 100, 140, 0.06);
  border-radius: 8px;
  border: 1px solid #222238;
}

.agenda-event-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b6b8a;
  min-width: 3rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.agenda-event-body {
  flex: 1;
  min-width: 0;
}

.agenda-event-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e4e4f0;
}

.agenda-event-desc {
  font-size: 0.72rem;
  color: #a0a0b8;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.agenda-event-meta {
  font-size: 0.65rem;
  color: #7a7a98;
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
}

.agenda-event-meta a {
  color: #818cf8;
  text-decoration: none;
}

.agenda-event-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.agenda-event-badge.booked { color: #4ade80; background: rgba(74,222,128,0.12); }
.agenda-event-badge.needs-booking { color: #f87171; background: rgba(248,113,113,0.12); }
.agenda-event-badge.queue-only { color: #fbbf24; background: rgba(251,191,36,0.12); }
.agenda-event-badge.walk-in { color: #666688; background: rgba(100,100,140,0.1); }

/* --- Agenda section titles --- */
.agenda-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8888cc;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agenda-section-title:first-child {
  margin-top: 0;
}

.agenda-tips {
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.agenda-tip {
  font-size: 0.72rem;
  color: #a5b4fc;
  line-height: 1.5;
  padding: 0.1rem 0;
}

.agenda-estimate {
  font-size: 0.72rem;
  color: #8888a8;
  margin-top: 0.5rem;
  text-align: right;
}

.agenda-no-events {
  font-size: 0.75rem;
  color: #555570;
  font-style: italic;
  padding: 0.3rem 0;
}

/* --- Agenda action buttons --- */
.agenda-event-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.agenda-event-actions button {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid rgba(100, 100, 140, 0.2);
  background: rgba(100, 100, 140, 0.08);
  color: #a0a0c0;
}

.agenda-event-actions button:hover {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.agenda-event-actions .book-btn-sm {
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}

/* --- Booked info in agenda --- */
.agenda-booked-info {
  margin-top: 0.3rem;
  padding: 0.35rem 0.5rem;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 6px;
  font-size: 0.68rem;
  color: #a0a0b8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
}

.agenda-booked-detail {
  white-space: nowrap;
}

/* --- Needs-Booking & Queue pills on calendar --- */
.day-needs-pill {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}
.day-needs-pill .day-booked-name {
  color: #f87171;
}
.day-queue-pill {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}
.day-queue-pill .day-booked-name {
  color: #fbbf24;
}

/* --- Wishlist Toggle Button --- */
.wishlist-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem 0.25rem;
}

.wishlist-toggle-bar button,
.wishlist-toggle-bar a {
  text-decoration: none;
}

.map-toggle-btn {
  background: linear-gradient(135deg, #2a3a5c, #1a2a45);
  color: #a0c0e0;
  border: 1px solid #3a4a6e;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.map-toggle-btn:hover {
  background: linear-gradient(135deg, #3a4a6e, #2a3a58);
  border-color: #5a6a90;
  color: #c0e0ff;
}

.wishlist-toggle-btn {
  background: linear-gradient(135deg, #3b3b5c, #2a2a45);
  color: #c4c4e0;
  border: 1px solid #3f3f5e;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wishlist-toggle-btn:hover {
  background: linear-gradient(135deg, #4a4a6e, #3a3a58);
  border-color: #5a5a80;
  color: #e4e4f0;
}

.wishlist-count {
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-weight: 700;
  min-width: 1.2rem;
  text-align: center;
}

.wishlist-count:empty {
  display: none;
}

/* --- Wishlist Panel --- */
.wishlist-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  height: 100vh;
  background: #18182a;
  border-left: 1px solid #2a2a3e;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}

.wishlist-panel.open {
  right: 0;
}

.wishlist-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #2a2a3e;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.wishlist-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e4e4f0;
  flex: 1;
}

.wishlist-add-btn {
  background: #6366f1;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.wishlist-add-btn:hover {
  background: #818cf8;
}

.wishlist-header .close-btn {
  position: static;
  font-size: 1.5rem;
  line-height: 1;
}

/* --- Wishlist Filters --- */
.wishlist-filters {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid #222238;
}

.wl-filter {
  background: transparent;
  color: #8888a8;
  border: 1px solid #333350;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.wl-filter:hover {
  color: #c4c4e0;
  border-color: #5a5a80;
}

.wl-filter.active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

/* --- Wishlist Items --- */
.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
}

.wishlist-empty {
  text-align: center;
  color: #6b6b8a;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.wishlist-item {
  background: #1e1e35;
  border: 1px solid #2a2a45;
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s;
}

.wishlist-item:hover {
  border-color: #3f3f5e;
}

.wl-item-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wl-item-cat {
  font-size: 1rem;
  flex-shrink: 0;
}

.wl-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e4e4f0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-item-rec {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.wl-item-actions {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

.wl-edit-btn, .wl-del-btn {
  background: transparent;
  border: none;
  color: #6b6b8a;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.wl-edit-btn:hover { color: #818cf8; background: rgba(99,102,241,0.1); }
.wl-del-btn:hover { color: #f87171; background: rgba(239,68,68,0.1); }

.wl-item-desc {
  color: #a0a0b8;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.wl-item-details {
  color: #7a7a98;
  font-size: 0.72rem;
  margin-top: 0.3rem;
}

.wl-item-details a {
  color: #818cf8;
  text-decoration: none;
}

.wl-item-link {
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

.wl-item-link a {
  color: #6366f1;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.wl-item-notes {
  color: #8888a8;
  font-size: 0.72rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* --- Recommend Select Wrapper --- */
.recommend-select-wrapper {
  display: flex;
  gap: 0.3rem;
}

.recommend-select-wrapper select {
  flex: 1;
}

.add-name-btn {
  background: #3b3b5c;
  color: #a5b4fc;
  border: 1px solid #4a4a6e;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: auto;
}

.add-name-btn:hover {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

/* --- Mini Timeline on Calendar Cells --- */
.day-mini-timeline {
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.mini-tl-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.55rem;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
}

.mini-tl-time {
  color: #6b6b8a;
  font-weight: 600;
  flex-shrink: 0;
}

.mini-tl-name {
  color: #b0b0c8;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-tl-name.tl-booked {
  color: #4ade80;
}

.mini-tl-name.tl-needs {
  color: #f87171;
}

.mini-tl-name.tl-queue {
  color: #fbbf24;
}

.mini-tl-more {
  font-size: 0.5rem;
  color: #555570;
  font-style: italic;
}

.day-unsched-badge {
  margin-top: auto;
  font-size: 0.45rem;
  color: #6b6b8a;
  background: rgba(100, 100, 140, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  text-align: center;
  align-self: flex-start;
}

/* --- Unassign Button (in sidebar) --- */
.item-actions-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.move-day-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #a0a0c0;
  background: rgba(100, 100, 140, 0.08);
  border: 1px solid rgba(100, 100, 140, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.move-day-btn:hover {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Move-event banner */
#moveBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, #312e81, #4338ca);
  color: #e0e7ff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.4);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

#moveBanner.open {
  transform: translateY(0);
}

#moveBanner strong {
  color: #fff;
}

#moveBanner button {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

#moveBanner button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Calendar move-mode */
.calendar-grid.move-mode .day-cell.trip-day {
  cursor: pointer;
  transition: all 0.15s;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.calendar-grid.move-mode .day-cell.trip-day:hover {
  outline-color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  transform: scale(1.03);
}

.unassign-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #8888a8;
  background: rgba(100, 100, 140, 0.08);
  border: 1px solid rgba(100, 100, 140, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.unassign-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.edit-event-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #a0a0c0;
  background: rgba(100, 100, 140, 0.08);
  border: 1px solid rgba(100, 100, 140, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.edit-event-btn:hover {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
}

/* --- Assign Row (in unscheduled panel) --- */
.wl-assign-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}

.wl-assign-select {
  flex: 1;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #c4c4e0;
  font-family: inherit;
}

.wl-assign-select:focus {
  outline: none;
  border-color: #6366f1;
}

.wl-assign-time {
  width: 80px;
  padding: 0.3rem 0.4rem;
  font-size: 0.72rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #c4c4e0;
  font-family: inherit;
  flex-shrink: 0;
}

.wl-assign-time:focus {
  outline: none;
  border-color: #6366f1;
}

.item-schedule-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.item-schedule-label {
  font-size: 0.68rem;
  color: #818cf8;
  white-space: nowrap;
}

.item-schedule-input {
  padding: 0.2rem 0.4rem;
  font-size: 0.72rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #e4e4e7;
  font-family: inherit;
  width: 90px;
}

.item-schedule-input:focus {
  outline: none;
  border-color: #6366f1;
}

.item-schedule-clear {
  background: none;
  border: none;
  color: #f87171;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
  border-radius: 4px;
}

.item-schedule-clear:hover {
  background: rgba(239, 68, 68, 0.1);
}

.wl-assign-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: #6366f1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.wl-assign-btn:hover {
  background: #818cf8;
}

/* --- City Tag (in unscheduled panel) --- */
.wl-city-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.wl-city-tag.seoul { color: #ec4899; background: rgba(236,72,153,0.12); }
.wl-city-tag.tokyo { color: #818cf8; background: rgba(99,102,241,0.12); }
.wl-city-tag.osaka { color: #f97316; background: rgba(249,115,22,0.12); }
.wl-city-tag.kyoto { color: #10b981; background: rgba(16,185,129,0.12); }

/* --- Status icons in unscheduled --- */
.wl-item-status {
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* --- Recommended By line in sidebar --- */
.item-rec-by {
  font-size: 0.66rem;
  color: #a5b4fc;
  margin-top: 0.2rem;
}

/* --- Form selects --- */
.form-group select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  background: #12121a;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #e4e4e7;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group select:focus {
  outline: none;
  border-color: #6366f1;
}

/* --- Add Event global button --- */
.add-event-global-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #fff !important;
  border-color: #6366f1 !important;
}

.add-event-global-btn:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1) !important;
  border-color: #818cf8 !important;
}

/* --- Event modal wider --- */
#eventModalOverlay .modal {
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

/* --- Close button in unscheduled panel --- */
.wishlist-header .close-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-header .close-btn:hover {
  background: #2a2a3e;
  color: #fff;
}
