/* Chalet agent dashboard. Colours, fonts and radii follow the live site (see the single property template). */

.cp-dash-page .entry-header,
.cp-dash-page .page-title,
.cp-dash-page #secondary { display: none !important; }
.cp-dash-page .site-content .ast-container { display: block; max-width: none; padding: 0; }
.cp-dash-page #primary { width: 100%; margin: 0; padding: 0; }
.cp-dash-page .ast-article-single, .cp-dash-page .ast-separate-container .ast-article-post { padding: 0; background: transparent; }
.cp-dash-page { background: #f5f3f0; }

.cpd {
	--cpd-ink: var(--e-global-color-67e3536, #1c1b1b);
	--cpd-muted: var(--e-global-color-8273792, #444748);
	--cpd-accent: var(--e-global-color-ed88d8d, #725b38);
	--cpd-cream: var(--e-global-color-e3ebb82, #f5f3f0);
	--cpd-line: #e5e7eb;
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 32px;
	width: 92%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 0 80px;
	font-family: Manrope, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cpd-ink);
	box-sizing: border-box;
}
.cpd *, .cpd *::before, .cpd *::after { box-sizing: border-box; }
.cpd--solo { display: block; max-width: 520px; padding-top: 70px; }

/* Side navigation */
.cpd-side { background: #fff; border: 1px solid var(--cpd-line); border-radius: 18px; padding: 24px 18px; align-self: start; position: sticky; top: 24px; }
.cpd-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cpd-brand__mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cpd-ink); font-family: "Playfair Display SC", serif; font-size: 18px; }
.cpd-brand__text { font-family: "Playfair Display SC", serif; font-size: 20px; }
.cpd-who { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--cpd-line); font-size: 13px; color: var(--cpd-muted); }
.cpd-nav { display: flex; flex-direction: column; gap: 4px; }
.cpd-nav__link { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 8px; color: var(--cpd-muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cpd-nav__link:hover { background: var(--cpd-cream); color: var(--cpd-ink); }
.cpd-nav__link.is-current { background: var(--cpd-ink); color: #fff; }
.cpd-nav__link--out { margin-top: 14px; border-top: 1px solid var(--cpd-line); border-radius: 0 0 8px 8px; padding-top: 16px; font-weight: 500; }
.cpd-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 11px; background: var(--cpd-accent); color: #fff; font-size: 11px; }

/* Headings, text */
.cpd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cpd-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--cpd-accent); }
.cpd-title { margin: 0; font-family: "Playfair Display SC", serif; font-size: 35px; line-height: 40px; font-weight: 400; color: var(--cpd-ink); }
.cpd-h2 { margin: 36px 0 14px; font-family: "Playfair Display SC", serif; font-size: 22px; line-height: 28px; font-weight: 400; color: var(--cpd-ink); }
.cpd-card .cpd-h2 { margin-top: 0; }
.cpd-muted { margin: 0 0 18px; font-size: 14px; color: var(--cpd-muted); }
.cpd-muted a, .cpd-link { color: var(--cpd-ink); }

/* Cards, buttons, notices */
.cpd-card { background: #fff; border: 1px solid var(--cpd-line); border-radius: 18px; padding: 28px; }
.cpd-card + .cpd-h2 { margin-top: 32px; }
.cpd-empty { text-align: center; color: var(--cpd-muted); }
.cpd-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid var(--cpd-ink); border-radius: 8px; background: var(--cpd-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.cpd-btn:hover { background: #000; color: #fff; }
.cpd-btn--ghost { background: transparent; color: var(--cpd-ink); }
.cpd-btn--ghost:hover { background: var(--cpd-cream); color: var(--cpd-ink); }
.cpd-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; font-size: 14px; background: #fff; border: 1px solid var(--cpd-line); border-left: 4px solid var(--cpd-accent); }
.cpd-notice--error { border-left-color: #b32d2e; }

/* Stats */
.cpd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.cpd-stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: #fff; border: 1px solid var(--cpd-line); border-radius: 18px; color: var(--cpd-ink); text-decoration: none; }
.cpd-stat:hover { border-color: var(--cpd-accent); }
.cpd-stat__label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--cpd-accent); }
.cpd-stat__value { font-family: "Playfair Display SC", serif; font-size: 38px; line-height: 44px; }

/* Property and agent tables */
.cpd-table { background: #fff; border: 1px solid var(--cpd-line); border-radius: 18px; overflow: hidden; }
.cpd-row { display: grid; grid-template-columns: 64px minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 2.4fr); gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--cpd-line); }
.cpd-table--agents .cpd-row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr) 80px 80px minmax(0, 1fr); }
.cpd-row--head { border-top: 0; background: var(--cpd-cream); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-muted); }
.cpd-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--cpd-cream); }
.cpd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-prop { display: flex; flex-direction: column; min-width: 0; }
.cpd-prop strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cpd-prop small { color: var(--cpd-muted); font-size: 12px; }
.cpd-price { font-weight: 600; }
.cpd-badge { display: inline-block; padding: 3px 10px; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; background: #eae8e5; color: var(--cpd-ink); }
.cpd-badge--publish { background: var(--cpd-ink); color: #fff; }
.cpd-badge--pending { background: var(--cpd-accent); color: #fff; }
.cpd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cpd-link { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.cpd-link--ok { color: #1f6b3a; }
.cpd-link--del { color: #b32d2e; }
.cpd-inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.cpd-inline input[type="text"] { width: 130px; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--cpd-cream); font: inherit; font-size: 12px; }
.cpd-pages { margin-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.cpd-pages .page-numbers { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--cpd-line); text-decoration: none; color: var(--cpd-ink); }
.cpd-pages .page-numbers.current { background: var(--cpd-ink); color: #fff; border-color: var(--cpd-ink); }

/* Plain forms (agents, login) */
.cpd-form label, .cpd-login label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-muted); }
.cpd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.cpd input[type="text"], .cpd input[type="email"], .cpd input[type="password"], .cpd input[type="number"], .cpd input[type="url"], .cpd select, .cpd textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 16px; border: 1px solid transparent; border-radius: 8px; background: var(--cpd-cream); color: var(--cpd-ink); font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; box-shadow: none;
}
.cpd input:focus, .cpd select:focus, .cpd textarea:focus { outline: 0; border-color: var(--cpd-accent); background: #fff; }
.cpd-login .login-remember label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.cpd-login .login-remember input { width: auto; margin: 0; }
.cpd-login input[type="submit"] { width: 100%; padding: 14px; border: 0; border-radius: 8px; background: var(--cpd-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

/* The ACF property form */
.cpd-formwrap .acf-form-fields { margin: 0; }
.cpd-formwrap .acf-field { margin: 0 0 22px; padding: 0; border: 0; }
.cpd-formwrap .acf-label label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-ink); }
.cpd-formwrap .acf-label .description, .cpd-formwrap .description { font-size: 13px; color: var(--cpd-muted); margin-top: 2px; }
.cpd-formwrap .acf-input-wrap input, .cpd-formwrap .acf-input input[type="text"], .cpd-formwrap .acf-input input[type="number"], .cpd-formwrap .acf-input input[type="url"], .cpd-formwrap .acf-input select, .cpd-formwrap .acf-input textarea { margin-top: 0; }
.cpd-formwrap .acf-tab-wrap { margin: 0 0 24px; background: transparent; border: 0; }
.cpd-formwrap .acf-tab-group { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: transparent; }
.cpd-formwrap .acf-tab-group li a { padding: 9px 16px; border: 1px solid var(--cpd-line); border-radius: 8px; background: #fff; color: var(--cpd-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.cpd-formwrap .acf-tab-group li.active a { background: var(--cpd-ink); border-color: var(--cpd-ink); color: #fff; }
.cpd-formwrap .acf-error-message { border-radius: 8px; }
.cpd-formwrap .acf-button, .cpd-formwrap .button { border-radius: 8px; }
.cpd-submit { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--cpd-line); }
.cpd-formwrap .acf-fields > .acf-field { border-top: 0; }
.cpd-formwrap .acf-gallery-field, .cpd-formwrap .wpag__items { margin: 0 0 10px; }
.cpd-formwrap .wpag__add, .cpd-formwrap .wpap__add, .cpd-formwrap .wpal__add { padding: 10px 18px; border: 1px solid var(--cpd-ink); border-radius: 8px; background: var(--cpd-ink); color: #fff; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.cpd-formwrap .wpap__row, .cpd-formwrap .wpal__row { background: var(--cpd-cream); border-radius: 12px; }

@media (max-width: 1024px) {
	.cpd { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
	.cpd-side { position: static; }
	.cpd-nav { flex-direction: row; flex-wrap: wrap; }
	.cpd-nav__link--out { margin-top: 0; border-top: 0; padding-top: 11px; }
}
@media (max-width: 767px) {
	.cpd-title { font-size: 25px; line-height: 30px; }
	.cpd-card { padding: 20px; }
	.cpd-row, .cpd-table--agents .cpd-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; }
	.cpd-table--agents .cpd-row { grid-template-columns: minmax(0, 1fr); }
	.cpd-row--head { display: none; }
	.cpd-row .cpd-price, .cpd-row .cpd-actions { grid-column: 2 / -1; }
	.cpd-table--agents .cpd-row > * { grid-column: auto; }
	.cpd-inline input[type="text"] { width: 100%; }
}

/* Theme link underlines off everywhere in the dashboard except the small text links. */
.cpd a, .cpd a:hover, .cpd a:focus, .cpd a:visited { text-decoration: none !important; }
.cpd a.cpd-link, .cpd a.cpd-link:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* Form polish: tabs, dropdowns, status, price prefix */
.cpd-formwrap .acf-tab-wrap .acf-tab-group li a { background: #fff; border: 1px solid var(--cpd-line); color: var(--cpd-muted); box-shadow: none; }
.cpd-formwrap .acf-tab-wrap .acf-tab-group li.active a, .cpd-formwrap .acf-tab-wrap .acf-tab-group li a:hover { background: var(--cpd-ink) !important; border-color: var(--cpd-ink) !important; color: #fff !important; }
.cpd-formwrap .select2-container { width: 100% !important; }
.cpd-formwrap .select2-container--default .select2-selection--single { height: 44px; border: 1px solid transparent; border-radius: 8px; background: var(--cpd-cream); }
.cpd-formwrap .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 16px; line-height: 42px; font-size: 14px; color: var(--cpd-ink); }
.cpd-formwrap .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--cpd-muted); }
.cpd-formwrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.cpd-formwrap .select2-container--default.select2-container--focus .select2-selection--single, .cpd-formwrap .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--cpd-accent); background: #fff; }
.cpd-formwrap .acf-field select { height: auto; min-height: 44px; line-height: 1.4; padding: 10px 40px 10px 16px; }
.cpd-formwrap .acf-input-prepend, .cpd-formwrap .acf-input-append { float: none; display: flex; align-items: center; height: 44px; padding: 0 14px; border: 0; background: #E4E2DF; color: var(--cpd-ink); font-size: 13px; font-weight: 600; box-sizing: border-box; }
.cpd-formwrap .acf-input-prepend { border-radius: 8px 0 0 8px; }
.cpd-formwrap .acf-input-append { border-radius: 0 8px 8px 0; }
.cpd-formwrap .acf-input-wrap.acf-input-prepended, .cpd-formwrap .acf-input-wrap:has(> .acf-input-prepend), .cpd-formwrap .acf-input-wrap:has(> .acf-input-append) { display: flex; align-items: stretch; }
.cpd-formwrap .acf-input-wrap:has(> .acf-input-prepend) > input { border-radius: 0 8px 8px 0; flex: 1; width: auto; height: 44px; margin: 0; padding-top: 0; padding-bottom: 0; }
.cpd-formwrap .acf-input-wrap:has(> .acf-input-append) > input { border-radius: 8px 0 0 8px; flex: 1; width: auto; height: 44px; margin: 0; padding-top: 0; padding-bottom: 0; }
.cpd-formwrap .acf-input:has(> .acf-input-prepend), .cpd-formwrap .acf-input:has(> .acf-input-append) { display: flex; align-items: stretch; }
.cpd-formwrap .acf-input-prepend + .acf-input-wrap, .cpd-formwrap .acf-input-wrap:has(+ .acf-input-append) { flex: 1; }
.cpd-formwrap .acf-input-prepend + .acf-input-wrap input { border-radius: 0 8px 8px 0; height: 44px; margin: 0; padding-top: 0; padding-bottom: 0; }
.cpd-formwrap .acf-input-wrap:has(+ .acf-input-append) input { border-radius: 8px 0 0 8px; height: 44px; margin: 0; padding-top: 0; padding-bottom: 0; }
