/*
Theme Name:   PTF Child
Theme URI:    https://propertyturkeyfinder.com/
Description:  Property Turkey Finder child theme for GeneratePress. Design system, templates for the property CPT, search, hubs, landings, compare, matcher and lead form. Requires the PTF Core plugin.
Author:       Property Turkey Finder
Template:     generatepress
Version:      1.0.4
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  ptf-child
*/

/* ---------- Tokens ---------- */
:root {
	--ptf-ink: #0f1e36;
	--ptf-ink-2: #33415c;
	--ptf-muted: #586377;
	--ptf-navy: #13294b;
	--ptf-navy-2: #1d3a66;
	--ptf-gold: #d9a441;
	--ptf-gold-2: #c48f2c;
	--ptf-gold-ink: #7d5812;
	--ptf-gold-soft: #fbf3e2;
	--ptf-bg: #ffffff;
	--ptf-surface: #f5f6f8;
	--ptf-line: #dfe3ea;
	--ptf-ok: #1b6b42;
	--ptf-ok-bg: #e8f5ee;
	--ptf-err: #a4262c;
	--ptf-err-bg: #fbeaea;
	--ptf-wa: #0f7a4a;
	--ptf-radius: 12px;
	--ptf-radius-sm: 8px;
	--ptf-shadow: 0 1px 2px rgba(15, 30, 54, .06), 0 4px 16px rgba(15, 30, 54, .06);
	--ptf-wrap: 1200px;
	--ptf-gutter: 16px;
	--ptf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
:lang(fa) { --ptf-font: "Vazirmatn", Tahoma, "Segoe UI", "Noto Sans Arabic", Arial, sans-serif; }
@media (min-width: 768px) { :root { --ptf-gutter: 24px; } }

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--ptf-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ptf-ink);
	background: var(--ptf-bg);
}
body, button, input, select, textarea { font-family: var(--ptf-font); }
a { color: var(--ptf-navy-2); text-underline-offset: .15em; }
a:hover { color: var(--ptf-ink); }
:focus-visible { outline: 3px solid var(--ptf-gold-2); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ptf-ink); font-family: var(--ptf-font); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3 { letter-spacing: 0; }

