/* PointTurkey design system v2 (pt.css). Mobile-first. Tokens -> base -> layout -> components -> chrome.
   Fonts (self-hosted, SIL OFL): Plus Jakarta Sans 600/700/800 (headings), Inter 400/600/700/800 (body). No third-party calls.
   Icons: Lucide (ISC) via img/icons.svg + macro icon(). Breakpoints: 600 / 900 / 1200. Spec: docs/DESIGN_V2.md, kit reference: _agents/ds-core/KIT.md */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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 ---------- */
:root {
  color-scheme: light;
  /* brand red (sampled from propertyturkey.com) */
  --pt-red-50: #fff1f1; --pt-red-100: #ffe0df; --pt-red-200: #ffc7c5; --pt-red-500: #e5332f;
  --pt-red-600: #cf1f1d; --pt-red-700: #ad1917; --pt-red-800: #8e1714;
  /* warm zinc neutrals */
  --pt-gray-0: #ffffff; --pt-gray-25: #fcfcfb; --pt-gray-50: #f7f7f5; --pt-gray-100: #efefec; --pt-gray-200: #e4e4e0;
  --pt-gray-300: #d2d2cc; --pt-gray-400: #a3a39d; --pt-gray-500: #74746e; --pt-gray-600: #55554f; --pt-gray-700: #3d3d39;
  --pt-gray-800: #262624; --pt-gray-900: #171716;

  /* semantic aliases (v1 names kept: every older stylesheet still resolves) */
  --pt-primary: var(--pt-red-600);       /* white text on it 5.9:1 */
  --pt-primary-600: var(--pt-red-700);   /* hover / pressed */
  --pt-primary-500: var(--pt-red-700);   /* text-safe red for links and active labels */
  --pt-primary-soft: var(--pt-red-50);
  --pt-primary-soft-2: var(--pt-red-200);
  --pt-accent: var(--pt-primary); --pt-accent-600: var(--pt-primary-600); --pt-accent-soft: var(--pt-primary-soft);
  --pt-on-primary: #ffffff;
  --pt-ink: var(--pt-gray-900); --pt-ink-2: var(--pt-gray-800);
  --pt-ring: rgba(207, 31, 29, .32);
  --pt-bg: var(--pt-gray-0);
  --pt-surface: var(--pt-gray-0); --pt-surface-2: var(--pt-gray-50); --pt-surface-3: var(--pt-gray-100);
  --pt-border: var(--pt-gray-200); --pt-border-strong: var(--pt-gray-300);
  --pt-text: var(--pt-gray-900); --pt-text-2: var(--pt-gray-600);
  --pt-text-3: #6b6b65;                   /* gray-500 darkened a touch: 5.2:1 on white, 4.8:1 on gray-50 */
  --pt-muted: var(--pt-text-2);
  --pt-overlay: rgba(23, 23, 22, .5);

  /* status (never brand red; always paired with a label or icon) */
  --pt-success: #15803d; --pt-success-bg: #ecfdf3;
  --pt-warning: #b45309; --pt-warning-bg: #fffaeb;
  --pt-danger: #9f1239;  --pt-danger-bg: #fff1f3;
  --pt-info: #1d4ed8;    --pt-info-bg: #eff6ff;
  --pt-live: var(--pt-success);   --pt-live-bg: var(--pt-success-bg);
  --pt-pending: var(--pt-warning); --pt-pending-bg: var(--pt-warning-bg);
  --pt-changes: #9a3412; --pt-changes-bg: #fff4ed;
  --pt-rejected: var(--pt-danger); --pt-rejected-bg: var(--pt-danger-bg);
  --pt-sold: #5b21b6; --pt-sold-bg: #f3effe;
  --pt-draft: var(--pt-gray-600); --pt-draft-bg: var(--pt-gray-100);
  --pt-removed: var(--pt-gray-600); --pt-removed-bg: var(--pt-gray-100);

  /* spacing (4px base) */
  --pt-s1: 4px; --pt-s2: 8px; --pt-s3: 12px; --pt-s4: 16px; --pt-s5: 24px; --pt-s6: 32px; --pt-s7: 48px; --pt-s8: 72px;
  --pt-sp-5: 20px; --pt-sp-8: 40px; --pt-sp-10: 64px; --pt-sp-12: 80px; --pt-sp-14: 96px;
  /* shape + depth */
  --pt-r-xs: 6px; --pt-r-sm: 8px; --pt-r: 12px; --pt-r-md: 12px; --pt-r-lg: 16px; --pt-r-xl: 24px; --pt-r-pill: 999px;
  --pt-shadow-sm: 0 1px 2px rgba(17, 17, 16, .06);
  --pt-shadow-md: 0 6px 20px -6px rgba(17, 17, 16, .12), 0 2px 4px rgba(17, 17, 16, .04);
  --pt-shadow-lg: 0 24px 48px -16px rgba(17, 17, 16, .22);
  --pt-shadow-1: var(--pt-shadow-sm); --pt-shadow-2: var(--pt-shadow-md); --pt-shadow-3: var(--pt-shadow-lg);
  --pt-z-sticky: 20; --pt-z-header: 40; --pt-z-tabbar: 45; --pt-z-drawer: 60; --pt-z-consent: 70; --pt-z-modal: 80; --pt-z-toast: 100; --pt-z-skip: 120;

  --pt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pt-font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pt-header-h: 60px;
  --pt-tabbar-h: 0px;                /* set on body.pt-has-tabbar (phones) */
  --pt-container: 1280px;
  --pt-gutter: 20px;
  --pt-tap: 44px;
  --pt-ease: cubic-bezier(.2, .8, .2, 1);
  --pt-dur: 160ms;
  --pt-bp-sm: 600px; --pt-bp-md: 900px; --pt-bp-lg: 1200px; /* documentation; media queries use literals */
}
@media (min-width: 900px) { :root { --pt-header-h: 72px; --pt-gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--pt-header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: clip;
  font: 400 16px/1.55 var(--pt-font); color: var(--pt-text); background: var(--pt-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pt-primary-500); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pt-red-800); }
h1, h2, h3, h4 { font-family: var(--pt-font-display); line-height: 1.2; margin: 0 0 var(--pt-s3); color: var(--pt-text); letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 1.5rem; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 var(--pt-s3); }
hr { border: 0; border-top: 1px solid var(--pt-border); margin: var(--pt-s5) 0; }
:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--pt-red-100); }
@media (min-width: 900px) { h1 { font-size: 2.25rem; } h2 { font-size: 1.875rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* type utilities */
.pt-display { font-family: var(--pt-font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.08; letter-spacing: -.03em; margin: 0; }
@media (min-width: 900px) { .pt-display { font-size: 3.75rem; } }
.pt-display--md { font-size: 2.25rem; } @media (min-width: 900px) { .pt-display--md { font-size: 3rem; } }
.pt-lead { font-size: 1.125rem; line-height: 1.55; color: var(--pt-text-2); }
@media (min-width: 900px) { .pt-lead { font-size: 1.25rem; } }
.pt-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-primary-500); margin-bottom: var(--pt-s2); }
.pt-num, .pt-price { font-variant-numeric: tabular-nums; }

.pt-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pt-skip { position: absolute; left: var(--pt-s3); top: -100px; z-index: var(--pt-z-skip); background: var(--pt-primary); color: #fff; padding: 10px 16px; border-radius: var(--pt-r); text-decoration: none; font-weight: 600; }
.pt-skip:focus { top: var(--pt-s3); color: #fff; }
.pt-muted { color: var(--pt-text-2); }
.pt-small { font-size: .875rem; }
.pt-xs { font-size: .8125rem; }
.pt-strong { font-weight: 700; }
.pt-center { text-align: center; }
.pt-nowrap { white-space: nowrap; }
.pt-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-mt0 { margin-top: 0; } .pt-mb0 { margin-bottom: 0; }
.pt-hide-mobile { display: none !important; }
@media (min-width: 900px) { .pt-hide-mobile { display: revert !important; } .pt-hide-desktop { display: none !important; } }
.pt-link-plain { color: inherit; text-decoration: none; }
.pt-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.pt-icon--sm { width: 16px; height: 16px; } .pt-icon--lg { width: 24px; height: 24px; } .pt-icon--xl { width: 32px; height: 32px; }

/* ---------- Layout ---------- */
.pt-container { width: 100%; max-width: var(--pt-container); margin-inline: auto; padding-inline: var(--pt-gutter); }
.pt-container--narrow { max-width: 720px; }
.pt-container--mid { max-width: 960px; }
.pt-section { padding-block: 40px; }
.pt-section--tight { padding-block: var(--pt-s5); }
.pt-section--alt { background: var(--pt-gray-25); }
@media (min-width: 600px) { .pt-section { padding-block: 56px; } }
@media (min-width: 900px) { .pt-section { padding-block: 80px; } .pt-section--tight { padding-block: var(--pt-s6); } }
.pt-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--pt-s3); margin-bottom: var(--pt-s5); }
.pt-section__head h2 { margin: 0; }
.pt-stack { --pt-gap: var(--pt-s4); display: flex; flex-direction: column; gap: var(--pt-gap); }
.pt-stack--sm { --pt-gap: var(--pt-s2); } .pt-stack--lg { --pt-gap: var(--pt-s5); } .pt-stack--xl { --pt-gap: var(--pt-s7); }
.pt-cluster { --pt-gap: var(--pt-s3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--pt-gap); }
.pt-cluster--between { justify-content: space-between; }
.pt-cluster--end { justify-content: flex-end; }
.pt-cluster--center { justify-content: center; }
.pt-cluster--sm { --pt-gap: var(--pt-s2); }
.pt-grid { --pt-gap: var(--pt-s4); display: grid; gap: var(--pt-gap); grid-template-columns: 1fr; }
.pt-grid--2, .pt-grid--3, .pt-grid--4, .pt-grid--cards { grid-template-columns: 1fr; }
@media (min-width: 600px) { .pt-grid--2 { grid-template-columns: repeat(2, 1fr); } .pt-grid--3 { grid-template-columns: repeat(2, 1fr); } .pt-grid--4 { grid-template-columns: repeat(2, 1fr); } .pt-grid--cards { grid-template-columns: repeat(2, 1fr); gap: var(--pt-s5) var(--pt-s4); } }
@media (min-width: 900px) { .pt-grid--3 { grid-template-columns: repeat(3, 1fr); } .pt-grid--4 { grid-template-columns: repeat(3, 1fr); } .pt-grid--cards { grid-template-columns: repeat(3, 1fr); gap: var(--pt-s6) var(--pt-s5); } }
@media (min-width: 1200px) { .pt-grid--4 { grid-template-columns: repeat(4, 1fr); } .pt-grid--cards { grid-template-columns: repeat(4, 1fr); } }
.pt-grid > *, .pt-stack > *, .pt-cluster > * { min-width: 0; }
.pt-split { display: grid; gap: var(--pt-s5); grid-template-columns: minmax(0, 1fr); }
.pt-split > * { min-width: 0; }
@media (min-width: 900px) { .pt-split { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: var(--pt-s7); } .pt-split--filters { grid-template-columns: 280px minmax(0, 1fr); } }
.pt-page-head { padding-block: var(--pt-s5) var(--pt-s3); }
.pt-page-head h1 { margin-bottom: var(--pt-s1); }
/* horizontal scroller (area tiles on phones) */
.pt-hscroll { display: flex; gap: var(--pt-s3); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--pt-gutter) * -1); padding-inline: var(--pt-gutter); scroll-padding-inline: var(--pt-gutter); -webkit-overflow-scrolling: touch; }
.pt-hscroll::-webkit-scrollbar { display: none; }
.pt-hscroll > * { flex: none; scroll-snap-align: start; }

