/* ===== components.css ===== */
/* Reusable UI pieces for both pages */

/* Typography helpers */
.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* Card */
.card{
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 14px 0;
}

/* Buttons (common) */
.primary{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 0;
  background: #111;
  color: #fff;
}
.primary:hover{ opacity: 0.92; }

.danger{
  border: 1px solid #ddd;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

/* Optional secondary (plan.js에서 쓰면 안전하게 받쳐줌) */
.secondary{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: rgba(0,0,0,0.85);
}
.secondary:hover{ background: rgba(0,0,0,0.03); }

/* Top title row + home icon */
.title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.title-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.home-icon svg{ fill: rgba(0,0,0,0.85); }
.home-icon:hover{ background: rgba(255,255,255,0.25); }

/* Chips (base shape only; colors are page overrides) */
.chip-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 0;
}
.chip{
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.chip:hover{ background: rgba(0,0,0,0.04); }
.chip.active{ cursor: default; }

/* Clickable result list base (Google/Hotel etc.) */
.suggest-list{
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.suggest-item{
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background .15s ease, transform .08s ease;
}
.suggest-item:last-child{ border-bottom: none; }
.suggest-item:hover{
  background: #f9fafb;
  transform: translateY(-1px);
}
.suggest-item .name{ font-weight: 600; }
.suggest-item .addr{ font-size: 12px; color: rgba(0,0,0,0.60); }

/* Misc */
.selected-box{
  border: 1px dashed #ddd;
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 6px;
  background: #fcfcfc;
}

.list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  padding: 10px;
}
.item-actions{ display: flex; align-items: center; }

.pre{
  background: #0b0b0b;
  color: #f2f2f2;
  padding: 12px;
  border-radius: var(--radius-md);
  overflow: auto;
}