/* ---------------- Shared ---------------- */
.lm-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.lm-btn-primary { background: #1554d1; color: #fff; }
.lm-btn-primary:hover { background: #0f3fa8; color: #fff; }
.lm-btn-outline { background: #fff; color: #1554d1; border: 1px solid #1554d1; }
.lm-btn-whatsapp { background: #25d366; color: #fff; }
.lm-btn-lg { padding: 13px 26px; font-size: 15px; }
.lm-empty { color: #888; padding: 30px 0; text-align: center; }
.lm-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; background: #eef3ff; }
.lm-notice-success { background: #e3f7e6; color: #1c7a35; }
.lm-card-logo-placeholder {
	width: 100%; height: 100%; min-height: 120px;
	display: flex; align-items: center; justify-content: center;
	font-size: 32px; background: #f4f4f4; border-radius: 8px;
}

/* ---------------- Submission form ---------------- */
.lm-submit-form-wrap { max-width: 720px; margin: 0 auto; }
.lm-field { margin-bottom: 16px; }
.lm-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.lm-field input[type="text"],
.lm-field input[type="number"],
.lm-field select,
.lm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}
.lm-field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.lm-field-row .lm-field, .lm-field-row > input { flex: 1; min-width: 140px; }
.lm-field-checkbox { display: flex; align-items: flex-end; padding-bottom: 10px; }
.lm-checkbox-group { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 400; }
.lm-checkbox-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; }

.lm-phone-field { margin-top: 12px; }
.lm-phone-field-label { font-size: 12.5px !important; font-weight: 600 !important; color: #555; margin-bottom: 4px !important; }
.lm-phone-field-row { display: flex; gap: 8px; }
.lm-phone-country { flex: 0 0 190px; }
.lm-phone-number { flex: 1; }

.lm-hint { font-size: 12px; color: #888; margin: -2px 0 8px; }
.lm-map-picker { height: 300px; border-radius: 10px; overflow: hidden; border: 1px solid #ddd; margin-bottom: 8px; }

.lm-gallery-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lm-gallery-item { position: relative; width: 80px; height: 80px; }
.lm-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.lm-gallery-remove {
	position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
	background: #e53935; color: #fff; border: none; cursor: pointer; line-height: 1;
}

/* ---------------- Dashboard (My Listings) ---------------- */
.lm-dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.lm-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lm-dash-card { border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; }
.lm-dash-card-thumb { position: relative; display: block; height: 130px; background: #f7f7f7; }
.lm-dash-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lm-dash-card-body { padding: 12px; }
.lm-dash-card-title { font-weight: 700; font-size: 14px !important; margin-bottom: 2px; color: #222 !important; line-height: 1.4 !important; display: block !important; opacity: 1 !important; }
.lm-dash-card-price { color: #1554d1 !important; font-weight: 700; margin-bottom: 8px; font-size: 15px !important; display: block !important; opacity: 1 !important; }
.lm-dash-card-actions { display: flex; gap: 10px; font-size: 12px !important; flex-wrap: wrap; }
.lm-dash-card-actions a { text-decoration: none; color: #1554d1 !important; }
.lm-danger-link { color: #e53935 !important; }

.lm-sold-badge {
	position: absolute; top: 8px; left: 8px; background: #222; color: #fff;
	font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.lm-sold-badge-lg { font-size: 14px; padding: 6px 14px; }
.lm-card-sold { opacity: 0.7; }

/* ---------------- Browse / search ---------------- */
.lm-filters { margin-bottom: 22px; background: #f7f9fc; padding: 16px; border-radius: 10px; }
.lm-filters-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lm-filters-row:last-child { margin-bottom: 0; }
.lm-filters input, .lm-filters select { padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13.5px; }
.lm-filter-wide { flex: 2; min-width: 200px; }
.lm-filter-narrow { width: 90px; }
.lm-filters-row-secondary { align-items: center; font-size: 13px; }
.lm-filters-row-secondary label { display: flex; align-items: center; gap: 5px; }

.lm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.lm-card { display: block; border: 1px solid #eee; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s; }
.lm-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.lm-card-thumb { position: relative; height: 150px; background: #f7f7f7; }
.lm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lm-card-body { padding: 12px; }
.lm-card-price { font-size: 18px; font-weight: 800; color: #111; }
.lm-card-title { font-size: 13.5px; margin: 2px 0 6px; color: #333; }
.lm-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.lm-badge { font-size: 11px; font-weight: 600; background: #eef3ff; color: #1554d1; padding: 2px 8px; border-radius: 10px; }
.lm-badge-outline { background: #fff; border: 1px solid #ddd; color: #666; }
.lm-card-seller { font-size: 12px; color: #888; }
.lm-card-location, .lm-card-date { font-size: 11.5px; color: #999; }

.lm-icon-btn {
	background: #fff; border: 1px solid #ddd; border-radius: 8px;
	padding: 8px 14px; font-size: 13px; cursor: pointer;
}

.lm-pagination { margin-top: 20px; display: flex; gap: 6px; }

/* ---------------- Single listing page ---------------- */
.lm-single-wrap { max-width: 1100px; margin: 30px auto; padding: 0 16px; display: flex; gap: 32px; flex-wrap: wrap; }
.lm-single-gallery { flex: 1.2; min-width: 300px; }
.lm-single-main-photo { position: relative; border-radius: 12px; overflow: hidden; background: #f7f7f7; min-height: 300px; }
.lm-single-main-photo img { width: 100%; height: auto; display: block; }

.lm-slider-main { position: relative; border-radius: 12px; overflow: hidden; background: #f7f7f7; min-height: 300px; }
.lm-slider-slide { display: none; }
.lm-slider-slide.lm-slide-active { display: block; }
.lm-slider-slide img { width: 100%; height: auto; display: block; }
.lm-slider-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,.85); border: none; border-radius: 50%;
	width: 38px; height: 38px; font-size: 22px; cursor: pointer; line-height: 1;
}
.lm-slider-prev { left: 10px; }
.lm-slider-next { right: 10px; }
.lm-thumb-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lm-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; cursor: pointer; background: none; overflow: hidden; width: 70px; height: 70px; }
.lm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-thumb-active { border-color: #1554d1; }
.lm-single-video { margin-top: 14px; }
.lm-single-video iframe { width: 100%; border-radius: 10px; }
.lm-single-map { height: 220px; border-radius: 10px; overflow: hidden; margin-top: 14px; border: 1px solid #eee; }

.lm-single-info { flex: 1; min-width: 280px; }
.lm-single-price { font-size: 30px; font-weight: 800; }
.lm-single-title { font-size: 20px; margin: 4px 0 12px; }
.lm-single-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.lm-single-location { color: #666; font-size: 13.5px; margin-bottom: 8px; }
.lm-single-seller { font-size: 14px; margin-bottom: 18px; }
.lm-single-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lm-single-secondary-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.lm-single-phone { font-size: 14px; margin-bottom: 14px; }
.lm-single-description { margin-top: 20px; border-top: 1px solid #eee; padding-top: 16px; }
.lm-single-description h2 { font-size: 16px; margin-bottom: 8px; }

.lm-archive-wrap { max-width: 1100px; margin: 30px auto; padding: 0 16px; }
.lm-archive-title { margin-bottom: 20px; }

@media (max-width: 640px) {
	.lm-single-wrap { flex-direction: column; }
}