/* ---------- Buttons ---------- */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--pt-r); border: 1px solid transparent;
  font-family: var(--pt-font); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background var(--pt-dur) var(--pt-ease), border-color var(--pt-dur), box-shadow var(--pt-dur), color var(--pt-dur), transform .08s;
}
.pt-btn:active { transform: scale(.985); }
.pt-btn--primary, .pt-btn--accent { background: var(--pt-red-600); color: #fff; }
.pt-btn--primary:hover, .pt-btn--accent:hover { background: var(--pt-red-700); color: #fff; box-shadow: 0 6px 16px -6px rgba(173, 25, 23, .55); }
.pt-btn--secondary { background: var(--pt-surface); color: var(--pt-text); border-color: var(--pt-gray-300); }
.pt-btn--secondary:hover { border-color: var(--pt-gray-900); color: var(--pt-text); background: var(--pt-gray-25); }
.pt-btn--ghost { background: transparent; color: var(--pt-text); }
.pt-btn--ghost:hover { background: var(--pt-gray-100); color: var(--pt-text); }
.pt-btn--danger { background: var(--pt-danger); color: #fff; }
.pt-btn--danger:hover { background: #7f0e2d; color: #fff; }
.pt-btn--link { background: none; border-color: transparent; color: var(--pt-primary-500); padding-inline: 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.pt-btn--link:hover { color: var(--pt-red-800); }
.pt-btn--sm { min-height: 40px; padding: 7px 14px; font-size: .875rem; border-radius: var(--pt-r-sm); }
.pt-btn--lg { min-height: 52px; padding: 13px 28px; font-size: 1rem; }
.pt-btn--block { display: flex; width: 100%; }
.pt-btn--icon { padding: 0; width: 44px; }
.pt-btn[disabled], .pt-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.pt-btn .pt-icon { width: 18px; height: 18px; }
.pt-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.pt-btn.is-loading .pt-icon { opacity: 0; }
.pt-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: pt-spin .7s linear infinite; }
.pt-btn--secondary.is-loading::after, .pt-btn--ghost.is-loading::after { border-color: var(--pt-gray-200); border-top-color: var(--pt-gray-800); }
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-link-btn { background: none; border: 0; padding: 0; color: var(--pt-primary-500); text-decoration: underline; cursor: pointer; min-height: 24px; }
/* icon-only round button (every one needs an aria-label) */
.pt-iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; background: none; border: 0; border-radius: var(--pt-r-pill); color: var(--pt-text); font-weight: 600; font-size: .875rem; cursor: pointer; text-decoration: none; transition: background var(--pt-dur); }
.pt-iconbtn:hover { background: var(--pt-gray-100); color: var(--pt-text); }
.pt-iconbtn--outline { border: 1px solid var(--pt-gray-300); background: var(--pt-surface); }
.pt-iconbtn--outline:hover { border-color: var(--pt-gray-900); background: var(--pt-surface); }

/* ---------- Forms ---------- */
.pt-field { display: flex; flex-direction: column; gap: 6px; }
.pt-label { font-weight: 600; font-size: .875rem; color: var(--pt-text); }
.pt-label .pt-req { color: var(--pt-primary-500); margin-inline-start: 2px; }
.pt-input, .pt-select, .pt-textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--pt-surface); font-size: 1rem;
  border: 1px solid var(--pt-gray-300); border-radius: var(--pt-r); color: var(--pt-text);
  transition: border-color var(--pt-dur), box-shadow var(--pt-dur);
}
.pt-input--lg { min-height: 56px; font-size: 1.0625rem; padding-inline: 18px; border-radius: var(--pt-r-lg); }
.pt-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.pt-select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355554f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.pt-input::placeholder, .pt-textarea::placeholder { color: var(--pt-text-3); }
.pt-input:hover, .pt-select:hover, .pt-textarea:hover { border-color: var(--pt-gray-400); }
.pt-input:focus, .pt-select:focus, .pt-textarea:focus { outline: none; border-color: var(--pt-red-600); box-shadow: 0 0 0 4px var(--pt-ring); }
.pt-input[disabled], .pt-select[disabled], .pt-textarea[disabled] { background: var(--pt-gray-50); color: var(--pt-text-3); cursor: not-allowed; }
.pt-field--error .pt-input, .pt-field--error .pt-select, .pt-field--error .pt-textarea, .pt-input[aria-invalid="true"], .pt-select[aria-invalid="true"], .pt-textarea[aria-invalid="true"] { border-color: var(--pt-danger); }
.pt-field--error .pt-input:focus, .pt-field--error .pt-select:focus, .pt-field--error .pt-textarea:focus { box-shadow: 0 0 0 4px rgba(159, 18, 57, .18); }
.pt-help { font-size: .8125rem; color: var(--pt-text-2); }
.pt-error { display: flex; align-items: flex-start; gap: 6px; font-size: .8125rem; color: var(--pt-danger); font-weight: 600; }
.pt-error::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.pt-input-group { display: flex; gap: var(--pt-s2); }
.pt-input-group > .pt-input { flex: 1; }
.pt-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 10px; cursor: pointer; }
.pt-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--pt-red-600); cursor: pointer; }
.pt-check span { padding-top: 1px; }
.pt-form-row { display: grid; gap: var(--pt-s4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .pt-form-row--2 { grid-template-columns: 1fr 1fr; } .pt-form-row--3 { grid-template-columns: repeat(3, 1fr); } }
fieldset.pt-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pt-fieldset legend { font-weight: 600; font-size: .875rem; padding: 0; margin-bottom: 8px; }
.pt-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--pt-s2); align-items: center; }

