/* 0.15.12 redesign: Pricing cards: sell page, owners page, owner dashboard plans/sponsored, GST/HST section. Brand tokens come from theme.json (var(--wp--preset--color--*)). */

/*
 * Owner pricing card (dl-pcard), rendered by DL_Pcard::render() in the plugin
 * (includes/class-dl-pcard.php). One card for every owner price:
 * /sell-your-cottage/, /owners/ pricing, owner dashboard plan and Sponsored
 * placement. Fadi, November 10 2026 (items 8, 12, 13).
 *
 * Contrast (checked): white on Harbour Navy 14.6:1; Shallows #8CB3D0 on navy
 * 6.4:1; #D6DEE8 on navy 10.5:1; navy on the tint #E6EEF4 12.1:1; muted
 * #4A5468 on the tint 6.5:1; Lake Blue icons on white 5.3:1.
 */

/* ---------- Card shell ---------- */
.dl-pcard {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(28, 43, 69, .04), 0 18px 40px rgba(28, 43, 69, .08);
	color: var(--dl-navy);
	min-width: 0;
}

/* ---------- Top band: centred name, bold price, term ---------- */
.dl-pcard__top {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	gap: 6px;
	padding: 28px 24px 30px;
	text-align: center;
}
/* Navy band: the main offer. A thin lake line under it echoes the logo's water lines. */
.dl-pcard--navy .dl-pcard__top { background: var(--dl-navy); color: #fff; }
.dl-pcard--navy .dl-pcard__top::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--dl-lake) 0%, var(--dl-shallows) 50%, var(--dl-lake) 100%);
}
/* Tinted band: every other price. */
.dl-pcard--mist .dl-pcard__top { background: var(--dl-tint, #E6EEF4); border-bottom: 1px solid var(--dl-line); }

.dl-pcard__name {
	margin: 0 !important;
	font-family: var(--dl-sans) !important;
	font-size: 18px !important; font-weight: 600 !important; line-height: 1.3 !important;
	letter-spacing: 0 !important;
	color: inherit !important;
}
.dl-pcard__badge {
	margin: 0 0 4px; padding: 3px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 600; line-height: 1.4;
	background: #fff; color: var(--dl-navy);
}
/* Sunlit Gold as a highlight on navy (never text on white, never a button). */
.dl-pcard--navy .dl-pcard__badge { background: var(--dl-sun, #F2C14E); color: var(--dl-navy); }

.dl-pcard__price {
	margin: 6px 0 0;
	display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 8px;
	line-height: 1;
}
.dl-pcard__amount {
	font-family: var(--dl-sans);
	font-size: 56px; font-weight: 700; letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums;
}
.dl-pcard__tax { font-size: 17px; font-weight: 600; }
.dl-pcard--navy .dl-pcard__tax { color: var(--dl-shallows); }
.dl-pcard--mist .dl-pcard__tax { color: var(--dl-muted); }
.dl-pcard__term { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.dl-pcard--navy .dl-pcard__term { color: var(--dl-on-navy); }
.dl-pcard--mist .dl-pcard__term { color: var(--dl-muted); }

/* ---------- Body: point-form features, one button ---------- */
.dl-pcard__body {
	flex: 1;
	display: flex; flex-direction: column; gap: 22px;
	padding: 26px 28px 28px;
}
.dl-pcard__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dl-pcard__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--dl-navy); }
.dl-pcard__list li .dl-icon {
	flex: none; width: 22px; height: 22px; padding: 3px; box-sizing: border-box;
	border-radius: 50%; background: var(--dl-lake-bg, #E6EEF4); color: var(--dl-lake);
	margin-top: 0;
}
/* The first point is the headline promise (sell page: "No commission on the sale"). */
.dl-pcard__list li:first-child { font-weight: 600; }

.dl-pcard__cta { margin: auto 0 0; }
.dl-pcard__btn { justify-content: center; text-align: center; min-height: 48px; box-sizing: border-box; }
.dl-pcard__btn--navy { background: var(--dl-navy); border-color: var(--dl-navy); color: #fff !important; }
.dl-pcard__btn--navy:hover { background: var(--dl-navy-2, #2A3D5E); }
.dl-pcard__btn--outline { background: #fff; border-color: var(--dl-navy); color: var(--dl-navy) !important; }
.dl-pcard__btn--outline:hover { background: var(--dl-mist); }
.dl-pcard__btn--lake { background: var(--dl-lake); border-color: var(--dl-lake); color: #fff !important; }
.dl-pcard__btn:focus-visible { outline: 3px solid var(--dl-lake); outline-offset: 3px; }
.dl-pcard__foot { margin: -8px 0 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--dl-muted); }
.dl-pcard__foot:first-child, .dl-pcard__list + .dl-pcard__foot { margin-top: auto; }
/* A status line in place of a button (e.g. "Opens when card payments are switched on"). */
.dl-pcard__list + .dl-pcard__foot { padding: 10px 12px; border-radius: 10px; background: var(--dl-mist); font-size: 13px; }
.dl-pcard__foot a { color: var(--dl-lake); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Compact cards (dashboard). */
.dl-pcard--compact .dl-pcard__top { padding: 22px 20px 24px; }
.dl-pcard--compact .dl-pcard__amount { font-size: 42px; }
.dl-pcard--compact .dl-pcard__body { padding: 20px 22px 22px; gap: 18px; }
.dl-pcard--compact .dl-pcard__list li { font-size: 15px; }
.dl-pcard--compact .dl-pcard__list li:first-child { font-weight: 400; }

/* ---------- Layout helpers ---------- */
.dl-pcard-grid { display: grid; gap: 20px; align-items: stretch; }
.dl-pcard-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-pcard-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-pcard-solo { max-width: 480px; margin: 0 auto; }
.dl-pcard-solo .dl-pcard { box-shadow: 0 2px 4px rgba(28, 43, 69, .05), 0 28px 60px rgba(28, 43, 69, .14); }

/* Detail moved out of the card: small notes under it. */
.dl-pcard-notes { list-style: none; margin: 18px 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--dl-muted); }
.dl-pcard-notes p { margin: 0; }
.dl-pcard-notes li { position: relative; padding-left: 14px; }
.dl-pcard-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--dl-line); }
.dl-pcard-solo + .dl-pcard-notes { max-width: 480px; margin: 20px auto 0; text-align: center; }

/* ---------- /owners/ pricing (dl-op): the old column box is now a plain wrapper ---------- */
.dl-op__grid { align-items: start; max-width: 960px; gap: 28px; }
.dl-op .dl-op__col,
.dl-op .dl-op__col--rent { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dl-op .dl-op__col > .dl-pcard { flex: 1; }
.dl-op .dl-op__col--rent > .dl-pcard { box-shadow: 0 2px 4px rgba(28, 43, 69, .05), 0 24px 52px rgba(28, 43, 69, .14); }

/* Equal card heights with the notes in their own row (subgrid where supported). */
@supports (grid-template-rows: subgrid) {
	.dl-op__grid { grid-template-rows: auto auto; align-items: stretch; row-gap: 0; }
	.dl-op .dl-op__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
}

/* Unused-by-default plans block (dockandloon/owner-plans) uses the same grid. */
.dl-plans__grid.dl-pcard-grid { max-width: 920px; margin: 0 auto; }

/* ---------- /sell-your-cottage/ ---------- */
.dl-sell-h2--c { text-align: center; }
/* Bottom band button (0.15.12 follow-up, Fadi, November 10 2026: stronger,
   not gold, not pale): solid Lake Blue with bold white text (5.3:1), a 2px
   Shallows edge so the button stands out from the navy band (6.4:1; Lake
   Blue alone is only 2.67:1 against navy) and a soft shadow. Hover and
   keyboard focus flip it to white with navy text (14.2:1) and lift it. */
.dl-btn--accent { background: var(--dl-lake); border: 2px solid var(--dl-shallows); color: #fff !important; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.dl-btn--accent:hover, .dl-btn--accent:focus-visible { background: #fff; border-color: #fff; color: var(--dl-navy) !important; transform: translateY(-1px); }
.dl-btn--accent:focus-visible { outline: 3px solid var(--dl-shallows); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .dl-btn--accent, .dl-btn--accent:hover { transition: none; transform: none; } }
.dl-sell-cta h2 { font-size: 40px; }
.dl-sell-cta p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Owner dashboard: one look for every panel ---------- */
.dl-dash__main { gap: 20px; }
.dl-dash__main .dl-panel__head h2 .dl-icon { color: var(--dl-lake); }
.dl-panel__lead { margin: -4px 0 18px !important; color: var(--dl-muted); font-size: 15px; line-height: 1.5; }
.dl-dash-plan .dl-pcard-grid, .dl-spon-owner .dl-pcard-grid { margin-top: 4px; }
.dl-dash-plan > p.dl-small, .dl-spon-owner__fine { margin: 16px 0 0 !important; }

/* Sponsored placement: table of the owner's cottages. */
.dl-table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--dl-line); border-radius: 14px; }
.dl-dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.dl-dtable th, .dl-dtable td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--dl-line); }
.dl-dtable thead th { background: var(--dl-mist); font-size: 13px; font-weight: 600; color: var(--dl-muted); letter-spacing: .02em; }
.dl-dtable tbody tr:last-child th, .dl-dtable tbody tr:last-child td { border-bottom: 0; }
.dl-dtable tbody th { font-weight: 600; color: var(--dl-navy); }
.dl-dtable .dl-pill { white-space: normal; }
.dl-spon-owner__name { margin-right: 6px; }
.dl-spon-owner__note { display: block; margin-top: 4px; font-size: 13px; color: var(--dl-muted); }

/* GST/HST status (item 14). */
.dl-hst .dl-panel__head { flex-wrap: wrap; }
.dl-hst__status { margin: 0 0 18px !important; font-size: 16px; line-height: 1.5; }
.dl-hst__due { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--dl-amber-bg); color: var(--dl-amber-tx); }
.dl-hst__due ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.dl-hst__form { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; border-top: 1px solid var(--dl-line); }
.dl-hst__form > * { margin: 0; }
.dl-hst__choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dl-hst__choice legend { width: 100%; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 600; color: var(--dl-navy); }
.dl-hst__opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--dl-line); border-radius: 12px; background: #fff; font-size: 15px; cursor: pointer; }
.dl-hst__opt:has(input:checked) { border-color: var(--dl-navy); box-shadow: inset 0 0 0 1px var(--dl-navy); background: var(--dl-mist); }
.dl-hst__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--dl-navy); }
.dl-hst__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.dl-hst__field--full { grid-column: 1 / -1; }
.dl-hst__check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.dl-hst__check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--dl-navy); }
.dl-hst__hint { font-size: 14px; line-height: 1.5; color: var(--dl-muted); }
.dl-hst__actions .dl-btn { min-height: 48px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
	.dl-pcard-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.dl-pcard-grid--2 { grid-template-columns: 1fr; }
	.dl-op__grid { gap: 32px; grid-template-rows: none; }
	.dl-op .dl-op__col { display: flex; grid-row: auto; }
}
@media (max-width: 600px) {
	.dl-pcard__top { padding: 24px 18px 26px; }
	.dl-pcard__amount { font-size: 46px; }
	.dl-pcard__body { padding: 22px 18px 22px; }
	.dl-pcard__list li { font-size: 15px; }
	.dl-sell-cta h2 { font-size: 30px; }
	.dl-sell-cta .dl-btn--accent { width: 100%; justify-content: center; }
	.dl-hst__grid { grid-template-columns: 1fr; }
	.dl-hst__opt { width: 100%; }
	.dl-dtable th, .dl-dtable td { padding: 10px 12px; }
	.dl-dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dl-dtable tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--dl-line); }
	.dl-dtable tbody tr:last-child { border-bottom: 0; }
	.dl-dtable th, .dl-dtable td { display: block; border: 0; padding: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.dl-pcard__btn { transition: none; }
}