/* GeneratePress containers: our templates control their own width. */
body.ptf-tpl .site.grid-container { max-width: none; padding: 0; }
body.ptf-tpl .site-content { display: block; padding: 0; }
body.ptf-tpl .site-content > .ptf-main { width: 100%; }
.ptf-wrap { max-width: var(--ptf-wrap); margin-inline: auto; padding-inline: var(--ptf-gutter); }
.ptf-narrow { max-width: 860px; }
.ptf-main { padding-block: 8px 56px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Buttons ---------- */
.ptf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: var(--ptf-radius-sm);
	font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
	border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.ptf-btn--primary { background: var(--ptf-navy); color: #fff; }
.ptf-btn--primary:hover, .ptf-btn--primary:focus { background: var(--ptf-ink); color: #fff; }
.ptf-btn--accent { background: var(--ptf-gold); color: var(--ptf-ink); }
.ptf-btn--accent:hover, .ptf-btn--accent:focus { background: var(--ptf-gold-2); color: var(--ptf-ink); }
.ptf-btn--ghost { background: #fff; color: var(--ptf-navy); border-color: var(--ptf-line); }
.ptf-btn--ghost:hover, .ptf-btn--ghost:focus { border-color: var(--ptf-navy); color: var(--ptf-ink); background: #fff; }
.ptf-btn--ghost[aria-pressed="true"] { background: var(--ptf-gold-soft); border-color: var(--ptf-gold-2); color: var(--ptf-gold-ink); }
.ptf-btn--wa { background: var(--ptf-wa); color: #fff; }
.ptf-btn--wa:hover, .ptf-btn--wa:focus { background: #0b5e39; color: #fff; }
.ptf-btn--sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.ptf-btn--lg { min-height: 50px; padding: 12px 24px; font-size: 17px; }
.ptf-btn--block { display: flex; width: 100%; }
.ptf-btn svg { flex: none; }

/* ---------- Header ---------- */
.ptf-header { background: #fff; border-bottom: 1px solid var(--ptf-line); position: relative; z-index: 50; }
.ptf-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.ptf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ptf-ink); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.ptf-logo:hover { color: var(--ptf-ink); }
.ptf-logo svg { flex: none; }
.ptf-nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: #fff; color: var(--ptf-ink); border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; }
.ptf-nav-toggle:hover, .ptf-nav-toggle:focus { background: var(--ptf-surface); color: var(--ptf-ink); }
.ptf-burger, .ptf-burger::before, .ptf-burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.ptf-burger::before, .ptf-burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.ptf-burger::before { top: -6px; }
.ptf-burger::after { top: 6px; }
.ptf-nav-wrap { display: none; }
html:not(.js) .ptf-nav-wrap, .ptf-nav-open .ptf-nav-wrap {
	display: flex; flex-direction: column; align-items: stretch; gap: 12px;
	position: absolute; inset-inline: 0; top: 100%; background: #fff; padding: 12px var(--ptf-gutter) 20px;
	border-bottom: 1px solid var(--ptf-line); box-shadow: var(--ptf-shadow);
}
html:not(.js) .ptf-nav-toggle { display: none; }
.ptf-nav__list, .ptf-lang { list-style: none; margin: 0; padding: 0; }
.ptf-nav__list a { display: block; padding: 10px 4px; color: var(--ptf-ink); font-weight: 600; text-decoration: none; }
.ptf-nav__list a:hover, .ptf-nav__list a[aria-current="page"] { color: var(--ptf-navy-2); text-decoration: underline; }
.ptf-lang { display: flex; flex-wrap: wrap; gap: 6px; }
.ptf-lang a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 10px; border: 1px solid var(--ptf-line); border-radius: 999px; font-size: 14px; color: var(--ptf-ink-2); text-decoration: none; }
.ptf-lang a.is-current { background: var(--ptf-navy); border-color: var(--ptf-navy); color: #fff; }
.ptf-header__wa { display: inline-flex; align-items: center; gap: 6px; color: var(--ptf-wa); font-weight: 600; text-decoration: none; min-height: 44px; }
.ptf-header__wa:hover { color: #0b5e39; }
@media (min-width: 1080px) {
	.ptf-nav-toggle { display: none; }
	.ptf-nav-wrap, html:not(.js) .ptf-nav-wrap, .ptf-nav-open .ptf-nav-wrap { display: flex; flex-direction: row; align-items: center; gap: 18px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
	.ptf-nav__list { display: flex; gap: 6px; }
	.ptf-nav__list a { padding: 8px 10px; }
	.ptf-lang a { min-height: 32px; padding: 2px 9px; font-size: 13px; }
	.ptf-header__wa span { font-size: 15px; }
}

/* ---------- Footer ---------- */
.ptf-footer { background: var(--ptf-ink); color: #d7dde8; margin-top: 0; padding-block: 48px 24px; font-size: 15px; }
.ptf-footer a { color: #fff; }
.ptf-footer a:hover { color: var(--ptf-gold); }
.ptf-footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
:lang(fa) .ptf-footer h2 { text-transform: none; letter-spacing: 0; }
.ptf-footer ul { list-style: none; margin: 0; padding: 0; }
.ptf-footer li { margin-block: 6px; }
.ptf-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ptf-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.ptf-logo--footer { color: #fff; }
.ptf-logo--footer:hover { color: #fff; }
.ptf-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ptf-footer__contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 32px; }
.ptf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 20px; font-size: 14px; }
.ptf-footer__bottom p { margin: 0 0 6px; }
.ptf-footer__sister span { color: #b9c2d3; }
body.ptf-tpl .site-footer { background: none; padding: 0; }

/* ---------- Typography helpers ---------- */
.ptf-page-title { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 16px; }
.ptf-h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 16px; }
.ptf-prose { font-size: 17px; }
.ptf-prose > * + * { margin-top: 1em; }
.ptf-prose h2 { font-size: 24px; margin-top: 1.6em; }
.ptf-prose h3 { font-size: 20px; margin-top: 1.4em; }
.ptf-intro { color: var(--ptf-ink-2); max-width: 760px; margin-bottom: 24px; }
.ptf-lead-text { font-size: 18px; color: var(--ptf-ink-2); }
.ptf-empty { padding: 24px; background: var(--ptf-surface); border-radius: var(--ptf-radius); color: var(--ptf-ink-2); }
.ptf-link-more { font-weight: 600; white-space: nowrap; }

/* ---------- Breadcrumbs ---------- */
.ptf-crumbs { font-size: 14px; color: var(--ptf-muted); padding-block: 14px 4px; }
.ptf-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ptf-crumbs li + li::before { content: "›"; margin-inline-end: 4px; color: var(--ptf-muted); }
[dir="rtl"] .ptf-crumbs li + li::before { content: "‹"; }
.ptf-crumbs a { color: var(--ptf-ink-2); }

/* ---------- Hero ---------- */
.ptf-hero { background: linear-gradient(180deg, #f3f5f9 0%, #fff 100%); padding-block: 40px 32px; border-bottom: 1px solid var(--ptf-line); }
.ptf-hero__title { font-size: clamp(30px, 5vw, 48px); max-width: 820px; margin: 0 0 12px; }
.ptf-hero__sub { font-size: clamp(17px, 2vw, 19px); color: var(--ptf-ink-2); max-width: 720px; margin: 0 0 24px; }
.ptf-chips { margin-top: 20px; }
.ptf-chips__title { font-size: 14px; font-weight: 600; color: var(--ptf-muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; }
:lang(fa) .ptf-chips__title { text-transform: none; letter-spacing: 0; }
.ptf-chips ul, .ptf-subhubs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ptf-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; background: #fff; border: 1px solid var(--ptf-line); border-radius: 999px; color: var(--ptf-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.ptf-chip:hover, .ptf-chip:focus { border-color: var(--ptf-gold-2); background: var(--ptf-gold-soft); color: var(--ptf-ink); }

/* ---------- Search form ---------- */
.ptf-search { background: #fff; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); padding: 16px; box-shadow: var(--ptf-shadow); }
.ptf-search__main, .ptf-search__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ptf-search--hero .ptf-search__main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ptf-search--hero .ptf-search__main { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.ptf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ptf-field > label, .ptf-field__label { font-size: 14px; font-weight: 600; color: var(--ptf-ink-2); }
.ptf-field select, .ptf-field input[type="text"], .ptf-field input[type="email"], .ptf-field input[type="tel"], .ptf-field textarea, .ptf-phone select, .ptf-sort select {
	width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; color: var(--ptf-ink); background-color: #fff;
	border: 1px solid #b9c1ce; border-radius: var(--ptf-radius-sm);
}
.ptf-field select:focus, .ptf-field input:focus, .ptf-field textarea:focus { border-color: var(--ptf-navy); outline: 3px solid rgba(217, 164, 65, .45); outline-offset: 0; }
.ptf-field--submit .ptf-btn { width: 100%; }
.ptf-field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.ptf-field--check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ptf-navy); }
.ptf-field--check label { font-weight: 500; color: var(--ptf-ink); font-size: 15px; }
.ptf-search__more { margin-top: 12px; border-top: 1px solid var(--ptf-line); padding-top: 8px; }
.ptf-search__more summary { cursor: pointer; font-weight: 600; color: var(--ptf-navy-2); min-height: 40px; display: flex; align-items: center; }
.ptf-search__more[open] .ptf-search__grid { margin-top: 8px; }
.ptf-search__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Results ---------- */
.ptf-results-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .ptf-results-layout { grid-template-columns: 300px 1fr; align-items: start; } .ptf-results-layout__filters { position: sticky; top: 16px; } }
.ptf-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ptf-results-count { font-size: 18px; margin: 0; }
.ptf-sort { display: flex; align-items: center; gap: 8px; }
.ptf-sort label { font-size: 14px; font-weight: 600; color: var(--ptf-ink-2); white-space: nowrap; }
.ptf-sort select { width: auto; }

/* ---------- Cards / grid ---------- */
.ptf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ptf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ptf-grid { grid-template-columns: repeat(3, 1fr); } .ptf-results-layout .ptf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .ptf-results-layout .ptf-grid { grid-template-columns: repeat(3, 1fr); } }
.ptf-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); overflow: hidden; box-shadow: var(--ptf-shadow); }
.ptf-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--ptf-surface); }
.ptf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptf-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #a3adbd; background: var(--ptf-surface); }
.ptf-badges { list-style: none; margin: 0; padding: 0; position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ptf-badge { background: rgba(255, 255, 255, .95); color: var(--ptf-ink); font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.ptf-badge--gold { background: var(--ptf-gold); color: var(--ptf-ink); }
.ptf-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.ptf-card__price { font-size: 20px; font-weight: 800; color: var(--ptf-ink); margin: 0; }
.ptf-card__title { font-size: 18px; line-height: 1.35; margin: 0; }
.ptf-card__title a { color: var(--ptf-ink); text-decoration: none; }
.ptf-card__title a:hover { text-decoration: underline; }
.ptf-card__loc, .ptf-property__loc { display: flex; align-items: center; gap: 6px; color: var(--ptf-muted); font-size: 15px; margin: 0; }
.ptf-card__facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--ptf-ink-2); }
.ptf-card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.ptf-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.ptf-card__actions .ptf-btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 12px; }

/* ---------- Sections ---------- */
.ptf-section { padding-block: 48px; }
.ptf-section--tight { padding-block: 24px; }
.ptf-section--alt { background: var(--ptf-surface); }
.ptf-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.ptf-section__head .ptf-h2 { margin: 0; }
.ptf-cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ptf-city { display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 110px; justify-content: flex-end; border-radius: var(--ptf-radius); background: linear-gradient(135deg, var(--ptf-navy) 0%, var(--ptf-navy-2) 100%); color: #fff; text-decoration: none; }
.ptf-city:hover, .ptf-city:focus { color: #fff; box-shadow: inset 0 -4px 0 var(--ptf-gold); }
.ptf-city__name { font-size: 22px; font-weight: 800; }
.ptf-city__count { font-size: 15px; color: #dbe3f0; }
.ptf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .ptf-steps { grid-template-columns: repeat(3, 1fr); } }
.ptf-steps__item { background: #fff; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); padding: 20px; }
.ptf-steps__item h3 { font-size: 19px; margin: 10px 0 6px; }
.ptf-steps__item p { margin: 0; color: var(--ptf-ink-2); }
.ptf-steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ptf-gold-soft); color: var(--ptf-gold-ink); font-weight: 800; }
.ptf-trust { background: var(--ptf-gold-soft); }
.ptf-trust__in { max-width: 860px; }
.ptf-trust__in p { margin: 0; font-size: 18px; color: var(--ptf-ink-2); }

/* ---------- Single property ---------- */
.ptf-property__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-block: 8px 16px; }
.ptf-property__title { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 6px; }
.ptf-property__price { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0; color: var(--ptf-ink); }
.ptf-gallery { margin-bottom: 28px; }
.ptf-gallery__track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--ptf-radius); overscroll-behavior-x: contain; }
@media (min-width: 900px) { .ptf-gallery__track { grid-auto-columns: 78%; } }
.ptf-gallery__item { scroll-snap-align: start; }
.ptf-gallery__item figure { margin: 0; position: relative; aspect-ratio: 3 / 2; background: var(--ptf-surface); border-radius: var(--ptf-radius); overflow: hidden; }
.ptf-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptf-gallery__count { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; background: rgba(15, 30, 54, .82); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.ptf-gallery__empty { aspect-ratio: 16 / 7; border-radius: var(--ptf-radius); overflow: hidden; }
.ptf-property__layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .ptf-property__layout { grid-template-columns: 1fr 340px; align-items: start; } .ptf-property__aside { position: sticky; top: 16px; } }
.ptf-property__main > section { margin-bottom: 36px; }
.ptf-facts__list, .ptf-distances { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); overflow: hidden; }
@media (min-width: 640px) { .ptf-facts__list, .ptf-distances { grid-template-columns: 1fr 1fr; } }
.ptf-facts__list > div, .ptf-distances > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ptf-line); background: #fff; }
.ptf-facts__list dt, .ptf-distances dt { color: var(--ptf-muted); font-weight: 500; }
.ptf-facts__list dd, .ptf-distances dd { margin: 0; font-weight: 700; text-align: end; }
.ptf-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ptf-features li { display: flex; align-items: center; gap: 8px; }
.ptf-features svg { color: var(--ptf-ok); }
.ptf-pricebox { background: #fff; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); padding: 20px; box-shadow: var(--ptf-shadow); display: flex; flex-direction: column; gap: 10px; }
.ptf-pricebox__price { font-size: 26px; font-weight: 800; margin: 0; }
.ptf-pricebox__meta { margin: 0 0 6px; color: var(--ptf-ink-2); }
.ptf-pricebox__tel { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; font-weight: 600; text-decoration: none; }

/* ---------- Lead form ---------- */
.ptf-lead-box { margin-top: 40px; background: var(--ptf-surface); border-radius: var(--ptf-radius); padding: 24px 16px; scroll-margin-top: 16px; }
@media (min-width: 768px) { .ptf-lead-box { padding: 32px; } }
.ptf-lead-box__title { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 8px; }
.ptf-lead-box__intro { color: var(--ptf-ink-2); margin: 0 0 20px; max-width: 720px; }
.ptf-lead__grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 768px) { .ptf-lead__grid { grid-template-columns: 1fr 1fr; } .ptf-field--wide { grid-column: 1 / -1; } }
.ptf-phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.ptf-req { color: var(--ptf-err); }
.ptf-field--consent { margin-bottom: 18px; max-width: 760px; }
.ptf-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ptf-notice { display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: var(--ptf-radius-sm); margin: 0 0 16px; font-weight: 600; }
.ptf-notice--ok { background: var(--ptf-ok-bg); color: var(--ptf-ok); }
.ptf-notice--err { background: var(--ptf-err-bg); color: var(--ptf-err); }
.ptf-direct { margin-block: 8px 0; }
.ptf-direct__title { font-weight: 700; margin: 0 0 8px; }
.ptf-direct__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* ---------- Matcher ---------- */
.ptf-matcher { background: #fff; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); padding: 20px 16px; box-shadow: var(--ptf-shadow); }
@media (min-width: 768px) { .ptf-matcher { padding: 28px; } }
.ptf-matcher__progress { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ptf-muted); min-height: 1.6em; }
html:not(.js) .ptf-matcher__progress { display: none; }
.ptf-step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.ptf-step[hidden] { display: none; }
.ptf-step legend { font-size: 22px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.ptf-options { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ptf-options { grid-template-columns: 1fr 1fr; } }
.ptf-option { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid #b9c1ce; border-radius: var(--ptf-radius-sm); cursor: pointer; font-weight: 600; }
.ptf-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--ptf-navy); flex: none; }
.ptf-option:has(input:checked) { border-color: var(--ptf-navy); background: #eef2f9; }
.ptf-step__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.ptf-matcher:not(.is-stepped) .ptf-step__nav { display: none; }

/* ---------- Compare ---------- */
.ptf-compare { overflow-x: auto; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); }
.ptf-compare__table { width: auto; border-collapse: collapse; margin: 0; border: 0; font-size: 15px; table-layout: fixed; }
.ptf-compare__table thead th { width: 280px; }
.ptf-compare__table thead td { width: 150px; }
@media (min-width: 768px) { .ptf-compare__table thead td { width: 190px; } }
.ptf-compare__table th, .ptf-compare__table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--ptf-line); text-align: start; vertical-align: top; }
.ptf-compare__table tbody th { color: var(--ptf-muted); font-weight: 600; background: var(--ptf-surface); position: sticky; inset-inline-start: 0; }
.ptf-compare__table thead th { font-weight: 700; }
.ptf-compare__table thead th a { display: block; color: var(--ptf-ink); margin-block: 8px; }
.ptf-compare__media { aspect-ratio: 3 / 2; border-radius: var(--ptf-radius-sm); overflow: hidden; background: var(--ptf-surface); }
.ptf-compare__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Pagination ---------- */
.ptf-pages { margin-top: 28px; }
.ptf-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ptf-pages a, .ptf-pages span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius-sm); text-decoration: none; font-weight: 600; }
.ptf-pages span[aria-current] { background: var(--ptf-navy); border-color: var(--ptf-navy); color: #fff; }
.ptf-pages__gap { align-self: center; }

/* ---------- Compare bar & cookie banner (fixed overlays: no layout shift) ---------- */
.ptf-compare-bar, .ptf-cookie {
	position: fixed; inset-inline: 12px; inset-block-end: 12px; z-index: 90;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
	max-width: 760px; margin-inline: auto; padding: 12px 16px; background: #fff; color: var(--ptf-ink);
	border: 1px solid var(--ptf-line); border-radius: var(--ptf-radius); box-shadow: 0 8px 30px rgba(15, 30, 54, .18);
}
.ptf-compare-bar[hidden], .ptf-cookie[hidden] { display: none; }
.ptf-compare-bar__text, .ptf-cookie__text { margin: 0; font-size: 15px; }
.ptf-compare-bar__msg { display: block; color: var(--ptf-err); font-size: 14px; }
.ptf-compare-bar__msg:empty { display: none; }
.ptf-compare-bar__actions, .ptf-cookie__actions { display: flex; gap: 8px; }
.ptf-cookie { z-index: 95; }
.ptf-cookie .ptf-btn--choice { background: #fff; color: var(--ptf-ink); border: 2px solid var(--ptf-navy); min-width: 120px; }
.ptf-cookie .ptf-btn--choice:hover, .ptf-cookie .ptf-btn--choice:focus { background: var(--ptf-navy); color: #fff; }
.ptf-has-compare .ptf-cookie { inset-block-end: 96px; }
body.ptf-has-compare { padding-bottom: 96px; }

/* ---------- Generic pages ---------- */
.ptf-article { margin-bottom: 24px; }
.ptf-subhubs { margin-block: 8px 8px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
