/* add-property.css — tabbed property creation form */

.form-tabs-bar {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
}
.form-tabs-bar::-webkit-scrollbar { display: none; }

.form-tab-btn {
  min-height: 48px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-tab-btn i { font-size: 0.8rem; }
.form-tab-btn:hover { color: var(--ink); }
.form-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.form-tab-btn.done   { color: var(--success); }
.form-tab-btn.done::after { content:'✓'; font-size:.7rem; margin-left:3px; }

.form-tab-pane { display: none; padding: 2rem; }
.form-tab-pane.active { display: block; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--hairline);
  background: var(--page-bg-2);
}

/* Make the category → type dependency clear at a glance. */
.field-order-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.field-order-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}

.field-order-hint {
  min-height: 1rem;
}

.field-order-hint.is-ready {
  color: var(--success);
  font-weight: 600;
}

.form-field select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  background: var(--page-bg);
}

/* Image upload area */
.image-drop-zone {
  border: 2px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--page-bg-2);
}

.image-drop-zone:hover,
.image-drop-zone.drag-over {
  border-color: var(--ink);
  background: rgba(31,63,124,0.04);
}

.image-drop-zone i { font-size: 2rem; color: var(--ink-muted); margin-bottom: 0.5rem; display: block; }
.image-drop-zone p { font-size: 0.85rem; color: var(--ink-muted); }
.image-drop-zone strong { color: var(--ink); }

.image-input { display: none; }

.image-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--page-bg);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-img {
  position: absolute;
  top: 4px; right: 4px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(204,34,61,0.85);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.image-preview-item .cover-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(31,63,124,0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 3px;
  letter-spacing: 0.06em;
}

/* Submit state */
.submit-banner {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: none;
}

.submit-banner.visible { display: block; }
.submit-banner h3 { color: var(--success); margin-bottom: 0.5rem; }
.submit-banner p  { font-size: .88rem; color: var(--ink-muted); }

@media (max-width: 640px) {
  .form-tab-btn { padding: 12px 14px; font-size: 0.78rem; }
  .form-tab-pane { padding: 1.1rem; }
  .form-nav { padding: 1rem; flex-wrap: wrap; gap: 0.6rem; }
  .image-drop-zone { padding: 1.5rem 1rem; }
}
