/* add_property.css - all classes prefixed where appropriate */
/* container/layout */
.milan_property_container {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 6px 30px rgba(8, 8, 12, 0.06);
  margin: 40px auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Sidebar */
.milan_property_sidebar {
  flex: 1;
  min-width: 260px;
  padding: 28px 22px;
  background: #f7f7fb;
  border-right: 1px solid #eee;
}

.milan_property_mainAdd {
  flex: 2;
  padding: 28px 36px;
}

/* headings */
.milan_property_sidebar h2 { margin: 0 0 6px; font-size: 20px; }
.milan_property_sidebar p.lead { margin: 0 0 18px; color:#6b7280; font-size:14px; }
.progress { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; margin-bottom:20px; }
.progress-bar { width:20%; height:100%; background:#34d399; transition: width .28s ease; }

.steps { list-style:none; padding:0; margin:12px 0 0; }
.steps li { display:flex; align-items:center; margin-bottom:18px; color:#111827; font-size:15px; }
.circle { width:22px; height:22px; border-radius:50%; border:2px solid #d8d8e0; margin-right:10px; background:#fff; display:flex; align-items:center; justify-content:center; }
.active .circle { background:#ede9fe; border-color:#d8b4fe; }
.completed .circle { background:#34d399; border-color:#34d399; }
.status { margin-left:auto; background:#eee; color:#6b7280; border-radius:999px; padding:4px 10px; font-size:12px; }
.completed .status { background:#d1fae5; color:#065f46; }

.help-box { background:#fff; margin-top:18px; padding:12px; border-radius:10px; border:1px solid #f0f0f3; font-size:14px; }
.help-box a { color:#16a34a; text-decoration:none; font-weight:600; }

/* main headings */
.mainAdd h3 { margin:0 0 10px; font-size:22px; }
.mainAdd h4 { margin-bottom:15px; }

/* form items */
.option-group { margin-bottom:18px; }
.option-group label { display:block; margin-bottom:8px; color:#374151; font-weight:600; font-size:14px; }
.options { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.btn-option { border:1px solid #e6e7ee; padding:8px 16px; border-radius:10px; background:#fff; cursor:pointer; user-select:none; }
.btn-option.active { background:#ede9fe; border-color:#d8b4fe; color:#2521a8; }

.milan_property_input { width:100%; padding:10px; border-radius:10px; border:1px solid #e6e7ee; font-size:14px; box-sizing:border-box; }

.checkbox-group { display:flex; flex-wrap:wrap; gap:12px; }
.checkbox-group label { display:flex; align-items:center; gap:8px; font-size:14px; color:#374151; }

.next-btn { width:100%; padding:12px 16px; border-radius:10px; background:#10b981; color:#fff; border:0; font-size:16px; cursor:pointer; margin-top:6px; }
.next-btn.secondary { background:#2563eb; }
.next-btn:disabled { opacity:0.6; cursor:not-allowed; }

/* Hide sections by default; JS will control visibility */
#milan_property_step2, #step2, #step3, #step4, #step5, #pgFields, #commercialFields, #residentialDetails, #rentDetails { }

/* preview grid */
.thumb { width:120px; height:120px; border-radius:10px; overflow:hidden; border:1px solid #e6e7ee; position:relative; }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.thumb .remove { position:absolute; top:6px; right:6px; background:rgba(0,0,0,.55); color:#fff; border:0; width:26px; height:26px; border-radius:50%; cursor:pointer; }

/* review list */
.review-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px dashed #efefef; }

/* responsive */
@media (max-width:880px) {
  .milan_property_container { flex-direction:column; margin: 0px; }
  .milan_property_sidebar { order:1; border-right:none; border-bottom:1px solid #eee; }
  .steps, .help-box { display:none; }
  .milan_property_mainAdd { order:2; }
}

/* errors */
.input-error { border-color:#ef4444 !important; background:#fef2f2; }
.error-message { color:#ef4444; font-size:13px; margin-top:4px; display:block; }

/* image upload */
.image-upload-box { border:2px dashed #cbd5e1; padding:32px; text-align:center; border-radius:12px; cursor:pointer; background:#ffffff; margin-bottom:14px; }
.image-upload-box i { font-size:36px; margin-bottom:12px; color:#64748b; }
.preview-wrap { display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; }
.preview-wrap .thumb { width:110px; height:90px; position:relative; }
.preview-wrap img { width:100%; height:100%; object-fit:cover; border-radius:8px; }

/* small utilities */
.milan_hidden { display:none !important; }
