/* Property Listing Pro — Agent panel (login, dashboard, add / edit property). Uses the plugin colour variables. */
.rpl-ap { width: min(var(--rpl-width, 1200px), calc(100vw - 32px)); max-width: none !important; margin: 0 !important; position: relative; left: 50%; transform: translateX(-50%); padding: 24px 0 48px; }
.rpl-ap h2 { font-size: 24px; font-weight: 700; }
.rpl-ap h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.rpl-ap-muted { color: var(--rpl-muted); font-size: 14px; margin: 4px 0 0 !important; }
.rpl-ap-help { color: var(--rpl-muted); font-size: 12.5px; margin: 6px 0 0 !important; line-height: 1.45; }
.rpl-ap-center { text-align: center; }
.rpl-ap-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rpl-btn--danger { color: #b42318 !important; }
.rpl-btn--danger:hover { border-color: #b42318 !important; background: #fef3f2; }

/* Cards + headings */
.rpl-ap-card { background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); padding: 24px; box-shadow: var(--rpl-shadow); margin-bottom: 20px; }
.rpl-ap-card--flush { padding: 0; overflow: hidden; }
.rpl-ap-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rpl-ap-card__head h3 { margin: 0; }
.rpl-ap-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.rpl-ap-sub { grid-column: 1 / -1; margin: 10px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--rpl-border); }

/* Notices */
.rpl-ap-notice { padding: 12px 16px; border-radius: calc(var(--rpl-radius) - 4px); font-size: 14px; margin-bottom: 18px; border: 1px solid; line-height: 1.5; }
.rpl-ap-notice--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.rpl-ap-notice--err { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.rpl-ap-notice--info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.rpl-ap-notice--warn { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.rpl-ap-notice a { text-decoration: underline; font-weight: 600; }

/* Layout */
.rpl-ap-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.rpl-ap-side { position: sticky; top: 24px; background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); padding: 18px; box-shadow: var(--rpl-shadow); }
.admin-bar .rpl-ap-side { top: 56px; }
.rpl-ap-me { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--rpl-border); }
.rpl-ap-me strong { display: block; line-height: 1.25; }
.rpl-ap-me small { color: var(--rpl-muted); font-size: 12.5px; }
.rpl-ap-me__photo { width: 48px; height: 48px; border-radius: 50%; background: var(--rpl-soft); color: var(--rpl-muted); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.rpl-ap-me__photo img { width: 100%; height: 100%; object-fit: cover; }
.rpl-ap-me__photo--lg { width: 84px; height: 84px; }
.rpl-ap-nav { display: flex; flex-direction: column; gap: 4px; }
.rpl-ap-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: calc(var(--rpl-radius) - 4px); font-weight: 600; font-size: 14px; color: var(--rpl-text); transition: background .15s; }
.rpl-ap-nav a:hover { background: var(--rpl-soft); }
.rpl-ap-nav a.is-active { background: var(--rpl-primary); color: #fff; }
.rpl-ap-nav em { margin-left: auto; font-style: normal; font-size: 12px; background: var(--rpl-soft); color: var(--rpl-text); padding: 1px 8px; border-radius: 999px; }
.rpl-ap-nav a.is-active em { background: rgba(255, 255, 255, .2); color: #fff; }
.rpl-ap-nav__out { margin-top: 8px; border-top: 1px solid var(--rpl-border); border-radius: 0 !important; padding-top: 14px !important; color: var(--rpl-muted) !important; }
.rpl-ap-nav__out svg { transform: rotate(180deg); }
.rpl-ap-main { min-width: 0; }

/* Stat tiles */
.rpl-ap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.rpl-ap-tile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); padding: 18px; box-shadow: var(--rpl-shadow); }
.rpl-ap-tile strong { display: block; font-size: 28px; line-height: 1; font-weight: 700; }
.rpl-ap-tile small { display: block; margin-top: 6px; color: var(--rpl-muted); font-size: 12.5px; line-height: 1.3; }

