/* =========================================================
   RON Listing Property — Front-end styles
   ========================================================= */
:root {
	--ron-primary: #2e7d32;
	--ron-primary-dark: #1b5e20;
	--ron-accent: #1a73e8;
	--ron-border: #d8dde3;
	--ron-bg-soft: #f4f6f8;
	--ron-text: #2b2f33;
	--ron-text-muted: #6b7280;
	--ron-danger: #c0392b;
	--ron-radius: 10px;
}

.ron-lp-wrap { max-width: 900px; margin: 0 auto; font-family: inherit; color: var(--ron-text); }
.ron-lp-wrap * { box-sizing: border-box; }
.ron-lp-page-title { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }

/* ---------- Generic field styling ---------- */
.ron-lp-section{ border: 1px solid var(--ron-border); padding: 1.75rem 1.75rem 0; margin: 1.75rem 0;background:#f1f1f1; }
.ron-lp-section.ron-lp-media-section{ border-top: 1px solid var(--ron-border); padding: 0; }

.ron-lp-field { margin-bottom: 1.25rem; }
.ron-lp-field label,
.ron-lp-field > label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.ron-lp-field .req { color: var(--ron-danger); }
.ron-lp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .ron-lp-field-row { grid-template-columns: 1fr; } }

.ron-lp-form input[type="text"],
.ron-lp-form input[type="email"],
.ron-lp-form input[type="password"],
.ron-lp-form input[type="number"],
.ron-lp-form input[type="date"],
.ron-lp-form input[type="url"],
.ron-lp-form select,
.ron-lp-form textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--ron-border);
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	color: var(--ron-text);
}
.ron-lp-form textarea { resize: vertical; }
.ron-lp-form input:focus, .ron-lp-form select:focus, .ron-lp-form textarea:focus {
	outline: none; border-color: var(--ron-accent); box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.ron-lp-size-input-group { display: flex; gap: 0.5rem; }
.ron-lp-size-input-group select { max-width: 130px; }

.ron-lp-checkbox-row, .ron-lp-radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; padding-top: 0.4rem; }
.ron-lp-checkbox, .ron-lp-radio { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; cursor: pointer; }
.ron-lp-checkbox input, .ron-lp-radio input { width: 17px; height: 17px; }