/* chips: radio / checkbox chips (.pt-chip wraps an input) and standalone link/button chips */
.pt-chips { display: flex; flex-wrap: wrap; gap: var(--pt-s2); }
.pt-chip { position: relative; display: inline-flex; }
.pt-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pt-chip > span, a.pt-chip, button.pt-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--pt-gray-300); border-radius: var(--pt-r-pill);
  background: var(--pt-surface); font-weight: 600; font-size: .875rem; color: var(--pt-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color var(--pt-dur), background var(--pt-dur), color var(--pt-dur);
}
.pt-chip input:hover + span, a.pt-chip:hover, button.pt-chip:hover { border-color: var(--pt-gray-900); color: var(--pt-text); }
.pt-chip input:checked + span, .pt-chip--active, a.pt-chip.pt-chip--active, button.pt-chip.pt-chip--active { background: var(--pt-gray-900); border-color: var(--pt-gray-900); color: #fff; }
.pt-chip input:focus-visible + span { outline: 3px solid var(--pt-ring); outline-offset: 2px; }
.pt-chip--removable .pt-icon { width: 14px; height: 14px; }
.pt-chip--sm > span, .pt-chip--sm { min-height: 36px; padding: 5px 12px; }
.pt-chip--sm > span { min-height: 36px; padding: 5px 12px; }

/* segmented control */
.pt-segmented { display: inline-flex; background: var(--pt-gray-100); border-radius: var(--pt-r); padding: 4px; gap: 2px; max-width: 100%; align-self: flex-start; }
.pt-segmented a, .pt-segmented button, .pt-segmented label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 6px 16px; border: 0; background: transparent; border-radius: calc(var(--pt-r) - 4px); font-weight: 600; font-size: .875rem; color: var(--pt-text-2); text-decoration: none; cursor: pointer; position: relative; transition: background var(--pt-dur), color var(--pt-dur); }
.pt-segmented a:hover, .pt-segmented button:hover { color: var(--pt-text); }
.pt-segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pt-segmented .is-active, .pt-segmented [aria-pressed="true"], .pt-segmented [aria-current="true"], .pt-segmented label:has(input:checked) { background: var(--pt-surface); color: var(--pt-text); box-shadow: var(--pt-shadow-sm); }
.pt-segmented label:has(input:focus-visible) { outline: 3px solid var(--pt-ring); }
/* switch */
.pt-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.pt-switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--pt-gray-300); position: relative; margin: 0; cursor: pointer; transition: background var(--pt-dur); flex: none; }
.pt-switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--pt-shadow-sm); transition: transform var(--pt-dur) var(--pt-ease); }
.pt-switch input:checked { background: var(--pt-red-600); }
.pt-switch input:checked::after { transform: translateX(18px); }

/* option cards (wizard choices): <label class="pt-optcard"><input type=radio><span>icon + title</span></label> */
.pt-optcard { position: relative; display: block; cursor: pointer; }
.pt-optcard input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pt-optcard > span { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-height: 108px; border: 1px solid var(--pt-gray-300); border-radius: var(--pt-r-lg); background: var(--pt-surface); font-weight: 600; transition: border-color var(--pt-dur), box-shadow var(--pt-dur), background var(--pt-dur); }
.pt-optcard > span .pt-icon { width: 28px; height: 28px; }
.pt-optcard:hover > span { border-color: var(--pt-gray-900); }
.pt-optcard input:checked + span { border-color: var(--pt-gray-900); box-shadow: inset 0 0 0 1px var(--pt-gray-900); background: var(--pt-gray-25); }
.pt-optcard input:focus-visible + span { outline: 3px solid var(--pt-ring); outline-offset: 2px; }

/* ---------- Cards ---------- */
.pt-card { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-r-lg); padding: var(--pt-s5); }
.pt-card--flat { border-color: transparent; background: var(--pt-gray-50); }
.pt-card--raised { box-shadow: var(--pt-shadow-md); border-color: var(--pt-gray-100); }
.pt-card--pad-lg { padding: var(--pt-s6); }
.pt-card h2:first-child, .pt-card h3:first-child { margin-top: 0; }
a.pt-card { display: block; color: inherit; text-decoration: none; transition: box-shadow var(--pt-dur) var(--pt-ease), transform var(--pt-dur) var(--pt-ease); }
a.pt-card:hover { box-shadow: var(--pt-shadow-md); transform: translateY(-2px); color: inherit; }

/* listing card: <article class="pt-lcard"> media (carousel + heart + badges) / body */
.pt-lcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: transparent; border-radius: var(--pt-r-lg); transition: transform var(--pt-dur) var(--pt-ease); }
.pt-lcard:hover { transform: translateY(-2px); }
.pt-lcard__media { position: relative; z-index: 2; aspect-ratio: 4 / 3; background: var(--pt-gray-100); border-radius: var(--pt-r-lg); overflow: hidden; }
.pt-lcard:hover .pt-lcard__media { box-shadow: var(--pt-shadow-md); }
.pt-lcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-lcard__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--pt-gray-400); background: var(--pt-gray-50); }
.pt-lcard__placeholder .pt-icon { width: 40px; height: 40px; stroke-width: 1.25; }
.pt-lcard__badges { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 72px); pointer-events: none; }
.pt-lcard__count { position: absolute; right: 12px; bottom: 12px; z-index: 3; background: rgba(23, 23, 22, .72); color: #fff; border-radius: var(--pt-r-pill); padding: 3px 10px; font-size: .75rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; pointer-events: none; }
.pt-lcard__count .pt-icon { width: 14px; height: 14px; }
/* heart: white disc, absolute top right, never under the photo */
.pt-lcard__fav { position: absolute; right: 6px; top: 6px; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--pt-gray-900); -webkit-tap-highlight-color: transparent; }
.pt-lcard__fav::before { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(17, 17, 16, .2); transition: transform var(--pt-dur) var(--pt-ease); }
.pt-lcard__fav:hover::before { transform: scale(1.08); }
.pt-lcard__fav:active::before { transform: scale(.94); }
.pt-lcard__fav .pt-icon { position: relative; width: 18px; height: 18px; }
.pt-lcard__fav[aria-pressed="true"] .pt-icon { fill: var(--pt-red-600); stroke: var(--pt-red-600); animation: pt-pop .28s var(--pt-ease); }
@keyframes pt-pop { 40% { transform: scale(1.25); } }
.pt-lcard__body { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; flex: 1; }
.pt-lcard__price { font-family: var(--pt-font-display); font-size: 1.25rem; font-weight: 700; color: var(--pt-text); letter-spacing: -.01em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pt-lcard__price small { margin-inline-start: 8px; font-family: var(--pt-font); font-size: .8125rem; font-weight: 400; color: var(--pt-text-2); letter-spacing: 0; }
.pt-lcard__facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 2px; padding: 0; list-style: none; font-size: .875rem; color: var(--pt-gray-600); }
.pt-lcard__facts li { display: inline-flex; gap: 5px; align-items: center; }
.pt-lcard__facts .pt-icon { width: 16px; height: 16px; color: var(--pt-gray-500); }
.pt-lcard__title { font-family: var(--pt-font); font-size: .9375rem; font-weight: 600; line-height: 1.35; margin: 2px 0 0; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-lcard__title a { color: var(--pt-text); text-decoration: none; }
.pt-lcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* stretched link: whole card clickable (media sits above it) */
.pt-lcard__loc { font-size: .875rem; color: var(--pt-gray-500); display: flex; gap: 4px; align-items: center; }
.pt-lcard__loc .pt-icon { width: 14px; height: 14px; }
.pt-lcard__seller { font-size: .75rem; color: var(--pt-text-3); margin-top: 2px; }
.pt-lcard__body a:not(.pt-lcard__title a) { position: relative; z-index: 3; }
/* list layout (search results, row) */
@media (min-width: 600px) { .pt-lcard--row { flex-direction: row; gap: var(--pt-s4); } .pt-lcard--row .pt-lcard__media { width: 280px; flex: none; } .pt-lcard--row .pt-lcard__body { padding-top: 4px; } }
.pt-lcard--skeleton { pointer-events: none; }
.pt-lcard--sold .pt-lcard__media img { filter: grayscale(.5); }

/* swipe carousel (cards + gallery phone): scroll-snap, dots, arrows on hover */
.pt-carousel { position: relative; width: 100%; height: 100%; }
.pt-carousel__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pt-carousel__track::-webkit-scrollbar { display: none; }
.pt-carousel__slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: block; position: relative; background: var(--pt-gray-100); }
.pt-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pt-carousel__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: transform var(--pt-dur), background var(--pt-dur); }
.pt-carousel__dots i.is-on { background: #fff; transform: scale(1.25); }
.pt-carousel__dots i.is-far { transform: scale(.7); }
.pt-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--pt-gray-900); box-shadow: 0 1px 4px rgba(17, 17, 16, .25); display: none; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--pt-dur), transform var(--pt-dur); }
.pt-carousel__nav:hover { transform: translateY(-50%) scale(1.06); }
.pt-carousel__nav .pt-icon { width: 16px; height: 16px; }
.pt-carousel__prev { left: 8px; } .pt-carousel__next { right: 8px; }
@media (hover: hover) and (min-width: 900px) {
  .pt-carousel__nav { display: grid; }
  .pt-lcard__media:hover .pt-carousel__nav { opacity: 1; }
  .pt-carousel__nav[disabled] { opacity: 0 !important; pointer-events: none; }
}