/* Property table (stacks on mobile) */
.rpl-ap-table { width: 100%; }
.rpl-ap-tr { display: grid; grid-template-columns: minmax(0, 2.6fr) 1fr 1.3fr 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--rpl-border); font-size: 14px; }
.rpl-ap-card:not(.rpl-ap-card--flush) .rpl-ap-tr { padding-left: 0; padding-right: 0; }
.rpl-ap-tr--head { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--rpl-muted); font-weight: 600; padding-top: 4px; padding-bottom: 10px; }
.rpl-ap-prop { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rpl-ap-prop img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--rpl-soft); }
.rpl-ap-prop strong { display: block; line-height: 1.3; overflow-wrap: anywhere; }
.rpl-ap-prop small { color: var(--rpl-muted); font-size: 12.5px; }
.rpl-ap-tr__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.rpl-ap-tr__act form { margin: 0; }
.rpl-ap-tr__act .rpl-btn { padding: 8px 12px; font-size: 13px; }
.rpl-ap-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rpl-ap-pill--live { background: #ecfdf3; color: #067647; }
.rpl-ap-pill--pending { background: #fffaeb; color: #b54708; }
.rpl-ap-pill--draft { background: #f2f4f7; color: #475467; }
.rpl-ap-empty { text-align: center; padding: 36px 16px; color: var(--rpl-muted); }
.rpl-ap-empty svg { margin: 0 auto 8px; opacity: .5; }

.rpl-ap-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rpl-ap-filter a { padding: 7px 14px; border: 1px solid var(--rpl-border); background: #fff; border-radius: 999px; font-size: 13px; font-weight: 600; }
.rpl-ap-filter a em { font-style: normal; color: var(--rpl-muted); margin-left: 4px; }
.rpl-ap-filter a.is-active { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }
.rpl-ap-filter a.is-active em { color: rgba(255, 255, 255, .75); }
.rpl-ap-pages { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.rpl-ap-pages a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rpl-border); border-radius: 8px; font-weight: 600; background: #fff; }
.rpl-ap-pages a.is-active { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }

/* Forms */
.rpl-ap-grid, .rpl-ap-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.rpl-ap-form > .rpl-btn, .rpl-ap-form > input[type=hidden] { grid-column: 1 / -1; }
.rpl-ap-field { min-width: 0; }
.rpl-ap-field--wide { grid-column: 1 / -1; }
.rpl-ap-field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rpl-ap input[type=text], .rpl-ap input[type=email], .rpl-ap input[type=tel], .rpl-ap input[type=url], .rpl-ap input[type=number], .rpl-ap input[type=password], .rpl-ap select, .rpl-ap textarea {
	width: 100%; padding: 11px 13px; border: 1px solid var(--rpl-border); border-radius: calc(var(--rpl-radius) - 4px);
	background: #fff; color: var(--rpl-text); font: inherit; font-size: 14.5px; line-height: 1.4; box-shadow: none; height: auto; min-height: 44px;
}
.rpl-ap textarea { resize: vertical; min-height: 0; }
.rpl-ap input:focus, .rpl-ap select:focus, .rpl-ap textarea:focus { outline: 0; border-color: var(--rpl-primary); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.rpl-ap-check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 14px !important; margin: 0 !important; cursor: pointer; }
.rpl-ap-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--rpl-primary); }
.rpl-ap-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.rpl-ap-split a { color: var(--rpl-accent); font-weight: 600; }
.rpl-ap-actions { display: flex; gap: 10px; }
.rpl-ap-photo { display: flex; align-items: center; gap: 18px; }
.rpl-ap-photo input[type=file] { margin-top: 4px; font-size: 13px; }
.rpl-ap-propform .rpl-ap-card { margin-bottom: 20px; }
.rpl-ap-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); box-shadow: 0 -4px 20px rgba(16, 24, 40, .08); }