.ron-lp-submit-btn {
	background: var(--ron-primary); color: #fff; border: none; border-radius: 999px;
	padding: 0.75rem 2.2rem; font-weight: 700; font-size: 1rem; cursor: pointer;
	transition: background 0.15s ease;
}
.ron-lp-submit-btn:hover { background: var(--ron-primary-dark); }
.ron-lp-submit-btn.ron-lp-full-width { width: 100%; }
.ron-lp-submit-row { text-align: center; padding-top: 1.5rem; }
.ron-lp-cancel-btn { background: #eee; color: #333; border: none; border-radius: 999px; padding: 0.75rem 1.8rem; font-weight: 600; cursor: pointer; }

.ron-lp-notice { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.ron-lp-notice-rejected { background: #fdecea; border-color: #f5c2bd; }
.ron-lp-notice-success { background: #e8f5e9; border-color: #a5d6a7; }
.ron-lp-form-errors { background: #fdecea; border: 1px solid #f5c2bd; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; color: var(--ron-danger); }
.ron-lp-form-success { background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }

/* ---------- Media uploader ---------- */
.ron-lp-media-section { border: 1px solid var(--ron-border); border-radius: var(--ron-radius); padding: 0; overflow: hidden; }
.ron-lp-media-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: #fafbfc; flex-wrap: wrap; gap: 0.5rem; }
.ron-lp-media-title { font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.ron-lp-media-hint { color: var(--ron-danger); font-weight: 500; font-size: 0.85rem; }
.ron-lp-media-limits { color: var(--ron-text-muted); font-size: 0.85rem; }

.ron-lp-media-tabs { display: flex; gap: 0.5rem; padding: 0.75rem 1.25rem; background: var(--ron-bg-soft); }
.ron-lp-tab-btn {
	background: #fff; border: 1px solid var(--ron-border); border-radius: 999px;
	padding: 0.5rem 1.1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
	color: var(--ron-text-muted);
}
.ron-lp-tab-btn.active { border-color: var(--ron-accent); color: var(--ron-accent); background: #fff; }
.ron-lp-badge { background: #e3e8ee; color: var(--ron-text); border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.78rem; }
.ron-lp-tab-btn.active .ron-lp-badge { background: var(--ron-accent); color: #fff; }

.ron-lp-tab-panel { padding: 1.25rem; }

.ron-lp-dropzone {
	border: 2px dashed #c4cdd6; border-radius: 10px; text-align: center; padding: 2.5rem 1rem;
	background: var(--ron-bg-soft); color: var(--ron-text-muted); transition: border-color 0.15s ease;
}
.ron-lp-dropzone.ron-lp-dragover { border-color: var(--ron-accent); background: #eef4fd; }
.ron-lp-dropzone .dashicons { font-size: 2rem; width: 2rem; height: 2rem; color: #9aa5b1; }
.ron-lp-dropzone p { margin: 0.5rem 0; font-weight: 600; }
.ron-lp-browse-btn { background: var(--ron-accent); color: #fff; border: none; border-radius: 6px; padding: 0.55rem 1.3rem; font-weight: 700; cursor: pointer; }
.ron-lp-dropzone-note { font-size: 0.8rem; color: var(--ron-danger); margin-top: 0.75rem !important; }

.ron-lp-preview-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.ron-lp-preview-item { position: relative; width: 90px; height: 90px; border-radius: 8px; overflow: hidden; border: 1px solid var(--ron-border); background: #f1f1f1; display: flex; align-items: center; justify-content: center; }
.ron-lp-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.ron-lp-remove-preview {
	position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; border: none;
	width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1;
}

.ron-lp-video-url-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--ron-border); }
.ron-lp-video-url-label { font-weight: 600; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.ron-lp-video-url-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.ron-lp-video-url-row input { flex: 1; }
.ron-lp-remove-url-row { background: #fdecea; color: var(--ron-danger); border: 1px solid #f5c2bd; border-radius: 6px; width: 40px; cursor: pointer; }
.ron-lp-add-url-btn { background: transparent; border: 1px dashed var(--ron-border); color: var(--ron-text-muted); border-radius: 6px; padding: 0.45rem 1rem; cursor: pointer; }

/* ---------- Feature checkboxes ---------- */
.ron-lp-group-title { font-weight: 700; margin: 1.25rem 0 0.75rem; }
.ron-lp-checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem 1.5rem; }
@media (max-width: 780px) { .ron-lp-checkbox-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ron-lp-checkbox-grid { grid-template-columns: 1fr; } }
.ron-lp-checkbox-item .ron-lp-other-input { margin-top: 0.4rem; }

/* ---------- Map ---------- */
.ron-lp-nearby-field label { line-height: 1.4; }
#ron-lp-nearby-rows { margin-top: 0.5rem; }
.ron-lp-nearby-row-item { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.ron-lp-nearby-row-item input { flex: 1; }
.ron-lp-remove-nearby { background: #fdecea; color: var(--ron-danger); border: 1px solid #f5c2bd; border-radius: 6px; width: 36px; cursor: pointer; }
.ron-lp-add-nearby-btn { background: transparent; border: none; color: var(--ron-accent); font-weight: 600; cursor: pointer; padding: 0.25rem 0; }
.ron-lp-map-canvas { width: 100%; height: 360px; border-radius: 8px; margin: 1rem 0; background: #eee; }
.ron-lp-map-search-field { max-width: 100%; }

/* ---------- Auth (login/register) ---------- */
.ron-lp-auth-card {
	max-width: 420px; margin: 2rem auto; background: #fff; border-radius: 16px;
	padding: 2.25rem 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.ron-lp-social-btn {
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	border: 1px solid var(--ron-border); border-radius: 8px; background: #fff; padding: 0.7rem;
	font-weight: 600; cursor: pointer; margin-bottom: 0.75rem;
}
.ron-lp-google-icon { font-weight: 800; color: #4285F4; }
.ron-lp-divider { text-align: center; color: var(--ron-text-muted); margin: 1rem 0; position: relative; }
.ron-lp-divider span { background: #fff; padding: 0 0.75rem; position: relative; z-index: 1; }
.ron-lp-divider::before { content: ""; display: block; border-top: 1px solid var(--ron-border); position: relative; top: 0.7rem; }

.ron-lp-password-field { position: relative; }
.ron-lp-toggle-pass { position: absolute; right: 0.85rem; top: 0.7rem; cursor: pointer; color: var(--ron-text-muted); }

.ron-lp-field-inline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: 0.9rem; }
.ron-lp-forgot-link, .ron-lp-auth-footer a { color: var(--ron-accent); text-decoration: none; }
.ron-lp-auth-footer { text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.ron-lp-auth-errors { background: #fdecea; border: 1px solid #f5c2bd; border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 1rem; color: var(--ron-danger); font-size: 0.9rem; }

/* ---------- Profile details ---------- */
.ron-lp-profile-pic-row { display: flex; align-items: center; gap: 1rem; }
.ron-lp-choose-image-btn { background: #fff; border: 1px solid var(--ron-border); border-radius: 6px; padding: 0.5rem 1rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.ron-lp-profile-pic-preview { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; }
.ron-lp-resize-hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ron-text-muted); }
.ron-lp-resize-hint a { color: var(--ron-primary); }

.ron-lp-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.ron-lp-modal-content { background: #fff; border-radius: 10px; padding: 1.25rem; max-width: 480px; width: 90%; }
.ron-lp-crop-image-wrap { max-height: 400px; overflow: hidden; }
.ron-lp-crop-image-wrap img { max-width: 100%; display: block; }
.ron-lp-modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; justify-content: flex-end; }

/* ---------- Dashboard ---------- */
.ron-lp-dashboard-topnav { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.ron-lp-nav-btn { background: var(--ron-primary); color: #fff; padding: 0.7rem 1.4rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.ron-lp-nav-btn.disabled { background: #b7c4bb; pointer-events: none; }
.ron-lp-dashboard-body { display: flex; gap: 2rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); overflow: hidden; }
.ron-lp-dashboard-sidebar { width: 220px; background: var(--ron-bg-soft); padding: 1.5rem 1rem; }
.ron-lp-sidebar-user { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ron-border); margin-bottom: 1rem; }
.ron-lp-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.ron-lp-avatar-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.ron-lp-sidebar-username { font-weight: 600; font-size: 0.9rem; }
.ron-lp-sidebar-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.ron-lp-sidebar-nav a { color: var(--ron-text); text-decoration: none; padding: 0.5rem 0.6rem; border-radius: 6px; }
.ron-lp-sidebar-nav a.active { background: #fff; color: var(--ron-accent); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.ron-lp-dashboard-main { flex: 1; padding: 2rem; }
.ron-lp-dashboard-welcome { text-align: center; padding-top: 1rem; }
.ron-lp-avatar-large { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; font-size: 2rem; margin: 1rem 0; }

/* ---------- My Submissions ---------- */
.ron-lp-filter-bar { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ron-lp-filter-bar input, .ron-lp-filter-bar select { flex: 1; min-width: 140px; padding: 0.6rem 0.85rem; border: 1px solid var(--ron-border); border-radius: 8px; }
.ron-lp-search-btn { background: #2b2f33; color: #fff; border: none; border-radius: 8px; padding: 0.6rem 1.5rem; font-weight: 700; cursor: pointer; }
.ron-lp-submissions-table, .ron-lp-admin-table { width: 100%; border-collapse: collapse; }
.ron-lp-submissions-table th, .ron-lp-admin-table th { text-align: left; border-bottom: 2px solid var(--ron-border); padding: 0.75rem 0.5rem; font-size: 0.85rem; text-transform: uppercase; color: var(--ron-text-muted); }
.ron-lp-submissions-table td, .ron-lp-admin-table td { border-bottom: 1px solid var(--ron-border); padding: 0.9rem 0.5rem; vertical-align: top; }
.ron-lp-row-actions { font-size: 0.8rem; text-transform: uppercase; color: var(--ron-text-muted); margin-top: 0.25rem; }
.ron-lp-row-actions a, .ron-lp-admin-actions a { color: var(--ron-text-muted); text-decoration: none; }
.ron-lp-row-actions a:hover, .ron-lp-admin-actions a:hover { color: var(--ron-accent); }
.ron-lp-action-link.disabled { opacity: 0.4; }
.ron-lp-status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.ron-lp-status-publish { background: #e8f5e9; color: #2e7d32; }
.ron-lp-status-ron_pending, .ron-lp-status-pending { background: #e3e8fd; color: #3949ab; }
.ron-lp-status-ron_rejected, .ron-lp-status-rejected { background: #fdecea; color: #c0392b; }
.ron-lp-status-ron_expired { background: #f0f0f0; color: #666; }
.ron-lp-status-draft { background: #fff3e0; color: #ef6c00; }
.ron-lp-status-approved { background: #e8f5e9; color: #2e7d32; }
.ron-lp-resubmit-instructions { font-size: 0.8rem; color: var(--ron-danger); margin-top: 0.4rem; }
.ron-lp-pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; }
.ron-lp-pagination button { border: 1px solid var(--ron-border); background: #fff; border-radius: 6px; padding: 0.4rem 0.8rem; cursor: pointer; }
.ron-lp-pagination button.active { background: var(--ron-accent); color: #fff; border-color: var(--ron-accent); }

/* ---------- Admin dashboard (frontend) ---------- */
.ron-lp-admin-tabs-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.ron-lp-toggle-btn { background: #fff; border: 1px solid var(--ron-border); border-radius: 999px; padding: 0.55rem 1.4rem; font-weight: 700; cursor: pointer; }
.ron-lp-toggle-btn.active { background: #1c1c1c; color: #fff; border-color: #1c1c1c; }
.ron-lp-status-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--ron-border); margin-bottom: 1.25rem; }
.ron-lp-status-tab { background: none; border: none; padding: 0.6rem 0; font-weight: 600; color: var(--ron-text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ron-lp-status-tab.active { color: #1c1c1c; border-color: #1c1c1c; }
.ron-lp-expiry-input { padding: 0.4rem 0.5rem; border: 1px solid var(--ron-border); border-radius: 6px; }

/* ---------- Profiles directory / single ---------- */
.ron-lp-profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; }
.ron-lp-profile-card { text-align: center; background: #fff; border-radius: 12px; padding: 1.5rem 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.ron-lp-profile-card-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }
.ron-lp-profile-card-name { margin: 0 0 1rem; color: var(--ron-primary); font-size: 1.05rem; }

.ron-lp-profile-single-header { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.ron-lp-profile-photo { width: 130px; height: 130px; object-fit: cover; flex-shrink: 0; }
.ron-lp-shape-circle { border-radius: 50%; }
.ron-lp-shape-square { border-radius: 10px; }
.ron-lp-role-badge { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--ron-border); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.85rem; margin-bottom: 0.75rem; }
.ron-lp-contact-buttons { display: flex; gap: 0.75rem; margin: 0.75rem 0; }
.ron-lp-contact-icon-btn, .ron-lp-contact-btn {
	border: 1px solid var(--ron-primary); color: var(--ron-primary); border-radius: 999px; text-decoration: none;
	padding: 0.5rem 1rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600;
}
.ron-lp-properties-heading { margin-top: 1rem; }
.ron-lp-properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.ron-lp-property-card { border: 1px solid var(--ron-border); border-radius: 10px; overflow: hidden; background: #fff; }
.ron-lp-property-card-img-link img { width: 100%; height: 160px; object-fit: cover; display: block; }
.ron-lp-property-card-noimg { display: flex; align-items: center; justify-content: center; height: 160px; background: var(--ron-bg-soft); color: #b0b8c0; }
.ron-lp-property-card-body { padding: 0.9rem 1rem; }
.ron-lp-property-card-price { font-weight: 700; color: var(--ron-primary); margin: 0.25rem 0; }
.ron-lp-property-card-meta { color: var(--ron-text-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Single Property view ---------- */
.ron-lp-single-property { max-width: 900px; margin: 2rem auto; }
.ron-lp-property-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.ron-lp-property-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.ron-lp-property-videos { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.ron-lp-property-videos video { max-width: 100%; border-radius: 8px; }
.ron-lp-video-embed-wrap { width: 320px; aspect-ratio: 16/9; }
.ron-lp-video-embed-wrap iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.ron-lp-property-summary { border-top: 1px solid var(--ron-border); border-bottom: 1px solid var(--ron-border); padding: 1.25rem 0; margin-bottom: 1.5rem; }
.ron-lp-property-price { font-size: 1.6rem; font-weight: 800; color: var(--ron-primary); margin: 0 0 0.5rem; }
.ron-lp-property-meta-list { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; color: var(--ron-text-muted); }
.ron-lp-property-features h4 { margin: 1.25rem 0 0.5rem; }
.ron-lp-feature-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.ron-lp-feature-pills li { background: var(--ron-bg-soft); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.85rem; }
.ron-lp-property-agent-box { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ron-border); }
.ron-lp-property-agent-box a { color: var(--ron-accent); text-decoration: none; font-weight: 600; }