/* ---------- Badges / alerts ---------- */
.pt-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pt-r-pill); font-size: .75rem; font-weight: 600; line-height: 1.5; background: var(--pt-gray-100); color: var(--pt-gray-700); white-space: nowrap; }
.pt-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pt-badge--plain::before, .pt-badge--on-photo::before, .pt-badge--brand::before, .pt-badge--icon::before { display: none; }
.pt-badge .pt-icon { width: 12px; height: 12px; }
.pt-badge--live, .pt-badge--success { background: var(--pt-success-bg); color: var(--pt-success); }
.pt-badge--pending, .pt-badge--pending_review, .pt-badge--warning { background: var(--pt-warning-bg); color: var(--pt-warning); }
.pt-badge--changes, .pt-badge--changes_requested { background: var(--pt-changes-bg); color: var(--pt-changes); }
.pt-badge--rejected, .pt-badge--danger { background: var(--pt-danger-bg); color: var(--pt-danger); }
.pt-badge--sold { background: var(--pt-sold-bg); color: var(--pt-sold); }
.pt-badge--draft { background: var(--pt-draft-bg); color: var(--pt-draft); }
.pt-badge--removed { background: var(--pt-removed-bg); color: var(--pt-removed); }
.pt-badge--info { background: var(--pt-info-bg); color: var(--pt-info); }
.pt-badge--brand { background: var(--pt-red-600); color: #fff; }
.pt-badge--accent { background: var(--pt-red-50); color: var(--pt-red-700); }
.pt-badge--on-photo { background: rgba(255, 255, 255, .96); color: var(--pt-text); box-shadow: 0 1px 3px rgba(17, 17, 16, .18); font-weight: 700; }
.pt-badge--ai { background: rgba(23, 23, 22, .78); color: #fff; backdrop-filter: blur(4px); }
.pt-badge--ai::before { display: none; }

.pt-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--pt-r); border: 1px solid; font-size: .9375rem; align-items: flex-start; }
.pt-alert > .pt-icon { margin-top: 2px; }
.pt-alert__body { flex: 1; min-width: 0; }
.pt-alert--info { background: var(--pt-info-bg); border-color: #cfe0fb; color: #1e3a8a; }
.pt-alert--success { background: var(--pt-success-bg); border-color: #b7ebcb; color: #14532d; }
.pt-alert--warning { background: var(--pt-warning-bg); border-color: #f5dba6; color: #78350f; }
.pt-alert--error, .pt-alert--danger { background: var(--pt-danger-bg); border-color: #f9c4cf; color: #7f1030; }
.pt-alert a { color: inherit; font-weight: 700; }
.pt-alert + p, .pt-alert + form { margin-top: var(--pt-s4); }

/* toasts */
.pt-toasts { position: fixed; z-index: var(--pt-z-toast); left: var(--pt-s3); right: var(--pt-s3); bottom: calc(var(--pt-s3) + env(safe-area-inset-bottom) + var(--pt-tabbar-h) + var(--pt-consent-h, 0px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
body.pt-has-actionbar .pt-toasts { bottom: calc(84px + env(safe-area-inset-bottom) + var(--pt-tabbar-h) + var(--pt-consent-h, 0px)); }
.pt-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 460px; width: 100%; padding: 12px 14px; background: var(--pt-gray-900); color: #fff; border-radius: var(--pt-r); box-shadow: var(--pt-shadow-lg); font-size: .9375rem; animation: pt-toast-in .25s var(--pt-ease); }
.pt-toast > .pt-icon { width: 20px; height: 20px; }
.pt-toast--success > .pt-icon { color: #4ade80; } .pt-toast--error > .pt-icon { color: #fda4af; } .pt-toast--info > .pt-icon { color: #93c5fd; }
.pt-toast__msg { flex: 1; }
.pt-toast button { background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; min-width: 32px; min-height: 32px; display: grid; place-items: center; border-radius: 50%; }
.pt-toast button:hover { background: rgba(255,255,255,.12); color: #fff; }
.pt-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .2s; }
@keyframes pt-toast-in { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 900px) { .pt-toasts { left: 50%; right: auto; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); bottom: var(--pt-s5); } }

/* tooltips: <button data-pt-tip="Text">; CSS only */
[data-pt-tip] { position: relative; }
[data-pt-tip]::after { content: attr(data-pt-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(2px); background: var(--pt-gray-900); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3; padding: 6px 10px; border-radius: var(--pt-r-xs); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--pt-dur), transform var(--pt-dur); z-index: var(--pt-z-drawer); }
[data-pt-tip]:hover::after, [data-pt-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%); }
@media (hover: none) { [data-pt-tip]::after { display: none; } }

/* ---------- Sheet / modal ---------- */
.pt-overlay { position: fixed; inset: 0; z-index: var(--pt-z-modal); background: var(--pt-overlay); display: flex; align-items: flex-end; justify-content: center; animation: pt-fade .2s; }
.pt-overlay[hidden] { display: none; }
@keyframes pt-fade { from { opacity: 0; } }
@keyframes pt-rise { from { transform: translateY(32px); opacity: .5; } }
.pt-modal, .pt-sheet { position: relative; background: var(--pt-surface); width: 100%; max-height: 90vh; max-height: 90dvh; overflow: auto; border-radius: var(--pt-r-xl) var(--pt-r-xl) 0 0; box-shadow: var(--pt-shadow-lg); padding: var(--pt-s5) var(--pt-s5) calc(var(--pt-s5) + env(safe-area-inset-bottom)); animation: pt-rise .28s var(--pt-ease); overscroll-behavior: contain; }
.pt-modal::before, .pt-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--pt-gray-300); margin: -12px auto 14px; } /* drag handle */
.pt-modal.is-dragging { transition: none; animation: none; }
.pt-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: var(--pt-s4); }
.pt-modal__head h2 { margin: 0; font-size: 1.375rem; }
.pt-modal__close { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--pt-text); }
.pt-modal__close:hover { background: var(--pt-gray-100); }
.pt-modal__foot { display: flex; gap: var(--pt-s2); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--pt-s5); }
@media (min-width: 600px) {
  .pt-overlay { align-items: center; padding: var(--pt-s5); }
  .pt-modal, .pt-sheet { max-width: 540px; border-radius: var(--pt-r-xl); padding: var(--pt-s6); }
  .pt-modal::before, .pt-sheet::before { display: none; }
  .pt-modal--wide { max-width: 800px; }
}
body.pt-noscroll { overflow: hidden; }

/* ---------- Tabs ---------- */
.pt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pt-border); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tab { flex: none; min-height: 48px; padding: 8px 14px; border: 0; background: none; font-weight: 600; font-size: .9375rem; color: var(--pt-text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color var(--pt-dur), border-color var(--pt-dur); white-space: nowrap; }
.pt-tab:hover { color: var(--pt-text); border-bottom-color: var(--pt-gray-300); }
.pt-tab[aria-selected="true"], .pt-tab.is-active, .pt-tab[aria-current] { color: var(--pt-text); border-bottom-color: var(--pt-red-600); }
.pt-tabpanel { padding-top: var(--pt-s5); }

/* ---------- Stepper (progress dots) ---------- */
.pt-stepper { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; counter-reset: pt-step; }
.pt-step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .8125rem; font-weight: 600; color: var(--pt-text-2); position: relative; }
.pt-step::before { counter-increment: pt-step; content: counter(pt-step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pt-surface); border: 1px solid var(--pt-gray-300); z-index: 1; font-size: .8125rem; }
.pt-step::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--pt-gray-200); }
.pt-step:last-child::after { display: none; }
.pt-step.is-done { color: var(--pt-text); }
.pt-step.is-done::before { content: "\2713"; background: var(--pt-gray-900); border-color: var(--pt-gray-900); color: #fff; }
.pt-step.is-done::after { background: var(--pt-gray-900); }
.pt-step.is-current { color: var(--pt-text); }
.pt-step.is-current::before { border-color: var(--pt-red-600); color: var(--pt-red-600); box-shadow: 0 0 0 4px var(--pt-red-100); }
.pt-step__label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .pt-step:not(.is-current) .pt-step__label { display: none; } }

