/* ── CREATE LISTING PAGE ── */
.create-page { padding-top: 32px; }

.create-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.create-back {
  width: 36px; height: 36px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; text-decoration: none;
  transition: border-color .15s, color .15s;
  flex-shrink: 0; margin-top: 3px;
}
.create-back:hover { border-color: #a5b4fc; color: #4338ca; }
.create-back span  { font-size: 1.1rem; }
.create-title { font-size: 1.4rem; font-weight: 700; color: #1e2139; margin-bottom: 4px; }
.create-sub   { font-size: .84rem; color: #94a3b8; }

/* create-alert → .flash.flash-danger */

.create-guest-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1e40af; font-size: .83rem;
  padding: 13px 16px; border-radius: 12px;
  margin-bottom: 20px; line-height: 1.6;
}
.create-guest-banner span { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.create-guest-banner a { color: #2563eb; font-weight: 600; text-decoration: none; }
.create-guest-banner a:hover { text-decoration: underline; }

.draft-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 12px; padding: 16px 20px;
  margin-bottom: 20px;
}
.draft-discard {
  background: none; border: none;
  color: #16a34a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  flex-shrink: 0; margin-top: -2px;
  transition: background .13s, color .13s;
}
.draft-discard:hover { background: #dcfce7; color: #14532d; }
.draft-discard span  { font-size: 1.1rem; }

.create-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px; align-items: start; margin-bottom: 60px;
}
.create-main    { display: flex; flex-direction: column; gap: 20px; }
.create-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* create-card → .card  |  create-card-title → .card-title */

/* Fields */
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cf-field:last-child { margin-bottom: 0; }

.cf-field label {
  font-size: .74rem; font-weight: 700;
  color: #8a8ea8; letter-spacing: .05em; text-transform: uppercase;
}
.cf-req      { color: #ef4444; }
.cf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #c4c8d8; }
.cf-hint     { font-size: .72rem; color: #b0b8cc; margin-top: -2px; }

.cf-field input,
.cf-field textarea,
.cf-field select {
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px;
  font-family: inherit; font-size: .88rem; color: #1e2139;
  padding: 11px 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none; width: 100%;
}
.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #c4c8d8; }
.cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.cf-counter { font-size: .7rem; color: #b0b8cc; align-self: flex-end; margin-top: -4px; }

.cf-input-icon-wrap {
  display: flex; align-items: center;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.cf-input-icon-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.cf-input-icon-wrap > span { padding: 0 11px; color: #c4c8d8; font-size: 1rem; flex-shrink: 0; }
.cf-input-icon-wrap input {
  flex: 1; background: none; border: none; outline: none;
  padding: 11px 14px 11px 0;
  font-family: inherit; font-size: .88rem; color: #1e2139;
}
.cf-input-icon-wrap input::placeholder { color: #c4c8d8; }

.cf-select-wrap {
  display: flex; align-items: center;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px; position: relative;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.cf-select-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.cf-select-wrap > .material-icons-round:first-child { padding: 0 11px; color: #c4c8d8; font-size: 1rem; flex-shrink: 0; pointer-events: none; }
.cf-select-caret { padding: 0 10px; color: #c4c8d8; pointer-events: none; flex-shrink: 0; }
.cf-select-wrap select {
  flex: 1; background: none; border: none; outline: none;
  padding: 11px 0; font-family: inherit; font-size: .88rem; color: #1e2139;
  appearance: none; cursor: pointer;
}
.cf-select-wrap select option { background: #fff; }

.cf-emoji-row   { display: flex; flex-direction: column; gap: 8px; }
.cf-emoji-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-emoji-pick {
  width: 34px; height: 34px;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 8px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .13s;
}
.cf-emoji-pick:hover { background: #eef2ff; border-color: #a5b4fc; }
.cf-emoji-pick.on    { background: #eef2ff; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }

.cf-upload-area {
  border: 2px dashed #e2e5ef; border-radius: 12px;
  overflow: hidden; cursor: pointer;
  transition: border-color .18s, background .18s;
  position: relative; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.cf-upload-area:hover,
.cf-upload-area.dragover { border-color: #6366f1; background: #fafafe; }
.cf-upload-area.dragover { background: #eef2ff; }
.cf-upload-area input[type="file"]:not([style*="display:none"]) { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.cf-upload-placeholder {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 24px; text-align: center; pointer-events: none;
}
.cf-upload-icon {
  width: 56px; height: 56px; background: #eef2ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.cf-upload-icon span    { font-size: 1.6rem; color: #6366f1; }
.cf-upload-label        { font-size: .88rem; font-weight: 500; color: #475569; margin-bottom: 5px; }
.cf-upload-label span   { color: #6366f1; font-weight: 700; }
.cf-upload-hint         { font-size: .75rem; color: #94a3b8; }

.cf-upload-preview {
  width: 100%; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.cf-upload-preview img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.cf-remove-img {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s; z-index: 2;
}
.cf-remove-img:hover { background: #ef4444; }
.cf-remove-img span  { font-size: .95rem; }
.cf-preview-info {
  width: 100%; padding: 8px 14px;
  font-size: .72rem; color: #94a3b8;
  background: #f8f9fc; border-top: 1px solid #e2e5ef;
}

/* ── Multi-image grid (create) ── */
.cf-upload-area-sm { min-height: 100px; }
.cf-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px; margin-top: 10px;
}
.cf-multi-card {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 2px solid #e2e5ef; aspect-ratio: 1;
  background: #f8f9fc;
}
.cf-multi-card.cf-multi-primary { border-color: #6366f1; }
.cf-multi-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-multi-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(99,102,241,.85); color: #fff;
  font-size: .6rem; font-weight: 700; text-align: center;
  padding: 3px 0; text-transform: uppercase; letter-spacing: .05em;
}
.cf-multi-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s; z-index: 2;
}
.cf-multi-remove:hover { background: #ef4444; }
.cf-multi-remove span  { font-size: .78rem; }

/* ── Gallery images (edit) ── */
.cf-gal-existing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; margin-bottom: 4px;
}
.cf-gal-item {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 2px solid #e2e5ef; aspect-ratio: 1;
}
.cf-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-gal-del {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; cursor: pointer;
  transition: background .15s;
}
.cf-gal-del input { display: none; }
.cf-gal-del span  { font-size: 1.3rem; color: transparent; transition: color .15s; }
.cf-gal-del:hover { background: rgba(239,68,68,.65); }
.cf-gal-del:hover span { color: #fff; }
.cf-gal-item:has(input:checked) { border-color: #ef4444; }
.cf-gal-item:has(input:checked) .cf-gal-del { background: rgba(239,68,68,.55); }
.cf-gal-item:has(input:checked) .cf-gal-del span { color: #fff; }

.create-submit-card { border-color: #e2e5ef; }
/* cf-submit-btn → .btn.btn-primary.btn-full  |  cf-cancel-btn kept (unique link style) */
.cf-cancel-btn {
  display: block; text-align: center;
  font-size: .82rem; color: #94a3b8;
  text-decoration: none; padding: 6px; transition: color .13s;
}
.cf-cancel-btn:hover { color: #475569; }
.cf-submit-note {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .74rem; color: #b0b8cc; line-height: 1.5;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9;
}
.cf-submit-note span { font-size: .88rem; flex-shrink: 0; color: #c4c8d8; }

@media (max-width: 768px) {
  .create-grid { grid-template-columns: 1fr; }
}