/* 0.15.21: sponsored placement purchase (owner dashboard, per cottage). */
.dl-spon-buy { margin-top: 10px; }
.dl-spon-buy fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.dl-spon-buy legend { padding: 0; margin-bottom: 4px; }
.dl-spon-buy__opt { display: block; margin: 4px 0; font-size: 14px; line-height: 1.4; }
.dl-spon-buy__opt input { margin-right: 6px; }
.dl-spon-buy__terms { margin: 6px 0 10px !important; max-width: 60ch; }
.dl-spon-buy__cancel { margin: 6px 0; }
/* 0.15.22 (SF6): the cancel-and-refund button gets a visible outline, so it reads as a button, not plain text. */
.dl-spon-buy__cancel .dl-btn--ghost { border: 1px solid var(--dl-navy, #14304a); }
.dl-spon-owner__state { margin: 6px 0 0; }
.dl-spon-receipt { margin-top: 6px; font-size: 14px; }
.dl-spon-receipt summary { cursor: pointer; color: var(--dl-lake, #1f5f8b); }

/* 0.15.28 (Fadi, November 19 2026, item 4): the sponsored card is the
   prominent one (navy band + lake-blue frame + "Recommended" badge); the free
   card is plain (white header, normal weight). Contrast: white on navy 14.6:1,
   navy on gold badge 8.5:1, navy on white 14.6:1, muted on white 7.6:1;
   the lake frame #44708F on white 5.3:1 (non-text, 3:1 needed). */
.dl-pcard--featured { border: 2px solid var(--dl-lake); box-shadow: 0 2px 4px rgba(28, 43, 69, .06), 0 24px 52px rgba(28, 43, 69, .16); }
.dl-pcard--featured .dl-pcard__name { font-size: 20px !important; font-weight: 700 !important; }
.dl-pcard--plain .dl-pcard__top { background: #fff; border-bottom: 1px solid var(--dl-line); }
.dl-pcard--plain .dl-pcard__name { font-weight: 500 !important; }
.dl-pcard--plain .dl-pcard__badge { background: var(--dl-mist); }
.dl-pcard--plain .dl-pcard__amount { font-weight: 600; }