/* ---------- Pagination ---------- */
.pt-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: var(--pt-s6) 0 0; }
.pt-pagination a, .pt-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: var(--pt-r-pill); border: 1px solid transparent; background: transparent; color: var(--pt-text); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.pt-pagination a:hover { background: var(--pt-gray-100); }
.pt-pagination [aria-current="page"] { background: var(--pt-gray-900); color: #fff; }
.pt-pagination .is-disabled { opacity: .35; }
.pt-pagination .pt-gap { min-width: 20px; padding: 0; }

/* ---------- Skeleton / empty / spinner ---------- */
.pt-skel { background: linear-gradient(90deg, var(--pt-gray-100) 25%, var(--pt-gray-50) 50%, var(--pt-gray-100) 75%); background-size: 200% 100%; animation: pt-shimmer 1.4s infinite linear; border-radius: var(--pt-r-sm); }
.pt-skel--line { height: 14px; margin: 8px 0; } .pt-skel--line.w60 { width: 60%; } .pt-skel--line.w40 { width: 40%; } .pt-skel--line.w80 { width: 80%; }
.pt-skel--media { aspect-ratio: 4 / 3; border-radius: var(--pt-r-lg); }
.pt-skel--circle { border-radius: 50%; width: 44px; height: 44px; }
.pt-skel--block { height: 120px; border-radius: var(--pt-r-lg); }
@keyframes pt-shimmer { to { background-position: -200% 0; } }
.pt-empty { text-align: center; padding: var(--pt-s7) var(--pt-s4); }
.pt-empty__art { width: 200px; max-width: 70%; margin: 0 auto var(--pt-s4); }
.pt-empty__art svg { width: 100%; height: auto; display: block; }
.pt-empty__icon { width: 56px; height: 56px; margin: 0 auto var(--pt-s3); color: var(--pt-red-700); background: var(--pt-red-50); border-radius: 50%; display: grid; place-items: center; }
.pt-empty__title { font-size: 1.375rem; margin-bottom: 6px; }
.pt-empty h3 { margin-bottom: 4px; }
.pt-empty p { color: var(--pt-text-2); max-width: 420px; margin: 0 auto var(--pt-s4); }
.pt-empty .pt-btn { margin-top: var(--pt-s2); }
.pt-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--pt-gray-200); border-top-color: var(--pt-red-600); animation: pt-spin .7s linear infinite; display: inline-block; }
/* illustration palette (macro illustration()) */
.pt-ill { --ill-line: var(--pt-gray-800); --ill-soft: var(--pt-red-50); --ill-mid: var(--pt-red-100); --ill-acc: var(--pt-red-600); --ill-grey: var(--pt-gray-200); }


.pt-ill .is { fill: var(--ill-soft); stroke: none; }
.pt-ill .il { stroke: var(--ill-line); stroke-width: 2; fill: none; }
.pt-ill .iw { fill: #fff; }
.pt-ill .im { fill: var(--ill-mid); }
.pt-ill .im-f { fill: var(--ill-mid); stroke: none; }
.pt-ill .ia-f { fill: var(--ill-acc); stroke: none; }
.pt-ill .ia-l { stroke: var(--ill-acc); stroke-width: 2.5; fill: none; }
.pt-ill .iw-s { stroke: #fff; stroke-width: 3; fill: none; }
.pt-ill .ig-l { stroke: var(--ill-grey); stroke-width: 3; fill: none; }

/* ---------- Search pill (large, with segments) ---------- */
.pt-searchpill { display: flex; align-items: stretch; background: var(--pt-surface); border: 1px solid var(--pt-gray-200); border-radius: var(--pt-r-pill); box-shadow: var(--pt-shadow-md); padding: 8px; gap: 0; max-width: 860px; width: 100%; }
.pt-searchpill__seg { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 24px; border-radius: var(--pt-r-pill); transition: background var(--pt-dur); }
.pt-searchpill__seg:hover { background: var(--pt-gray-50); }
.pt-searchpill__seg:focus-within { background: var(--pt-gray-100); }
.pt-searchpill__seg + .pt-searchpill__seg::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--pt-gray-200); }
.pt-searchpill__seg:hover::before, .pt-searchpill__seg:focus-within::before, .pt-searchpill__seg:hover + .pt-searchpill__seg::before, .pt-searchpill__seg:focus-within + .pt-searchpill__seg::before { opacity: 0; }
.pt-searchpill__seg--grow { flex: 1.6; }
.pt-searchpill label { font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: var(--pt-text); }
.pt-searchpill input, .pt-searchpill select { border: 0; background: transparent; padding: 0; min-height: 24px; font-size: .9375rem; color: var(--pt-text); width: 100%; outline: none; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; cursor: pointer; }
.pt-searchpill input { cursor: text; }
.pt-searchpill input::placeholder { color: var(--pt-text-3); }
.pt-searchpill__seg:focus-within { outline: 2px solid var(--pt-red-600); outline-offset: -2px; }
.pt-searchpill__go { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--pt-red-600); color: #fff; display: grid; place-items: center; cursor: pointer; align-self: center; transition: background var(--pt-dur), transform .08s; }
.pt-searchpill__go:hover { background: var(--pt-red-700); }
.pt-searchpill__go:active { transform: scale(.95); }
.pt-searchpill__go .pt-icon { width: 22px; height: 22px; stroke-width: 2.25; }
/* compact single pill (header, inner pages) */
.pt-searchpill--compact { box-shadow: var(--pt-shadow-sm); padding: 4px 4px 4px 18px; max-width: 520px; align-items: center; }
.pt-searchpill--compact:hover { box-shadow: var(--pt-shadow-md); }
.pt-searchpill--compact .pt-searchpill__seg { padding: 0 8px 0 0; flex-direction: row; align-items: center; gap: 10px; }
.pt-searchpill--compact .pt-searchpill__seg .pt-icon { color: var(--pt-gray-500); }
.pt-searchpill--compact input { min-height: 36px; }
.pt-searchpill--compact .pt-searchpill__seg:hover, .pt-searchpill--compact .pt-searchpill__seg:focus-within { background: transparent; outline: 0; }
.pt-searchpill--compact .pt-searchpill__go { width: 36px; height: 36px; }
.pt-searchpill--compact .pt-searchpill__go .pt-icon { width: 16px; height: 16px; }
.pt-searchpill--compact:focus-within { border-color: var(--pt-red-600); box-shadow: 0 0 0 4px var(--pt-ring); }
.pt-searchpill--compact input { font-size: .9375rem; }
/* phone: one pill that opens the full-screen search sheet */
.pt-searchbtn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 6px 6px 18px; background: var(--pt-surface); border: 1px solid var(--pt-gray-200); border-radius: var(--pt-r-pill); box-shadow: var(--pt-shadow-md); color: var(--pt-text); font-weight: 600; font-size: .9375rem; text-align: start; cursor: pointer; }
.pt-searchbtn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-searchbtn small { display: block; font-weight: 400; color: var(--pt-text-3); font-size: .75rem; }
.pt-searchbtn__go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pt-red-600); color: #fff; display: grid; place-items: center; }
.pt-searchbtn__go .pt-icon { width: 18px; height: 18px; stroke-width: 2.25; }
@media (max-width: 899px) {
  .pt-searchpill:not(.pt-searchpill--compact) { flex-direction: column; border-radius: var(--pt-r-xl); padding: 6px; }
  .pt-searchpill:not(.pt-searchpill--compact) .pt-searchpill__seg { border-radius: var(--pt-r-lg); padding: 10px 16px; }
  .pt-searchpill__seg + .pt-searchpill__seg::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .pt-searchpill:not(.pt-searchpill--compact) .pt-searchpill__go { width: 100%; height: 52px; border-radius: var(--pt-r-lg); margin-top: 6px; }
}
/* full-screen search sheet (phone): .pt-overlay.pt-overlay--full */
.pt-overlay--full { align-items: stretch; background: var(--pt-surface); }
.pt-overlay--full .pt-modal { max-height: none; height: 100%; border-radius: 0; max-width: none; box-shadow: none; padding-top: calc(var(--pt-s4) + env(safe-area-inset-top)); }
.pt-overlay--full .pt-modal::before { display: none; }