/* Repeaters (amenities, features, nearby…) */
.rpl-ap-rep__rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rpl-ap-row { display: flex; gap: 8px; align-items: center; }
.rpl-ap-row input { flex: 1 1 0; min-width: 0; }
.rpl-ap-row .rpl-ap-row__icon { flex: 0 0 112px; width: 112px; }
.rpl-ap-row__rm { flex: 0 0 38px; height: 38px; border: 1px solid var(--rpl-border); background: #fff; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--rpl-muted); padding: 0; }
.rpl-ap-row__rm:hover { color: #b42318; border-color: #b42318; }
.rpl-ap-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--rpl-muted); }
.rpl-ap-chip { border: 1px dashed var(--rpl-border); background: var(--rpl-soft); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--rpl-text); }
.rpl-ap-chip:hover { border-color: var(--rpl-primary); }
.rpl-ap-multi { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Photo uploader */
.rpl-ap-gal__list { list-style: none; margin: 0 0 12px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rpl-ap-gal__list li { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--rpl-soft); border: 1px solid var(--rpl-border); margin: 0 !important; }
.rpl-ap-gal__list img { width: 100%; height: 100%; object-fit: cover; }
.rpl-ap-gal__list li.is-cover { outline: 2px solid var(--rpl-accent); outline-offset: -2px; }
.rpl-ap-gal__badge { position: absolute; left: 6px; top: 6px; background: var(--rpl-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rpl-ap-gal__ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.rpl-ap-gal__ctl button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #111; font-size: 14px; line-height: 1; padding: 0; }
.rpl-ap-gal__ctl button[data-act=rm]:hover { background: #fee4e2; color: #b42318; }
.rpl-ap-gal__ctl button:disabled { opacity: .35; cursor: default; }
.rpl-ap-gal__add { display: block; position: relative; border: 2px dashed var(--rpl-border); border-radius: var(--rpl-radius); text-align: center; padding: 22px 12px; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.rpl-ap-gal__add:hover { border-color: var(--rpl-primary); background: var(--rpl-soft); }
.rpl-ap-gal__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.rpl-ap-gal__add span { display: inline-flex; align-items: center; gap: 8px; }
.rpl-ap-gal__msg { color: #b42318; font-size: 13px; margin: 8px 0 0 !important; }
.rpl-ap-gal__msg:empty { display: none; }

/* Login / register */
.rpl-ap-auth { display: flex; justify-content: center; padding: 16px 0; }
.rpl-ap-auth > .rpl-ap-card { width: 100%; max-width: 480px; margin: 0; }
.rpl-ap-auth__head { text-align: center; margin-bottom: 18px; }
.rpl-ap-auth__head .rpl-chip { margin-bottom: 10px; }
.rpl-ap-tabs { display: flex; background: var(--rpl-soft); border-radius: calc(var(--rpl-radius) - 2px); padding: 4px; margin-bottom: 18px; }
.rpl-ap-tabs button { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: calc(var(--rpl-radius) - 5px); font-weight: 600; font-size: 14px; color: var(--rpl-muted); }
.rpl-ap-tabs button.is-active { background: #fff; color: var(--rpl-text); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.rpl-ap-auth form.rpl-ap-form { padding: 0; }
.rpl-ap-js [data-rpl-pane] { display: none; }
.rpl-ap-js [data-rpl-pane].is-active { display: grid; }
.rpl-ap-auth--single .rpl-ap-card { padding: 36px 28px; }
.rpl-ap-auth--single .rpl-chip { margin-bottom: 8px; }

/* Tablet + phone */
@media (max-width: 960px) {
	.rpl-ap-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.rpl-ap-side { min-width: 0; }
	.rpl-ap-side { position: static; padding: 14px; }
	.rpl-ap-me { padding-bottom: 12px; }
	.rpl-ap-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
	.rpl-ap-nav a { white-space: nowrap; flex: 0 0 auto; padding: 9px 12px; }
	.rpl-ap-nav__out { margin: 0; border: 0; padding-top: 9px !important; }
	.rpl-ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.rpl-ap { padding: 16px 0 40px; }
	.rpl-ap-card { padding: 18px; }
	.rpl-ap-grid, .rpl-ap-form { grid-template-columns: 1fr; }
	.rpl-ap-tr--head { display: none; }
	.rpl-ap-tr { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; }
	.rpl-ap-card:not(.rpl-ap-card--flush) .rpl-ap-tr { padding-left: 0; padding-right: 0; }
	.rpl-ap-prop { grid-column: 1 / -1; }
	.rpl-ap-td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--rpl-muted); margin-bottom: 2px; }
	.rpl-ap-tr__act { grid-column: 1 / -1; justify-content: flex-start; }
	.rpl-ap-row { flex-wrap: wrap; }
	.rpl-ap-row .rpl-ap-row__icon { flex: 1 1 100%; width: 100%; }
	.rpl-ap-savebar { padding: 10px; }
	.rpl-ap-savebar .rpl-btn { flex: 1; }
	.rpl-ap-head .rpl-btn { width: 100%; }
}

/* status as buttons */
.rpl-ap-label { display: block; font-weight: 600; margin-bottom: 8px; }
.rpl-ap-statusbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.rpl-ap-statusbtn { position: relative; margin: 0 !important; cursor: pointer; }
.rpl-ap-statusbtn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rpl-ap-statusbtn span { display: inline-block; padding: 10px 22px; border: 1.5px solid var(--rpl-border); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s, color .15s; }
.rpl-ap-statusbtn:hover span { border-color: var(--rpl-primary); }
.rpl-ap-statusbtn input:checked + span { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }
.rpl-ap-statusbtn input:focus-visible + span { outline: 2px solid var(--rpl-primary); outline-offset: 2px; }
