/* ==========================================================================
   Sell Your Home page ([ct_sell_form], costa-tropical-sell.php).
   Design: site/pages/sell/v3.tpl.html ("version C", approved by the owner).
   Every rule is scoped under .ct-sell. Colours, radii and the content width
   come from the Costa Estates tokens (--cse-*), which the plugin prints on
   every page; the fallbacks are the live values.
   ========================================================================== */

/* The same faces the About page declares in the Customiser CSS (site/pages/pages.css):
   identical sources, so the browser loads each file once. */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('/wp-content/plugins/costa-estates/assets/fonts/fraunces-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('/wp-content/plugins/costa-estates/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Fraunces';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('/wp-content/plugins/costa-estates/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/wp-content/plugins/costa-estates/assets/fonts/instrument-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/wp-content/plugins/costa-estates/assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */

.ct-sell {
	--ink: var(--cse-ink, #12201f);
	--text: var(--cse-text, #44504e);
	--muted: var(--cse-muted, #5e6967);
	--line: var(--cse-line, #ddd6ca);
	--paper: var(--cse-surface, #ffffff);
	--cream: var(--cse-surface-alt, #f4f0e8);
	--tint: var(--cse-panel-tint, #e6eeea);
	--slate: var(--cse-slate, #0f2a2c);
	--on-slate: var(--cse-on-dark, #f4f0e8);
	--on-accent: var(--cse-accent-ink, #ffffff);
	--teal: var(--cse-primary, #0f5563);
	--teal-hover: var(--cse-primary-hover, #0a4350);
	--teal-ring: rgba(15, 85, 99, .18);
	--clay: var(--cse-clay, #a8431f);
	--gold: #dca54a;
	--field: var(--cse-field-border, #7e8581);
	--ok: #1f6b4a;
	--err: #a8321f;
	--wa: #25d366;
	--wa-hover: #1fbb59;
	--wa-ink: #0b3d22;
	--veil: rgba(15, 42, 44, .8);
	--on-slate-soft: rgba(244, 240, 232, .85);
	--f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
	--f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--r: var(--cse-radius, 6px);
	--r-lg: var(--cse-radius-lg, 10px);
	--wrap: var(--cse-detail-max, calc(71.25 * var(--rem)));
	/* The design is drawn on a 16px root. Astra shrinks the root on phones (to about 14.6px), which would
	   shrink every size here with it, so the page measures in its own unit. Browser zoom still scales it. */
	--rem: 16px;
	--sticky-top: calc(var(--cse-header-px, 100px) + calc(1 * var(--rem)));

	background: var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: calc(1.0625 * var(--rem));
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.ct-sell *, .ct-sell *::before, .ct-sell *::after { box-sizing: border-box; }
.ct-sell [hidden] { display: none !important; }
.ct-sell .cts-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ct-sell .wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
	.ct-sell .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.ct-sell :is(h1, h2, h3) { font-family: var(--f-display); color: var(--ink); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; margin: 0; }
.ct-sell p { margin: 0; }
/* The theme gives every label its own size, weight and colour; here labels take the design's. */
.ct-sell label { font: inherit; color: inherit; letter-spacing: normal; margin: 0; }
.ct-sell a { color: var(--teal); }
.ct-sell :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.ct-sell .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .75em 1.4em; border-radius: var(--r);
	font: 600 calc(1 * var(--rem))/1.2 var(--f-body); text-decoration: none; cursor: pointer;
	border: 1.5px solid var(--teal); transition: background .15s, color .15s, border-color .15s;
}
/* Astra underlines every link in page content (.ast-single-post .entry-content a); buttons and contact lines are not text links. */
.ct-sell a.btn[href], .ct-sell a.line[href] { text-decoration: none; }
.ct-sell .btn-primary { background: var(--teal); color: var(--on-accent); }
.ct-sell .btn-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--on-accent); }
.ct-sell .btn-ghost { background: transparent; color: var(--teal); }
.ct-sell .btn-ghost:hover { background: var(--tint); color: var(--teal); }
.ct-sell .btn[disabled] { cursor: progress; opacity: .7; }
.ct-sell .btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* -------------------------------------------------------------------- hero */

.ct-sell .hero { background: var(--paper); }
.ct-sell .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.ct-sell .hero-copy { display: grid; gap: 22px; min-width: 0; }
.ct-sell .hero h1 { font-size: clamp(calc(2.1 * var(--rem)), 3.8vw, calc(3.1 * var(--rem))); }
.ct-sell .lead { font-size: calc(1.2 * var(--rem)); line-height: 1.55; max-width: 34em; color: var(--text); }
.ct-sell .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .ct-sell .hero .actions .btn { flex: 1 1 100%; } }
.ct-sell .hero-figure { margin: 0; min-width: 0; display: grid; gap: 6px; }
.ct-sell .hero-figure img { display: block; width: 100%; max-width: 100%; height: clamp(260px, 30vw, 400px); object-fit: cover; object-position: 50% 45%; }
.ct-sell .hero-figure figcaption { font-size: calc(.8 * var(--rem)); color: var(--muted); }
@media (max-width: 860px) {
	.ct-sell .hero .wrap { grid-template-columns: 1fr; }
	.ct-sell .hero-figure { order: -1; }
	.ct-sell .hero-figure img { height: auto; aspect-ratio: 16 / 10; }
}

/* ---------------------------------------------------------------- sections */

.ct-sell .section { padding-block: clamp(56px, 7vw, 96px); }
.ct-sell .section + .section { padding-top: 0; }
.ct-sell .sell + .section { padding-top: clamp(56px, 7vw, 96px); }
.ct-sell .section-head { display: grid; gap: 12px; max-width: calc(44 * var(--rem)); margin-bottom: clamp(32px, 4vw, 48px); }
.ct-sell .section-head h2 { font-size: clamp(calc(1.9 * var(--rem)), 3.2vw, calc(2.6 * var(--rem))); }
.ct-sell .section-head p { font-size: calc(1.1 * var(--rem)); }

/* ------------------------------------------------------------------- steps */

.ct-sell .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.ct-sell .steps li { position: relative; margin: 0; padding: 0 28px 0 0; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.ct-sell .steps li::before {
	content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--paper); border: 1.5px solid var(--teal); color: var(--teal);
	font: 500 calc(1.25 * var(--rem))/1 var(--f-display); position: relative; z-index: 1;
}
.ct-sell .steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1.5px; background: var(--line); }
.ct-sell .steps li:last-child::after { display: none; }
.ct-sell .steps h3 { font-size: calc(1.3 * var(--rem)); margin-top: 8px; }
.ct-sell .steps p { font-size: calc(.98 * var(--rem)); }
.ct-sell .steps .when { font-size: calc(.82 * var(--rem)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
	.ct-sell .steps { grid-template-columns: 1fr; gap: 28px; }
	.ct-sell .steps li { grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0; }
	.ct-sell .steps li > * { grid-column: 2; }
	.ct-sell .steps li::before { grid-row: 1 / span 3; grid-column: 1; }
	.ct-sell .steps li::after { top: 44px; left: 21px; right: auto; width: 1.5px; height: calc(100% - 16px); }
	.ct-sell .steps h3 { margin-top: 6px; }
}

/* ------------------------------------------------------------ form section */

.ct-sell .sell { background: var(--cream); }
.ct-sell .sell .wrap { display: grid; grid-template-columns: minmax(0, 1fr) calc(20 * var(--rem)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ct-sell .sell .section-head { grid-column: 1 / -1; margin-bottom: 0; }
.ct-sell .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 40px); min-width: 0; }
.ct-sell form { display: grid; gap: 48px; margin: 0 0 1em; }
.ct-sell fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 30px; min-width: 0; }
.ct-sell legend { padding: 0; margin-bottom: 12px; font: 500 calc(1.4 * var(--rem))/1.25 var(--f-display); color: var(--ink); }
.ct-sell fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 26px; }
.ct-sell .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.ct-sell .row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .ct-sell .row, .ct-sell .row.three { grid-template-columns: 1fr; } }
.ct-sell .field { display: grid; gap: 10px; min-width: 0; align-content: start; }
.ct-sell .label { font-size: calc(.95 * var(--rem)); font-weight: 600; color: var(--ink); }
.ct-sell .label .opt { font-weight: 400; color: var(--muted); }
.ct-sell .hint { font-size: calc(.85 * var(--rem)); color: var(--muted); }
.ct-sell :is(input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea) {
	width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid var(--field); border-radius: var(--r);
	background-color: var(--paper); color: var(--ink); font: 400 calc(1 * var(--rem))/1.4 var(--f-body); box-shadow: none;
}
.ct-sell .field textarea { min-height: 104px; resize: vertical; }
.ct-sell select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2344504e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.ct-sell :is(input, select, textarea):focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-ring); }
.ct-sell .field.invalid :is(input, select, textarea) { border-color: var(--err); }
.ct-sell .err { display: none; font-size: calc(.85 * var(--rem)); color: var(--err); }
.ct-sell .field.invalid .err { display: block; }
.ct-sell .suffix { position: relative; }
.ct-sell .suffix input { padding-right: 48px; }
.ct-sell .suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: calc(.95 * var(--rem)); pointer-events: none; }

/* Spam trap: off-screen for people, still in the form for bots. */
.ct-sell .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* chips = radio / checkbox answers */
.ct-sell .chipset { display: flex; flex-wrap: wrap; gap: 12px 14px; border: 0; padding: 0; margin: 0; }
.ct-sell .chip { position: relative; margin: 0; }
.ct-sell .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ct-sell .chip span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
	border: 1px solid var(--field); border-radius: 999px; background: var(--paper); color: var(--ink);
	font-size: calc(.95 * var(--rem)); line-height: 1.2; transition: background .12s, border-color .12s, color .12s;
}
.ct-sell .chip svg { width: 18px; height: 18px; flex: none; }
.ct-sell .chip:hover span { border-color: var(--teal); }
.ct-sell .chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.ct-sell .chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.ct-sell .field.invalid .chip span { border-color: var(--err); }
.ct-sell .chipset.grid-type { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-sell .chipset.grid-type .chip span { width: 100%; border-radius: var(--r); justify-content: flex-start; min-height: 52px; }
@media (max-width: 600px) { .ct-sell .chipset.grid-type { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-sell .chipset.grid-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-sell .chipset.grid-feat .chip span { width: 100%; justify-content: center; text-align: center; padding-inline: 8px; white-space: nowrap; }
@media (max-width: 760px) { .ct-sell .chipset.grid-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ct-sell .drop {
	position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px;
	border: 1.5px dashed var(--field); border-radius: var(--r-lg); background: var(--cream); cursor: pointer; color: var(--text);
}
.ct-sell .drop:hover, .ct-sell .drop.over { border-color: var(--teal); background: var(--tint); }
.ct-sell .drop:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.ct-sell .drop svg { width: 28px; height: 28px; color: var(--teal); }
.ct-sell .drop strong { color: var(--ink); font-weight: 600; }
.ct-sell .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ct-sell .thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-sell .thumbs:empty { display: none; }
.ct-sell .thumbs figure { margin: 0; position: relative; width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.ct-sell .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ct-sell .thumbs button { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: var(--veil); color: var(--on-accent); cursor: pointer; font: 400 14px/1 var(--f-body); }

.ct-sell .consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: calc(.92 * var(--rem)); }
.ct-sell .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.ct-sell .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ct-sell .submit-row .btn { min-width: calc(14 * var(--rem)); }
.ct-sell .form-err { flex: 1 1 calc(16 * var(--rem)); min-width: 0; font-size: calc(.92 * var(--rem)); color: var(--err); }
.ct-sell .noscript { margin: 0 0 24px; }

/* success state */
.ct-sell .done { display: grid; gap: 18px; }
.ct-sell .done:focus { outline: none; }
.ct-sell .done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--ok); display: grid; place-items: center; }
.ct-sell .done .tick svg { width: 28px; height: 28px; }
.ct-sell .done h3 { font-size: calc(1.8 * var(--rem)); }
.ct-sell .done-note { font-size: calc(.95 * var(--rem)); color: var(--ink); }
.ct-sell .summary { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; padding: 18px 20px; background: var(--cream); border-radius: var(--r); font-size: calc(.95 * var(--rem)); }
.ct-sell .summary dt { color: var(--muted); font-weight: 400; }
.ct-sell .summary dd { margin: 0; color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* aside */
.ct-sell .aside { position: sticky; top: calc(var(--sticky-top) + env(safe-area-inset-top, 0px)); display: grid; gap: 20px; }
.admin-bar .ct-sell .aside { top: calc(var(--sticky-top) + 32px); }
.ct-sell .aside .card { padding: 24px; display: grid; gap: 14px; }
.ct-sell .aside h3 { font-size: calc(1.25 * var(--rem)); }
.ct-sell .next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: calc(.95 * var(--rem)); }
.ct-sell .next li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; margin: 0; }
.ct-sell .next svg { width: 22px; height: 22px; color: var(--teal); margin-top: 1px; }
.ct-sell .next b { color: var(--ink); font-weight: 600; }
.ct-sell .contact { background: var(--slate); color: var(--on-slate); border: 0; }
.ct-sell .contact h3 { color: var(--on-accent); }
.ct-sell .contact p { font-size: calc(.95 * var(--rem)); color: var(--on-slate-soft); }
.ct-sell .contact .line { display: flex; align-items: center; gap: 10px; font-size: calc(1 * var(--rem)); color: var(--on-accent); text-decoration: none; overflow-wrap: anywhere; }
.ct-sell .contact a.line[href]:hover { text-decoration: underline; text-underline-offset: 4px; }
.ct-sell .contact .line svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.ct-sell .contact .btn { width: 100%; background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.ct-sell .contact .btn:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: var(--wa-ink); }
@media (max-width: 980px) {
	.ct-sell .sell .wrap { grid-template-columns: 1fr; }
	.ct-sell .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .ct-sell .aside { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- documents */

.ct-sell .docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; padding: 0; margin: 0; }
.ct-sell .docs li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.ct-sell .docs svg { width: 22px; height: 22px; color: var(--teal); margin-top: 3px; grid-row: span 2; }
.ct-sell .docs .es { font: 500 calc(1.15 * var(--rem))/1.3 var(--f-display); color: var(--ink); }
.ct-sell .docs .es i { font-style: italic; }
.ct-sell .docs p { font-size: calc(.96 * var(--rem)); }
.ct-sell .docs .tag { display: inline-block; margin-left: 8px; font: 600 calc(.7 * var(--rem))/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--clay); vertical-align: 3px; }
@media (max-width: 760px) { .ct-sell .docs { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------- faq */

.ct-sell .faq-wrap { display: grid; grid-template-columns: minmax(0, calc(20 * var(--rem))) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.ct-sell .faq-wrap .section-head { margin: 0; align-content: start; }
.ct-sell .faq { border-top: 1px solid var(--line); }
.ct-sell .faq details { margin: 0; border-bottom: 1px solid var(--line); }
.ct-sell .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 500 calc(1.2 * var(--rem))/1.3 var(--f-display); color: var(--ink); }
.ct-sell .faq summary::-webkit-details-marker { display: none; }
.ct-sell .faq summary::after { content: "+"; font: 400 calc(1.6 * var(--rem))/1 var(--f-body); color: var(--teal); transition: transform .2s; }
.ct-sell .faq details[open] summary::after { transform: rotate(45deg); }
.ct-sell .faq details p { padding: 0 0 22px; max-width: calc(40 * var(--rem)); }
@media (max-width: 860px) { .ct-sell .faq-wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	.ct-sell *, .ct-sell *::before, .ct-sell *::after { transition: none !important; }
}