/* ---------- Header / nav ---------- */
.pt-header { position: sticky; top: 0; z-index: var(--pt-z-header); background: var(--pt-surface); border-bottom: 1px solid var(--pt-border); }
@supports (backdrop-filter: blur(8px)) { .pt-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); } }
.pt-header__bar { display: flex; align-items: center; gap: var(--pt-s2); height: var(--pt-header-h); }
.pt-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; margin-inline-end: auto; }
.pt-logo img { height: 38px; width: auto; display: block; }   /* two-line logo (ratio 2.4:1) */
.pt-header__search { display: none; flex: 1; justify-content: center; margin-inline: var(--pt-s4); }
.pt-header__search .pt-searchpill { max-width: 460px; }
.pt-header__tools { display: flex; align-items: center; gap: 4px; }
.pt-header__cta { display: none; }
.pt-header__mobile-search { padding: 4px var(--pt-gutter) 12px; background: var(--pt-surface); }
.pt-menu { position: relative; }
.pt-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-r-lg); box-shadow: var(--pt-shadow-lg); padding: 8px; z-index: var(--pt-z-drawer); animation: pt-menu-in .16s var(--pt-ease); }
@keyframes pt-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.pt-menu__panel[hidden] { display: none; }
.pt-menu__item, .pt-menu__panel a, .pt-menu__panel button.pt-menu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: none; border-radius: var(--pt-r-sm); color: var(--pt-text); text-decoration: none; font-size: .9375rem; text-align: start; cursor: pointer; }
.pt-menu__panel a:hover, .pt-menu__item:hover, .pt-menu__item:focus-visible { background: var(--pt-gray-50); color: var(--pt-text); }
.pt-menu__panel [aria-current="true"], .pt-menu__item.is-active { font-weight: 700; background: var(--pt-gray-100); }
.pt-menu__item .pt-icon { color: var(--pt-gray-500); }
.pt-menu__sep { height: 1px; background: var(--pt-border); margin: 6px 0; }
.pt-menu__head { padding: 8px 12px; font-size: .8125rem; color: var(--pt-text-2); }
.pt-menu__label { padding: 8px 12px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-text-3); }
.pt-menu__panel--wide { min-width: 260px; }
.pt-menu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pt-menu__row .pt-menu__item, .pt-menu__row a { justify-content: center; border: 1px solid var(--pt-gray-200); }
.pt-menu__row [aria-current="true"], .pt-menu__row .is-active { border-color: var(--pt-gray-900); background: var(--pt-surface); }
.pt-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pt-gray-900); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .8125rem; font-family: var(--pt-font-display); flex: none; overflow: hidden; }
.pt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pt-avatar--lg { width: 56px; height: 56px; font-size: 1.25rem; } .pt-avatar--xl { width: 80px; height: 80px; font-size: 1.75rem; }
.pt-avatar--red { background: var(--pt-red-600); }
.pt-menubtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 4px 4px 12px; border: 1px solid var(--pt-gray-300); border-radius: var(--pt-r-pill); background: var(--pt-surface); cursor: pointer; transition: box-shadow var(--pt-dur); color: var(--pt-text); }
.pt-menubtn:hover { box-shadow: var(--pt-shadow-md); }
@media (max-width: 599px) { .pt-header__tools .pt-iconbtn { padding: 0 8px; min-width: 40px; } }
@media (min-width: 600px) { .pt-header__cta { display: inline-flex; margin-inline-end: var(--pt-s1); } }
@media (min-width: 900px) {
  .pt-header__search { display: flex; }
  .pt-header__mobile-search { display: none !important; }
  .pt-header__cta { display: inline-flex; margin-inline-end: var(--pt-s1); }
  .pt-logo { margin-inline-end: 0; }
  .pt-logo img { height: 44px; }
  .pt-header__tools { margin-inline-start: auto; }
  .pt-header.has-no-search .pt-logo { margin-inline-end: auto; }
}
.pt-header__cta-m { display: inline-flex; color: var(--pt-red-600); }
@media (min-width: 900px) { .pt-header__cta-m { display: none; } }

/* phone bottom tab bar */
.pt-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--pt-z-tabbar); display: flex; height: var(--pt-tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--pt-border); }
@supports (backdrop-filter: blur(8px)) { .pt-tabbar { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); } }
.pt-tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--pt-gray-600); text-decoration: none; font-size: .6875rem; font-weight: 600; padding-top: 6px; -webkit-tap-highlight-color: transparent; }
.pt-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
.pt-tabbar .pt-icon { width: 24px; height: 24px; }
.pt-tabbar a[aria-current="page"] { color: var(--pt-red-700); }
.pt-tabbar a[aria-current="page"] .pt-icon { stroke-width: 2.1; }
/* middle button: "Sell" for seller accounts, "Buy" for buyer accounts (base.html decides) */
.pt-tabbar__main .pt-tabbar__plus { width: 44px; height: 32px; border-radius: 12px; background: var(--pt-red-600); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px -3px rgba(207, 31, 29, .6); }
.pt-tabbar__main .pt-icon { width: 22px; height: 22px; stroke-width: 2.25; }
.pt-tabbar__main { color: var(--pt-text) !important; }
.pt-tabbar a[hidden] { display: none; }
.pt-tabbar__main[aria-current="page"] .pt-tabbar__plus { background: var(--pt-red-700); box-shadow: 0 0 0 3px var(--pt-red-100), 0 4px 10px -3px rgba(207, 31, 29, .6); }
.pt-tabbar { display: none; }
@media (max-width: 899px) {
  body.pt-has-tabbar { --pt-tabbar-h: calc(60px + env(safe-area-inset-bottom)); padding-bottom: var(--pt-tabbar-h); }
  body.pt-has-tabbar .pt-tabbar { display: flex; }
  /* owner rule: the tab bar is always available on phones. On listing pages (owner decision 17 Nov: best practice)
     it slides away while the person scrolls down to read and comes back on any scroll up, at the top and at the
     end of the page (pt.js adds body.pt-tabbar-tucked); the action bar then drops to the screen edge, so only one
     bar shows while reading. */
  body.pt-has-tabbar.pt-has-actionbar .pt-actionbar { padding-bottom: 10px; transition: bottom .25s var(--pt-ease), padding-bottom .25s var(--pt-ease); }
  body.pt-has-tabbar.pt-has-actionbar .pt-tabbar { transition: transform .25s var(--pt-ease); will-change: transform; }
  body.pt-tabbar-tucked .pt-tabbar { transform: translateY(100%); }
  body.pt-tabbar-tucked .pt-actionbar { bottom: var(--pt-consent-h, 0px); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.pt-tabbar-tucked .pt-toasts { bottom: calc(84px + env(safe-area-inset-bottom) + var(--pt-consent-h, 0px)); }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  body.pt-has-tabbar.pt-has-actionbar .pt-actionbar, body.pt-has-tabbar.pt-has-actionbar .pt-tabbar { transition: none; }
}

/* ---------- Footer (light) ---------- */
.pt-footer { background: var(--pt-gray-50); color: var(--pt-text-2); border-top: 1px solid var(--pt-border); padding-block: var(--pt-sp-8) var(--pt-s5); margin-top: var(--pt-sp-8); flex: none; font-size: .875rem; }
.pt-footer a { color: var(--pt-text-2); text-decoration: none; }
.pt-footer a:hover { color: var(--pt-text); text-decoration: underline; }
.pt-footer h2 { font-family: var(--pt-font); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-text); margin-bottom: var(--pt-s3); }
.pt-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pt-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 899px) { .pt-footer li a { min-height: 44px; } }
.pt-footer__grid { display: grid; gap: var(--pt-s6) var(--pt-s5); grid-template-columns: 1fr 1fr; }
.pt-footer__brand { grid-column: 1 / -1; }
.pt-footer__brand img { height: 48px; width: auto; }
.pt-footer__brand p { max-width: 320px; margin-top: var(--pt-s3); color: var(--pt-text-2); }
.pt-footer__bottom { margin-top: var(--pt-s6); padding-top: var(--pt-s4); border-top: 1px solid var(--pt-border); font-size: .8125rem; color: var(--pt-text-3); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--pt-s3); }
.pt-footer__small { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.pt-footer__small a { color: var(--pt-text-2); text-decoration: underline; }
.pt-footer__lang { display: flex; gap: 6px; align-items: center; }
.pt-footer__lang a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--pt-gray-300); border-radius: var(--pt-r-pill); font-weight: 600; color: var(--pt-text); background: var(--pt-surface); }
.pt-footer__lang a[aria-current="true"] { border-color: var(--pt-gray-900); }
@media (min-width: 900px) { .pt-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } .pt-footer__brand { grid-column: auto; } }

/* ---------- Breadcrumbs ---------- */
.pt-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--pt-text-2); }
.pt-breadcrumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.pt-breadcrumbs li + li::before { content: ""; width: 14px; height: 14px; margin-inline: 4px; background: var(--pt-gray-400); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pt-breadcrumbs a { color: var(--pt-text-2); text-decoration: none; display: inline-flex; min-height: 44px; padding-inline: 4px; align-items: center; }
.pt-breadcrumbs a:hover { color: var(--pt-text); text-decoration: underline; }
.pt-breadcrumbs [aria-current] { color: var(--pt-text); font-weight: 600; padding-inline: 4px; }

/* ---------- Tables ---------- */
.pt-table-wrap { overflow-x: auto; border: 1px solid var(--pt-border); border-radius: var(--pt-r-lg); background: var(--pt-surface); max-width: 100%; }
.pt-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.pt-table caption { text-align: start; padding: 12px 16px; font-weight: 700; }
.pt-table th, .pt-table td { padding: 0 16px; height: 48px; text-align: start; border-bottom: 1px solid var(--pt-border); vertical-align: middle; }
.pt-table thead th { background: var(--pt-gray-50); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pt-text-2); white-space: nowrap; position: sticky; top: 0; font-weight: 600; }
.pt-table tbody tr:hover { background: var(--pt-gray-25); }
.pt-table tbody tr:last-child td { border-bottom: 0; }
.pt-table .pt-num { text-align: end; font-variant-numeric: tabular-nums; }
.pt-table a.pt-sort { color: inherit; text-decoration: none; }

