/* Form đăng/sửa tin gọn hơn (#152) — chỉ trang template/user_dashboard_submit.php */
.mgbds-form .mgbds-hidden { display: none !important; }
.mgbds-form #location h2.mgbds-h2-map { display: none; }

/* Loại BĐS: nút chọn một */
.mgbds-type-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mgbds-type-btns button { flex: 1 1 140px; min-height: 48px; padding: 0 14px; border: 2px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font-size: 16px; font-weight: 600; cursor: pointer; }
.mgbds-type-btns button.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }

/* Thông tin thêm (thu gọn) */
.mgbds-more { margin: 16px 0; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; overflow: hidden; }
.mgbds-more-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: #f8fafc; color: #0f172a; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.mgbds-more-toggle .s { color: #2563eb; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mgbds-more-body { padding: 8px 12px 12px; }
.mgbds-more-body .dashboard-content-block-wrap { margin: 0; }
.mgbds-more-body h2 { font-size: 15px; margin: 12px 0 6px; }

/* Dán vị trí */
.mgbds-paste input.form-control { min-height: 48px; font-size: 16px; }
.mgbds-paste-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mgbds-paste-btns .btn { min-height: 44px; flex: 1 1 160px; }
.mgbds-paste-msg { margin: 8px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mgbds-paste-msg.ok { color: #166534; }
.mgbds-paste-msg.bad { color: #b91c1c; font-weight: 600; }
.mgbds-paste-msg .mgbds-copy { min-height: 44px; padding: 0 14px; border: 1px solid #94a3b8; background: #fff; color: #0f172a; border-radius: 8px; }
.mgbds-paste-msg .w { flex-basis: 100%; color: #92400e; font-weight: 600; }
.mgbds-paste-msg .h { flex-basis: 100%; color: #475569; }

/* Ảnh: một nút lớn */
.mgbds-form #houzez_gallery_dragDrop .upload-icon { display: none; }
.mgbds-form #houzez_gallery_dragDrop { padding: 16px; text-align: center; }
.mgbds-form #select_gallery_images { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; font-size: 18px; font-weight: 700; }
.mgbds-media-hint { color: #475569; font-size: 14px; margin: 0 0 8px; }

@media (max-width: 767px) {
    .mgbds-form .dashboard-content-block { padding: 14px 12px; }
    .mgbds-form textarea.mgbds-plain-desc { min-height: 140px; font-size: 16px; }
}

.mgbds-ward-hint { margin-top: 8px; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 8px; background: #f8fafc; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #0f172a; }
.mgbds-ward-hint[hidden] { display: none; }
.mgbds-ward-hint .mgbds-ward-use { min-height: 44px; padding: 0 16px; }

/* #174: thứ tự mới của khối Vị trí + Nhu cầu đầu form */
.mgbds-need { margin-bottom: 4px; }
.mgbds-map-block { margin-bottom: 8px; }
.mgbds-map-hint { margin: 0 0 8px; font-size: 14px; color: #0f172a; }
.mgbds-map-block .dashboard-map-field { margin-bottom: 8px; }
.mgbds-here .btn { width: 100%; min-height: 48px; margin-bottom: 14px; }
.mgbds-use:disabled { opacity: .45; cursor: not-allowed; }
/* #233: bản đồ form Tạo/Sửa tin RỘNG như Google Maps — tràn ngang khối (bù đệm của .dashboard-content-block: đo 31px máy tính / 13px điện thoại gồm viền), cao ~60vh (≥360px) trên điện thoại, 480px trên máy tính.
   Houzez cố định .dashboard-map-field .map-wrap { height: 300px }; ghi đè ở đây. Leaflet tự tính lại kích thước khi cửa sổ đổi/xoay màn. */
.mgbds-map-block .dashboard-map-field { margin-left: -31px; margin-right: -31px; }
.mgbds-map-block .dashboard-map-field .map-wrap { height: 480px; }
@media (max-width: 767.98px) {
    .mgbds-map-block .dashboard-map-field { margin-left: -13px; margin-right: -13px; }
    .mgbds-map-block .dashboard-map-field .map-wrap { height: max(360px, 60vh); }
}