/* ---------- Filters: sheet on phone, sidebar on desktop ---------- */
.pt-filters { background: var(--pt-surface); }
.pt-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--pt-s4); border-bottom: 1px solid var(--pt-border); position: sticky; top: 0; background: inherit; z-index: 1; }
.pt-filters__head h2 { margin: 0; font-size: 1.125rem; }
.pt-filters__body { padding: var(--pt-s4); display: flex; flex-direction: column; gap: var(--pt-s5); }
.pt-filters__foot { position: sticky; bottom: 0; padding: var(--pt-s3) var(--pt-s4) calc(var(--pt-s3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--pt-border); background: var(--pt-surface); display: flex; gap: var(--pt-s2); }
.pt-filters__foot .pt-btn { flex: 1; }
@media (max-width: 899px) {
  .pt-filters { position: fixed; inset: 0 0 0 auto; width: min(92vw, 420px); z-index: var(--pt-z-drawer); overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .28s var(--pt-ease), visibility 0s .28s; box-shadow: var(--pt-shadow-lg); display: flex; flex-direction: column; }
  .pt-filters.is-open { transform: none; visibility: visible; transition: transform .28s var(--pt-ease); }
  .pt-filters__body { flex: 1; }
  .pt-filters { bottom: var(--pt-consent-h, 0px); }
  .pt-filters-backdrop { position: fixed; inset: 0; z-index: calc(var(--pt-z-drawer) - 1); background: var(--pt-overlay); animation: pt-fade .2s; }
}
@media (min-width: 900px) {
  .pt-filters { border: 1px solid var(--pt-border); border-radius: var(--pt-r-lg); position: sticky; top: calc(var(--pt-header-h) + 12px); max-height: calc(100vh - var(--pt-header-h) - 24px); overflow-y: auto; }
  .pt-filters__head .pt-modal__close, .pt-filters-open, .pt-filters-backdrop { display: none !important; }
  .pt-filters__foot { position: static; }
}
.pt-filter-group h3 { font-size: .9375rem; margin-bottom: 8px; }
.pt-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pt-s2); margin-bottom: var(--pt-s4); }
/* sticky filter bar under the header (search page) */
.pt-filterbar { position: sticky; top: var(--pt-header-h); z-index: var(--pt-z-sticky); background: var(--pt-surface); border-bottom: 1px solid var(--pt-border); }
.pt-filterbar__inner { display: flex; align-items: center; gap: var(--pt-s2); padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.pt-filterbar__inner::-webkit-scrollbar { display: none; }
.pt-filterbar__inner > * { flex: none; }

/* ---------- Gallery + lightbox ---------- */
.pt-gallery { position: relative; }
.pt-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-inline: calc(var(--pt-gutter) * -1); aspect-ratio: 4 / 3; background: var(--pt-gray-100); }
.pt-gallery__track::-webkit-scrollbar { display: none; }
.pt-gallery__item { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; display: block; padding: 0; border: 0; background: var(--pt-gray-100); cursor: zoom-in; overflow: hidden; }
.pt-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-gallery__counter { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(23, 23, 22, .74); color: #fff; font-size: .8125rem; font-weight: 600; padding: 4px 12px; border-radius: var(--pt-r-pill); font-variant-numeric: tabular-nums; pointer-events: none; }
.pt-gallery__all { display: none; }
.pt-gallery__empty { aspect-ratio: 4 / 3; border-radius: var(--pt-r-xl); overflow: hidden; }
@media (min-width: 900px) {
  .pt-gallery__track { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-inline: 0; overflow: hidden; aspect-ratio: 2.2 / 1; border-radius: var(--pt-r-xl); background: transparent; }
  .pt-gallery__item { grid-column: auto; }
  .pt-gallery__item:first-child { grid-row: 1 / 3; }
  .pt-gallery__item:nth-child(n+6) { display: none; }
  .pt-gallery__item img { transition: transform .5s var(--pt-ease), filter var(--pt-dur); }
  .pt-gallery__item:hover img { filter: brightness(.94); }
  .pt-gallery__counter { display: none; }
  .pt-gallery__all { display: inline-flex; position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 44px; padding: 0 16px; gap: 8px; align-items: center; background: var(--pt-surface); color: var(--pt-text); border: 1px solid var(--pt-gray-900); border-radius: var(--pt-r); font-weight: 600; font-size: .875rem; cursor: pointer; box-shadow: var(--pt-shadow-sm); }
  .pt-gallery__all:hover { background: var(--pt-gray-50); }
  .pt-gallery--n1 .pt-gallery__track, .pt-gallery--n2 .pt-gallery__track, .pt-gallery--n3 .pt-gallery__track, .pt-gallery--n4 .pt-gallery__track { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 2.2 / 1; }
  .pt-gallery--n2 .pt-gallery__track, .pt-gallery--n3 .pt-gallery__track { grid-template-columns: 1fr 1fr; } .pt-gallery--n2 .pt-gallery__item:first-child, .pt-gallery--n3 .pt-gallery__item:first-child { grid-row: auto; }
  .pt-gallery--n3 .pt-gallery__item:nth-child(n+3), .pt-gallery--n2 .pt-gallery__item:nth-child(n+3) { display: none; }
  .pt-gallery--n4 .pt-gallery__track { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .pt-gallery--n4 .pt-gallery__item:nth-child(n+4) { display: none; } .pt-gallery--n4 .pt-gallery__item:first-child { grid-row: 1 / 3; }
  .pt-gallery--n1 .pt-gallery__item:nth-child(n+2) { display: none; }
  .pt-gallery--n1 .pt-gallery__track { aspect-ratio: 2.2 / 1; }
  .pt-gallery__track > .pt-gallery__item:nth-child(3) { border-radius: 0; }
}
/* legacy gallery markup (v1) keeps working */
.pt-gallery__main { position: relative; aspect-ratio: 4 / 3; background: var(--pt-gray-100); border-radius: var(--pt-r-lg); overflow: hidden; }
.pt-gallery__main img, .pt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-gallery__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pt-gallery__thumbs { display: none; }

.pt-lightbox { position: fixed; inset: 0; z-index: calc(var(--pt-z-modal) + 5); background: rgba(12, 12, 11, .96); display: flex; flex-direction: column; color: #fff; }
.pt-lightbox[hidden] { display: none; }
.pt-lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
.pt-lightbox__count { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.pt-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .2s var(--pt-ease); cursor: zoom-in; transform-origin: center; }
.pt-lightbox__img.is-zoomed { cursor: grab; transition: none; }
.pt-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pt-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.pt-lightbox__prev { left: 12px; } .pt-lightbox__next { right: 12px; }
.pt-lightbox__cap { text-align: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); font-size: .9375rem; min-height: 48px; color: rgba(255,255,255,.9); }
.pt-lightbox .pt-modal__close { color: #fff; margin: 0; }
.pt-lightbox .pt-modal__close:hover { background: rgba(255,255,255,.15); }
@media (max-width: 599px) { .pt-lightbox__nav { display: none; } }

/* ---------- Sticky mobile action bar (listing page) ---------- */
.pt-actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--pt-consent-h, 0px) + var(--pt-tabbar-h)); z-index: var(--pt-z-sticky); display: flex; align-items: center; gap: var(--pt-s3); padding: 10px var(--pt-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--pt-surface); border-top: 1px solid var(--pt-border); }
.pt-actionbar__price { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--pt-font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pt-actionbar__price small { display: block; font-family: var(--pt-font); font-weight: 400; font-size: .75rem; color: var(--pt-text-2); }
.pt-actionbar .pt-btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; }
.pt-actionbar__price ~ .pt-btn { flex: 0 0 auto; }
.pt-actionbar__price small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pt-has-actionbar { padding-bottom: calc(76px + var(--pt-tabbar-h) + var(--pt-consent-h, 0px)); }
@media (min-width: 900px) { .pt-actionbar { display: none; } body.pt-has-actionbar { padding-bottom: 0; } }

/* ---------- Listing page pieces ---------- */
.pt-price-lg { font-family: var(--pt-font-display); font-size: 2.25rem; font-weight: 800; color: var(--pt-text); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-price-lg small { display: block; font-family: var(--pt-font); font-size: .9375rem; font-weight: 400; color: var(--pt-text-2); letter-spacing: 0; margin-top: 6px; }
.pt-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--pt-s3); margin: 0; }
.pt-facts > div { padding: 14px 16px; border: 1px solid var(--pt-border); border-radius: var(--pt-r); background: var(--pt-surface); }
.pt-facts dt { font-size: .8125rem; color: var(--pt-text-2); }
.pt-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .pt-facts { grid-template-columns: repeat(3, 1fr); } }
.pt-seller { display: flex; flex-direction: column; gap: var(--pt-s3); }
.pt-seller__who { display: flex; gap: 12px; align-items: center; }
.pt-seller__logo { width: 52px; height: 52px; border-radius: 50%; background: var(--pt-gray-900); display: grid; place-items: center; font-weight: 800; font-family: var(--pt-font-display); color: #fff; overflow: hidden; flex: none; }
.pt-seller__logo img { width: 100%; height: 100%; object-fit: cover; }
.pt-contactcard { position: sticky; top: calc(var(--pt-header-h) + 24px); border: 1px solid var(--pt-border); border-radius: var(--pt-r-xl); padding: var(--pt-s5); box-shadow: var(--pt-shadow-md); background: var(--pt-surface); }
.pt-map { height: 320px; border-radius: var(--pt-r-xl); overflow: hidden; background: var(--pt-gray-100); border: 1px solid var(--pt-border); position: relative; }
.pt-map__note { font-size: .8125rem; color: var(--pt-text-2); margin-top: 6px; }
.pt-prose { max-width: 70ch; line-height: 1.7; }
.pt-prose h2, .pt-prose h3 { margin-top: 1.6em; }
.pt-prose ul, .pt-prose ol { padding-inline-start: 1.3em; }
.pt-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .pt-features { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; } }
.pt-features li { display: flex; gap: 12px; align-items: center; }
.pt-features .pt-icon { color: var(--pt-gray-700); width: 22px; height: 22px; }
.pt-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pt-photo-grid figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--pt-r); overflow: hidden; background: var(--pt-gray-100); }
.pt-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.pt-photo-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 4px 8px; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* lazy images */
img.pt-lazy { opacity: 0; transition: opacity .3s; }
img.pt-lazy.is-loaded { opacity: 1; }
noscript img.pt-lazy { opacity: 1; }

/* progress / dropzone / kv */
.pt-progress { height: 6px; background: var(--pt-gray-100); border-radius: 4px; overflow: hidden; }
.pt-progress > span { display: block; height: 100%; background: var(--pt-red-600); border-radius: 4px; transition: width .3s var(--pt-ease); }
.pt-dropzone { border: 1.5px dashed var(--pt-gray-300); border-radius: var(--pt-r-lg); padding: var(--pt-s7) var(--pt-s4); text-align: center; background: var(--pt-gray-25); transition: border-color var(--pt-dur), background var(--pt-dur); }
.pt-dropzone.is-over { border-color: var(--pt-red-600); background: var(--pt-red-50); }
.pt-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.pt-kv dt { color: var(--pt-text-2); } .pt-kv dd { margin: 0; font-weight: 600; }
.pt-quote { margin: .75rem 0; padding-left: .75rem; border-left: 3px solid currentColor; }
.pt-divider { height: 1px; background: var(--pt-border); border: 0; margin: var(--pt-s5) 0; }

/* error pages */
.pt-errorpage { text-align: center; padding-block: var(--pt-sp-10); }
.pt-errorpage__code { font-family: var(--pt-font-display); font-size: 1rem; font-weight: 700; color: var(--pt-text-3); letter-spacing: .1em; margin-bottom: var(--pt-s2); }
.pt-errorpage p { max-width: 460px; margin-inline: auto; color: var(--pt-text-2); }

/* ---------- Auth + account (kit shell; pages add their own) ---------- */
.pt-auth { width: calc(100% - 2 * var(--pt-s3)); max-width: var(--auth-w, 440px); margin: var(--pt-s5) auto var(--pt-s6); padding: var(--pt-s5) var(--pt-s4); background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-r-xl); box-shadow: var(--pt-shadow-md); }
.pt-auth h1 { margin: 0 0 var(--pt-s4); font-size: 1.75rem; line-height: 1.2; }
.pt-auth > .pt-alert, .pt-auth > .pt-btn { margin-bottom: var(--pt-s4); }
.pt-auth > .pt-btn { display: flex; width: 100%; }
.pt-auth > p { margin: var(--pt-s3) 0 0; }
.pt-auth > p a { display: inline-flex; align-items: center; min-height: 44px; }
.pt-auth > p.pt-muted { text-align: center; margin: 0 0 var(--pt-s4); }
.pt-auth form .pt-btn--primary { width: 100%; }
@media (min-width: 640px) { .pt-auth { padding: var(--pt-s6); margin-top: var(--pt-s7); } }
.pt-pwrules { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .875rem; color: var(--pt-text-2); }
.pt-pwrules .is-ok { color: var(--pt-success); }
.pt-pwrules .is-bad { color: var(--pt-danger); font-weight: 600; }
.pt-account { padding-block: var(--pt-s4) var(--pt-s6); max-width: 960px; }
.pt-account__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--pt-border); margin-bottom: var(--pt-s5); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pt-account__nav::-webkit-scrollbar { display: none; }
.pt-account__nav .pt-tab { white-space: nowrap; }
.pt-account > form.pt-stack { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-r-lg); padding: var(--pt-s5); }
.pt-account h1 { font-size: 1.75rem; margin: 0 0 var(--pt-s4); }

/* ---------- Cookie banner: floating card (desktop) / slim sheet (phone). `body` prefix beats legal.css ---------- */
body .pt-consent { position: fixed; z-index: var(--pt-z-consent); left: var(--pt-s5); right: auto; bottom: var(--pt-s5); width: min(420px, calc(100vw - 2 * var(--pt-s5))); max-height: 80vh; overflow-y: auto; background: var(--pt-surface); color: var(--pt-text); border: 1px solid var(--pt-border); border-radius: var(--pt-r-lg); box-shadow: var(--pt-shadow-lg); animation: pt-consent-in .24s var(--pt-ease); }
body .pt-consent__form { max-width: none; margin: 0; padding: var(--pt-s4) var(--pt-s5) var(--pt-s5); display: grid; gap: var(--pt-s3); }
body .pt-consent__title { margin: 0; font-size: 1rem; font-family: var(--pt-font-display); }
body .pt-consent__text { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--pt-text-2); }
body .pt-consent__text a { color: var(--pt-text); font-weight: 600; }
body .pt-consent__actions { display: grid; gap: var(--pt-s2); grid-template-columns: 1fr 1fr; }
body .pt-consent .pt-consent__btn { min-height: 44px; padding: 0 12px; font-size: .875rem; border-radius: var(--pt-r); width: 100%; }
body .pt-consent #pt-consent-open, body .pt-consent #pt-consent-save { grid-column: 1 / -1; min-height: 44px; border: 0; background: transparent; color: var(--pt-text-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
body .pt-consent #pt-consent-open:hover { color: var(--pt-text); background: var(--pt-gray-50); }
body .pt-consent #pt-consent-save { border: 1px solid var(--pt-gray-300); text-decoration: none; color: var(--pt-text); }
body .pt-consent__btn[hidden], body .pt-consent__settings[hidden] { display: none; }
body .pt-consent__row { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--pt-border); font-size: .8125rem; color: var(--pt-text-2); }
body .pt-consent__row label { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--pt-text); }
body .pt-consent__row input { width: 20px; height: 20px; accent-color: var(--pt-red-600); }
body .pt-consent input:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 2px; }
@keyframes pt-consent-in { from { transform: translateY(16px); opacity: 0; } }
@media (max-width: 899px) {
  body .pt-consent { left: 0; right: 0; width: auto; bottom: var(--pt-tabbar-h); border-radius: var(--pt-r-lg) var(--pt-r-lg) 0 0; border-inline: 0; border-bottom: 0; max-height: 70vh; padding-bottom: env(safe-area-inset-bottom); }
  body.pt-has-tabbar .pt-consent { padding-bottom: 0; }
  body .pt-consent__form { padding: 12px var(--pt-gutter); gap: 8px; }
  /* slim sheet: the title stays for screen readers, three buttons in one row */
  body .pt-consent__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body .pt-consent__text { font-size: .75rem; line-height: 1.4; }
  /* minmax(0, …) + wrapping labels: long Turkish labels ("Yalnızca zorunlu olanlar") used to push "Ayarlar" off a 360 px screen */
  body .pt-consent__actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: 6px; }
  body .pt-consent .pt-consent__btn { padding: 4px 6px; font-size: .8125rem; min-height: 44px; min-width: 0; white-space: normal; line-height: 1.2; text-align: center; overflow-wrap: break-word; }
  body .pt-consent #pt-consent-open { grid-column: auto; }
  body .pt-consent #pt-consent-save { grid-column: 1 / -1; }
}

/* ---------- Misc ---------- */
@media (max-width: 599px) { .pt-hide-xs { display: none !important; } }
.pt-header__mobile-search { position: relative; z-index: 1; }
.pt-main, main { max-width: 100%; }
table, pre, code { max-width: 100%; }
pre { overflow-x: auto; }
.pt-footer .pt-placeholder { background: none; color: #ffd966; }
.maplibregl-ctrl-attrib a, .mapboxgl-ctrl-attrib a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
.maplibregl-ctrl-attrib.maplibregl-compact { min-height: 44px; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
@media print { .pt-header, .pt-footer, .pt-actionbar, .pt-toasts, .pt-tabbar, .pt-consent { display: none !important; } body { background: #fff; } }
